task 17075 | внес правки от 16.10
This commit is contained in:
1 parent
9ab584cba5
commit
3e62e846fd
3 files changed
+14
-10
No files matched your search
@@ -4146,6 +4146,8 @@ h4 {
|
|||||||
top: 112px;
|
top: 112px;
|
||||||
}
|
}
|
||||||
.article-toc {
|
.article-toc {
|
||||||
|
height: 46vh;
|
||||||
|
|
||||||
padding: 25px 30px;
|
padding: 25px 30px;
|
||||||
background-color: var(--color-light);
|
background-color: var(--color-light);
|
||||||
border-radius: var(--radius-sm);
|
border-radius: var(--radius-sm);
|
||||||
@@ -4168,8 +4170,8 @@ h4 {
|
|||||||
width: 0;
|
width: 0;
|
||||||
}
|
}
|
||||||
.article-toc__list.is-scrollable {
|
.article-toc__list.is-scrollable {
|
||||||
padding-right: 10px;
|
|
||||||
scrollbar-width: auto;
|
scrollbar-width: auto;
|
||||||
|
height: 83%;
|
||||||
}
|
}
|
||||||
@-moz-document url-prefix() {
|
@-moz-document url-prefix() {
|
||||||
.article-toc__list.is-scrollable {
|
.article-toc__list.is-scrollable {
|
||||||
@@ -6328,6 +6330,9 @@ h4 {
|
|||||||
background: var(--color-light);
|
background: var(--color-light);
|
||||||
box-shadow: 0 2px 12px color-mix(in srgb, var(--color-dark) 8%, transparent);
|
box-shadow: 0 2px 12px color-mix(in srgb, var(--color-dark) 8%, transparent);
|
||||||
}
|
}
|
||||||
|
.h-article-cards__item:last-child:nth-child(odd) {
|
||||||
|
grid-column: 1 / -1;
|
||||||
|
}
|
||||||
|
|
||||||
.h-article-cards .h-article-cards__item p {
|
.h-article-cards .h-article-cards__item p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ function hantico_schema_graph($graph) {
|
|||||||
} else {
|
} else {
|
||||||
$description = $description ?: (get_field('brief_description', $post_id) ?: get_field('article_descr', $post_id));
|
$description = $description ?: (get_field('brief_description', $post_id) ?: get_field('article_descr', $post_id));
|
||||||
$article = [
|
$article = [
|
||||||
'@type' => 'BlogPosting', '@id' => $url . '#article', 'url' => $url,
|
'@type' => 'Article', '@id' => $url . '#article', 'url' => $url,
|
||||||
'headline' => hantico_schema_text(get_the_title($post_id)),
|
'headline' => hantico_schema_text(get_the_title($post_id)),
|
||||||
'datePublished' => get_post_time('c', true, $post_id),
|
'datePublished' => get_post_time('c', true, $post_id),
|
||||||
'dateModified' => get_post_modified_time('c', true, $post_id),
|
'dateModified' => get_post_modified_time('c', true, $post_id),
|
||||||
@@ -160,13 +160,12 @@ function hantico_schema_graph($graph) {
|
|||||||
if ($image) {
|
if ($image) {
|
||||||
$article['image'] = $image;
|
$article['image'] = $image;
|
||||||
}
|
}
|
||||||
$author_id = (int) get_post_field('post_author', $post_id);
|
$article['author'] = [
|
||||||
$author = get_userdata($author_id);
|
'@type' => 'Organization',
|
||||||
if ($author && $author->display_name) {
|
'@id' => home_url('/about/#editorial'),
|
||||||
$article['author'] = strcasecmp($author->display_name, 'Hantico') === 0
|
'name' => 'Редакция Hantico',
|
||||||
? ['@id' => $organization_id]
|
'url' => home_url('/about/'),
|
||||||
: ['@type' => 'Person', '@id' => home_url('/#author-' . $author_id), 'name' => $author->display_name];
|
];
|
||||||
}
|
|
||||||
if ($description) {
|
if ($description) {
|
||||||
$article['description'] = hantico_schema_text($description);
|
$article['description'] = hantico_schema_text($description);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ Template Name: Блог
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="blog-header__action">
|
<div class="blog-header__action">
|
||||||
<a href="/about/" class="blog-item__read-btn btn btn--md btn--transp-red ">О компании</a>
|
<a href="/about/" class="blog-item__read-btn btn btn--md btn--transp-red ">О редакции</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|||||||
Reference in new issue
Block a user