File "c0143cb984e80e161d7c6f2544fb81f592ab9c46d04b9a1ce3d527291073ca9d.php"
Full path: /home/cakedeco/retaildirectonline.co.uk/system/storage/cache/c0/c0143cb984e80e161d7c6f2544fb81f592ab9c46d04b9a1ce3d527291073ca9d.php
File
size: 15.13 B (15.13 KB bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor &nnbsp; Back
<?php
/* default/template/extension/module/ocslideshow.twig */
class __TwigTemplate_8fe68edc0056ea07045e0bf086994be9d9d4a8a2b3ea39d633d9dd42b6809b79 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=\"banner7\">
\t<div class= \"oc-banner7-container\">
\t\t<div class=\"flexslider oc-nivoslider\">
\t\t\t<div class=\"oc-loading\"></div>
\t\t\t<div id=\"oc-inivoslider1\" class=\"nivoSlider\">
";
// line 7
$context["config"] = $this->getAttribute((isset($context["slide_setting"]) ? $context["slide_setting"] : null), 0, array(), "array");
// line 8
echo " ";
$context["i"] = 1;
// line 9
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ocslideshows"]) ? $context["ocslideshows"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
// line 10
echo " ";
$context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
// line 11
echo "\t\t\t\t\t<img style=\"display: none;\" src=\"";
echo $this->getAttribute($context["s"], "image", array(), "array");
echo "\" alt=\"\" title=\"#banner7-caption";
echo (isset($context["i"]) ? $context["i"] : null);
echo "\" />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['s'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 13
echo "
\t\t\t</div>
";
// line 16
$context["i"] = 1;
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["ocslideshows"]) ? $context["ocslideshows"] : null));
foreach ($context['_seq'] as $context["_key"] => $context["s"]) {
// line 18
echo " ";
$context["i"] = ((isset($context["i"]) ? $context["i"] : null) + 1);
// line 19
echo "\t\t\t\t<div id=\"banner7-caption";
echo (isset($context["i"]) ? $context["i"] : null);
echo "\" class=\"banner7-caption nivo-html-caption nivo-caption move-slides-effect\" data-class=\"slide-movetype";
echo $this->getAttribute($context["s"], "type", array(), "array");
echo "\">
\t\t\t\t\t<div class=\"banner7-small_image\">
\t\t\t\t\t\t<img src=\"";
// line 21
echo $this->getAttribute($context["s"], "small_image", array(), "array");
echo "\" alt=\"\" title=\"small\" />
\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"banner7-title\">
";
// line 24
if (($this->getAttribute($context["s"], "title", array(), "array") && ($this->getAttribute($context["s"], "title", array(), "array") != ""))) {
// line 25
echo "\t\t\t\t\t\t\t<h3>";
echo $this->getAttribute($context["s"], "title", array(), "array");
echo "</h3>
";
}
// line 27
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"sub-title\">
";
// line 29
if (($this->getAttribute($context["s"], "sub_title", array(), "array") && ($this->getAttribute($context["s"], "sub_title", array(), "array") != ""))) {
// line 30
echo "\t\t\t\t\t\t\t<h3>";
echo $this->getAttribute($context["s"], "sub_title", array(), "array");
echo "</h3>
";
}
// line 32
echo "\t\t\t\t\t</div>
\t\t\t\t\t<div class=\"banner7-des\">
";
// line 34
echo $this->getAttribute($context["s"], "description", array(), "array");
echo "
\t\t\t\t\t</div>
";
// line 36
if ($this->getAttribute($context["s"], "link", array(), "array")) {
// line 37
echo "\t\t\t\t\t\t<div class=\"banner7-readmore\">
\t\t\t\t\t\t\t<a href=\"";
// line 38
echo $this->getAttribute($context["s"], "link", array(), "array");
echo "\" title=\"";
echo (isset($context["text_readmore"]) ? $context["text_readmore"] : null);
echo "\">";
echo (isset($context["text_readmore"]) ? $context["text_readmore"] : null);
echo "</a>
\t\t\t\t\t\t</div>
";
}
// line 41
echo "\t\t\t\t</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['s'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 43
echo "\t\t\t<script type=\"text/javascript\">
\$(window).load(function() {
\$('#oc-inivoslider1').nivoSlider();
\$('#oc-inivoslider1').nivoSlider({
effect: ";
// line 47
if ($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "effect", array(), "array")) {
echo " \"";
echo $this->getAttribute((isset($context["config"]) ? $context["config"] : null), "effect", array(), "array");
echo "\" ";
} else {
echo " 'random' ";
}
echo " ,
slices: 15,
boxCols: 8,
boxRows: 4,
manualAdvance: ";
// line 51
if (($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "auto", array(), "array") && ($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "auto", array(), "array") == 1))) {
echo " false ";
} else {
echo " true ";
}
echo " ,
animSpeed:500,
pauseTime: ";
// line 53
if ($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "delay", array(), "array")) {
echo " ";
echo $this->getAttribute((isset($context["config"]) ? $context["config"] : null), "delay", array(), "array");
echo " ";
} else {
echo " 3000 ";
}
echo " ,
startSlide: 0,
controlNav: ";
// line 55
if (($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "contrl", array(), "array") && ($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "contrl", array(), "array") == 1))) {
echo " true ";
} else {
echo " false ";
}
echo " ,
directionNav: ";
// line 56
if (($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "nextback", array(), "array") && ($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "nextback", array(), "array") == 1))) {
echo " true ";
} else {
echo " false ";
}
echo " ,
controlNavThumbs: false,
pauseOnHover: ";
// line 58
if (($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "hover", array(), "array") && ($this->getAttribute((isset($context["config"]) ? $context["config"] : null), "hover", array(), "array") == 1))) {
echo " true ";
} else {
echo " false ";
}
echo " ,
prevText: 'Prev',
nextText: 'Next',
beforeChange: function() {
var nivo_image = \$('#oc-inivoslider .nivo-caption .banner7-small_image img').attr('src');
\$('#oc-inivoslider .nivo-caption').hide();
\$('.move-slides-effect img').each(function() {
var small_image = \$(this).attr('src');
if(nivo_image == small_image) {
var move_class = \$(this).closest('.move-slides-effect').data('class');
\$('#oc-inivoslider .nivo-caption').removeClass().addClass('nivo-caption').addClass(move_class);
}
});
},
afterLoad: function(){
\$('.oc-loading').css(\"display\",\"none\");
var nivo_image = \$('.nivo-caption .banner7-small_image img').attr('src');
\$('.move-slides-effect img').each(function() {
var small_image = \$(this).attr('src');
if(nivo_image == small_image) {
var move_class = \$(this).closest('.move-slides-effect').data('class');
\$('#oc-inivoslider .nivo-caption').removeClass().addClass('nivo-caption').addClass(move_class);
}
});
}
});
});
\t\t\t</script>
\t\t</div>
\t</div>
</div>";
}
public function getTemplateName()
{
return "default/template/extension/module/ocslideshow.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 187 => 58, 178 => 56, 170 => 55, 159 => 53, 150 => 51, 137 => 47, 131 => 43, 124 => 41, 114 => 38, 111 => 37, 109 => 36, 104 => 34, 100 => 32, 94 => 30, 92 => 29, 88 => 27, 82 => 25, 80 => 24, 74 => 21, 66 => 19, 63 => 18, 58 => 17, 56 => 16, 51 => 13, 40 => 11, 37 => 10, 32 => 9, 29 => 8, 27 => 7, 19 => 1,);
}
}
/* <div class="banner7">*/
/* <div class= "oc-banner7-container">*/
/* <div class="flexslider oc-nivoslider">*/
/* <div class="oc-loading"></div>*/
/* <div id="oc-inivoslider1" class="nivoSlider">*/
/* */
/* {% set config = slide_setting[0] %}*/
/* {% set i=1 %}*/
/* {% for s in ocslideshows %}*/
/* {% set i=i+1 %}*/
/* <img style="display: none;" src="{{ s['image'] }}" alt="" title="#banner7-caption{{ i }}" />*/
/* {% endfor %}*/
/* */
/* </div>*/
/* */
/* {% set i=1 %}*/
/* {% for s in ocslideshows %}*/
/* {% set i=i+1 %}*/
/* <div id="banner7-caption{{ i }}" class="banner7-caption nivo-html-caption nivo-caption move-slides-effect" data-class="slide-movetype{{ s['type'] }}">*/
/* <div class="banner7-small_image">*/
/* <img src="{{ s['small_image'] }}" alt="" title="small" />*/
/* </div>*/
/* <div class="banner7-title">*/
/* {% if s['title'] and s['title'] != "" %}*/
/* <h3>{{ s['title'] }}</h3>*/
/* {% endif %}*/
/* </div>*/
/* <div class="sub-title">*/
/* {% if s['sub_title'] and s['sub_title'] != "" %}*/
/* <h3>{{ s['sub_title'] }}</h3>*/
/* {% endif %}*/
/* </div>*/
/* <div class="banner7-des">*/
/* {{ s['description'] }}*/
/* </div>*/
/* {% if s['link'] %}*/
/* <div class="banner7-readmore">*/
/* <a href="{{ s['link'] }}" title="{{ text_readmore }}">{{ text_readmore }}</a>*/
/* </div>*/
/* {% endif %}*/
/* </div>*/
/* {% endfor %}*/
/* <script type="text/javascript">*/
/* $(window).load(function() {*/
/* $('#oc-inivoslider1').nivoSlider();*/
/* $('#oc-inivoslider1').nivoSlider({*/
/* effect: {% if config['effect'] %} "{{ config['effect'] }}" {% else %} 'random' {% endif %} ,*/
/* slices: 15,*/
/* boxCols: 8,*/
/* boxRows: 4,*/
/* manualAdvance: {% if config['auto'] and config['auto'] == 1 %} false {% else %} true {% endif %} ,*/
/* animSpeed:500,*/
/* pauseTime: {% if config['delay'] %} {{ config['delay'] }} {% else %} 3000 {% endif %} ,*/
/* startSlide: 0,*/
/* controlNav: {% if config['contrl'] and config['contrl'] == 1 %} true {% else %} false {% endif %} ,*/
/* directionNav: {% if config['nextback'] and config['nextback'] == 1 %} true {% else %} false {% endif %} ,*/
/* controlNavThumbs: false,*/
/* pauseOnHover: {% if config['hover'] and config['hover'] == 1 %} true {% else %} false {% endif %} ,*/
/* prevText: 'Prev',*/
/* nextText: 'Next',*/
/* beforeChange: function() {*/
/* var nivo_image = $('#oc-inivoslider .nivo-caption .banner7-small_image img').attr('src');*/
/* $('#oc-inivoslider .nivo-caption').hide();*/
/* $('.move-slides-effect img').each(function() {*/
/* var small_image = $(this).attr('src');*/
/* if(nivo_image == small_image) {*/
/* var move_class = $(this).closest('.move-slides-effect').data('class');*/
/* $('#oc-inivoslider .nivo-caption').removeClass().addClass('nivo-caption').addClass(move_class);*/
/* }*/
/* });*/
/* },*/
/* afterLoad: function(){*/
/* $('.oc-loading').css("display","none");*/
/* var nivo_image = $('.nivo-caption .banner7-small_image img').attr('src');*/
/* $('.move-slides-effect img').each(function() {*/
/* var small_image = $(this).attr('src');*/
/* if(nivo_image == small_image) {*/
/* var move_class = $(this).closest('.move-slides-effect').data('class');*/
/* $('#oc-inivoslider .nivo-caption').removeClass().addClass('nivo-caption').addClass(move_class);*/
/* }*/
/* });*/
/* }*/
/* });*/
/* });*/
/* </script>*/
/* </div>*/
/* </div>*/
/* </div>*/