当前位置: 首页>>代码示例>>PHP>>正文


PHP bcn_display函数代码示例

本文整理汇总了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;
 }
开发者ID:robertmeans,项目名称:fosterfamilydental,代码行数:37,代码来源:breadcrumb.php

示例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;
 }
开发者ID:realfluid,项目名称:umbaugh,代码行数:25,代码来源:breadcrumb_navxt_widget.php

示例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
	}
开发者ID:vinvinh315,项目名称:maintainwebsolutions.com,代码行数:27,代码来源:section.breadcrumb.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>';
    }
}
开发者ID:RA2WP,项目名称:RA2WP,代码行数:8,代码来源:library.php

示例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>');
        }
    }
}
开发者ID:jrbranaa,项目名称:pitchperspectives,代码行数:10,代码来源:library.php

示例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>';
    }
}
开发者ID:slavic18,项目名称:cats,代码行数:10,代码来源:tabbysplace-hooks.php

示例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');
        }
    }
}
开发者ID:sekane81,项目名称:ratoninquietoweb,代码行数:11,代码来源:library.php

示例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>';
        }
    }
}
开发者ID:RA2WP,项目名称:RA2WP,代码行数:11,代码来源:library.php

示例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 
}
开发者ID:robertok,项目名称:test_repo,代码行数:12,代码来源:wiaw_before_content.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 
}
开发者ID:un1coin,项目名称:ovn-space,代码行数:52,代码来源:breadcrumb.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>';
        }
    }
}
开发者ID:mystified7545,项目名称:MyBlog,代码行数:13,代码来源:library.php

示例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');
        }
    }
}
开发者ID:obecolette,项目名称:wordpress,代码行数:13,代码来源:library.php

示例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 
}
开发者ID:neetudave,项目名称:heartfulness-uk,代码行数:51,代码来源:breadcrumb.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>';
     }
 }
开发者ID:TwoBeers,项目名称:wallow,代码行数:14,代码来源:breadcrumb.php

示例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();
    }
}
开发者ID:AhmeddSayed,项目名称:MM_Portal,代码行数:21,代码来源:functions-extentions.php


注:本文中的bcn_display函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。