Пример #1
0
 * @package WordPress
 * @subpackage Twenty_Five
 * @since Twenty Five 1.0
 */
get_header();
?>
<div class="container">
	<div class="row">
        <div class="col-lg-9 col-md-8 col-sm-7">
        	<?php 
if (have_posts()) {
    ?>
				<div class="row box box-white">
        			<?php 
    if (function_exists('ts_breadcrumbs')) {
        ts_breadcrumbs();
    }
    ?>
        			<?php 
    // Start the loop.
    while (have_posts()) {
        the_post();
        /*
         * Include the Post-Format-specific template for the content.
         * If you want to override this in a child theme, then include a file
         * called content-___.php (where ___ is the Post Format name) and that will be used instead.
         */
        get_template_part('template-parts/content', "single");
        // If comments are open or we have at least one comment, load up the comment template.
        if (comments_open() || get_comments_number()) {
            comments_template();
Пример #2
0
function ts_breadcrumbs_title($show_breadcrumb = false, $show_page_title = false, $page_title = '', $extra_class_title = '')
{
    global $smof_data;
    if ($show_breadcrumb || $show_page_title) {
        $breadcrumb_bg = '';
        $extra_class = 'breadcrumb-' . $smof_data['ts_breadcrumb_layout'];
        if ($smof_data['ts_enable_breadcrumb_background_image'] && $smof_data['ts_breadcrumb_layout'] != 'v3') {
            if ($smof_data['ts_bg_breadcrumbs'] == '') {
                /* No Override */
                $breadcrumb_bg = get_template_directory_uri() . '/images/bg_breadcrumb_' . $smof_data['ts_breadcrumb_layout'] . '.jpg';
            } else {
                $breadcrumb_bg = esc_url($smof_data['ts_bg_breadcrumbs']);
            }
        }
        $style = '';
        if ($breadcrumb_bg != '') {
            $style = 'style="background-image: url(' . $breadcrumb_bg . ')"';
            if (isset($smof_data['ts_breadcrumb_bg_parallax']) && $smof_data['ts_breadcrumb_bg_parallax']) {
                $extra_class .= ' ts-breadcrumb-parallax';
            }
        }
        echo '<div class="breadcrumb-title-wrapper ' . $extra_class . '" ' . $style . '><div class="breadcrumb-content"><div class="breadcrumb-title">';
        if ($show_page_title) {
            echo '<h1 class="heading-title page-title entry-title ' . $extra_class_title . '">' . $page_title . '</h1>';
        }
        if ($show_breadcrumb) {
            ts_breadcrumbs();
        }
        echo '</div></div></div>';
    }
}