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() { $profiles = authorsure::get_pro_options(false); 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 } //end for $updateoptions = authorsure::save_pro_options($profiles); $options = authorsure::get_options(false); foreach ($options as $option => $old_value) { $post_key = AUTHORSURE.'_'.$option; $options[$option] = array_key_exists($post_key,$_POST) ? trim(stripslashes($_POST[$post_key])) : false; } //end for $updateoptions = authorsure::save_options($options); return sprintf('
%1$s
', __( $updateoptions ? "AuthorSure Settings saved." : "No AuthorSure settings were changed since last update.", AUTHORSURE_ADMIN)); } 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"':''; $hide_box_on_pages = $options['hide_box_on_pages'] ? ' checked="checked"' : ''; $hide_box_on_front_page = $options['hide_box_on_front_page'] ? ' checked="checked"' : ''; $box_nofollow_links = $options['box_nofollow_links'] ? ' 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.

Check the box above to hide the author box on all your pages by default. If you want to show specific pages then can set the Authorsure author box settings by editing the individual page.

Check the box above to hide the author box on your front page. This option may be required to hide an unwanted author box for some WordPress themes that build the front page using snippets from other pages.

Check the box above to ensure that any links that appear in the bio in the author box are made rel=nofollow.

{$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(); $pro_options = authorsure::get_pro_options(); $nofollow = $options['author_bio_nofollow_links'] ? ' checked="checked"' : ''; $show_title = $options['author_show_title'] ? ' checked="checked"' : ''; $show_avatar = $options['author_show_avatar'] ? ' checked="checked"' : ''; $hide_labels = $options['author_profiles_no_labels'] ? ' checked="checked"' : ''; $summary = $options['author_bio']=='summary'?' checked="checked"':''; $extended = $options['author_bio']=='extended'?' checked="checked"':''; $none = $options['author_bio']=='none'?' checked="checked"':''; $size_16 = $options['author_profiles_image_size']=='16'?' checked="checked"':''; $size_24 = $options['author_profiles_image_size']=='24'?' checked="checked"':''; $size_32 = $options['author_profiles_image_size']=='32'?' checked="checked"':''; $icon_16 = AUTHORSURE::get_icon('googleplus', '', 16 ); $icon_24 = AUTHORSURE::get_icon('googleplus', '', 24 ); $icon_32 = AUTHORSURE::get_icon('googleplus', '', 32 ); $labels=''; foreach ($pro_options 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 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)

Check the box above if you want to show the avatar beside the bio on the Author page.

Author Bio

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

Check the box above in you want any external links that your authors enter in their bios to be rel=nofollow on their author pages.

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

Icon size

Choose the size of the social media icons.

Check the box above if you want to show the social media icons on a single line.

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 advanced_panel($post, $metabox) { $options = authorsure::get_options(); $hook = AUTHORSURE::get_author_page_hook(); $hook_index = AUTHORSURE::get_author_page_hook_index(); $hook_instances = ''; for ($i=1; $i<11; $i++ ) { $checked = $hook_index==$i ? ' selected="selected"': ''; $hook_instances .= ''.$i.''; } $filter_bio = $options['author_page_filter_bio'] ? ' checked="checked"' : ''; print <<< AUTHORSURE_ADVANCED_PANEL

Only change the settings below if Authorsure is adding the author profile in the incorrect location, such as in the header, footer or in a sidebar, or the profile is missing completely form the author page. This is because your WordPress theme is doing something more on the author page than just dispaying the list of posts by that author. You can adjust the settings below on a trial and error basis to see if they improve the situation.

If your theme has its own 'hooks' then you can configure AuthorSure to use one of those hooks.

The name of the hook where AuthorSure runs in order to add the profile information and the link back to Google+. (e.g loop_start is the default hook)

Select on which instance of the hook to you want AuthorSure to run. The default is the first instance. In other words AuthorSure will run just before the first loop which fetches all the posts by that author. See the links in the sidebar for more information on changing these settings.

This is the option of last resort where your WordPress theme has an author template and is already inserting author information at the top of the page. Your goal is to inject the profile links to Google+ etc, in the correct place so you will typically have unchecked "Show Title" and checked "Author Bio=none" and "Show Icons only" in the Author Page setting above.

Only check the box above if you have tried the various hook settings and you cannot make the profile links appear in the correct place. If your theme is using the WordPress function get_the_author_meta to fetch the bio then clicking this option will display your Google Plus and other profile links immediately below the bio that is inserted by the theme.

If this approach fails then a couple of lines of custom PHP code or a tweak to the theme author template will be required: though we have not come across a WordPress theme yet where we have had to resort to custom PHP code.

AUTHORSURE_ADVANCED_PANEL; } static function publisher_panel($post, $metabox) { $publisher = authorsure::get_publisher(); $homepage = site_url(); print <<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; } static function archive_panel ($post, $metabox) { $options = authorsure::get_options(); $publisher = $options['archive_link']=="publisher" ? 'checked="checked"' : ''; $top = $options['archive_link']=='top' ? 'checked="checked"' : ''; $bottom = $options['archive_link']=='bottom' ? 'checked="checked"' : ''; $archive_intro_enabled = $options['archive_intro_enabled'] ? ' checked="checked"' : ''; $authors = wp_dropdown_users(array('who' => 'authors', 'selected' => $options['archive_author_id'], 'name' => 'authorsure_archive_author_id', 'sort_column'=> 'display_name', 'echo' => 0)); print <<< ARCHIVE_PANEL

Category and Tag Archives Settings:

These settings determine how you manage authorship of your category, tag and any other taxonomy archive pages.

Author Link Position

The word or words that precede the author name on the archive pages. (e.g. "Author:")

{$authors}

Choose the default author to be used on the category and tag archive pages. Note that you can override this setting on individual archive pages.

For example, John may be the primary author for the site, but Jane is the chosen author for the psychology category and Rachael for the the Chemistry category.

Check the box above if you want the plugin to give you the opportunity to include a paragraph at the top of the archive page that precedes the list of posts in this archive. Your WordPress theme may already give you this facility but if it does not then please use this option as it can help you improve your archive pages from both human readership and SEO standpoints. After you home page, your category and tag pages can be the next most visited pages on your site so its pays dividends to put some work into them.

ARCHIVE_PANEL; } static 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; } static function google_panel() { $images = AUTHORSURE_IMAGES_URL; print <<< GOOGLE_PANEL
  • Google+ Profiles provide people with an identity and presence on Google+. By linking each author to their profile on Google and then placing a link on the Google Profile page back to the author page, Google is able to verify the authorship of posts and hence show a photo of the author in the search results.
  • Google+ Pages provide businesses, products, brands, entertainment and organizations with an identity and presence on Google+. If you’ve created a Google+ page, Google strongly recommend linking from that page to your website and vice versa.
GOOGLE_PANEL; } static function options_panel() { global $screen_layout_columns; $this_url = $_SERVER['REQUEST_URI']; ?>

AuthorSure Options