update theme

This commit is contained in:
2024-03-12 09:16:19 +03:00
parent 10722da013
commit bef7aac0d5
74 changed files with 2018 additions and 2417 deletions

View File

@@ -3,7 +3,12 @@
Template Name: Шаблон страницы рекламодателей
*/
$advertisers = get_post_query('advertiser', 10, 'ASC', '');
$advertisers = new WP_Query([
'post_type' => 'advertiser',
'posts_per_page' => 10,
'orderby' => 'date',
'order' => 'ASC'
]);
?>
@@ -14,9 +19,9 @@ $advertisers = get_post_query('advertiser', 10, 'ASC', '');
<h1 class="section-title__title"><?= the_title() ?></h1>
</div>
<div class="articles-preview">
<? get_template_part('content-advertiser', null, ['advertiser' => $advertisers])?>
<? get_template_part('content-advertiser', null, ['advertiser' => $advertisers]) ?>
</div>
<a href="<?= home_url()?>" class="articles-preview__show-next">На главную</a>
<a href="<?= home_url() ?>" class="articles-preview__show-next">На главную</a>
<div class="articles__spacer-container">
<div class="articles__spacer"></div>
<div class="articles__spacer"></div>
@@ -24,4 +29,4 @@ $advertisers = get_post_query('advertiser', 10, 'ASC', '');
</div>
<?php
get_footer(); ?>
get_footer(); ?>

View File

@@ -3,8 +3,12 @@
Template Name: Шаблон страницы партнёров
*/
$partners = get_post_query('partners', 10, 'DESC', '');
$partners = new WP_Query([
'post_type' => 'partners',
'posts_per_page' => 10,
'orderby' => 'date',
'order' => 'DESC'
]);
?>
<?php get_header(); ?>
@@ -35,5 +39,4 @@ $partners = get_post_query('partners', 10, 'DESC', '');
<? custom_pagination($partners); ?>
</div>
<?php
get_footer(); ?>
<?php get_footer(); ?>