diff --git a/wp-content/themes/cosmopet/modules/footer/module-controller.php b/wp-content/themes/cosmopet/modules/footer/module-controller.php index e1d0f4a..82f4e99 100644 --- a/wp-content/themes/cosmopet/modules/footer/module-controller.php +++ b/wp-content/themes/cosmopet/modules/footer/module-controller.php @@ -1,188 +1,189 @@ -Hello, {$first_name} {$last_name}!"; - } else { - $html = "
{{ __('Breed', 'woodmart') }}:
+{{ pll_e('Breed') }}:
{{ function('get_field', 'breed', pet_id) }}
{{ __('Weight', 'woodmart') }}:
-{{ w }}
+{{ pll_e('Weight') }}:
++ {% set weight_key = function('get_field', 'weight', pet_id) %} + {% if weight_key == 'below_1_5' %}{{ pll_e('from 0,5 kg to 1,5 kg') }} + {% elseif weight_key == '1_5-3' %}{{ pll_e('from 1.5 to 3 kg') }} + {% elseif weight_key == '3-5' %}{{ pll_e('from 3 to 5 kg') }} + {% elseif weight_key == '5-8' %}{{ pll_e('from 5 to 8 kg') }} + {% elseif weight_key == '8-11' %}{{ pll_e('from 8 to 11 kg') }} + {% elseif weight_key == '11-15' %}{{ pll_e('from 11 to 15 kg') }} + {% elseif weight_key == '15-20' %}{{ pll_e('from 15 to 20 kg') }} + {% elseif weight_key == '20-25' %}{{ pll_e('from 20 to 25 kg') }} + {% elseif weight_key == '25-35' %}{{ pll_e('from 25 to 35 kg') }} + {% elseif weight_key == 'more_35' %}{{ pll_e('More than 35 kg') }} + {% endif %} +
{{ __('Age', 'woodmart') }}:
-{{ old }}
+{{ pll_e('Age') }}:
++ {% set age_key = function('get_field', 'old', pet_id) %} + {% if age_key == 'normal' %}{{ pll_e('Adult (from 1 year to 7 years)') }} + {% elseif age_key == 'old' %}{{ pll_e('Elderly (from 7 to 12 years)') }} + {% elseif age_key == 'very_old' %}{{ pll_e('Aging (12 years and older)') }} + {% elseif age_key == 'baby' %}{{ pll_e('Baby (from 0 to 1 year)') }} + {% endif %} +
{{ __('Birhtday', 'woodmart') }}:
+{{ pll_e('Birthday') }}:
{{ function('get_field', 'day', pet_id) }}.{{ zero }}{{ month }}.{{ function('get_field', 'year', pet_id) }}
@@ -67,237 +56,26 @@ {% endif %}{{ __('Activity', 'woodmart') }}:
-{{ act }}
+{{ pll_e('Activity') }}:
++ {% set activity_key = function('get_field', 'activity', pet_id) %} + {% if activity_key == 'low' %}{{ pll_e('Low') }} + {% elseif activity_key == 'moderate' %}{{ pll_e('Moderate') }} + {% elseif activity_key == 'high' %}{{ pll_e('High') }} + {% endif %} +
{{ __('Sterilized', 'woodmart') }}
+{{ pll_e('Sterilized') }}
{{ __('Edit pet', 'woodmart') }} {{ post.post_title }}
- - -{{ fn('pll_e', 'Добавить питомца') }}
+ + +Подписка на корм
+ ++ Спасибо за интерес к нашему новому виду услуг, данная функция находится в разработке, если вы хотите узнать первыми о запуске подпишитесь на рассылку. +
+Изменить мои данные
+ + +