diff --git a/wp-content/themes/cosmopet/archive-blog_author.php b/wp-content/themes/cosmopet/archive-blog_author.php new file mode 100644 index 0000000..bfd7e5e --- /dev/null +++ b/wp-content/themes/cosmopet/archive-blog_author.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/wp-content/themes/cosmopet/comments.php b/wp-content/themes/cosmopet/comments.php new file mode 100644 index 0000000..386d6c1 --- /dev/null +++ b/wp-content/themes/cosmopet/comments.php @@ -0,0 +1,211 @@ + get_the_ID(), + 'status' => 'approve', + 'parent' => $comment_id, + 'order' => 'ASC' + )); + + if ($replies) { + $count += count($replies); + foreach ($replies as $reply) { + $count += count_nested_replies($reply->comment_ID); + } + } + + return $count; +} + +if (post_password_required()) { + return; +} + +if (!is_user_logged_in()) { + ?> +
+ {{ product.get_title }} +
+ ++ {{ product.get_price }} +
+ + {% if product.is_on_sale() %} ++ {{ product.get_regular_price }} +
++ {{ ((product.get_regular_price - product.get_price) / product.get_regular_price * 100)|round }} +
++ {{ function('pll_e', 'ОПИСАНИЕ') }} +
++ {{ product.get_description() }} +
++ {{ function('pll_e', 'СОСТАВ') }} +
++ {{ product_meta.composition }} +
++ {{ function('pll_e', 'РЕКОМЕНДАЦИИ ПО КОРМЛЕНИЮ') }} +
+{{ product_meta.feeding_recommendations_table.header.0 is iterable ? product_meta.feeding_recommendations_table.header.0|join(', ') : product_meta.feeding_recommendations_table.header.0 }}
+ {% for row in product_meta.feeding_recommendations_table.body %} +{{ row.0 is iterable ? row.0|join(', ') : row.0 }}
+ +{{ product_meta.feeding_recommendations_table.header.1 is iterable ? product_meta.feeding_recommendations_table.header.1|join(', ') : product_meta.feeding_recommendations_table.header.1 }}
+ {% for row in product_meta.feeding_recommendations_table.body %} +{{ row.1 is iterable ? row.1|join(', ') : row.1 }}
+ +{{ product_meta.feeding_recommendations_table.header.2 is iterable ? product_meta.feeding_recommendations_table.header.2|join(', ') : product_meta.feeding_recommendations_table.header.2 }}
+ {% for row in product_meta.feeding_recommendations_table.body %} +{{ row.2 is iterable ? row.2|join(', ') : row.2 }}
++ {{ function('pll_e', 'РЕКОМЕНДАЦИИ ПО КОРМЛЕНИЮ') }} +
++ {{ function('pll_e', 'ПИЩЕВАЯ ЦЕННОСТЬ') }} +
+{{ function('pll_e', 'ПИЩЕВАЯ ЦЕННОСТЬ') }}
+ {{ product_meta.nutritional_value }} +{{ function('pll_e', 'ВИТАМИНЫ НА КГ') }}
+ {{ product_meta.vitamins }} +{{ function('pll_e', 'ПИТАТЕЛЬНЫЕ ДОБАВКИ НА КГ') }}
+ {{ product_meta.additives }} +{{ function('pll_e', 'ЭНЕРГЕТИЧЕСКАЯ ЦЕННОСТЬ НА 100 ГРАММ') }}
+{{ product_meta.energy_value }}
+{{ function('pll_e', 'Важно') }}
++ {{ product_meta.important }} +
++ {{ function('pll_e', 'вашему питомцу может понравиться') }} +
+ +{{post.date}}
-{{ function('pll_e', 'время чтения') }}: {{post.reading_time}}
- - {% if post.get_author_name %} -{{post.date}}
+{{ function('pll_e', 'время чтения') }}: {{post.reading_time}}
+ + {% if post.get_author_name %} + + {% endif %} +{{_post.date}}
{{_post.reading_time}}
{{ post.date|date('d.m.Y') }}
{{ function('pll_e', 'время чтения') }}: {{ post.reading_time|default('5 мин') }}
{{post.date}}
-{{ function('pll_e', 'время чтения') }}: {{post.reading_time}}
-{{post.date}}
+{{ function('pll_e', 'время чтения') }}: {{post.reading_time}}
+{{ post.date|date('d.m.Y') }}
+{{ function('pll_e', 'время чтения:') }} {{ post.reading_time|default(function('pll_e', '5 мин.')) }}
+{{ post.date|date('d.m.Y') }}
+{{ function('pll_e', 'время чтения:') }} {{ post.reading_time|default(function('pll_e', '5 мин.')) }}
++ {{ comment.content }} +
++ {{ function('pll_e', 'Подписываясь на рассылку, я даю согласие на обработку персональных данных, на получение рекламных сообщений и новостей о товарах и услугах') }}
+{{sub_text}}
+- {{ function('pll_e', 'Подписываясь на рассылку, я даю согласие на обработку персональных данных, на получение рекламных сообщений и новостей о товарах и услугах') }}
-{{sub_text}}
-{{ post._price() }}
+ {% if post._sale_price %} + + {{ function('pll_e', 'Распродажа %') }} + + {% endif %}
+ , +
+