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


PHP td_page_generator类代码示例

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


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

示例1: query_posts

        //sidebar right
    //sidebar right
    default:
        ?>
            <div class="span8 column_container">
                <?php 
        if ((empty($paged) or $paged < 2) and $list_custom_title_show === true) {
            ?>
                    <h4 class="block-title"><span><?php 
            echo $td_list_custom_title;
            ?>
</span></h4>
                <?php 
        }
        query_posts(td_data_source::metabox_to_args($td_homepage_loop_filter, $paged));
        locate_template('loop.php', true);
        echo td_page_generator::get_pagination();
        ?>
            </div>
            <div class="span4 column_container">
                <?php 
        get_sidebar();
        ?>
            </div>
        <?php 
        break;
}
echo '</div>';
//close the .row
echo td_page_generator::wrap_no_row_end();
get_footer();
开发者ID:Vatia13,项目名称:tofido,代码行数:31,代码来源:page-homepage-bg-loop.php

示例2: locate_template

                <?php 
        break;
    case 'no_sidebar':
        ?>
                <div class="td-pb-span12 td-main-content">
                    <div class="td-ss-main-content">
                        <div class="td-page-header">
                            <?php 
        locate_template('parts/page-search-box.php', true);
        ?>
                        </div>
                        <?php 
        locate_template('loop.php', true);
        ?>

                        <?php 
        echo td_page_generator::get_pagination();
        ?>
                    </div>
                </div>
                <?php 
        break;
}
?>
    </div> <!-- /.td-pb-row -->
</div> <!-- /.td-container -->
</div> <!-- /.td-main-content-wrap -->


<?php 
get_footer();
开发者ID:tuanlibra,项目名称:thptxuanang,代码行数:31,代码来源:search.php

示例3: array_keys

if (method_exists('WPBMap', 'getShortCodes')) {
    $td_page_builder_short_codes = array_keys(WPBMap::getShortCodes());
    if (td_util::strpos_array($post->post_content, $td_page_builder_short_codes) === true) {
        $td_use_page_builder = true;
    }
}
//no page builder detected, we load a default page template with sidebar / no sidebar
?>
<div class="td-main-content-wrap">
    <div class="td-container <?php 
echo $td_sidebar_position;
?>
">
        <div class="td-crumb-container">
            <?php 
echo td_page_generator::get_page_breadcrumbs(get_the_title());
?>
        </div>
        <div class="td-pb-row">
            <?php 
switch ($loop_sidebar_position) {
    default:
        ?>
                        <div class="td-pb-span8 td-main-content" role="main" itemscope="itemscope" itemprop="mainContentOfPage" itemtype="<?php 
        echo td_global::$http_or_https;
        ?>
://schema.org/CreativeWork">
                            <div class="td-ss-main-content">
                                <?php 
        if (have_posts()) {
            while (have_posts()) {
开发者ID:rinodung,项目名称:newspaper-wordpress,代码行数:31,代码来源:page-pagebuilder-title.php

示例4:

        <?php 
    echo $td_mod_single->get_source_and_via();
    ?>
        <?php 
    echo $td_mod_single->get_social_sharing();
    ?>
        <?php 
    echo $td_mod_single->get_social_like_tweet();
    ?>
        <?php 
    echo $td_mod_single->get_next_prev_posts();
    ?>
        <?php 
    echo $td_mod_single->get_author_box();
    ?>


        <?php 
    echo $td_mod_single->get_item_scope_meta();
    ?>
    </footer>

    <?php 
    echo $td_mod_single->related_posts();
    ?>

<?php 
} else {
    //no posts
    echo td_page_generator::no_posts();
}
开发者ID:Vatia13,项目名称:tofido,代码行数:31,代码来源:loop-single-3.php

示例5: get_sidebar

                <div class="span4 column_container td-post-sidebar" role="complementary" itemscope="itemscope" itemtype="<?php 
        echo td_global::$http_or_https;
        ?>
://schema.org/WPSideBar">
                    <?php 
        get_sidebar();
        ?>
                </div>
                <div class="span8 column_container td-post-content" role="main" itemprop="mainContentOfPage">
                    <?php 
        locate_template('loop-single-5.php', true);
        comments_template('', true);
        ?>
                </div>
                <?php 
        break;
    case 'no_sidebar':
        td_global::$load_featured_img_from_template = 'full';
        ?>
                <div class="span12 column_container td-post-content" role="main" itemprop="mainContentOfPage">
                    <?php 
        locate_template('loop-single-5.php', true);
        comments_template('', true);
        ?>
                </div>
                <?php 
        break;
}
echo td_page_generator::wrap_end();
?>
</article> <!-- /.post -->
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:single_template_5.php

示例6: join

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

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

                        <header class="td-post-title">
                            <?php 
echo $td_mod_single->get_title();
?>


                            <?php 
if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) {
开发者ID:luxifel,项目名称:Bionerd,代码行数:31,代码来源:single_template_2.php

示例7: foreach

<?php

/*  ----------------------------------------------------------------------------
    The slider that shows featured posts on category templates is here
 */
global $cur_cat_obj, $loop_sidebar_position, $loop_module_id;
//bread crumbs
echo td_page_generator::get_category_breadcrumbs($cur_cat_obj);
if ($loop_module_id != 1 and $loop_module_id != 7) {
    //the category title
    ?>
    <header>
        <h1 itemprop="name" class="entry-title td-page-title">
            <?php 
    /*<a itemprop="url" href="<?php echo get_category_link($cur_cat_obj->cat_ID)?>" rel="bookmark" title="<?php echo __td('Posts in ') . $cur_cat_obj->name ?>"><?php echo $cur_cat_obj->name ?></a> */
    ?>
            <span><?php 
    echo $cur_cat_obj->name;
    ?>
</span>
        </h1>
    </header>
    <?php 
    //the subcategories
    if (!empty($cur_cat_obj->cat_ID)) {
        $td_sub_cats = get_categories(array('parent' => $cur_cat_obj->cat_ID));
        if (!empty($td_sub_cats)) {
            echo '<ul class="td-category td-category-page-subcats">';
            echo '<li><span class="td-category-page-sub-ind"></span></li>';
            foreach ($td_sub_cats as $td_sub_cat) {
                if (!empty($td_sub_cat->name)) {
开发者ID:Vatia13,项目名称:wordpress,代码行数:31,代码来源:page-category-slider.php

示例8:

// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
$td_sidebar_position = '';
if ($loop_sidebar_position == 'sidebar_left') {
    $td_sidebar_position = 'td-sidebar-left';
}
?>

<div class="td-main-content-wrap">
    <div class="td-container <?php 
echo $td_sidebar_position;
?>
">
        <div class="td-crumb-container">
            <?php 
if (!empty($post->post_parent) and !empty($post->post_title)) {
    echo td_page_generator::get_attachment_breadcrumbs($post->post_parent, $post->post_title);
}
?>
        </div>
        <div class="td-pb-row">
            <?php 
switch ($loop_sidebar_position) {
    default:
        ?>
                    <div class="td-pb-span8 td-main-content">
                        <div class="td-ss-main-content">
                            <?php 
        if (is_single()) {
            ?>
                                <h1 class="entry-title td-page-title">
                                <span><?php 
开发者ID:luxifel,项目名称:Bionerd,代码行数:31,代码来源:attachment.php

示例9: get_breadcrumbs

 protected function get_breadcrumbs()
 {
     return td_page_generator::get_category_breadcrumbs($this->current_category_obj);
 }
开发者ID:luxifel,项目名称:Bionerd,代码行数:4,代码来源:td_category_template.php

示例10: woocommerce_pagination

 function woocommerce_pagination()
 {
     echo td_page_generator::get_pagination();
 }
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:4,代码来源:functions.php

示例11: locate_template

                        <?php 
            break;
        case 'no_sidebar':
            //td_global::$load_featured_img_from_template = 'art-slide-big';
            td_global::$load_featured_img_from_template = 'full';
            ?>
                            <div class="td-pb-span12 td-main-content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="<?php 
            echo td_global::$http_or_https;
            ?>
://schema.org/Blog">
                                <div class="td-ss-main-content">
                                    <?php 
            locate_template('loop-single.php', true);
            comments_template('', true);
            ?>
                                </div>
                            </div>
                        <?php 
            break;
    }
    ?>
            </div> <!-- /.td-pb-row -->
        </div>
    </div> <!-- /.td-container -->

<?php 
} else {
    //the user has selected a different template & we make sure we only load our templates - the list of allowed templates is in includes/wp_booster/td_global.php
    td_page_generator::show_single_template($td_post_theme_settings['td_post_template']);
}
get_footer();
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:31,代码来源:single.php

示例12: locate_template

echo td_global::$http_or_https;
?>
://schema.org/WebPage">

<?php 
//this is closing in the footer.php file
?>
<div id="td-outer-wrap">

    <?php 
/* scroll to top */
?>
    <div class="td-scroll-up"><i class="td-icon-menu-up"></i></div>

    <div class="td-transition-content-and-menu td-mobile-nav-wrap">
        <?php 
locate_template('parts/menu-mobile.php', true);
?>
    </div>

    <?php 
//this is closing in the footer.php file
?>
    <div class="td-transition-content-and-menu td-content-wrap">



<?php 
td_page_generator::show_header();
do_action('td_wp_booster_after_header');
//used by unique articles
开发者ID:vikasjain1595,项目名称:wordpresstheme,代码行数:31,代码来源:header.php

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

示例14: __td

<?php

/**
 * this loop is used for timeline template
 **/
//adding breadcrumbs
echo td_page_generator::get_page_breadcrumbs($post->post_title);
?>

<div class="td-template-timeline-title"><?php 
echo __td('Timeline');
?>
</div>

<?php 
//main loop of the page (but for this sidebar position)
$td_timeline_post_date = $td_timeline_post_year = $explode_time_date = '';
$td_timeline_post_count = 0;
$date_format = get_option('date_format');
if (have_posts()) {
    while (have_posts()) {
        the_post();
        $explode_time_date = explode(' ', $post->post_date);
        $explode_post_date = explode('-', $explode_time_date[0]);
        //write year
        if ($td_timeline_post_year != $explode_post_date[0]) {
            $td_timeline_post_year = $explode_post_date[0];
            //adding wrapper around year links
            if ($td_timeline_post_count > 0) {
                echo '</div><div class="td-timeline-block-title td-timline-padding-top"><span>' . $td_timeline_post_year . '</span></div><div class="td-timeline-wrapper-links">';
            } else {
开发者ID:Vatia13,项目名称:tofido,代码行数:31,代码来源:loop-timeline.php

示例15:

}
if (empty($paged) or $paged < 2) {
    echo td_page_generator::wrap_no_row_with_bg_start();
    if (empty($paged) or $paged < 2) {
        //show this only on the first page
        ?>
    <div class="row-fluid">
        <div class="span12 column_container">
            <?php 
        echo td_global_blocks::get_instance('td_slide_big')->render(array('sort' => 'featured', 'hide_title' => 'hide_title', 'force_columns' => 3, 'limit' => $td_slide_limit));
        ?>
        </div>
    </div>
    <?php 
    }
    echo td_page_generator::wrap_no_row_with_bg_end();
    /*
    if (!empty($td_slide_background)) {
        echo '<script>' . "\n";
        echo 'jQuery().ready(function() {' . "\n";
        echo 'jQuery(".td-big-slide-background").backstretch("' . $td_slide_background . '", {fade:1200});' . "\n";
        echo '});' . "\n";
        echo '</script>' . "\n";
    }
    */
    if (!empty($td_slide_background)) {
        $buffy = '';
        $buffy .= 'jQuery().ready(function() {' . "\n";
        $buffy .= 'jQuery(".td-big-slide-background ").backstretch("' . $td_slide_background . '", {fade:1200});' . "\n";
        $buffy .= '});' . "\n";
        td_js_buffer::add_to_footer($buffy);
开发者ID:Vatia13,项目名称:tofido,代码行数:31,代码来源:page-homepage-slider.php


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