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
<script> | |
(function() { | |
$(() => { | |
if ($('#gcAccountUserMenu').length) { | |
let messageText = 'Скоро оформление школы изменится. Если что-то будет отображаться некорректно, зайдите через 15 минут или попробуйте очистить кэш.<a href="https://yandex.ru/support/common/browsers-settings/cache.html">Инструкция по очистке кэша</a>'; | |
let a = $(`<div class="message-wrapper"><div class="message-text">${messageText}</div></div>`); | |
let b = $(`<button class="message-btn">Закрыть</button>`); | |
let c = localStorage.getItem("redesignPopupView"); | |
null == c && (a.append(b), $("body").append(a), b.click(function() { |
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 | |
ini_set('display_errors',1); | |
error_reporting(E_ALL); | |
$constructorBlocks = get_field('constructor-blocks'); | |
?> | |
<? | |
foreach ((array) $constructorBlocks as $block) { |
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
var interval = setInterval(() => { | |
var element = document.querySelector('.test'); | |
if (element != null) { | |
clearInterval(interval); | |
console.log(element); | |
} | |
}, 1000); |
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 WC()->cart->get_cart_contents_count(); | |
// Проверить количество товаров: | |
if (WC()->cart->get_cart_contents_count()) {} | |
// Сумма товаров | |
echo WC()->cart->get_cart_subtotal(); | |
?> |
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
(function($) { | |
$.fn.myfunction = function() { | |
console.log('run function'); | |
return this; | |
}; | |
})( jQuery ); |
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
<? if (current_user_can( 'administrator' )): ?> | |
<?php | |
wp_link_pages( [ | |
'before' => '<p>' . __('Pages:'), | |
'after' => '</p>', | |
'link_before' => '', | |
'link_after' => '', | |
'next_or_number' => 'number', | |
'nextpagelink' => __('Next page'), | |
'previouspagelink' => __('Previous page'), |
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
<? if (current_user_can( 'administrator' )): ?> | |
<?php | |
wp_link_pages( [ | |
'before' => '<p>' . __('Pages:'), | |
'after' => '</p>', | |
'link_before' => '', | |
'link_after' => '', | |
'next_or_number' => 'number', | |
'nextpagelink' => __('Next page'), | |
'previouspagelink' => __('Previous page'), |
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
<? if (current_user_can( 'administrator' )): ?> | |
<? | |
$previousPost = get_previous_post(); | |
$nextPost = get_next_post(); | |
$currentPost = get_post(); | |
$projectsPosts = get_posts( | |
array( | |
'post_type' => 'projects', | |
'posts_per_page' => -1, | |
'orderby'=> 'ASC', |
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="single-page-nav-links"> | |
<? if (get_previous_post_link('%link')): ?> | |
<?=typo(get_previous_post_link('← %link')); ?> | |
<? endif; ?> | |
<? if (get_previous_post_link('%link') && get_next_post_link('%link')): ?> | |
<span class="separator">|</span> | |
<? endif; ?> | |
<? if (get_next_post_link('%link')): ?> |
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
.bg-lines { | |
display: block; | |
width: 100%; | |
background-image: url('../images/bg-lines.png'); | |
background-size: 100%; | |
z-index: 1; | |
position: absolute; | |
top: 0; | |
left: 50%; | |
padding: 20px; |
NewerOlder