本文整理汇总了PHP中bcn_display函数的典型用法代码示例。如果您正苦于以下问题:PHP bcn_display函数的具体用法?PHP bcn_display怎么用?PHP bcn_display使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bcn_display函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: magzimum_add_breadcrumb
/**
* Add breadcrumb
*
* @since Magzimum 1.0
*/
function magzimum_add_breadcrumb()
{
// Bail if Breadcrumb disabled
$breadcrumb_type = magzimum_get_option('breadcrumb_type');
if ('disabled' == $breadcrumb_type) {
return;
}
// Bail if plugin not active
// Bail if Home Page
if (is_front_page() || is_home()) {
return;
}
echo '<div id="breadcrumb"><div class="container">';
switch ($breadcrumb_type) {
case 'simple':
$breadcrumb_separator = magzimum_get_option('breadcrumb_separator');
$args = array('separator' => $breadcrumb_separator);
magzimum_simple_breadcrumb($args);
break;
case 'advanced':
if (function_exists('bcn_display')) {
bcn_display();
}
break;
default:
# code...
break;
}
//
echo '</div><!-- .container --></div><!-- #breadcrumb -->';
return;
}
示例2: widget
function widget($args, $instance)
{
extract($args);
//If we are on the front page and don't display on the front, return early
if ($instance['front'] && is_front_page()) {
return;
}
//Manditory before widget junk
echo $before_widget;
if (!empty($instance['title'])) {
echo $before_title . $instance['title'] . $after_title;
}
//We'll want to switch between the two breadcrumb output types
if ($instance['list'] == true) {
//Display the list output breadcrumb
echo '<ul class="breadcrumb_trail">';
bcn_display_list(false, $instance['linked'], $instance['reverse']);
echo '</ul>';
} else {
//Display the regular output breadcrumb
bcn_display(false, $instance['linked'], $instance['reverse']);
}
//Manditory after widget junk
echo $after_widget;
}
示例3: section_template
function section_template() {
?>
<div class="breadcrumb subtext">
<?php
if(function_exists('bcn_display')){
if(pagelines_option('breadcrumb_no_link')){
//Make new breadcrumb object
$breadcrumb_trail = new bcn_breadcrumb_trail;
//Setup options here if needed
//Fill the breadcrumb trail
$breadcrumb_trail->fill();
//Display the trail, but don't link the breadcrumbs
bcn_display(false,false);
}else{
bcn_display();
}
}else{
echo '<p style=text-align:center;>';
_e('Please activate the <strong>Breadcrumb-NavXT</strong> plug-in to use the section.', 'pagelines');
echo '</p>';
}
?>
</div>
<?php
}
示例4: shootingstar_get_breadcrumb
function shootingstar_get_breadcrumb()
{
if (function_exists('bcn_display') && !is_front_page()) {
echo '<p class="breadcrumb-navigation">';
bcn_display();
echo '</p>';
}
}
示例5: brickyard_get_breadcrumb
function brickyard_get_breadcrumb()
{
if (get_option('brickyard_display_breadcrumb') != 'Hide') {
if (function_exists('bcn_display') && !is_front_page()) {
_e('<div class="entry-content entry-content-bcn"><div class="entry-content-inner"><p class="breadcrumb-navigation">');
bcn_display();
_e('</p></div></div>');
}
}
}
示例6: tabbysplace_breadcrumbs_function
function tabbysplace_breadcrumbs_function()
{
if (function_exists('bcn_display') && !is_front_page()) {
echo '<div class="tabbysplace-breadcrumb">';
echo '<div class="main">';
bcn_display();
echo '</div>';
echo '</div>';
}
}
示例7: minezine_get_breadcrumb
function minezine_get_breadcrumb()
{
global $minezine_options_db;
if ($minezine_options_db['minezine_display_breadcrumb'] != 'Hide') {
if (function_exists('bcn_display') && !is_front_page()) {
_e('<p class="breadcrumb-navigation">', 'minezine');
bcn_display();
_e('</p>', 'minezine');
}
}
}
示例8: happenstance_get_breadcrumb
function happenstance_get_breadcrumb()
{
global $happenstance_defaults;
if (get_theme_mod('happenstance_display_breadcrumb', $happenstance_defaults['happenstance_display_breadcrumb']) != 'Hide') {
if (function_exists('bcn_display') && !is_front_page()) {
echo '<p class="breadcrumb-navigation">';
bcn_display();
echo '</p>';
}
}
}
示例9: my_before_content
function my_before_content()
{
?>
<div style="font-size:12px;padding:10px 0px 0px 0px">
<?php
if (function_exists('bcn_display')) {
bcn_display();
}
?>
</div>
<?php
}
示例10: shk_corporate_breadcrumb_fnc
function shk_corporate_breadcrumb_fnc()
{
global $post;
?>
<div class="style_breadcrumbs">
<div class="container">
<div class="row">
<div class="col-md-4">
<?php
include_once ABSPATH . 'wp-admin/includes/plugin.php';
if (is_plugin_active('woocommerce/woocommerce.php')) {
if (is_shop()) {
echo '<h1>' . __('Shop', 'shk-corporate') . '</h1>';
} else {
if (!is_404()) {
?>
<h1><?php
the_title();
?>
</h1>
<?php
} else {
echo '<h1>' . __('Page Not Found', 'shk-corporate') . '</h1>';
}
}
} else {
if (!is_404()) {
?>
<h1><?php
the_title();
?>
</h1>
<?php
} else {
echo '<h1>' . __('Page Not Found', 'shk-corporate') . '</h1>';
}
}
?>
</div>
<div class="col-md-8 breadcrumb_items">
<?php
if (function_exists('bcn_display')) {
bcn_display();
}
?>
</div>
</div>
</div>
</div>
<?php
}
示例11: galanight_get_breadcrumb
function galanight_get_breadcrumb()
{
global $galanight_options_db;
if ($galanight_options_db['galanight_display_breadcrumb'] != 'Hide') {
?>
<?php
if (function_exists('bcn_display') && !is_front_page()) {
echo '<p class="breadcrumb-navigation">';
bcn_display();
echo '</p>';
}
}
}
示例12: foreverwood_get_breadcrumb
function foreverwood_get_breadcrumb()
{
global $foreverwood_defaults;
if (get_theme_mod('foreverwood_display_breadcrumb', $foreverwood_defaults['foreverwood_display_breadcrumb']) != 'Hide') {
?>
<?php
if (function_exists('bcn_display') && !is_front_page()) {
_e('<p class="breadcrumb-navigation">', 'foreverwood');
bcn_display();
_e('</p>', 'foreverwood');
}
}
}
示例13: lavish_breadcrumb_fnc
function lavish_breadcrumb_fnc()
{
global $post;
?>
<div class="style_breadcrumbs">
<div class="container">
<div class="row">
<div class="col-md-4">
<?php
if (class_exists('WooCommerce')) {
if (is_shop()) {
echo '<h1>' . __('Shop', 'lavish') . '</h1>';
} else {
if (!is_404()) {
?>
<h1><?php
the_title();
?>
</h1>
<?php
} else {
echo '<h1>' . __('Page Not Found', 'lavish') . '</h1>';
}
}
} else {
if (!is_404()) {
?>
<h1><?php
the_title();
?>
</h1>
<?php
} else {
echo '<h1>' . __('Page Not Found', 'lavish') . '</h1>';
}
}
?>
</div>
<div class="col-md-8 breadcrumb_items">
<?php
if (function_exists('bcn_display')) {
bcn_display();
}
?>
</div>
</div>
</div>
</div>
<?php
}
示例14: display
function display()
{
$output = '';
if (function_exists('bcn_display')) {
// Breadcrumb NavXT
$output = bcn_display(true);
} elseif (function_exists('yoast_breadcrumb')) {
// Yoast Breadcrumbs
$output = yoast_breadcrumb('', '', false);
}
if ($output) {
echo '<div id="breadcrumb-wrap" class="fixfloat">' . $output . '</div>';
}
}
示例15: responsive_mobile_get_breadcrumb_lists
/**
* Breadcrumb Lists
* Load the plugin from the plugin that is installed.
*
*/
function responsive_mobile_get_breadcrumb_lists()
{
$responsive_mobile_options = get_option('responsive_mobile_theme_options');
$yoast_options = get_option('wpseo_internallinks');
if (1 == $responsive_mobile_options['breadcrumb']) {
return;
} elseif (function_exists('bcn_display')) {
bcn_display();
} elseif (function_exists('breadcrumb_trail')) {
breadcrumb_trail();
} elseif (function_exists('yoast_breadcrumb') && true === $yoast_options['breadcrumbs-enable']) {
yoast_breadcrumb('<p id="breadcrumbs">', '</p>');
} elseif (!is_search()) {
responsive_mobile_breadcrumb_lists();
}
}