File "d61380f27fdbd53c73b37666d6dcdc13aee668807e7fc51e5ca8322492d38fa3.php"

Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/cache/d6/d61380f27fdbd53c73b37666d6dcdc13aee668807e7fc51e5ca8322492d38fa3.php
File size: 10.88 B
MIME-type: text/x-php
Charset: utf-8

Download   Open   Edit   Advanced Editor &nnbsp; Back

<?php

/* tt_madison2/template/extension/module/octestimonial.twig */
class __TwigTemplate_37cfd8b0b43efc8fbed8ca16385e006bf650f251b2fba22a9bdaf187a308b744 extends Twig_Template
{
    public function __construct(Twig_Environment $env)
    {
        parent::__construct($env);

        $this->parent = false;

        $this->blocks = array(
        );
    }

    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 1
        echo "<div class=\"testimonial-container\">
\t
\t
\t\t<div class=\"module-title\">
\t\t\t";
        // line 5
        if ((isset($context["sub_title"]) ? $context["sub_title"] : null)) {
            // line 6
            echo "\t\t\t  <p class=\"sub-title\">";
            echo (isset($context["sub_title"]) ? $context["sub_title"] : null);
            echo "</p>
\t\t\t";
        }
        // line 8
        echo "\t\t\t<h2>
\t\t\t\t";
        // line 9
        echo (isset($context["title"]) ? $context["title"] : null);
        echo "
\t\t\t</h2>
\t\t</div>
\t
\t";
        // line 13
        $context["count"] = 0;
        // line 14
        echo "\t";
        if ((isset($context["rows"]) ? $context["rows"] : null)) {
            echo "\t\t
\t\t";
            // line 15
            $context["rows"] = $this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "rows", array());
            // line 16
            echo "\t";
        } else {
            // line 17
            echo "\t\t";
            $context["rows"] = 1;
            // line 18
            echo "\t";
        }
        // line 19
        echo "\t";
        if ((isset($context["testimonials"]) ? $context["testimonials"] : null)) {
            // line 20
            echo "\t
\t\t<div class=\"block-content\">
\t\t\t<div class=\"owl-container\">
\t\t\t<div id=\"slides\" class=\"owl-carousel owl-theme\">
\t\t\t\t";
            // line 24
            $context['_parent'] = $context;
            $context['_seq'] = twig_ensure_traversable((isset($context["testimonials"]) ? $context["testimonials"] : null));
            foreach ($context['_seq'] as $context["_key"] => $context["testimonial"]) {
                // line 25
                echo "\t\t\t\t\t";
                if ((((isset($context["count"]) ? $context["count"] : null) % (isset($context["rows"]) ? $context["rows"] : null)) == 0)) {
                    // line 26
                    echo "\t\t\t\t\t<div class=\"row_items\">
\t\t\t\t\t";
                }
                // line 28
                echo "\t\t\t\t\t";
                $context["count"] = ((isset($context["count"]) ? $context["count"] : null) + 1);
                // line 29
                echo "\t\t\t\t\t<div class=\"testimonial-content\">
\t\t\t\t\t\t<div class=\"item\">
\t\t\t\t\t\t<div class=\"item-inner\">
\t\t\t\t\t\t\t<div class=\"testimonial-images\">
\t\t\t\t\t\t\t\t<img src=\"";
                // line 33
                echo $this->getAttribute($context["testimonial"], "image", array());
                echo "\" alt=\"";
                echo $this->getAttribute($context["testimonial"], "customer_name", array());
                echo "\">\t\t\t\t\t\t\t
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t<div class=\"testimonial-caption\">
\t\t\t\t\t\t\t\t";
                // line 36
                if ($this->getAttribute($context["testimonial"], "title", array())) {
                    // line 37
                    echo "\t\t\t\t\t\t\t\t\t<h4 class=\"title\"><a href=\"";
                    echo (isset($context["more"]) ? $context["more"] : null);
                    echo "\">";
                    echo $this->getAttribute($context["testimonial"], "title", array());
                    echo "</a></h4>
\t\t\t\t\t\t\t\t";
                }
                // line 39
                echo "\t\t\t\t\t\t\t\t<div class=\"testimonial-box\">\t\t\t\t\t\t\t
\t\t\t\t\t\t\t\t\t<a href=\"";
                // line 40
                echo (isset($context["more"]) ? $context["more"] : null);
                echo "\">";
                echo $this->getAttribute($context["testimonial"], "content", array());
                echo "</a>
\t\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t\t\t<p class=\"testimonial-author\">";
                // line 42
                echo $this->getAttribute($context["testimonial"], "customer_name", array());
                echo "</p>
\t\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t\t</div>
\t\t\t\t\t</div><!--testimonial-content-->
\t\t\t\t\t";
                // line 47
                if (((((isset($context["count"]) ? $context["count"] : null) % (isset($context["rows"]) ? $context["rows"] : null)) == 0) || ((isset($context["count"]) ? $context["count"] : null) == twig_length_filter($this->env, (isset($context["testimonials"]) ? $context["testimonials"] : null))))) {
                    // line 48
                    echo "\t\t\t\t\t\t</div>
\t\t\t\t\t";
                }
                // line 50
                echo "\t\t\t\t";
            }
            $_parent = $context['_parent'];
            unset($context['_seq'], $context['_iterated'], $context['_key'], $context['testimonial'], $context['_parent'], $context['loop']);
            $context = array_intersect_key($context, $_parent) + $_parent;
            // line 51
            echo "\t\t\t</div>
\t\t\t</div>
\t\t</div><!--block-content-->
\t
\t
\t";
        } else {
            // line 57
            echo "\t\t<p class=\"text_empty\">";
            echo (isset($context["text_empty"]) ? $context["text_empty"] : null);
            echo "</p>
\t";
        }
        // line 59
        echo "
</div><!--testimonial-container-->\t\t\t\t\t
<script >
\$(document).ready(function() {
    \$(\"#slides\").owlCarousel({
\t\tautoPlay : ";
        // line 64
        if ($this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "auto", array(), "array")) {
            echo " ";
            echo $this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "auto", array(), "array");
            echo " ";
        } else {
            echo " false ";
        }
        echo ",
\t\t\t
\t\tloop: false,
\t\tmargin: 0,
\t\tnavSpeed : ";
        // line 68
        echo $this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "speed", array(), "array");
        echo ",
\t\tdotsSpeed : ";
        // line 69
        echo $this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "speed", array(), "array");
        echo ",
\t\tautoplaySpeed : ";
        // line 70
        echo $this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "speed", array(), "array");
        echo ",
\t\tnav : ";
        // line 71
        if ($this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "navigation", array(), "array")) {
            echo " true  ";
        } else {
            echo " false ";
        }
        echo ",
\t\tdots :";
        // line 72
        if ($this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "pagination", array(), "array")) {
            echo " true ";
        } else {
            echo " false ";
        }
        echo ",
\t\tlazyLoad: true,
\t\tnavText : ['<i class=\"ion-ios-arrow-left\"></i>','<i class=\"ion-ios-arrow-right\"></i>'],
\t\tresponsive:{
\t\t\t0:{
\t\t\t\titems: 1
\t\t\t},
\t\t\t480:{
\t\t\t\titems: 1
\t\t\t},
\t\t\t768:{
\t\t\t\titems: 1
\t\t\t},
\t\t\t992:{
\t\t\t\titems: 1
\t\t\t},
\t\t\t1200:{
\t\t\t\titems : ";
        // line 89
        echo $this->getAttribute((isset($context["slide"]) ? $context["slide"] : null), "items", array(), "array");
        echo "
\t\t\t}
\t\t}
    });
});
</script>";
    }

    public function getTemplateName()
    {
        return "tt_madison2/template/extension/module/octestimonial.twig";
    }

    public function isTraitable()
    {
        return false;
    }

    public function getDebugInfo()
    {
        return array (  216 => 89,  192 => 72,  184 => 71,  180 => 70,  176 => 69,  172 => 68,  159 => 64,  152 => 59,  146 => 57,  138 => 51,  132 => 50,  128 => 48,  126 => 47,  118 => 42,  111 => 40,  108 => 39,  100 => 37,  98 => 36,  90 => 33,  84 => 29,  81 => 28,  77 => 26,  74 => 25,  70 => 24,  64 => 20,  61 => 19,  58 => 18,  55 => 17,  52 => 16,  50 => 15,  45 => 14,  43 => 13,  36 => 9,  33 => 8,  27 => 6,  25 => 5,  19 => 1,);
    }
}
/* <div class="testimonial-container">*/
/* 	*/
/* 	*/
/* 		<div class="module-title">*/
/* 			{% if sub_title %}*/
/* 			  <p class="sub-title">{{ sub_title }}</p>*/
/* 			{% endif %}*/
/* 			<h2>*/
/* 				{{ title }}*/
/* 			</h2>*/
/* 		</div>*/
/* 	*/
/* 	{% set count = 0 %}*/
/* 	{% if rows %}		*/
/* 		{% set rows = slide.rows %}*/
/* 	{% else %}*/
/* 		{% set rows = 1 %}*/
/* 	{% endif %}*/
/* 	{% if testimonials %}*/
/* 	*/
/* 		<div class="block-content">*/
/* 			<div class="owl-container">*/
/* 			<div id="slides" class="owl-carousel owl-theme">*/
/* 				{% for testimonial in testimonials %}*/
/* 					{% if count % rows == 0 %}*/
/* 					<div class="row_items">*/
/* 					{% endif %}*/
/* 					{% set count = count + 1 %}*/
/* 					<div class="testimonial-content">*/
/* 						<div class="item">*/
/* 						<div class="item-inner">*/
/* 							<div class="testimonial-images">*/
/* 								<img src="{{ testimonial.image }}" alt="{{ testimonial.customer_name }}">							*/
/* 							</div>*/
/* 							<div class="testimonial-caption">*/
/* 								{% if testimonial.title %}*/
/* 									<h4 class="title"><a href="{{ more }}">{{ testimonial.title }}</a></h4>*/
/* 								{% endif %}*/
/* 								<div class="testimonial-box">							*/
/* 									<a href="{{ more }}">{{ testimonial.content }}</a>*/
/* 								</div>*/
/* 								<p class="testimonial-author">{{ testimonial.customer_name }}</p>*/
/* 							</div>*/
/* 						</div>*/
/* 						</div>*/
/* 					</div><!--testimonial-content-->*/
/* 					{% if count % rows == 0 or count == testimonials|length %}*/
/* 						</div>*/
/* 					{% endif %}*/
/* 				{% endfor %}*/
/* 			</div>*/
/* 			</div>*/
/* 		</div><!--block-content-->*/
/* 	*/
/* 	*/
/* 	{% else %}*/
/* 		<p class="text_empty">{{ text_empty }}</p>*/
/* 	{% endif %}*/
/* */
/* </div><!--testimonial-container-->					*/
/* <script >*/
/* $(document).ready(function() {*/
/*     $("#slides").owlCarousel({*/
/* 		autoPlay : {% if slide['auto'] %} {{ slide['auto'] }} {% else %} false {% endif %},*/
/* 			*/
/* 		loop: false,*/
/* 		margin: 0,*/
/* 		navSpeed : {{ slide['speed'] }},*/
/* 		dotsSpeed : {{ slide['speed'] }},*/
/* 		autoplaySpeed : {{ slide['speed'] }},*/
/* 		nav : {% if slide['navigation'] %} true  {% else %} false {% endif %},*/
/* 		dots :{% if slide['pagination'] %} true {% else %} false {% endif %},*/
/* 		lazyLoad: true,*/
/* 		navText : ['<i class="ion-ios-arrow-left"></i>','<i class="ion-ios-arrow-right"></i>'],*/
/* 		responsive:{*/
/* 			0:{*/
/* 				items: 1*/
/* 			},*/
/* 			480:{*/
/* 				items: 1*/
/* 			},*/
/* 			768:{*/
/* 				items: 1*/
/* 			},*/
/* 			992:{*/
/* 				items: 1*/
/* 			},*/
/* 			1200:{*/
/* 				items : {{ slide['items'] }}*/
/* 			}*/
/* 		}*/
/*     });*/
/* });*/
/* </script>*/