plugin_path = plugin_dir_path( __FILE__ ); $this->plugin_url = plugin_dir_url( __FILE__ ); $this->l10n = 'wp-settings-framework'; add_action( 'admin_menu', array(&$this, 'admin_menu'), 99 ); // Include and create a new WordPressSettingsFramework require_once( $this->plugin_path .'wp-settings-framework.php' ); $settings_file = ''; $this->pluginTemplate = new WordPressSettingsFramework( $settings_file, $this->namespace, $this->get_settings() ); } function admin_menu() { $page_hook = add_menu_page( __( $this->settingName, $this->l10n ), __( $this->settingName, $this->l10n ), 'update_core', $this->settingName, array(&$this, 'settings_page') ); add_submenu_page( $this->settingName, __( 'Settings', $this->l10n ), __( 'Settings', $this->l10n ), 'update_core', $this->settingName, array(&$this, 'settings_page') ); } function settings_page() { // Your settings page ?>

settingName ?>

How to use Adsense Inserter

Put an Adsense ad in your post or page by placing the shortcode tag [adsense_inserter id="%postid%"] on your page or post.

Adsense Inserter Quick Start Guide

pluginTemplate->settings(); ?>
'general', 'section_title' => $this->settingName.' Settings', //'section_description' => 'Some intro description about this section.', 'section_order' => 5, 'fields' => array( /* array( 'id' => 'to_email', 'title' => 'To Email', 'desc' => 'Set the email address you want your forms submitted to.', 'type' => 'text', 'std' => '', ), */ ) ); return $wpsf_settings; } } new AdsenseInserter(); ?>