add_help_tab( array( 'id' => 'authorsure_instructions_tab', 'title' => __('AuthorSure Instructions'), 'content' => '

AuthorSure Administration Instructions

  1. Tweak the Authorsure options to work best with your WordPress theme.
  2. Run through the process yourself by setting up your own Google profile following the instructions in the Help on the profile page.
  3. For the other authors on the blog you can set up their profiles for them using the Edit User page or you can let them make the updates themselves on the Your Profile page
  4. To use the rel="publisher" then create a Google Page (not a Profile) and then create a link to the home page of the blog.
') ); $current_screen->add_help_tab( array( 'id' => 'authorsure_options_tab', 'title' => __('AuthorSure Options'), 'content' => '

AuthorSure Options

On the Options page you can specify:

  1. How the rel="author" link to the author page is created on each post/page.
  2. How the rel="me" profile links appear on the author pages.
  3. How the rel="publisher" link can be applied to the home page.
') ); } } static function toggle_postboxes() { $hook = self::$screen_id; print <<< TOGGLE_POSTBOXES TOGGLE_POSTBOXES; } static function save() { $options = authorsure::get_options(false); $profiles = $options['author_profiles']; foreach ($profiles as $profile => $labels) { //update any profiles labels $post_key = AUTHORSURE.'_'.$profile; if (array_key_exists($post_key,$_POST)) $profiles[$profile] = array($_POST[$post_key],$labels[1]); //update label } $_POST[AUTHORSURE.'_author_profiles'] = $profiles; //set up post variable so its gets updated below $_POST[AUTHORSURE.'_author_show_title'] = array_key_exists(AUTHORSURE.'_author_show_title',$_POST); $_POST[AUTHORSURE.'_footnote_show_updated_date'] = array_key_exists(AUTHORSURE.'_footnote_show_updated_date',$_POST); foreach ($options as $key => $old_value) { $post_key = AUTHORSURE.'_'.$key; if (array_key_exists($post_key,$_POST)) $options[$key] = $_POST[$post_key]; } //end for return '
'.(authorsure::save_options($options) ? __('AuthorSure settings updated') : __('AuthorSure settings have not been changed.')).'
' ; } static function post_panel($post, $metabox) { $options = authorsure::get_options(); $footnote_show_updated_date = $options['footnote_show_updated_date'] ? ' checked="checked"' : ''; $menu = $options['author_rel']=="menu"?'checked="checked"':''; $byline = $options['author_rel']=="byline"?'checked="checked"':''; $footnote = $options['author_rel']=="footnote"?'checked="checked"':''; $box = $options['author_rel']=="box"?'checked="checked"':''; $authors = wp_dropdown_users(array('who' => 'authors', 'selected' => $options['menu_primary_author'], 'name' => 'authorsure_menu_primary_author', 'show_option_none' => __('(not selected)'), 'sort_column'=> 'display_name', 'echo' => 0)); $about_page = wp_dropdown_pages(array('post_type' => 'page', 'selected' => $options['menu_about_page'], 'name' => 'authorsure_menu_about_page', 'show_option_none' => __('(not selected)'), 'sort_column'=> 'menu_order, post_title', 'echo' => 0)); print <<< AUTHORSURE_POST_PANEL

You can leave the default settings here if your WordPress theme puts a link with rel=author to the author page in the post 'byline'.

Author Indicator:

Author Indicator

The word or words that precede the author name in the footnote. (e.g. "By" or "Last updated by")

Check the box to show the date the post was last updated.

The word or words that precede the date in the footnote. (e.g. "at","on", etc.)

The word or words that precede the author name in the title of the Author Box.

Enter the author photo (avatar) size in pixels. The Avatar photo is the one you have set up at gravatar.com.

{$authors}

Choose the primary author of the site.

{$about_page}

Choose the about page which appears in the menu. AuthorSure will add the link to the primary author's Google Plus profile at the foot of the selected page.

AUTHORSURE_POST_PANEL; } static function author_panel($post, $metabox) { $options = authorsure::get_options(); $show_title = $options['author_show_title'] ? ' checked="checked"' : ''; $summary = $options['author_bio']=='summary'?' checked="checked"':''; $extended = $options['author_bio']=='extended'?' checked="checked"':''; $none = $options['author_bio']=='none'?' checked="checked"':''; $labels=''; foreach ($options['author_profiles'] as $profile => $label) { $labels .= '
'; } print <<< AUTHORSURE_PAGE_PANEL

These settings control how your author pages link back to Google. You may need to tweak the settings here depending on how your WordPress theme displays author pages.

Check the box above if you want the plugin to show the author name as a title to the Author page. If your WordPress theme does this already then clear the checkbox.

The word or words that precede the author name in the title of the Author Page. (e.g About)

Author Bio

Choose whether you want a short, extended or no bio at the top of the author pages

Enter your prefered text that precedes the list of contact methods. For example: "Find out more about me at:"

Contact Method Labels

{$labels}

Enter the text you want to appear as the text on the link to the profile page. For example, "Google+", "GooglePlus", etc.

The heading that precede the list of posts (or post excerpts) by the author. (e.g. Here are my most recent posts). Leave blank if you do not want a heading

AUTHORSURE_PAGE_PANEL; } static function publisher_panel($post, $metabox) { $publisher = authorsure::get_publisher(); $homepage = site_url(); print <<< AUTHORSURE_PUBLISHER_PANEL

https://plus.google.com/

Enter your Google Plus page ID here if your have set up a "Google+ Page" for your organization or product, and AuthorSure will put a rel="publisher" link to the specified Google+ page on your home page, {$homepage} .

AUTHORSURE_PUBLISHER_PANEL; } function help_panel() { $home = AUTHORSURE_HOME; $images = AUTHORSURE_IMAGES_URL; $domain = parse_url(site_url(),PHP_URL_HOST); print <<< HELP_PANEL

AuthorSure Tutorials



HELP_PANEL; } function google_panel() { $home = AUTHORSURE_HOME; $images = AUTHORSURE_IMAGES_URL; print <<< GOOGLE_PANEL GOOGLE_PANEL; } function options_panel() { global $screen_layout_columns; $this_url = $_SERVER['REQUEST_URI']; ?>

AuthorSure Options