initialize: function () {
miniShop2.Order.setup();
if ($(miniShop2.Order.order).length) {
miniShop2.$doc
.on('click', miniShop2.Order.order + ' [name="' + miniShop2.actionName + '"][value="order/clean"]', function (e) {
miniShop2.Order.clean();
e.preventDefault();
})
.on('change', miniShop2.Order.order + ' input,' + miniShop2.Order.order + ' textarea', function () {
var $this = $(this);
var key = $this.attr('name');
var value = $this.val();
miniShop2.Order.add(key, value);
})
.on('focus', miniShop2.Order.order + ' input,' + miniShop2.Order.order + ' textarea', function () {
var $this = $(this);
var key = $this.attr('name');
var value = $this.val();
miniShop2.Order.add(key, value);
});
var $deliveryInputChecked = $(miniShop2.Order.deliveryInput + ':checked', miniShop2.Order.order);
$deliveryInputChecked.trigger('change');
}
},
<?php
if ( function_exists('aioseo_breadcrumbs') ) {
$str = 'Афиша'; $breadcrumbs = aioseo_breadcrumbs();
if(get_locale() == 'ru_RU') { echo $breadcrumbs; } else { if(get_locale() == 'en_US') { str_replace("Афиша", 'Poster', $breadcrumbs); echo $breadcrumbs; } else { str_replace("Афиша", '海报', $breadcrumbs); echo $breadcrumbs; } }
}
?>
<?php $args = array(
'posts_per_page' => -1,
'post_type' => 'tour',
'tax_query' => array(
array(
'taxonomy' => 'tours',
'field' => 'term_id',
'terms' => 78,
'operator' => 'NOT IN',
))
); $lastposts = get_posts( $args );
foreach( $lastposts as $post ) { setup_postdata( $post ); ?>
<div class="wrapper-col3">
<div class="news-col">
<a href="<?php the_permalink(); ?>" class="block-news uk-cover-container"><img src="<?php the_post_thumbnail_url('slider'); ?>" loading="lazy" alt="image" uk-cover></a>
<a href="<?php the_permalink(); ?>" class="block-news_title font-style-NotoSerif font-style-h3"><?php the_title(); ?></a>
<div class="block-news_text font-style-grey"><?php the_excerpt(); ?></div>
</div>
</div>
<?php } wp_reset_postdata(); ?>