add folder EN

This commit is contained in:
argoexpert press
2024-05-24 21:37:57 +03:00
parent 4fa7a19433
commit 009f8e40c2
22 changed files with 732 additions and 80 deletions

View File

@@ -1,7 +1,7 @@
<?php get_header( 'en' ); ?>
<div class="content-middle articles-wrapper">
<?php include(get_template_directory().'/partials/pinned-post-mob.php');?>
<?php include(get_template_directory().'/en/pinned-post-mob-en.php');?>
<?php get_template_part('partials/rubrics-mobile'); ?>
<div class="articles-preview">
<?php
@@ -12,11 +12,11 @@
'orderby' => 'date', // сортировка по дате
'order' => 'DESC', // по убыванию (сначала новые)
'ignore_sticky_posts' => 1,
'cat' => get_expression_en()
'cat' => EN_PARTS
);
$query = new WP_Query($args);
?>
<?php get_template_part('partials/post-list', null, ['large_first_image' => false, 'query' => $query]); ?>
<?php get_template_part('en/post-list-en', null, ['large_first_image' => false, 'query' => $query]); ?>
</div>
<button class="articles-preview__show-next">More Read</button>
</div>