add block-cache-manager.php
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
alt="<?= htmlspecialchars( get_the_title() ) ?>"
|
||||
/>
|
||||
|
||||
<?php else : ?>
|
||||
<?php else : //1361306 ?>
|
||||
|
||||
<img loading="lazy"
|
||||
src="<?= wp_get_attachment_image_url( 1357368, $args["wide"] && !wp_is_mobile() ? "large" : "post-thumbnail"); ?>"
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<!--[archive/list]-->
|
||||
|
||||
<?php global $wp_query; ?>
|
||||
<?php global $wp_query;
|
||||
$sql_query = $wp_query->request;
|
||||
echo $sql_query; // Выведет SQL-запрос?>
|
||||
|
||||
<?php if( have_posts() ) : ?>
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="container-fluid clearfix">
|
||||
<div class="row d-flex flex-row">
|
||||
<div class="col-12 col-sm-2 col-xl-3">
|
||||
<span class="font-weight-bold">
|
||||
<span class="font-weight-bold" id="current-date">
|
||||
<?= date_i18n('j F Y') ?>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
@@ -1,65 +1,67 @@
|
||||
<!--[header/header]-->
|
||||
|
||||
<!doctype html>
|
||||
<html class="no-js" <?= language_attributes(); ?>>
|
||||
|
||||
<?php get_template_part("template-parts/header/head"); ?>
|
||||
|
||||
<body
|
||||
class="default page-index js-stickybit-parent parent
|
||||
<?= is_branding() ? " branding" : "" ?>
|
||||
"
|
||||
>
|
||||
|
||||
<noscript><div><img loading="lazy" src="https://mc.yandex.ru/watch/24504371" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||
|
||||
<?php if( is_branding() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/branding-erid") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/uparrow") ?>
|
||||
|
||||
<?php get_template_part("template-parts/cell-promo") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="header">
|
||||
|
||||
<?php get_template_part("template-parts/header/header-top-line"); ?>
|
||||
|
||||
<?php get_template_part("template-parts/nav/header-nav"); ?>
|
||||
|
||||
<?php if( !wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/ad/revive/top") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</header>
|
||||
|
||||
<main class="main js-stickybit-parent parent">
|
||||
|
||||
<?php if( wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/ad/revive/top-mobile") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/breadcrumbs") ?>
|
||||
|
||||
<?php if(!wp_is_mobile()) : ?>
|
||||
<div style="margin-bottom: 18px; text-align: center;">
|
||||
<?php get_template_part("template-parts/ad/revive/ad", "", [ "zone" => 14, "show_on_mobile" => false ]); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row clearfix d-block">
|
||||
|
||||
<!--[header/header]-->
|
||||
|
||||
<!doctype html>
|
||||
<html class="no-js" <?= language_attributes(); ?>>
|
||||
|
||||
<?php get_template_part("template-parts/header/head"); ?>
|
||||
|
||||
<body
|
||||
class="default page-index js-stickybit-parent parent
|
||||
<?= is_branding() ? " branding" : "" ?>
|
||||
"
|
||||
>
|
||||
|
||||
<noscript><div><img loading="lazy" src="https://mc.yandex.ru/watch/24504371" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||
|
||||
<?php if( is_branding() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/branding-erid") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if( wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/uparrow") ?>
|
||||
|
||||
<?php get_template_part("template-parts/cell-promo") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<header class="header">
|
||||
|
||||
<?php get_template_part("template-parts/header/header-top-line"); ?>
|
||||
|
||||
<?php get_template_part("template-parts/nav/header-nav"); ?>
|
||||
|
||||
<?php if( !wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/ad/revive/top") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
</header>
|
||||
|
||||
<main class="main js-stickybit-parent parent">
|
||||
|
||||
<?php if( wp_is_mobile() ) : ?>
|
||||
|
||||
<?php get_template_part("template-parts/ad/revive/top-mobile") ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php get_template_part("template-parts/header/breadcrumbs") ?>
|
||||
|
||||
|
||||
<?php if( !wp_is_mobile() and is_home() ) : ?>
|
||||
<div style="margin-bottom: 18px; text-align: center;">
|
||||
<?php get_template_part("template-parts/ad/revive/ad", "", [ "zone" => 12, "show_on_mobile" => false ]); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
|
||||
<div class="row clearfix d-block">
|
||||
|
||||
<!--[/header/header]-->
|
||||
@@ -36,14 +36,7 @@ $colon_query = new WP_Query(
|
||||
|
||||
<div class="d-flex" >
|
||||
|
||||
<div class="blog"
|
||||
itemscope
|
||||
<?php if( get_post_type() == "profile_article"): ?>
|
||||
itemtype="https://schema.org/Article"
|
||||
<?php else: ?>
|
||||
itemtype="https://schema.org/NewsArticle"
|
||||
<?php endif; ?>
|
||||
>
|
||||
<div class="blog">
|
||||
|
||||
<a class="blog__frame" href="<?= the_permalink() ?>">
|
||||
|
||||
@@ -73,13 +66,13 @@ $colon_query = new WP_Query(
|
||||
|
||||
</a>
|
||||
|
||||
<?php get_template_part("template-parts/micro/post"); ?>
|
||||
<?php //get_template_part("template-parts/micro/post"); ?>
|
||||
|
||||
<div class="blog__detail">
|
||||
|
||||
<?php get_template_part("template-parts/post/blog-date"); ?>
|
||||
|
||||
<?php get_template_part("template-parts/post/blog-author"); ?>
|
||||
<?php get_template_part("template-parts/post/colon-author"); ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,13 +1,18 @@
|
||||
<!--[home/index]-->
|
||||
|
||||
|
||||
<?php get_template_part("template-parts/home/news"); ?>
|
||||
<?php //get_template_part("template-parts/home/news");
|
||||
cached_get_template_part( 'template-parts/home/news' );?>
|
||||
|
||||
<div class="col-12 col-md-8 col-xl-6 float-left">
|
||||
|
||||
<?php get_template_part("template-parts/home/main-item") ?>
|
||||
<?php //get_template_part("template-parts/home/main-item");
|
||||
cached_get_template_part( 'template-parts/home/main-item' );
|
||||
?>
|
||||
|
||||
<?php get_template_part("template-parts/home/colon-item") ?>
|
||||
<?php //get_template_part("template-parts/home/colon-item");
|
||||
cached_get_template_part( 'template-parts/home/colon-item' );
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -22,7 +27,8 @@
|
||||
</div>
|
||||
|
||||
|
||||
<?php get_template_part("template-parts/home/list-items") ?>
|
||||
<?php //get_template_part("template-parts/home/list-items") ?>
|
||||
<?php cached_get_template_part( 'template-parts/home/list-items' ); ?>
|
||||
|
||||
|
||||
<?php get_template_part("template-parts/home/ajax-load-more") ?>
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
<div id="sticky-wrapper" class="sticky-wrapper position-relative">
|
||||
|
||||
<div class="header__nav__stick stick js-stick-header js-is-sticky sticky-element-is-a-child-of-parent d-none d-md-block">
|
||||
|
||||
|
||||
<div class="header__nav header__nav--index clearfix">
|
||||
|
||||
@@ -102,6 +103,8 @@
|
||||
|
||||
</li>
|
||||
|
||||
<div class="logo-stick"><a href="https://profile.ru"><img src="https://cdn.profile.ru/wp-content/themes/profile/assets/img/profile-logo-delovoy.svg"></a></div>
|
||||
|
||||
<?php get_template_part("template-parts/nav/header-nav-main") ?>
|
||||
|
||||
</ul>
|
||||
|
||||
@@ -10,12 +10,10 @@
|
||||
|
||||
<?php foreach ( $authors as $author ): ?>
|
||||
|
||||
<a class="article__author" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" itemprop="author" itemscope itemtype="https://schema.org/Person">
|
||||
<a class="article__author" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>">
|
||||
|
||||
<?= $author->display_name; ?>
|
||||
|
||||
<meta itemprop="name" content="<?= htmlspecialchars($author->display_name); ?>" />
|
||||
<link itemprop="url" href="<?= get_author_posts_url( $author->ID, $author->user_nicename ); ?>" />
|
||||
|
||||
</a>
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<!--[single/post-most-popular-item]-->
|
||||
|
||||
<div class="col-12 col-md-4 d-none" data-id="<?= get_the_ID() ?>">
|
||||
<?php $post_id = get_the_ID();?>
|
||||
|
||||
<a class="partners__item d-flex d-md-block" href="<?= the_permalink() ?>">
|
||||
<div class="col-12 col-md-4 d-none" data-id="<?php echo $post_id ?>">
|
||||
|
||||
<a class="partners__item d-flex d-md-block" href="<?php the_permalink() ?>">
|
||||
|
||||
<?php //get_template_part("template-parts/micro/post"); ?>
|
||||
|
||||
@@ -10,11 +12,19 @@
|
||||
|
||||
<figure>
|
||||
|
||||
<img loading="lazy"
|
||||
<?php if ( has_post_thumbnail($post_id) ): ?>
|
||||
<img loading="lazy"
|
||||
itemprop="image"
|
||||
class="d-block"
|
||||
src="<?= the_post_thumbnail_url("thumb-264"); ?>"
|
||||
alt="<?= htmlspecialchars( get_the_title() ) ?>" />
|
||||
<?php else:?>
|
||||
<img loading="lazy"
|
||||
itemprop="image"
|
||||
class="d-block"
|
||||
src="<?= wp_get_attachment_image_url(1357368, 'thumb-264');?>"
|
||||
alt="<?= htmlspecialchars( get_the_title() ) ?>" />
|
||||
<?php endif?>
|
||||
|
||||
</figure>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user