" <?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 //echo $td_mod_single->get_author(); ?>
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()) {
<?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 {