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..17f70c2 --- /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..30584f6 --- /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()) { + ?> +
:
+ +:
+ +:
+ +:
+ +:
+ ++ Удаление товара из корзины: 5с +
+ + + ` + if(localeValue == 'en_US'){ + var layout = ` ++ Removing product from cart: 5s +
+ + + ` + } + + var old_html = $(this).closest('.modal-basket__item').html() + $(this).closest('.modal-basket__item').addClass('.modal-basket__item--return').html(layout) + var title = $(this).closest('.cart_item').find('.modal-basket-item__title').html() + + + var timerVal = 5; + + var interval = setInterval(function(){ + timerVal -= 1; + if (timerVal > 0){ + $(`#${key}_timer`).html(timerVal) + } + else{ + + dataLayer.push({ + "ecommerce": { + "currencyCode": "RUB", + "remove": { + "products": [ + { + "id": p_ID, + "name": title, + "quantity": quantity, + } + ] + } + } + }); + var input = 0; + var productID = key; + + var data = { + action: 'get_cartprice', + quantity: input, + product: productID + }; + $.ajax({ + type: 'post', + url: '/wp-admin/admin-ajax.php', + data: data, + beforeSend: function (response) { + // $thisbutton.removeClass('added').addClass('loading'); + }, + complete: function (response) { + // $thisbutton.addClass('added').removeClass('loading'); + }, + success: function (response) { + + if(response['cart_count'] > 0){ + $('.mini-profile__button--counter').removeClass('disabled').html(response['cart_count']) + } + else{ + $('.mini-profile__button--counter').addClass('disabled').html(response['cart_count']) + } + }, + }); + $(`#${key}_timer`).closest('.modal-basket__item').remove() + if (Number(wc_cart_summary_upd()) > 0){ + $('#cart_total').html(wc_cart_summary_upd()) + } + else{ + var tmpl = `Корзина
+Ваша корзина пуста
+Cart
+Your cart is empty
++ Removing an item from the cart: 5с +
+Не удалось получить доступные методы доставки!
Укажите свой город для получения доступных методов.
+ {{ product.get_price }} {{ fn('get_woocommerce_currency_symbol') }} +
+ + {% if product.is_on_sale() %} ++ {{ product.get_regular_price }} {{ fn('get_woocommerce_currency_symbol') }} +
++ {{ ((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', 'вашему питомцу может понравиться') }} +
+ +Данной страницы не существует
+Данной страницы не существует
На главную {% elseif current_lang == 'en' %}+ +
++ ID, 'billing_phone', true ); + + if($first_name || $last_name): + echo $first_name . ' ' . $last_name; + else: + ?> + + + +
+:
++ + + +
+:
+ user_email): ?> +user_email ?>
+ ++ +
+ + +
+ + + +
:
++ + + + + +
++ +
+ , +
+