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

') ); $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

{$help}
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
{$authors}
{$help}
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; } } ?>