Initial commit

This commit is contained in:
2024-03-01 17:47:03 +03:00
commit 10722da013
227 changed files with 13356 additions and 0 deletions

28
templates/materials.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
/*
Template Name: Шаблон страницы материалы
*/
?>
<?php get_header(); ?>
<div class="content-middle articles-wrapper">
<?php get_template_part('partials/rubrics-mobile'); ?>
<div class="section-title desktop">
<h1 class="section-title__title">Материалы</h1>
</div>
<div class="articles-preview">
<?php
$paged = (get_query_var('paged')) ? absint(get_query_var('paged')) : 1;
$args = array(
'post_type' => 'post',
'posts_per_page' => 10,
'paged' => $paged
);
$query = new WP_Query($args);
?>
<?php get_template_part('partials/post-list', null, ['query' => $query, 'large_first_image' => false]); ?>
</div>
<?php custom_pagination($query); ?>
</div>
<?php get_footer(); ?>