add folder EN
This commit is contained in:
24
en/category-en-sub.php
Normal file
24
en/category-en-sub.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php get_header( 'en' ); ?>
|
||||
<div class="content-middle articles-wrapper">
|
||||
<?php get_template_part('partials/rubrics-mobile'); ?>
|
||||
<div class="section-title desktop">
|
||||
<?php if (is_category()) : ?>
|
||||
<h1 class="section-title__title"><?= get_queried_object()->name ?></h1>
|
||||
<?php endif; ?>
|
||||
</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' => 5,
|
||||
'paged' => $paged,
|
||||
'category__in' => get_queried_object_id()
|
||||
);
|
||||
$query = new WP_Query($args);
|
||||
?>
|
||||
<?php get_template_part('en/post-list-en', null, ['query' => $query]); ?>
|
||||
</div>
|
||||
<?php custom_pagination(); ?>
|
||||
</div>
|
||||
<?php get_footer( 'en' ); ?>
|
||||
Reference in New Issue
Block a user