Example #1
1
        //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();
Example #2
0
                <?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();
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()) {
Example #4
0
        <?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();
}
Example #5
0
                <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 -->
Example #6
0
    <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'])) {
<?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)) {
Example #8
0
// 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 
Example #9
0
 protected function get_breadcrumbs()
 {
     return td_page_generator::get_category_breadcrumbs($this->current_category_obj);
 }
 function woocommerce_pagination()
 {
     echo td_page_generator::get_pagination();
 }
Example #11
0
                        <?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();
Example #12
0
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
    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>
                // add the template
                jQuery( '.td-header-wrap' ).after( jQuery( '#<?php 
            echo $this->block_uid;
            ?>
_tmpl' ).html() );

                // make the wrapper and the image -> and add the image inside
                var td_homepage_full_bg_image_wrapper = jQuery( '<div class="backstretch"></div>' );
                var td_homepage_full_bg_image = jQuery( '<img class="td-backstretch not-parallax" src="<?php 
            echo $td_post_featured_image;
            ?>
"/>' );
                td_homepage_full_bg_image_wrapper.append(td_homepage_full_bg_image);

                // add to body
                jQuery('body').prepend( td_homepage_full_bg_image_wrapper );

                // run the backstracher
                var td_backstr_item = new tdBackstr.item();
                td_backstr_item.wrapper_image_jquery_obj = td_homepage_full_bg_image_wrapper;
                td_backstr_item.image_jquery_obj = td_homepage_full_bg_image;
                tdBackstr.add_item( td_backstr_item );

            </script>
            <?php 
            $buffer = ob_get_clean();
            $js = "\n" . td_util::remove_script_tag($buffer);
            td_js_buffer::add_to_footer($js);
        }
        return ob_get_clean();
    }
Example #14
0
<?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 {
Example #15
0
}
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);