add_help_tab( array(
'id' => 'authorsure_instructions_tab',
'title' => __('AuthorSure Instructions'),
'content' => '
AuthorSure Archive Instructions
Notes on getting your face to appear on archive pages
- Make sure you WordPress theme is not "noindexing" your category/tag pages
- Make sure you include a paragraph of keyword rich and compelling copy as the intro to the archive section: often your theme will allow
you to do this but if not your site administrator can enable the "archive intro" which you can complete below.
- In the intro section you can include images and videos as well as plain text
- Authorsure will automatically add a rel-author link after any introductory section
') );
$current_screen->add_help_tab( array(
'id' => 'authorsure_help_tab',
'title' => __('AuthorSure Archive'),
'content' => __(
'AuthorSure Archive Settings
In the AuthorSure Settings section below you can specify which author you want to have feature as the
primary author for this category/tag. If enabled in AuthorSure global settings then there will also be a "Intro" that you can specify. .
')) );
}
}
static function archive_panel($term, $tt_id) {
$default_author_name = "";
if ('publisher'==authorsure::get_option('archive_link'))
$default_author_name = "publisher";
elseif ($default_author_id = authorsure::get_option('archive_author_id')) {
$default_author = new WP_User($default_author_id);
$default_author_name = $default_author->display_name;
}
$author = authorsure::get_archive_option($term->term_id,'author');
$authors = wp_dropdown_users(array('who' => 'authors',
'selected' => $author, 'name' => 'authorsure_archive_options[author]', 'show_option_none' => __('(use default)'),
'sort_column'=> 'display_name', 'echo' => 0));
echo('AuthorSure Settings
');
if ( authorsure::get_option('archive_intro_enabled')) {
if ($intro = authorsure::get_archive_option($term->term_id,'intro'))
$intro = stripslashes($intro);
else
$intro = '';
$label = __('Archive Page Intro');
$help = __('Supply an extended bio to go on your author page.');
print <<< AUTHORSURE_ARCHIVE_INTRO
AUTHORSURE_ARCHIVE_INTRO;
}
$label = __('Archive Page Author');
$help = __('Choose the author you want to appear on this archive page or leave the default setting: '.$default_author_name);
print <<< AUTHORSURE_ARCHIVE_REL
AUTHORSURE_ARCHIVE_REL;
}
static function save($term_id, $tt_id) {
if (isset( $_POST['authorsure_archive_options'] ))
return authorsure::save_archive_option ($term_id, (array) $_POST['authorsure_archive_options'] );
else
return false;
}
}
?>