diff --git a/category-partners-en.php b/en/category-partners-en.php similarity index 100% rename from category-partners-en.php rename to en/category-partners-en.php diff --git a/en/post-list-en.php b/en/post-list-en.php index 1b8dc30..e118cd3 100644 --- a/en/post-list-en.php +++ b/en/post-list-en.php @@ -7,15 +7,7 @@ if ($query->have_posts()) { while ($query->have_posts()) { $post_count++; $query->the_post(); - get_template_part('en/content', 'post-en', ['full_width' => $post_count === 1 && $large_first_image]); - if ($post_count === ($large_first_image ? 5 : 4)) : ?> -
- - + get_template_part('en/content', 'post-en', ['full_width' => $post_count === 1 && $large_first_image]);?> term_id == 762) { //parthers + $new_template = locate_template('en/category-partners-en.php'); + if ($new_template) { + return $new_template; + } + } + // Проверяем, является ли текущая категория подрубрикой "EN" $parent_id = $category->parent; if ($parent_id && $parent_id == get_cat_ID('EN')) { diff --git a/header.php b/header.php index 412799b..c2686b4 100644 --- a/header.php +++ b/header.php @@ -72,7 +72,7 @@ height="0" width="0" style="display:none;visibility:hidden"> - +For advertising on our web-site and social media:
+