//Only purpose of this function is to echo out the PHP version error
functionbcn_phpold()
{
printf('<div class="notice notice-error"><p>'.__('Your PHP version is too old, please upgrade to a newer version. Your version is %1$s, Breadcrumb NavXT requires %2$s','breadcrumb-navxt').'</p></div>',phpversion(),'5.3.0');
}
//If we are in the admin, let's print a warning then return
if($opts['Hsearch_template']==='Search results for '<a title="Go to the first page of search results for %title%." href="%link%" class="%type%">%htitle%</a>''||$opts['Hsearch_template']==='Search results for '<a title="Go to the first page of search results for %title%." href="%link%" class="%type%">%htitle%</a>'')
if($opts['Hsearch_template_no_anchor']==='Search results for '%htitle%''||$opts['Hsearch_template_no_anchor']==='Search results for '%htitle%'')
sprintf(esc_html__("%sTutorials and How Tos%s: There are several guides, tutorials, and how tos available on the author's website.",'breadcrumb-navxt'),'<a title="'.esc_attr__('Go to the Breadcrumb NavXT tag archive.','breadcrumb-navxt').'" href="https://mtekk.us/archives/tag/breadcrumb-navxt">','</a>').'</li><li>'.
sprintf(esc_html__('%sOnline Documentation%s: Check out the documentation for more indepth technical information.','breadcrumb-navxt'),'<a title="'.esc_attr__('Go to the Breadcrumb NavXT online documentation','breadcrumb-navxt').'" href="https://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/">','</a>').'</li><li>'.
sprintf(esc_html__('%sReport a Bug%s: If you think you have found a bug, please include your WordPress version and details on how to reproduce the bug.','breadcrumb-navxt'),'<a title="'.esc_attr__('Go to the Breadcrumb NavXT support post for your version.','breadcrumb-navxt').'" href="https://wordpress.org/support/plugin/breadcrumb-navxt/">','</a>').'</li></ul>'.
sprintf(esc_html__('%sDonate%s: Love Breadcrumb NavXT and want to help development? Consider buying the author a beer.','breadcrumb-navxt'),'<a title="'.esc_attr__('Go to PayPal to give a donation to Breadcrumb NavXT.','breadcrumb-navxt').'" href="https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=FD5XEU783BR8U&lc=US&item_name=Breadcrumb%20NavXT%20Donation¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted">','</a>').'</li><li>'.
sprintf(esc_html__('%sTranslate%s: Is your language not available? Visit the Breadcrumb NavXT translation project on WordPress.org to start translating.','breadcrumb-navxt'),'<a title="'.esc_attr__('Go to the Breadcrumb NavXT translation project.','breadcrumb-navxt').'" href="https://translate.wordpress.org/projects/wp-plugins/breadcrumb-navxt">','</a>').'</li></ul>';
$screen->add_help_tab(
array(
'id'=>$this->identifier.'-base',
'title'=>__('General','breadcrumb-navxt'),
'content'=>$general_tab
));
$quickstart_tab='<p>'.esc_html__('For the settings on this page to take effect, you must either use the included Breadcrumb NavXT widget, or place either of the code sections below into your theme.','breadcrumb-navxt').
'</p><h5>'.esc_html__('Breadcrumb trail with separators','breadcrumb-navxt').'</h5><pre><code><div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">'."
<?phpif(function_exists('bcn_display'))
{
bcn_display();
}?>
</div></code></pre>" .
'<h5>'.esc_html__('Breadcrumb trail in list form','breadcrumb-navxt').'</h5><pre><code><ol class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/">'."
<?phpif(function_exists('bcn_display_list'))
{
bcn_display_list();
}?>
</ol></code></pre>";
$screen->add_help_tab(
array(
'id'=>$this->identifier.'-quick-start',
'title'=>__('Quick Start','breadcrumb-navxt'),
'content'=>$quickstart_tab
));
$styling_tab='<p>'.esc_html__('Using the code from the Quick Start section above, the following CSS can be used as base for styling your breadcrumb trail.','breadcrumb-navxt').'</p>'.
$this->messages[]=newmtekk_adminKit_message(esc_html__('Warning: Your network settings will override any settings set in this page.','breadcrumb-navxt'),'warning',true,$this->unique_prefix.'_msg_is_nsiteoveride');
$this->messages[]=newmtekk_adminKit_message(esc_html__('Warning: Your network settings may override any settings set in this page.','breadcrumb-navxt'),'warning',true,$this->unique_prefix.'_msg_is_isitemayoveride');
$this->messages[]=newmtekk_adminKit_message(esc_html__('Warning: Your network settings may override any settings set in this page.','breadcrumb-navxt'),'warning',true,$this->unique_prefix.'_msg_is_nsitemayoveride');
}
//Fall through if no settings mode was set
else
{
$this->messages[]=newmtekk_adminKit_message(esc_html__('Warning: No BCN_SETTINGS_* define statement found, defaulting to BCN_SETTINGS_USE_LOCAL.','breadcrumb-navxt'),'warning',true,$this->unique_prefix.'_msg_is_nosetting');
$this->messages[]=newmtekk_adminKit_message(sprintf(esc_html__('Warning: Your are using a deprecated setting "Title Length" (see Miscellaneous > Deprecated), please %1$suse CSS instead%2$s.','breadcrumb-navxt'),'<a title="'.__('Go to the guide on trimming breadcrumb title lengths with CSS','breadcrumb-navxt').'" href="https://mtekk.us/archives/guides/trimming-breadcrumb-title-lengths-with-css/">','</a>'),'warning');
<legendclass="screen-reader-text"data-title="<?php _e( 'A collection of settings most likely to be modified are located under this tab.', 'breadcrumb-navxt' );?>"><?php_e('General','breadcrumb-navxt');?></legend>
<h2><?php_e('General','breadcrumb-navxt');?></h2>
<tableclass="form-table">
<?php
$this->textbox(__('Breadcrumb Separator','breadcrumb-navxt'),'hseparator','2',false,__('Placed in between each breadcrumb.','breadcrumb-navxt'));
$this->input_check(__('Link Current Item','breadcrumb-navxt'),'bcurrent_item_linked',__('Yes','breadcrumb-navxt'));
$this->input_check(_x('Paged Breadcrumb','Paged as in when on an archive or post that is split into multiple pages','breadcrumb-navxt'),'bpaged_display',__('Place the page number breadcrumb in the trail.','breadcrumb-navxt'),false,__('Indicates that the user is on a page other than the first of a paginated archive or post.','breadcrumb-navxt'),'adminkit-enset-ctrl adminkit-enset');
$this->textbox(_x('Paged Template','Paged as in when on an archive or post that is split into multiple pages','breadcrumb-navxt'),'Hpaged_template','4',false,__('The template for paged breadcrumbs.','breadcrumb-navxt'),'adminkit-enset');
$this->input_check(__('Home Breadcrumb','breadcrumb-navxt'),'bhome_display',__('Place the home breadcrumb in the trail.','breadcrumb-navxt'),false,'','adminkit-enset-ctrl adminkit-enset');
$this->textbox(__('Home Template','breadcrumb-navxt'),'Hhome_template','6',false,__('The template for the home breadcrumb.','breadcrumb-navxt'),'adminkit-enset');
$this->textbox(__('Home Template (Unlinked)','breadcrumb-navxt'),'Hhome_template_no_anchor','4',false,__('The template for the home breadcrumb, used when the breadcrumb is not linked.','breadcrumb-navxt'),'adminkit-enset');
$this->input_check(__('Blog Breadcrumb','breadcrumb-navxt'),'bblog_display',__('Place the blog breadcrumb in the trail.','breadcrumb-navxt'),$this->maybe_disable_blog_options(),'','adminkit-enset-ctrl adminkit-enset');
$this->input_check(__('Main Site Breadcrumb','breadcrumb-navxt'),'bmainsite_display',__('Place the main site home breadcrumb in the trail in an multisite setup.','breadcrumb-navxt'),$this->maybe_disable_mainsite_options(),'','adminkit-enset-ctrl adminkit-enset');
$this->textbox(__('Main Site Home Template','breadcrumb-navxt'),'Hmainsite_template','6',$this->maybe_disable_mainsite_options(),__('The template for the main site home breadcrumb, used only in multisite environments.','breadcrumb-navxt'),'adminkit-enset');
$this->textbox(__('Main Site Home Template (Unlinked)','breadcrumb-navxt'),'Hmainsite_template_no_anchor','4',$this->maybe_disable_mainsite_options(),__('The template for the main site home breadcrumb, used only in multisite environments and when the breadcrumb is not linked.','breadcrumb-navxt'),'adminkit-enset');
<legendclass="screen-reader-text"data-title="<?php _e( 'The settings for all post types (Posts, Pages, and Custom Post Types) are located under this tab.', 'breadcrumb-navxt' );?>"><?php_e('Post Types','breadcrumb-navxt');?></legend>
<h2><?php_e('Posts','breadcrumb-navxt');?></h2>
<tableclass="form-table adminkit-enset-top">
<?php
$this->textbox(__('Post Template','breadcrumb-navxt'),'Hpost_post_template','6',false,__('The template for post breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Post Template (Unlinked)','breadcrumb-navxt'),'Hpost_post_template_no_anchor','4',false,__('The template for post breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
$this->input_check(__('Post Hierarchy Display','breadcrumb-navxt'),'bpost_post_hierarchy_display',__('Show the hierarchy (specified below) leading to a post in the breadcrumb trail.','breadcrumb-navxt'),false,'','adminkit-enset-ctrl adminkit-enset');
$this->input_check(__('Post Hierarchy Use Parent First','breadcrumb-navxt'),'bpost_post_hierarchy_parent_first',__('Use the parent of the post as the primary hierarchy, falling back to the hierarchy selected below when the parent hierarchy is exhausted.','breadcrumb-navxt'),false,'','adminkit-enset');
$this->input_check(__('Post Hierarchy Referer Influence','breadcrumb-navxt'),'bpost_post_taxonomy_referer',__('Allow the referring page to influence the taxonomy selected for the hierarchy.','breadcrumb-navxt'),false,'','adminkit-enset');
<pclass="description"><?phpesc_html_e('The hierarchy which the breadcrumb trail will show. Note that the "Post Parent" option may require an additional plugin to behave as expected since this is a non-hierarchical post type.','breadcrumb-navxt');?></p>
</td>
</tr>
</table>
<h2><?php_e('Pages','breadcrumb-navxt');?></h2>
<tableclass="form-table">
<?php
$this->textbox(__('Page Template','breadcrumb-navxt'),'Hpost_page_template','6',false,__('The template for page breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Page Template (Unlinked)','breadcrumb-navxt'),'Hpost_page_template_no_anchor','4',false,__('The template for page breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
$this->textbox(sprintf(__('%s Template','breadcrumb-navxt'),$post_type->labels->singular_name),'Hpost_'.$post_type->name.'_template','6',false,sprintf(__('The template for %s breadcrumbs.','breadcrumb-navxt'),$singular_name_lc));
$this->textbox(sprintf(__('%s Template (Unlinked)','breadcrumb-navxt'),$post_type->labels->singular_name),'Hpost_'.$post_type->name.'_template_no_anchor','4',false,sprintf(__('The template for %s breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'),$singular_name_lc));
$this->input_check(sprintf(__('%s Archive Display','breadcrumb-navxt'),$post_type->labels->singular_name),'bpost_'.$post_type->name.'_archive_display',sprintf(__('Show the breadcrumb for the %s post type archives in the breadcrumb trail.','breadcrumb-navxt'),$singular_name_lc),!$post_type->has_archive);
$this->input_check(sprintf(__('%s Hierarchy Display','breadcrumb-navxt'),$post_type->labels->singular_name),'bpost_'.$post_type->name.'_hierarchy_display',sprintf(__('Show the hierarchy (specified below) leading to a %s in the breadcrumb trail.','breadcrumb-navxt'),$singular_name_lc),false,'','adminkit-enset-ctrl adminkit-enset');
$this->input_check(sprintf(__('%s Hierarchy Use Parent First','breadcrumb-navxt'),$post_type->labels->singular_name),'bpost_'.$post_type->name.'_hierarchy_parent_first',sprintf(__('Use the parent of the %s as the primary hierarchy, falling back to the hierarchy selected below when the parent hierarchy is exhausted.','breadcrumb-navxt'),$singular_name_lc),false,'','adminkit-enset');
$this->input_check(sprintf(__('%s Hierarchy Referer Influence','breadcrumb-navxt'),$post_type->labels->singular_name),'bpost_'.$post_type->name.'_taxonomy_referer',__('Allow the referring page to influence the taxonomy selected for the hierarchy.','breadcrumb-navxt'),false,'','adminkit-enset');
esc_html_e('The hierarchy which the breadcrumb trail will show.','breadcrumb-navxt');
}
else
{
esc_html_e('The hierarchy which the breadcrumb trail will show. Note that the "Post Parent" option may require an additional plugin to behave as expected since this is a non-hierarchical post type.','breadcrumb-navxt');
<legendclass="screen-reader-text"data-title="<?php _e( 'The settings for all taxonomies (including Categories, Tags, and custom taxonomies) are located under this tab.', 'breadcrumb-navxt' );?>"><?php_e('Taxonomies','breadcrumb-navxt');?></legend>
$this->textbox(__('Category Template','breadcrumb-navxt'),'Htax_category_template','6',false,__('The template for category breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Category Template (Unlinked)','breadcrumb-navxt'),'Htax_category_template_no_anchor','4',false,__('The template for category breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
?>
</table>
<h2><?php_e('Tags','breadcrumb-navxt');?></h2>
<tableclass="form-table">
<?php
$this->textbox(__('Tag Template','breadcrumb-navxt'),'Htax_post_tag_template','6',false,__('The template for tag breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Tag Template (Unlinked)','breadcrumb-navxt'),'Htax_post_tag_template_no_anchor','4',false,__('The template for tag breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
$this->textbox(__('Post Format Template','breadcrumb-navxt'),'Htax_post_format_template','6',false,__('The template for post format breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Post Format Template (Unlinked)','breadcrumb-navxt'),'Htax_post_format_template_no_anchor','4',false,__('The template for post_format breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
$this->textbox(sprintf(__('%s Template','breadcrumb-navxt'),$taxonomy->labels->singular_name),'Htax_'.$taxonomy->name.'_template','6',false,sprintf(__('The template for %s breadcrumbs.','breadcrumb-navxt'),$label_lc));
$this->textbox(sprintf(__('%s Template (Unlinked)','breadcrumb-navxt'),$taxonomy->labels->singular_name),'Htax_'.$taxonomy->name.'_template_no_anchor','4',false,sprintf(__('The template for %s breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'),$label_lc));
<legendclass="screen-reader-text"data-title="<?php _e( 'The settings for author and date archives, searches, and 404 pages are located under this tab.', 'breadcrumb-navxt' );?>"><?php_e('Miscellaneous','breadcrumb-navxt');?></legend>
$this->textbox(__('Author Template','breadcrumb-navxt'),'Hauthor_template','6',false,__('The template for author breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Author Template (Unlinked)','breadcrumb-navxt'),'Hauthor_template_no_anchor','4',false,__('The template for author breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
$this->input_select(__('Author Display Format','breadcrumb-navxt'),'Sauthor_name',array("display_name","nickname","first_name","last_name"),false,__('display_name uses the name specified in "Display name publicly as" under the user profile the others correspond to options in the user profile.','breadcrumb-navxt'));
$this->textbox(__('Date Template','breadcrumb-navxt'),'Hdate_template','6',false,__('The template for date breadcrumbs.','breadcrumb-navxt'));
$this->textbox(__('Date Template (Unlinked)','breadcrumb-navxt'),'Hdate_template_no_anchor','4',false,__('The template for date breadcrumbs, used only when the breadcrumb is not linked.','breadcrumb-navxt'));
$this->textbox(__('Search Template','breadcrumb-navxt'),'Hsearch_template','6',false,__('The anchor template for search breadcrumbs, used only when the search results span several pages.','breadcrumb-navxt'));
$this->textbox(__('Search Template (Unlinked)','breadcrumb-navxt'),'Hsearch_template_no_anchor','4',false,__('The anchor template for search breadcrumbs, used only when the search results span several pages and the breadcrumb is not linked.','breadcrumb-navxt'));
<?phpprintf(esc_html__('Limit the length of the breadcrumb title. (Deprecated, %suse CSS instead%s)','breadcrumb-navxt'),'<a title="'.esc_attr__('Go to the guide on trimming breadcrumb title lengths with CSS','breadcrumb-navxt').'" href="https://mtekk.us/archives/guides/trimming-breadcrumb-title-lengths-with-css/">','</a>');?>
</label><br/>
<ul>
<li>
<labelfor="amax_title_length">
<?phpesc_html_e('Max Title Length: ','breadcrumb-navxt');?>