This file contains hidden or 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 | |
$taxonomy = 'product_cat'; | |
$orderby = 'name'; | |
$show_count = 0; | |
$pad_counts = 0; | |
$hierarchical = 1; | |
$title = ''; | |
$empty = 0; | |
$cat_id = get_queried_object_id(); | |
$args = array( |
This file contains hidden or 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="cart-content"> | |
<p class="cart-header">В корзине:</p> | |
<p>Товаров: <span><?php echo WC()->cart->get_cart_contents_count(); ?></span> шт.</p> | |
<p>На сумму: <span><?php echo WC()->cart->get_cart_subtotal(); ?></span></p> | |
<a href="http://flowerberries.ru/cart/" class="cart-checkout">Оформить заказ</a> | |
</div> |
This file contains hidden or 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 latitude = 55.675099, | |
longitude = 37.617163, | |
map_zoom = 11; | |
//Адрес до иконки с маркером | |
var marker_url = 'assets/img/icons/map.png'; | |
This file contains hidden or 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 | |
$secret = "SECRET KEY FROM GOOGLE"; | |
$ip = $_SERVER['REMOTE_ADDR']; | |
$captcha = $_POST['g-recaptcha-response']; | |
$rsp = file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=$secret&response=$captcha&remoteip$ip"); | |
$arr = json_decode($rsp, TRUE); | |
if ($arr['success']) { | |
$name = htmlspecialchars($_POST['']); | |
$email = htmlspecialchars($_POST['']); |
This file contains hidden or 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
CFile::GetPath($arItem["PICTURE"]); |
This file contains hidden or 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((screen.height + $(document).scrollTop() - 600) >= $("РОДИТЕЛЬ").height()) |
This file contains hidden or 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
font-variant-numeric: lining-nums | |
-moz-font-feature-settings: "lnum" | |
-webkit-font-feature-settings: "lnum" | |
font-feature-settings: "lnum" |
This file contains hidden or 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
Utils\Planb::pretty_print($arResult, false, false); |
This file contains hidden or 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 $posts = get_posts([ | |
'post_type' => 'slider' | |
]); | |
foreach ($posts as $post) : | |
$imgObj = get_post_meta($post->ID, 'image', true); | |
$label = get_post_meta($post->ID, 'definition', true); | |
echo "<pre>"; | |
var_dump($imgObj, $label); | |
echo "</pre><br>"; |
OlderNewer