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


PHP bcn_display_list函数代码示例

本文整理汇总了PHP中bcn_display_list函数的典型用法代码示例。如果您正苦于以下问题:PHP bcn_display_list函数的具体用法?PHP bcn_display_list怎么用?PHP bcn_display_list使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了bcn_display_list函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: 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

示例2: widget

 function widget($args, $instance)
 {
     //Make sure we grab defaults in the case of out of date instance settings being sent
     $instance = wp_parse_args((array) $instance, $this->defaults);
     $instance['title'] = apply_filters('widget_title', $instance['title'], $instance, $this->id_base);
     $instance['pretext'] = apply_filters('widget_text', $instance['pretext'], $instance);
     //A bit of a hack but we need the DB settings to know if we should exit early
     $opt = get_option('bcn_options');
     //If we are on the front page and don't display on the front, return early
     if ($instance['front'] && is_front_page() && !(is_paged() && $opt['bpaged_display'])) {
         return;
     }
     //Manditory before widget junk
     echo $args['before_widget'];
     if (!empty($instance['title'])) {
         echo $args['before_title'] . $instance['title'] . $args['after_title'];
     }
     //We'll want to switch between the two breadcrumb output types
     if ($instance['type'] == 'list') {
         //Display the list output breadcrumb
         echo $instance['pretext'] . '<ol class="breadcrumb_trail breadcrumbs">';
         bcn_display_list(false, $instance['linked'], $instance['reverse']);
         echo '</ol>';
     } else {
         if ($instance['type'] == 'microdata') {
             echo '<div class="breadcrumbs" vocab="http://schema.org/" typeof="BreadcrumbList">' . $instance['pretext'];
             //Display the regular output breadcrumb
             bcn_display(false, $instance['linked'], $instance['reverse']);
             echo '</div>';
         } else {
             if ($instance['type'] == 'plain') {
                 //Display the pretext
                 echo $instance['pretext'];
                 //Display the regular output breadcrumb
                 bcn_display(false, $instance['linked'], $instance['reverse']);
             } else {
                 //If we recieved a type that is not of the built in displays, it must be relegated to an extension plugin
                 do_action('bcn_widget_display_trail', $instance);
             }
         }
     }
     //Manditory after widget junk
     echo $args['after_widget'];
 }
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:44,代码来源:class.bcn_widget.php

示例3: 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['type'] == 'list') {
         //Display the list output breadcrumb
         echo '<ol class="breadcrumb_trail breadcrumbs">';
         bcn_display_list(false, $instance['linked'], $instance['reverse']);
         echo '</ol>';
     } else {
         if ($instance['type'] == 'rdfa') {
             //Display the list output breadcrumb
             echo '<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">';
             bcn_display_nested(false, $instance['linked'], 'span', 'rdfa');
             echo '</div>';
         } else {
             if ($instance['type'] == 'microformat') {
                 //Display the list output breadcrumb
                 echo '<div class="breadcrumbs" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">';
                 bcn_display_nested(false, $instance['linked'], 'span', 'microformat');
                 echo '</div>';
             } else {
                 //Display the regular output breadcrumb
                 bcn_display(false, $instance['linked'], $instance['reverse']);
             }
         }
     }
     //Manditory after widget junk
     echo $after_widget;
 }
开发者ID:gopinathshiva,项目名称:wordpress-vip-plugins,代码行数:39,代码来源:breadcrumb_navxt_widget.php

示例4: widget

 function widget($args, $instance)
 {
     extract($args);
     //A bit of a hack but we need the DB settings to know if we should exit early
     $opt = get_option('bcn_options');
     //If we are on the front page and don't display on the front, return early
     if ($instance['front'] && is_front_page() && !(is_paged() && $opt['bpaged_display'])) {
         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['type'] == 'list') {
         //Display the list output breadcrumb
         echo $instance['pretext'] . '<ol class="breadcrumb_trail breadcrumbs">';
         bcn_display_list(false, $instance['linked'], $instance['reverse']);
         echo '</ol>';
     } else {
         if ($instance['type'] == 'microdata') {
             echo '<div class="breadcrumbs" itemprop="breadcrumbs">' . $instance['pretext'];
             //Display the regular output breadcrumb
             bcn_display(false, $instance['linked'], $instance['reverse']);
             echo '</div>';
         } else {
             //Display the pretext
             echo $instance['pretext'];
             //Display the regular output breadcrumb
             bcn_display(false, $instance['linked'], $instance['reverse']);
         }
     }
     //Manditory after widget junk
     echo $after_widget;
 }
开发者ID:GarryVeles,项目名称:Artibaltika,代码行数:36,代码来源:breadcrumb_navxt_widget.php

示例5: get_header

 */
?>


<?php 
get_header();
?>

<header class="wrap-title">
    <div class="container">
        <h1 class="page-title">Blog</h1>

        <ol class="breadcrumb">
            <?php 
if (function_exists('bcn_display_list')) {
    bcn_display_list();
}
?>
        </ol>
    </div>
</header>

<?php 
query_posts(array('paged' => get_query_var('paged'), 'cat' => '-' . get_cat_ID(of_get_option('om_portfolio_category', ''))));
?>

<div class="container">
    <div class="row">
        <div class="col-md-8 col-md-push-4">
            <?php 
if (have_posts()) {
开发者ID:obelis,项目名称:entad,代码行数:31,代码来源:page-blog-left.php

示例6: travelify_breadcrumb

    /**
     * Display breadcrumb on header.
     *
     * If the page is home or front page, slider is displayed.
     * In other pages, breadcrumb will display if breadcrumb NavXT plugin exists.
     */
    function travelify_breadcrumb()
    {
        if (function_exists('bcn_display_list')) {
            echo '<div class="breadcrumb">
		<ul>';
            bcn_display_list();
            echo '</ul>
		</div> <!-- .breadcrumb -->';
        }
    }
开发者ID:unixmiah007,项目名称:odyssinfo-dev,代码行数:16,代码来源:header-extensions.php

示例7: display_breadcrumb

 function display_breadcrumb($output, $base_link)
 {
     if (function_exists('bcn_display_list')) {
         $base_link = '<li class="home">' . $base_link . '</li>';
         $output = '<ul class="crumbs navxt">' . $base_link . bcn_display_list($return = true) . '</ul>';
     }
     return $output;
 }
开发者ID:TwoBeers,项目名称:fastfood,代码行数:8,代码来源:plug-n-play.php

示例8: raindrops_bcn_nav_menu

 /**
  *
  * @global type $post
  */
 function raindrops_bcn_nav_menu()
 {
     global $post, $template;
     $template_name = basename($template, '.php');
     if ('yes' == get_theme_mod('raindrops_breadcrumb_navxt_status') && 'yes' == raindrops_warehouse_clone('raindrops_plugin_presentation_bcn_nav_menu')) {
         $html = '<ol class="breadcrumbs" itemprop="breadcrumbs">%1$s</ol>';
         if ('bbpress' !== $template_name && !is_home() && !is_front_page() && (isset($post) && 0 !== $post->ID)) {
             // $post->ID for check the events calendar
             $breadcrumb = bcn_display_list(true);
             printf($html, $breadcrumb);
         }
     }
 }
开发者ID:TheRojam,项目名称:raindrops,代码行数:17,代码来源:plugins-presentation.php

示例9: ecvetstep_breadcrumb_display

    /**
     * Display breadcrumb on header
     */
    function ecvetstep_breadcrumb_display()
    {
        global $post, $wp_query;
        // Front page displays in Reading Settings
        $page_on_front = get_option('page_on_front');
        $page_for_posts = get_option('page_for_posts');
        // Get Page ID outside Loop
        $page_id = $wp_query->get_queried_object_id();
        if (is_front_page() || is_home() && $page_for_posts != $page_id) {
            return false;
        } else {
            if (function_exists('bcn_display_list')) {
                echo '<div class="breadcrumb container">
				<ul>';
                bcn_display_list();
                echo '	
				</ul>
				<div class="row-end"></div>
			</div> <!-- .breadcrumb -->';
            }
        }
    }
开发者ID:EcvetStep,项目名称:ecvet-step.eu,代码行数:25,代码来源:es-functions.php

示例10: sc_page_header

function sc_page_header($atts, $content = null)
{
    $result = '';

    $a = shortcode_atts( array(
        'radius' => "60"
    ), $atts );

    ?><header class="main-header no-margin-bottom">
        <div class="container">
            <h1 class="page-title"><?php the_title(); ?></h1>

            <ol class="breadcrumb pull-right">
                <?php if(function_exists('bcn_display_list')) {
                    bcn_display_list();
                } ?>
            </ol>
        </div>
    </header><?php

    return $result;
}
开发者ID:EssVeeEll,项目名称:users.opensciencegrid.org-main-php-and-css,代码行数:22,代码来源:functions.php

示例11: simplecatch_sliderbreadcrumb

    /**
     * Display slider or breadcrumb on header
     *
     * If the page is home or front page, slider is displayed.
     * In other pages, breadcrumb will display if exist bread
     */
    function simplecatch_sliderbreadcrumb()
    {
        global $post, $wp_query;
        // Front page displays in Reading Settings
        $page_on_front = get_option('page_on_front');
        $page_for_posts = get_option('page_for_posts');
        // Get Page ID outside Loop
        $page_id = $wp_query->get_queried_object_id();
        // If the page is home or front page
        if (is_front_page() || is_home() && $page_for_posts != $page_id) {
            // This function passes the value of slider effect to js file
            if (function_exists('simplecatch_pass_slider_value')) {
                simplecatch_pass_slider_value();
            }
            // display featured slider
            if (function_exists('simplecatch_sliders')) {
                simplecatch_sliders();
            }
        } else {
            // if breadcrumb is not empty, display breadcrumb
            if (function_exists('bcn_display_list')) {
                echo '<div class="breadcrumb">
					<ul>';
                bcn_display_list();
                echo '</ul>
					<div class="row-end"></div>
				</div> <!-- .breadcrumb -->';
            }
        }
    }
开发者ID:karthikakamalanathan,项目名称:wp-cookieLawInfo,代码行数:36,代码来源:simplecatch_functions.php

示例12: display

 /**
  * output breadcrumb navxt
  */
 public function display()
 {
     //get bcn settings
     $setting = $this->get_settings();
     $display = 'normal';
     $linked = isset($setting['hw_allow_trail_link']) && $setting['hw_allow_trail_link'] ? true : false;
     $reverse = isset($setting['hw_bcn_reverse']) && $setting['hw_bcn_reverse'] ? true : false;
     if (isset($setting['hw_active_skin']) && $setting['hw_active_skin'] && class_exists('HW_SKIN') && isset($setting['hw_skin']) && isset($setting['hw_skin']['hwskin_config'])) {
         #$skin = HW_SKIN::resume_skin($setting['hw_skin']['hwskin_config']);
         $skin = HW_SKIN::resume_hwskin_instance($setting['hw_skin']);
         if (!empty($skin)) {
             $file = $skin->instance->get_skin_file($setting['hw_skin']['hash_skin']);
             $content = $skin->instance->render_skin_template(0, false);
             if ($content !== false) {
                 echo $content;
             }
             //if(file_exists($file)) {
             //get theme setting from setting file or skin file
             $setting = $skin->instance->get_file_skin_setting();
             if (file_exists($setting)) {
                 include $setting;
             } else {
                 include $file;
             }
             if (isset($theme['display']) && $theme['display'] == 'list') {
                 $display = 'list';
             }
             //how to output breadcrumb
             $opt = array('hseparator' => '>>');
             breadcrumb_navxt::setup_options($opt);
             //valid setting
             if (empty($theme['styles'])) {
                 $theme['styles'] = array();
             }
             if (empty($theme['scripts'])) {
                 $theme['scripts'] = array();
             }
             if (!empty($theme['filters'])) {
                 //do filters & actions that defined in skin
                 $skin->instance->do_filters($theme['filters'], $theme);
             }
             /*if(count($theme['styles']) || count($theme['scripts'])) {   //enqueue stuff from theme
                   $skin->enqueue_files_from_skin($theme['styles'], $theme['scripts']);
               }*/
             //enqueue stuff from skin using new way
             HW_SKIN::enqueue_skin_assets(array_merge(array('skin_file' => $file, 'theme_settings' => $theme), (array) $skin));
             //}
         }
     }
     //how to ouput breadcrumb function
     if ($display == 'list') {
         $output = bcn_display_list(true, $linked, $reverse);
     } else {
         $output = bcn_display(true, $linked, $reverse);
     }
     echo '<div class="hw-breadcrumb">';
     echo apply_filters('hw_breadcrumb_output', $output, $this);
     echo '</div>';
 }
开发者ID:hoangsoft90,项目名称:hw-hoangweb-plugin,代码行数:62,代码来源:hw_breadcrumb.php


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