(function ($) {
'use strict';
$('[name=upload]').on('change', function (e) {
var selected = $('[name=upload]:checked'),
checkbox = $('#parts_clear');
if ('image_upload' === selected.attr('id')) {
checkbox.prop('disabled', true);
} else {
checkbox.prop('disabled', false);
}
});
}(jQuery));
function yandex_api() {
if ( is_home() || is_page( 1825 ) ) {
wp_enqueue_script( 'yandexmap', get_stylesheet_directory_uri() . '/js/ya-map.js' );
wp_enqueue_script( 'yandexapi', get_stylesheet_directory_uri() . '/js/yandex-maps.js' );
}
}
add_action( 'wp_enqueue_scripts', 'yandex_api' );
.month_block:hover + .main_calendar,
.main_calendar:hover {
display: block;
}
$('.main_calendar').hover(function() {
var idboard = $(this).data('idboard');
$('[data-idboard="' + idboard + '"]').slideToggle(200);
});
if ( is_tax( $taxonomy, $term1 ) || has_term( $term1, $taxonomy ) ) {
dynamic_sidebar( 'sidebar1' );
} elseif ( is_tax( $taxonomy, $term2 ) || has_term( $term2, $taxonomy ) ) {
dynamic_sidebar( 'sidebar2' );
} else {
dynamic_sidebar( 'sidebar3' );
}