#fonDiv_3 {
height: 100%;
min-width: 1000px;
min-height: 300px;
z-index: -1;
}
https://evro-brend.ru/wp-content/themes/woodmart/js/functions.min.js
(woodmartThemeModule.ajaxFilters = function () {
if (a("body").hasClass("woodmart-ajax-shop-on") && void 0 !== a.fn.pjax && !a("body").hasClass("single-product")) {
var c = this,
d = !1;
a(".products");
a("body").on("click", ".post-type-archive-product .products-footer .woocommerce-pagination a", function (a) {
e(!0);
}),
a(document).pjax(b.ajaxLinks, ".main-page-wrapper", { timeout: woodmart_settings.pjax_timeout, scrollTo: !1 }),
"click" == woodmart_settings.price_filter_action
? a(document).on("click", ".widget_price_filter form .button", function () {
var b = a(".widget_price_filter form");
return a.pjax({ container: ".main-page-wrapper", timeout: woodmart_settings.pjax_timeout, url: b.attr("action"), data: b.serialize(), scrollTo: !1 }), !1;
})
: "submit" == woodmart_settings.price_filter_action &&
a(document).on("submit", ".widget_price_filter form", function (b) {
var c = a(".main-page-wrapper");
a.pjax.submit(b, c);
}),
a(document).on("pjax:error", function (a, b, c, d) {
console.log("pjax error " + c);
}),
a(document).on("pjax:start", function (b, c) {
a(".site-content").removeClass("ajax-loaded"), a(".site-content").addClass("ajax-loading"), woodmartThemeModule.hideShopSidebar();
}),
a(document).on("pjax:complete", function (b, d, f) {
c.shopPageInit(),
e(!1),
a(document).trigger("wood-images-loaded"),
a(".woodmart-sidebar-content").scroll(function () {
a(document).trigger("wood-images-loaded");
}),
a(".site-content").removeClass("ajax-loading");
}),
a(document).on("pjax:beforeReplace", function (b, c) {
a(".filters-area").hasClass("filters-opened") && "yes" == woodmart_settings.shop_filters_close && ((d = !0), a("body").addClass("body-filters-opened"));
}),
a(document).on("pjax:end", function (b, c, e) {
d && (a(".filters-area").css("display", "block"), woodmartThemeModule.openFilters(200), (d = !1)), a(".site-content").removeClass("ajax-loading"), a(".site-content").addClass("ajax-loaded");
});
var e = function (b) {
if ("no" == woodmart_settings.ajax_scroll && 0 == b) return !1;
var c = a(woodmart_settings.ajax_scroll_class),
d = c.offset().top - woodmart_settings.ajax_scroll_offset;
a("html, body").stop().animate({ scrollTop: d }, 400);
};
}
}),
a(document).on("pjax:start", function (b, c) {
a(".site-content").removeClass("ajax-loaded"), a(".site-content").addClass("ajax-loading"), woodmartThemeModule.hideShopSidebar();
}),
a(document).on("pjax:start", function (b, c) {
a(".site-content").removeClass("ajax-loaded"), a(".site-content").addClass("ajax-loading");
}),
<?php
if ( !current_user_can( 'subscriber' ) ) { ?>
<button>Кнопка для всех (кроме подписчиков)</button>
<?php } ?>
<?php
// Видно будет только администраторам
if ( current_user_can( 'administrator' ) ) { ?>
<button>Кнопка для администратора</button>
<?php } ?>
current_user_can('administrator') // false
current_user_can('editor') // true
current_user_can('contributor') // false
current_user_can('subscriber') // false
.f_main_wrapper {
background-size: cover;
}
.btn {
background: url() no-repeat;
width: 100px;
height: 100px;
border: none;
position: relative;
transform: translateY(-50%);
}
div.top_menu_link_container, div.top_menu_link_container_end {
float: left;
height: 31px;
}
<video autoplay loop class="fullwidth" muted>
<source src="src/video.webm" type="video/webm">
<source src="src/video.mp4" type="video/mp4">
</video>
<div id="mute" class="btn"></div>
if ($("video").prop('muted', true)){
$("#mute").css("background-image","url(./src/muted.svg)");
}
$("#mute").click( function (){
if( $("video").prop('muted') ) {
$("video").prop('muted', false);
} else {
$("video").prop('muted', true);
$("#mute").css("background-image","url(./src/muted.svg)");
}
});
img.top-display__pills { display: block; max-width: 100%; }
function my_theme_archive_title( $title ) {
if ( is_category() ) {
$title = single_cat_title( '', false );
} elseif ( is_tag() ) {
$title = single_tag_title( '', false );
} elseif ( is_author() ) {
$title = '<span class="vcard">' . get_the_author() . '</span>';
} elseif ( is_post_type_archive() ) {
$title = post_type_archive_title( '', false );
} elseif ( is_tax() ) {
$title = single_term_title( '', false );
}
return $title;
}
add_filter( 'get_the_archive_title', 'my_theme_archive_title' );
<ul>
<?php while ( have_rows( 'taby' ) ) : the_row(); $i++ ?>
<li data-tab="tab-<?php echo $i; ?>"><a href="#"><?php the_sub_field( 'zagolovok_taba' ); ?></a></li>
<?php endwhile; ?>
</ul>
<?php $i = 0; ?>
<?php while ( have_rows( 'taby' ) ) : the_row(); $i++ ?>
<div id="tab-<?php echo $i; ?>"></div>
<?php endwhile; ?>
function simple_spoiler_shortcode($atts, $content) {
if ( ! isset($atts['title']) ) {
$sp_name = __( 'Спойлер', 'simple-spoiler' );
} else {
$sp_name = $atts['title'];
}
$sp_icon='';
if(!empty($atts['icon'])){
$sp_icon = '<div class="icon"><img src="'.$atts['icon'].'" alt="" /></div>';
$sp_class = 'icon';
}
return '<div class="spoiler">
<div class="head '.$sp_class.'">'.$sp_icon.$sp_name.'</div>
<div class="cont">'.$content.'</div>
</div>';
}
add_shortcode( 'spoiler', 'simple_spoiler_shortcode' );