72 lines
4.3 KiB
PHP
72 lines
4.3 KiB
PHP
<div class="row clearfix">
|
|
<div class="col-12 col-md-8 col-xl-9">
|
|
<?php if(is_in_dk()): ?>
|
|
<div class="dk-banner">
|
|
<img class="w-100 mb-4" src="<?= get_template_directory_uri() ?>/assets/img/Delovoy_club_852x80_2.jpg" />
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if (wp_is_mobile() && 1==2): ?>
|
|
<img loading="lazy" style="margin-bottom:30px;" src="<?php echo $taxImages->tax_logo_taxonomy_image_url( $termid, NULL, TRUE, 'taxonomy_logo_image' ); ?>" />
|
|
<?php endif; ?>
|
|
<?php if((is_branding() || is_branding_page()) && get_term_meta(get_queried_object()->term_id,'suptitle',1) != ''): ?>
|
|
<h6>
|
|
<a href="<?php echo get_term_meta(get_queried_object()->term_id,'link',1) ?>" target="_blank">
|
|
<?php echo get_term_meta(get_queried_object()->term_id,'suptitle',1) ?>
|
|
</a>
|
|
</h6>
|
|
<?php endif; ?>
|
|
<div class="story__title">
|
|
<?php echo get_term_meta(get_queried_object()->term_id,'subtitle',1); ?>
|
|
</div>
|
|
<?php echo str_replace("<p></p>", "", term_description( get_queried_object()->term_id )); ?>
|
|
<div class="<?php if(wp_is_mobile()): ?>col-12 <?php else: ?>row <?php endif; ?> clearfix d-block">
|
|
<?php get_template_part( 'content-menu-item-header' ); ?>
|
|
<?php if ( have_posts() ) : ?>
|
|
<?php
|
|
$rand = rand(4,5);
|
|
while ( have_posts() ) : $postNum++;
|
|
ad_inlist_mobile($postNum);
|
|
the_post();
|
|
if ($postNum == $rand && $already == false ):
|
|
$already = true;
|
|
get_template_part( 'content', 'preview-long-rubrick' );
|
|
else:
|
|
get_template_part( 'content', 'preview-short-rubrick' );
|
|
endif;
|
|
endwhile;
|
|
if(is_category()):
|
|
$cat = get_query_var('cat');
|
|
$category = get_category ($cat);
|
|
echo do_shortcode('[ajax_load_more cache="true" cache_id="'.wp_is_mobile().crc32('archive-branding-author').get_queried_object_id().get_last_id().'2" id="category_request" scroll_distance="50" button_label="Загрузить еще" container_type="div" post_type="profile_article, anew" offset="'.(get_option('posts_per_page')).'" posts_per_page="10" post_format="standard" category="'.$category->slug.'"]');
|
|
endif;
|
|
if(is_author()):
|
|
echo do_shortcode('[ajax_load_more cache="true" cache_id="'.wp_is_mobile().crc32('archive-branding-author').get_queried_object_id().get_last_id().'2" id="author_request" scroll_distance="50" button_label="Загрузить еще" container_type="div" post_type="profile_article" offset="'.get_option('posts_per_page').'" posts_per_page="12" post_format="standard" author="'.get_the_author_ID().'" ]');
|
|
endif;
|
|
?>
|
|
<div class="hide-if-js">
|
|
<?php
|
|
the_posts_pagination(
|
|
[
|
|
'end_size' => 3,
|
|
'mid_size' => 3,
|
|
'prev_next' => 0,
|
|
]
|
|
);
|
|
?>
|
|
</div>
|
|
<?php
|
|
else :
|
|
get_template_part( 'content', 'none' );
|
|
endif;
|
|
?>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 col-md-4 col-xl-3">
|
|
<div class="right-side">
|
|
<?php dynamic_sidebar('right_sidebar'); ?></div>
|
|
<div class="js-stickybit">
|
|
<?php get_template_part( 'content', 'ad' ); ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|