add cookies
This commit is contained in:
@@ -1278,6 +1278,15 @@ function replace_first_figure_in_content($content) {
|
||||
return $content;
|
||||
}
|
||||
|
||||
|
||||
function add_cookie_consent() {
|
||||
if (!isset($_COOKIE['cookie_consent_accepted'])) {
|
||||
get_template_part('cookie-consent');
|
||||
}
|
||||
}
|
||||
add_action('wp_footer', 'add_cookie_consent');
|
||||
|
||||
|
||||
/**
|
||||
* убираем рубрики - Смена (7)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user