function wph_human_date($hdate = '') {
if (!is_admin()) {
$post_date = get_the_time('d.m.Y');
$current_date = date('d.m.Y');
if ($post_date === $current_date) {
$hdate = 'сегодня';
} elseif ($post_date === date('d.m.Y', strtotime('-1 day', strtotime($current_date)))) {
$hdate = 'вчера';
} else {
$hdate = $post_date;
}
}
return $hdate;
}
add_filter('get_the_date', 'wph_human_date');
<?
global $arFilter;
$arFilter = array(
"!SECTION_ID" => array(*категория-1*, *категория-2*, ..)
);
$APPLICATION->IncludeComponent(
"bitrix:catalog",
".default",
array(
...
"FILTER_NAME" => "arFilter",
...
),
false
);
?>
[*site_url*]
listen = /var/run/*site_url*.sock
listen.allowed_clients = 127.0.0.1
user = user
group = group
listen.owner = user
listen.group = nginx
Sure, I use zola https://www.getzola.org/
My site source is here https://gitlab.com/flukejones/ljcode.gitlab.io
.ymaps-layers-pane {
filter: grayscale(100%);
-webkit-filter: grayscale(1);
}