templates/Recipe/recipes.html.twig line 1

  1. {% extends "layout/layout.html.twig" %}
  2. {% block content %}
  3.   {% set locale = app.request.locale %}
  4. {% if locale == 'en_GB' %}
  5.     {% set locale = 'en' %}
  6. {% endif %}
  7.   <span class = "pagetype d-none" >Main Recipe Page</span>
  8.       <section class="recipe-top">
  9.       <!--Start Banner Recipe-->
  10.       <div class="banner-recipe">
  11.         <div class="rec-hm-cont recipe-edited-container">
  12.           <h2 class="gtm-contentval">{{ "recipebannertext"|trans }}</h2>
  13.           <h1 class="gtm-contentval">{{ "recipehome"|trans }}</h1>
  14.           <form method ="get" action="/{{locale}}/{{ "recipes_search"|trans }}">
  15.           <div class="search-box">
  16.             <input type="text" name="q" placeholder="{{ "searchplaceholder"|trans }}">
  17.             <!-- <span><i class="fa fa-filter" aria-hidden="true"></i></span> -->
  18.             <button class="search-btn" type="submit">
  19.               <i class="fa fa-search"></i>
  20.             </button>
  21.           </div>
  22.           </form>
  23.           <div class="adv-filter" style ="display: block !important;">
  24.             <button class="btn btn-secondary" data-toggle="modal" data-target="#filterModal">
  25.               <i class="fa fa-filter"></i>
  26.                {{ "advancebtn"|trans }}
  27.             </button> 
  28.           </div>
  29.           <div class="suggestion-box">
  30.           {% for tag in tags %}
  31.             {# <!-- href="/<?php echo $weblink?>/searchbytag/<= $tag->getTag() ?>/" --> #}
  32.             <a href="/{{locale}}/{{ "searchbytag"|trans }}/{{tag.url}}" class="btn-secondary" >{{tag.tag}}</a>
  33.           {% endfor %}
  34.           </div>
  35.         </div>{{ pimcore_image("RecipehomebannerImg") }}</div>
  36.       <!--End Banner Recipe-->
  37.      
  38.       <div class="d-none d-md-block row custom-slider fill-dots top-feature-slider">
  39.       {% for  key , recipe in recipes %}
  40.         {% if key < 4 %}
  41.          
  42.         <div class="col-xl-3 slide " data-aos="fade-up">
  43.           <div class="slide-box R-slide-wrap">
  44.             <figure class="similar-img">
  45.             {% if recipe.featured_image is defined %}
  46.             <a href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{recipe.url}}"><img src="{{recipe.featured_image}}" alt="{{recipe.name}} Recipe" class="img-fluid"></a>
  47.               {% endif %}
  48.             </figure>
  49.             <a class="remove-anchor-style1" href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{recipe.url}}"><h3 class="similar-title">{{recipe.name}}</h3></a>
  50.                     {% set totalrating = 0 %}
  51.                        {% set totalreviews = 0 %}
  52.                         {% for i in 0..recipe|length -1  %}
  53.                            
  54.                                 {% for reviews in recipe_reviews %}
  55.                                    {% if reviews.recipe_id.id == recipe.id %}
  56.                                     {% set totalrating = totalrating + reviews.rating %}
  57.                                     {% set totalreviews = totalreviews + 1  %}
  58.                                    {% endif %}
  59.                                 {% endfor %}
  60.                             
  61.                             
  62.                         {% endfor %}
  63.                                     {% if totalreviews > 0 %}
  64.                                     {% set rating =  (totalrating / totalreviews)|round %}
  65.                                     {% else %}
  66.                                         {% set rating =  0 %}
  67.                                     {% endif %}
  68.                     <!--Start Rating Star-->
  69.                
  70.                  <div class="rating-holder">
  71.                     <fieldset class="ratings rating-sm">
  72.                        {% if rating == '5' %} 
  73.                     <input type="radio" value="5" checked>
  74.                       {% else %}
  75.                     <input type="radio"  value="5" >
  76.                     {% endif %} 
  77.                     <label class="full" for="1rviewar5" title="5 stars"></label>
  78.                    {% if rating == '4' %} 
  79.                     <input type="radio"  value="4" checked>
  80.                      {% else %}
  81.                     <input type="radio"  value="4" >
  82.                    {% endif %} 
  83.                     <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  84.                    {% if rating == '3' %} 
  85.                     <input type="radio"  value="3" checked>
  86.                      {% else %}
  87.                     <input type="radio"  value="3" >
  88.                    {% endif %} 
  89.                     <label class="full" for="1reviewsar3" title="3 stars"></label>
  90.                    {% if rating == '2' %} 
  91.                     <input type="radio"  value="2" checked>
  92.                       {% else %}
  93.                     <input type="radio"  value="2" >
  94.                     {% endif %} 
  95.                     <label class="full" for="1reviestar2" title="2 stars"></label>
  96.                    {% if rating == '1' %} 
  97.                     <input type="radio"  value="1" checked>
  98.                      {% else %}
  99.                     <input type="radio"  value="1">
  100.                    {% endif %} 
  101.                     <label class="full" for="1reviewar1" title="1 star"></label>
  102.                     
  103.                   </fieldset>
  104.             </div>
  105.           
  106.                     <!--End Rating Star-->
  107.             <div class="serving-info">
  108.               <ul class="list-unstyled">
  109.                 <li class="time">{{recipe.time}} {{"mins"|trans }}</li>
  110.                
  111.                 {% if recipe.getServing() == '1' %}
  112.                     <li class="serve">{{ recipe.getServing() }}
  113.                     {{ recipe.getServing2() ? '- ' ~ recipe.getServing2() : '' }}
  114.                     {{ 'Serving'|trans }}</li>
  115.                 {% else %}
  116.                     <li class="serve">{{ recipe.getServing() }}
  117.                     {{ recipe.getServing2() ? '- ' ~ recipe.getServing2() : '' }}
  118.                     {{ 'Servings'|trans }}</li>
  119.                 {% endif %}
  120.               </ul>
  121.             </div>
  122.           </div>
  123.         </div>
  124.             {% endif %}
  125.        {% endfor %}
  126.       </div>
  127.       <!-- mobile top-feature-slider  -->
  128.          
  129.       <div class="d-block d-lg-none d-md-none d-m row custom-slider fill-dots top-feature-slider">
  130.          {% for  key , recipe in recipes %}
  131.             {% if key < 4 %}
  132.         <div class="col-xl-3 slide" data-aos="fade-up">
  133.           <div class="slide-box R-slide-wrap">
  134.             <figure class="similar-img">
  135.             {% if recipe.featured_image is defined %}
  136.                 <a href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{recipe.url}}"><img src="{{recipe.featured_image}}" alt="{{recipe.name}} Recipe" class="img-fluid"></a>
  137.               {% endif %}
  138.               </figure>
  139.             <a class="remove-anchor-style1" href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{recipe.url}}"><h3 class="similar-title">{{recipe.name}}</h3></a>
  140.                     {% set totalrating = 0 %}
  141.                        {% set totalreviews = 0 %}
  142.                         {% for i in 0..recipe|length -1  %}
  143.                            
  144.                                 {% for reviews in recipe_reviews %}
  145.                                    {% if reviews.recipe_id.id == recipe.id %}
  146.                                     {% set totalrating = totalrating + reviews.rating %}
  147.                                     {% set totalreviews = totalreviews + 1  %}
  148.                                    {% endif %}
  149.                                 {% endfor %}
  150.                         {% endfor %}
  151.                         {% if totalreviews > 0 %}
  152.                           {% set rating =  (totalrating / totalreviews)|round %}
  153.                         {% else %}
  154.                             {% set rating =  0 %}
  155.                         {% endif %}
  156.                     <!--Start Rating Star-->
  157.                
  158.                 <div class="rating-holder">
  159.                 <fieldset class="ratings rating-sm">
  160.                        {% if rating == '5' %} 
  161.                     <input type="radio" value="5" checked>
  162.                       {% else %}
  163.                     <input type="radio"  value="5" >
  164.                     {% endif %} 
  165.                     <label class="full" for="1rviewar5" title="5 stars"></label>
  166.                    {% if rating == '4' %} 
  167.                     <input type="radio"  value="4" checked>
  168.                      {% else %}
  169.                     <input type="radio"  value="4" >
  170.                    {% endif %} 
  171.                     <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  172.                    {% if rating == '3' %} 
  173.                     <input type="radio"  value="3" checked>
  174.                      {% else %}
  175.                     <input type="radio"  value="3" >
  176.                    {% endif %} 
  177.                     <label class="full" for="1reviewsar3" title="3 stars"></label>
  178.                    {% if rating == '2' %} 
  179.                     <input type="radio"  value="2" checked>
  180.                       {% else %}
  181.                     <input type="radio"  value="2" >
  182.                     {% endif %} 
  183.                     <label class="full" for="1reviestar2" title="2 stars"></label>
  184.                    {% if rating == '1' %} 
  185.                     <input type="radio"  value="1" checked>
  186.                      {% else %}
  187.                     <input type="radio"  value="1">
  188.                    {% endif %} 
  189.                     <label class="full" for="1reviewar1" title="1 star"></label>
  190.                     
  191.                   </fieldset>
  192.             </div>
  193.           
  194.                     <!--End Rating Star-->
  195.             <div class="serving-info">
  196.               <ul class="list-unstyled">
  197.                 <li class="time">{{recipe.time}} {{"mins"|trans }}</li>
  198.                  
  199.                  {% if recipe.getServing() == '1' %}
  200.                     <li class="serve">{{ recipe.getServing() }}
  201.                     {{ recipe.getServing2() ? '- ' ~ recipe.getServing2() : '' }}
  202.                     {{ 'Serving'|trans }}</li>
  203.                 {% else %}
  204.                     <li class="serve">{{ recipe.getServing() }}
  205.                     {{ recipe.getServing2() ? '- ' ~ recipe.getServing2() : '' }}
  206.                     {{ 'Servings'|trans }}</li>
  207.                 {% endif %}
  208.                        </ul>
  209.             </div>
  210.           </div>
  211.         </div>
  212.             {% endif %}
  213.        {% endfor %}
  214.       </div>
  215.       <!-- End mobile top-feature-slider  -->
  216.     </section>
  217.  <!--Start Recipe of the Day Section-->
  218.     
  219.     <!--End Recipe of the Day Section-->
  220.        <!--Start Featured Recipes-->
  221.     <section id="section06" class="home-section recipe-top similar-recipes featured-recipes">
  222.       <div class="container-xl custom-container-xl">
  223.         <div class="section-heading">
  224.           <h2 class="sub-xl-heading gtm-contentval">{{"FeaturedRecipes"|trans }}</h2>
  225.         </div>
  226.         <div class="filter-recipe">
  227.           <!-- <h4><?= $this->translate("Filterrecipesby"); ?></h4> -->
  228.           <div class="suggestion-box">
  229.           
  230.           {# <?php $arr = array('values');
  231.             foreach($this->tags as $tag){
  232.               foreach ($this->featuredrecipe as $key => $frecipe) { 
  233.                for($i=0$i<count($frecipe->getTags()); $i++){
  234.                  if($frecipe->getTags()[$i]->getTag() == $tag->getTag() ){
  235.                    if (in_array($tag->getTag(), $arr)){ } else { array_push($arr,$tag->getTag()); ?>
  236.               <!-- href="/<?php echo $weblink?>/searchbytag/featured/<= $tag->getTag() ?>" -->
  237.               <!-- <a class="btn-secondary fftag"  data-tag="<?= $tag->getTag() ?>" href="/<?php echo $weblink?>/searchbytag/<?= $tag->getUrl() ?>/" data-aos="fade-up" data-aos-duration="400"><?= $tag->getTag() ?></a> -->
  238.           <?php }  } } } }?> #}
  239.           </div>
  240.           <div class="adv-filter d-none">
  241.           <a href="/{{locale}}/recipes" data-aos="zoom-in-up">
  242.             <button class="btn btn-secondary"  data-aos="fade-up" data-aos-duration="500">
  243.               <i class="fa fa-search"></i>
  244.                {{"SearchRecipes"|trans }}
  245.             </button></a>
  246.           </div>
  247.         </div>
  248.         <!--Start Slider-->
  249.   
  250.         <div class="row custom-slider fill-dots featured-recipe-lg">
  251.         {% for key , frecipe in featuredrecipe %}
  252.         {% if  key < 8 %}
  253.           <div class="col-xl-3 slide" data-aos="zoom-in-up">
  254.             <div class="slide-box p-slide-wrap">
  255.               <figure class="similar-img">
  256.                 <a href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{frecipe.url}}" ><img src="{{frecipe.featured_image}}" alt="{{frecipe.name}} Recipe" class="img-fluid"></a>
  257.               </figure>
  258.               <a class="remove-anchor-style1" href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{frecipe.url}}" ><h3 class="similar-title">{{frecipe.name}}</h3></a>
  259.                      {% set totalrating = 0 %}
  260.                        {% set totalreviews = 0 %}
  261.                         {% for i in 0..frecipe|length -1  %}
  262.                            
  263.                                 {% for reviews in recipe_reviews %}
  264.                                    {% if reviews.recipe_id.id == frecipe.id %}
  265.                                     {% set totalrating = totalrating + reviews.rating %}
  266.                                     {% set totalreviews = totalreviews + 1  %}
  267.                                    {% endif %}
  268.                                 {% endfor %}
  269.                         {% endfor %}
  270.                         {% if totalreviews > 0 %}
  271.                         {% set rating =  (totalrating / totalreviews)|round %}
  272.                         {% else %}
  273.                           {% set rating =  0 %}
  274.                         {% endif %}
  275.                     <!--Start Rating Star-->
  276.                
  277.                 <div class="rating-holder">
  278.                       <fieldset class="ratings rating-sm">
  279.                        {% if rating == '5' %} 
  280.                     <input type="radio" value="5" checked>
  281.                       {% else %}
  282.                     <input type="radio"  value="5" >
  283.                     {% endif %} 
  284.                     <label class="full" for="1rviewar5" title="5 stars"></label>
  285.                    {% if rating == '4' %} 
  286.                     <input type="radio"  value="4" checked>
  287.                      {% else %}
  288.                     <input type="radio"  value="4" >
  289.                    {% endif %} 
  290.                     <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  291.                    {% if rating == '3' %} 
  292.                     <input type="radio"  value="3" checked>
  293.                      {% else %}
  294.                     <input type="radio"  value="3" >
  295.                    {% endif %} 
  296.                     <label class="full" for="1reviewsar3" title="3 stars"></label>
  297.                    {% if rating == '2' %} 
  298.                     <input type="radio"  value="2" checked>
  299.                       {% else %}
  300.                     <input type="radio"  value="2" >
  301.                     {% endif %} 
  302.                     <label class="full" for="1reviestar2" title="2 stars"></label>
  303.                    {% if rating == '1' %} 
  304.                     <input type="radio"  value="1" checked>
  305.                      {% else %}
  306.                     <input type="radio"  value="1">
  307.                    {% endif %} 
  308.                     <label class="full" for="1reviewar1" title="1 star"></label>
  309.                     
  310.                   </fieldset>
  311.               </div>
  312.           
  313.                     <!--End Rating Star-->
  314.               <div class="serving-info">
  315.                 <ul class="list-unstyled">
  316.                   <li class="time">{{frecipe.time}} {{"mins"|trans }}</li>
  317.                  
  318.                  {% if frecipe.getServing() == '1' %}
  319.                     <li class="serve">{{ frecipe.getServing() }}
  320.                     {{ frecipe.getServing2() ? '- ' ~ frecipe.getServing2() : '' }}
  321.                     {{ 'Serving'|trans }}</li>
  322.                 {% else %}
  323.                     <li class="serve">{{ frecipe.getServing() }}
  324.                     {{ frecipe.getServing2() ? '- ' ~ frecipe.getServing2() : '' }}
  325.                     {{ 'Servings'|trans }}</li>
  326.                 {% endif %}
  327.                   </ul>
  328.               </div>
  329.               <p>{{frecipe.description|striptags}}</p>
  330.             </div>
  331.           </div>
  332.           {% endif %}
  333.          {% endfor %}
  334.          </div>
  335.       <div class="row custom-slider similar-slider fill-dots featured-recipe-sm ">
  336.          {% for key , frecipe in featuredrecipe %}
  337.             {% if  key < 8 %}
  338.           <div class="col-xl-3 slide" data-aos="zoom-in-up">
  339.             <div class="slide-box p-slide-wrap">
  340.               <figure class="similar-img">
  341.                 <a href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{frecipe.url}}" ><img src="{{frecipe.featured_image}}" alt="{{frecipe.name}} Recipe" class="img-fluid"></a>
  342.               </figure>
  343.               <a class="remove-anchor-style1" href="/{{locale}}/{{ "all-recipes-link"|trans }}/{{frecipe.url}}" ><h3 class="similar-title">{{frecipe.name}}</h3></a>
  344.                     {% set totalrating = 0 %}
  345.                        {% set totalreviews = 0 %}
  346.                         {% for i in 0..frecipe|length -1  %}
  347.                            
  348.                                 {% for reviews in recipe_reviews %}
  349.                                    {% if reviews.recipe_id.id == frecipe.id %}
  350.                                     {% set totalrating = totalrating + reviews.rating %}
  351.                                     {% set totalreviews = totalreviews + 1  %}
  352.                                    {% endif %}
  353.                                 {% endfor %}  
  354.                         {% endfor %}
  355.                        {% if totalreviews > 0 %}
  356.                         {% set rating =  (totalrating / totalreviews)|round %}
  357.                         {% else %}
  358.                           {% set rating =  0 %}
  359.                         {% endif %}
  360.               
  361.                
  362.                 <div class="rating-holder">
  363.                       <fieldset class="ratings rating-sm">
  364.                        {% if rating == '5' %} 
  365.                     <input type="radio" value="5" checked>
  366.                       {% else %}
  367.                     <input type="radio"  value="5" >
  368.                     {% endif %} 
  369.                     <label class="full" for="1rviewar5" title="5 stars"></label>
  370.                    {% if rating == '4' %} 
  371.                     <input type="radio"  value="4" checked>
  372.                      {% else %}
  373.                     <input type="radio"  value="4" >
  374.                    {% endif %} 
  375.                     <label class="full" for="1reviwstar4" title=" 4 stars"></label>
  376.                    {% if rating == '3' %} 
  377.                     <input type="radio"  value="3" checked>
  378.                      {% else %}
  379.                     <input type="radio"  value="3" >
  380.                    {% endif %} 
  381.                     <label class="full" for="1reviewsar3" title="3 stars"></label>
  382.                    {% if rating == '2' %} 
  383.                     <input type="radio"  value="2" checked>
  384.                       {% else %}
  385.                     <input type="radio"  value="2" >
  386.                     {% endif %} 
  387.                     <label class="full" for="1reviestar2" title="2 stars"></label>
  388.                    {% if rating == '1' %} 
  389.                     <input type="radio"  value="1" checked>
  390.                      {% else %}
  391.                     <input type="radio"  value="1">
  392.                    {% endif %} 
  393.                     <label class="full" for="1reviewar1" title="1 star"></label>
  394.                     
  395.                   </fieldset>
  396.               </div>
  397.               <div class="serving-info">
  398.                 <ul class="list-unstyled">
  399.                   <li class="time">{{frecipe.time}} {{"mins"|trans }}</li>
  400.                  
  401.                  {% if frecipe.getServing() == '1' %}
  402.                     <li class="serve">{{ frecipe.getServing() }}
  403.                     {{ frecipe.getServing2() ? '- ' ~ frecipe.getServing2() : '' }}
  404.                     {{ 'Serving'|trans }}</li>
  405.                 {% else %}
  406.                     <li class="serve">{{ frecipe.getServing() }}
  407.                     {{ frecipe.getServing2() ? '- ' ~ frecipe.getServing2() : '' }}
  408.                     {{ 'Servings'|trans }}</li>
  409.                 {% endif %}
  410.                   </ul>
  411.               </div>
  412.               <p>{{frecipe.description|striptags}}</p>
  413.             </div>
  414.           </div>
  415.           {% endif %}
  416.          {% endfor %}
  417.           </div>
  418.      <!--End Slider-->
  419.         
  420.         <div class="btn-holder view-recieps-btn ">
  421.           <a href="/{{locale}}/{{ "all-recipes"|trans }}" class="btn btn-primary ico-btn" data-aos="zoom-in-up">
  422.             <i class="icon-dish"></i>
  423.             <span>{{ "ViewallRecipes"|trans }}</span>
  424.           </a>
  425.         </div>
  426.       </div>
  427.     </section>
  428.     <!--End Featured Recipes-->
  429.         <!--Start Chef Special-->
  430.     
  431.     <!--End Chef Special-->
  432.     
  433.     <!--Start World of Karak Section-->
  434.     <section id="section02" class="home-section karak-section last-section">
  435.       <div class="karak-section-holder">
  436.         <div class="section-heading">
  437.           <h2 class="sub-xl-heading">{{"KarakServingtheoriginaltastesince1955"|trans }}</h2>
  438.         </div>
  439.         <div class="karak-slider-holder">
  440.           <div class="container custom-container">
  441.             <div class="row">
  442.               <div class="col-xl-9">
  443.                 <h3 class="main-xl-heading">{{"EnjoyTheRich"|trans }}</h3>
  444.               </div>
  445.               <!-- <div class="karak-mobile-image">
  446.                 <img src="/static/assets/images/karakproducts.png" alt="">
  447.               </div> -->
  448.               <div class="col-xl-9 karak-slider-box">
  449.                 <div class="custom-slider fill-slider karak-slider">
  450.                 
  451.                 {% set count = 1 %}
  452.                 {% for key , product in products %} 
  453.                   {% set regions = product.regions %}  <!-- assign regins to valible -->
  454.                   {% set show = false %}
  455.                   {% if regions %}
  456.                       {% for key , region in regions %}
  457.                           {% if region in  groupids %}
  458.                             {% set show = true %}
  459.                           {% endif %}
  460.                       {% endfor %}
  461.                   {% endif %}
  462.                   {% if show %}
  463.                     {% if count <= 4 %}
  464.                   
  465.                 <div class="slide" data-aos="zoom-in-up">
  466.                     <div class="karak-box">
  467.                       <div class="row">
  468.                       <div class="col-md-5 col-xl-5 karak-img">
  469.                       
  470.                             {% if product.attributes()[0] is defined %}
  471.                           <a href="/{{locale}}/{{"products"|trans }}/{{product.attributes()[0].url}}"><img class="img-fluid"  alt="{{product.name}}" src="{{product.attributes()[0].images[0].path ~ product.attributes()[0].images[0].filename}}"
  472.                         xoriginal="{{product.attributes()[0].images[0].path ~ product.attributes()[0].images[0].filename}}" /></a>
  473.                         {% endif %}
  474.                          </div>
  475.                         <div class="col-md-7 col-xl-7 slide-product-info">
  476.                          {% if product.attributes()[0] is defined %}
  477.                         <a class="remove-anchor-style1 " href="/{{locale}}/{{"products"|trans }}{{product.attributes()[0].url}}"><h5>{{product.name}}</h5></a>
  478.                          {% endif %}
  479.                   <ul class="list-unstyled con-list">
  480.                   <!-- <php for($i=0;$i<count($product->getSizes()); $i++){ ?>
  481.                     <li><= $product->getSizes()[$i]['size']->getData() ?></li>
  482.                     <!- <li>160ml</li>
  483.                     <li>385ml</li> -->
  484.                     <!-- <php }?> -->
  485.                     {% for i , productAttr in  product.attributes %}
  486.                         {% if i < 3 %}
  487.                    
  488.                                 <!-- <li><= $product->getAttributes()[$i]->getSize() ?></li> -->
  489.                                 <li class="{{ i == 0 ? 'variantsbold' : '' }}"><a class="remove-anchor-style1 " href="/{{locale}}/{{"products"|trans }}/{{product.attributes()[0].url}}">{{productAttr.size}}</a></li>
  490.                            {% endif %}
  491.                         {% endfor %}
  492.                         {% if product.attributes %}
  493.                           {% set regionslinks = product.attributes[0].buttonlinks %}
  494.                                 {% set rlink =  [] %}
  495.                                 {% for key ,link in regionslinks %}
  496.                                     {% if link['country'].data == country %}
  497.                                         {% set rlink = link %}
  498.                                     {% endif %}
  499.                                 {% endfor %}
  500.                                 {% if not rlink %}
  501.                                     {% for key ,link in regionslinks %}
  502.                                         {% if link['country'].data == 'AE' %}
  503.                                             {% set rlink = link %}
  504.                                         {% endif %}
  505.                                     {% endfor %}
  506.                                 {% endif %}
  507.                                 {% if not rlink %}
  508.                                   {% set rlink = {
  509.                                       'lulu': { 'data': product.lulu },
  510.                                       'unioncool': { 'data': product.unioncool },
  511.                                       'amazon': { 'data': product.amazon },
  512.                                       'carrefour': { 'data': product.carrefour },
  513.                                       'c4': { 'data': '' },
  514.                                       'noon': { 'data': '' },
  515.                                       'danube': { 'data':'' },
  516.                                       'sultancenter': { 'data': '' },
  517.                                       'tawseel': { 'data': ''},
  518.                                       
  519.                                   } %}
  520.                                 {% endif %}
  521.                             {% endif %}
  522.                   </ul>
  523.                           <div class="link-holder">
  524.                             <button class="btn btn-primary ico-btn productbuynow "  data-lulu="{{ (rlink['lulu']) ? rlink['lulu'].data : '' }}"
  525.                 data-union="{{ (rlink['unioncool']) ? rlink['unioncool'].data : '' }}"
  526.                 data-amazon="{{ (rlink['amazon']) ? rlink['amazon'].data : '' }}"
  527.                 data-carrefour="{{ (rlink['carrefour']) ? rlink['carrefour'].data : '' }}"
  528.                   data-c4="{{ (rlink['c4']) ? rlink['c4'].data : '' }}"
  529.                   data-noon="{{ (rlink['noon']) ? rlink['noon'].data : '' }}"
  530.                   data-danube="{{ (rlink['danube']) ? rlink['danube'].data : '' }}"
  531.                   data-tawseel="{{ (rlink['tawseel']) ? rlink['tawseel'].data : '' }}"
  532.                   data-sultancenter="{{ (rlink['sultancenter']) ? rlink['sultancenter'].data : '' }}" tabindex="0"  data-aos="zoom-in-up">
  533.                               <i><img src="/static/assets/images/shopping-cart.svg" alt=""></i>
  534.                               <span>{{"buyNow"|trans }}</span>
  535.                             </button>
  536.                           </div>
  537.                         </div>
  538.                       </div>
  539.                     </div>
  540.                   </div>
  541.                   {% endif %}
  542.                {% endif %}
  543.             {% endfor %}
  544.                 </div>
  545.               </div>
  546.             </div>
  547.           </div>
  548.         </div>
  549.       </div>
  550.       <div class="karaktea-img" data-aos="fade-left" data-aos-delay="400">
  551.       {#  
  552.         <!-- <img id="thisimg_temp" alt="img" src="/static/assets/images/Sequences/Sequence-wc2_3.gif" alt=""> -->
  553.         <!-- <?php  if($this->getLocale() == 'ar'){ ?>
  554.       <img alt="Rainbow_Milk_Pouring_Loop_Final_2000" id="thisimg_temp" class="img-fluid" src="/static/assets/images/Sequences/Sequence-wc2_3-AR.gif" alt="">
  555.      
  556.     <?php }else{  ?>
  557.       <img alt="Rainbow_Milk_Pouring_Loop_Final_2000" id="thisimg_temp" class="img-fluid" src="/static/assets/images/Sequences/Sequence-wc2_3.gif" alt="">
  558.      
  559.    <?php ?> -->
  560.     #}
  561.    {% if locale == 'ar' %}
  562.           <div class="m-image-sections">
  563.                 <div class="image-container">
  564.                     <img src="/static/assets/images/design-one.png" alt="Rainbow Condensed Full Milk Cream" />
  565.                     <img src="/static/assets/images/design-two.png" alt="Rainbow Evaporated Milk - Lite" />
  566.                     <img src="/static/assets/images/design-three.png" alt="Rainbow Milk - Lite" />
  567.                     <img src="/static/assets/images/design-four.png" alt="Rainbow Milk - Original" />
  568.                     <img src="/static/assets/images/design-five.png" alt="Rainbow Evaporated Milk - Original" />
  569.                     <img src="/static/assets/images/design-six.png" />
  570.                 </div>
  571.                 <p class="text-center">في خدمتك منذ عام 1955</p>
  572.             </div>
  573.         {% else %}
  574.             <div class="m-image-sections">
  575.                 <div class="image-container">
  576.                     <img src="/static/assets/images/design-one.png" alt="Rainbow Condensed Full Milk Cream" />
  577.                     <img src="/static/assets/images/design-two.png" alt="Rainbow Evaporated Milk - Lite" />
  578.                     <img src="/static/assets/images/design-three.png" alt="Rainbow Milk - Lite" />
  579.                     <img src="/static/assets/images/design-four.png" alt="Rainbow Milk - Original" />
  580.                     <img src="/static/assets/images/design-five.png" alt="Rainbow Evaporated Milk - Original" />
  581.                     <img src="/static/assets/images/design-six.png" alt="Rainbow Milk - Original Quality Milk" />
  582.                 </div>
  583.                 <p class="text-center">Serving you since 1955</p>
  584.             </div>
  585.       {% endif %}
  586.       
  587.       </div>
  588.     </section>
  589.     <!--End World of Karak Section-->
  590.   <!--Advance Filter Modal Start-->
  591.   <!-- Modal Start -->
  592.     {{ render(controller('App\\Controller\\RecipeController::getadvancefiltermodal')) }}
  593.     <!-- Modal End -->
  594.     <!--Advance Filter Modal End-->
  595.     {% if (locale =='ar') %}
  596.         {% set weblink = 'ar' %}
  597.         {% set topMenu ="/en/recipes" %}
  598.         {% set allrecipe = "كل-الوصفات" %}
  599.       {% else %}
  600.         {% set weblink = 'en' %}
  601.         {% set topMenu = "/ar/وصفات" %}
  602.         {% set allrecipe = "all-recipes" %}
  603.     {% endif %}
  604. <script type="text/javascript">
  605.     var _TopMenuLink = "{{topMenu }}"
  606.    
  607. </script>
  608.   <script type="application/ld+json">
  609.     {
  610.       "@context": "https://schema.org",
  611.       "@type": "ItemList",
  612.       "itemListElement": [
  613.         {% for key , recipe in recipes %}
  614.        
  615.         {
  616.           "@type": "listitem",
  617.           "position": "{{ key + 1 }}",
  618.           "url": "{{app.request.getSchemeAndHttpHost() ~ '/' ~ locale ~ '/' ~ allrecipe ~ '/' ~ recipe.url}}"
  619.         }{% if key < recipe|length -1 %},{% endif %}
  620.     {% endfor %}
  621.         ]
  622.     }
  623.     </script>
  624. {% endblock %}