This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo get_sub_field('text_slide') ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-12"> | |
<div class="breadcrumbs"> | |
<?php if (is_home()) { ?> | |
<?php } elseif (is_page()) { ?> | |
<a href="<?php echo get_option('home'); ?>">Главная</a> > | |
<?php foreach((get_the_category()) as $cat) { | |
$cat=$cat->cat_ID; | |
echo(get_category_parents($cat, TRUE, ' > ')); } the_title(); ?> | |
<?php } ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header() ?> | |
<div class="container"> | |
<div class="row"> | |
<div class="col-md-12"> | |
<div class="breadcrumbs"> | |
<?php if (is_home()) { ?> | |
<?php } elseif (is_page()) { ?> | |
<a href="<?php echo get_option('home'); ?>">Главная</a> > | |
<?php foreach((get_the_category()) as $cat) { | |
$cat=$cat->cat_ID; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta name="viewport" content="width=1280, initial-scale=10, maximum-scale=0.5, user-scalable=10"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Paginate Advanced Custom Field repeater | |
*/ | |
if( get_query_var('page') ) { | |
$page = get_query_var( 'page' ); | |
} else { | |
$page = 1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (is_single()) { | |
$cat = get_the_category(); | |
$cat = $cat[0]->cat_ID; | |
$currentCat = '¤t_category='.$cat; | |
} | |
wp_list_categories('orderby=id&exclude=1&hide_empty=0&orderby=name&show_count=0&title_li='.$currentCat); | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('template_redirect', 'wpds_parent_category_template'); | |
function wpds_parent_category_template() | |
{ | |
if (!is_category()) | |
return true; | |
// получаем объект текущей рубрики | |
$cat = get_category(get_query_var('cat')); | |
while ($cat && !is_wp_error($cat)) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on('click', function(e) { | |
if (!$(e.target).closest(".parent_block").length) { | |
$('.toggled_block').hide(); | |
} | |
e.stopPropagation(); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="basket"> | |
<div class="lab">Корзина</div> | |
<input type="number" class="count-length" value="<?php echo WC()->cart->get_cart_contents_count(); ?>"> | |
<span class="bas-price"><?php echo WC()->cart->get_cart_subtotal(); ?></span> | |
<a href="<?php echo WC()->cart->get_cart_url(); ?>" class="bas-inside"></a> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function($) { | |
var url=document.location.href; | |
$.each($("#preface-top a"),function(){ | |
if(this.href==url){$(this).addClass('activeCSS');}; | |
}); | |
})(jQuery); |
OlderNewer