diff --git a/wp-content/themes/cosmopet/templates/pet-card.twig b/wp-content/themes/cosmopet/templates/profile/pet-card.twig similarity index 84% rename from wp-content/themes/cosmopet/templates/pet-card.twig rename to wp-content/themes/cosmopet/templates/profile/pet-card.twig index b0c76fc..5ad0646 100644 --- a/wp-content/themes/cosmopet/templates/pet-card.twig +++ b/wp-content/themes/cosmopet/templates/profile/pet-card.twig @@ -3,21 +3,21 @@
{{ function('get_the_title', pet_id) }}
+{{ function('get_the_title', item.id) }}
{{ fn('pll_e', 'Breed') }}:
-{{ function('get_field', 'breed', pet_id) }}
+{{ function('get_field', 'breed', item.id) }}
{{ fn('pll_e','Weight') }}:
- {% set weight_key = function('get_field', 'weight', pet_id) %} + {% set weight_key = function('get_field', 'weight', item.id) %} {% if weight_key == 'below_1_5' %}{{ fn('pll_e', 'from 0,5 kg to 1,5 kg') }} {% elseif weight_key == '1_5-3' %}{{ fn('pll_e', 'from 1.5 to 3 kg') }} {% elseif weight_key == '3-5' %}{{ fn('pll_e', 'from 3 to 5 kg') }} @@ -32,11 +32,11 @@
{{ fn('pll_e', 'Age') }}:
- {% set age_key = function('get_field', 'old', pet_id) %} + {% set age_key = function('get_field', 'old', item.id) %} {% if age_key == 'normal' %}{{ fn('pll_e', 'Adult (from 1 year to 7 years)') }} {% elseif age_key == 'old' %}{{ fn('pll_e', 'Elderly (from 7 to 12 years)') }} {% elseif age_key == 'very_old' %}{{ fn('pll_e', 'Aging (12 years and older)') }} @@ -45,12 +45,12 @@
{{ fn('pll_e', 'Birthday') }}:
- {{ function('get_field', 'day', pet_id) }}.{{ zero }}{{ month }}.{{ function('get_field', 'year', pet_id) }} + {{ function('get_field', 'day', item.id) }}.{{ zero }}{{ month }}.{{ function('get_field', 'year', item.id) }}
{{ fn('pll_e', 'Activity') }}:
- {% set activity_key = function('get_field', 'activity', pet_id) %} + {% set activity_key = function('get_field', 'activity', item.id) %} {% if activity_key == 'low' %}{{ fn('pll_e', 'Low') }} {% elseif activity_key == 'moderate' %}{{ fn('pll_e', 'Moderate') }} {% elseif activity_key == 'high' %}{{ fn('pll_e', 'High') }} @@ -66,14 +66,14 @@
{{ fn('pll_e', 'Sterilized') }}
{{ fn('pll_e', 'Редактировать питомца') }} {{ item.title }}
+ + +