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


PHP td_page_generator::get_single_breadcrumbs方法代码示例

本文整理汇总了PHP中td_page_generator::get_single_breadcrumbs方法的典型用法代码示例。如果您正苦于以下问题:PHP td_page_generator::get_single_breadcrumbs方法的具体用法?PHP td_page_generator::get_single_breadcrumbs怎么用?PHP td_page_generator::get_single_breadcrumbs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在td_page_generator的用法示例。


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

示例1: join

echo join(' ', get_post_class());
?>
" <?php 
echo $td_mod_single->get_item_scope();
?>
>

    <?php 
echo td_page_generator::wrap_start();
?>
    <div class="span12">

        <?php 
//show the breadcrumb
if (get_post_type($post) == 'post') {
    echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
    echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>

        <header>
            <?php 
echo $td_mod_single->get_title();
?>

            <div class="meta-info">
                <?php 
echo $td_mod_single->get_category();
?>
                <?php 
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:single_template_5.php

示例2: inner

    function inner($posts, $td_column_number = '')
    {
        ob_start();
        if (!empty($posts[0])) {
            $post = $posts[0];
            //we get only one post
            // $td_post_featured_image = td_util::get_featured_image_src($post->ID, 'full');
            $td_mod_single = new td_module_single($post);
            //make the js template
            ?>

            <!-- add class to body, no jQuery and inline -->
            <?php 
            ob_start();
            ?>
            <script>
                document.body.className+=' td-boxed-layout single_template_8 homepage-post ';
            </script>
            <?php 
            echo ob_get_clean();
            ?>



            <script type="text/template" id="<?php 
            echo $this->block_uid . '_tmpl';
            ?>
">

                <article id="post-<?php 
            echo $td_mod_single->post->ID;
            ?>
" class="<?php 
            echo join(' ', get_post_class('post td-post-template-8'));
            ?>
" <?php 
            echo $td_mod_single->get_item_scope();
            ?>
>
                    <div class="td-post-header td-image-gradient-style8">
                        <div class="td-crumb-container"><?php 
            echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
            ?>
</div>

                        <div class="td-post-header-holder">

                            <header class="td-post-title">

                                <?php 
            echo $td_mod_single->get_category();
            ?>
                                <?php 
            echo $td_mod_single->get_title();
            ?>


                                <?php 
            if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) {
                ?>
                                    <p class="td-post-sub-title"><?php 
                echo $td_mod_single->td_post_theme_settings['td_subtitle'];
                ?>
</p>
                                <?php 
            }
            ?>

                                <div class="td-module-meta-info">
                                    <?php 
            echo $td_mod_single->get_author();
            ?>
                                    <?php 
            echo $td_mod_single->get_date(false);
            ?>
                                    <?php 
            echo $td_mod_single->get_views();
            ?>
                                    <?php 
            echo $td_mod_single->get_comments();
            ?>
                                </div>

                            </header>
                        </div>
                    </div>
                </article>

            </script>






            <?php 
            $td_post_featured_image = td_util::get_featured_image_src($post->ID, 'full');
            ob_start();
            ?>
            <script>
//.........这里部分代码省略.........
开发者ID:luxifel,项目名称:Bionerd,代码行数:101,代码来源:td_block_homepage_full_1.php


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