var/cache/test/twig/16/16221ee35ea10bc3b19dad8babc3e8e0.php line 111

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @packageFallhaven/widgets/Row/build/tpl.html.twig */
  14. class __TwigTemplate_c98a89d13b79fee82de84ad242f2ae07 extends \Twig\Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->parent false;
  23.         $this->blocks = [
  24.         ];
  25.     }
  26.     protected function doDisplay(array $context, array $blocks = [])
  27.     {
  28.         $macros $this->macros;
  29.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  30.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@packageFallhaven/widgets/Row/build/tpl.html.twig"));
  31.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  32.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@packageFallhaven/widgets/Row/build/tpl.html.twig"));
  33.         // line 1
  34.         echo "<div class=\"row";
  35.         if ((twig_get_attribute($this->env$this->source, (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'1$this->source); })()), "collapse", [], "any"falsefalsefalse1) === true)) {
  36.             echo " row-collapse";
  37.         }
  38.         if ((isset($context["_editing"]) || array_key_exists("_editing"$context) ? $context["_editing"] : (function () { throw new RuntimeError('Variable "_editing" does not exist.'1$this->source); })())) {
  39.             echo " cspb-row";
  40.         }
  41.         if (twig_get_attribute($this->env$this->source, (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'1$this->source); })()), "classes", [], "any"falsefalsefalse1)) {
  42.             echo " ";
  43.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source, (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'1$this->source); })()), "classes", [], "any"falsefalsefalse1), "html"nulltrue);
  44.         }
  45.         echo "\">
  46.     ";
  47.         // line 2
  48.         $context['_parent'] = $context;
  49.         $context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env$this->source, (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'2$this->source); })()), "columns", [], "any"falsefalsefalse2));
  50.         $context['loop'] = [
  51.           'parent' => $context['_parent'],
  52.           'index0' => 0,
  53.           'index'  => 1,
  54.           'first'  => true,
  55.         ];
  56.         if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  57.             $length count($context['_seq']);
  58.             $context['loop']['revindex0'] = $length 1;
  59.             $context['loop']['revindex'] = $length;
  60.             $context['loop']['length'] = $length;
  61.             $context['loop']['last'] = === $length;
  62.         }
  63.         foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
  64.             // line 3
  65.             echo "        <div class=\"
  66.             ";
  67.             // line 4
  68.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["column"], "mobileSpan", [], "any"falsefalsefalse4))) {
  69.                 echo "col-xs-";
  70.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["column"], "mobileSpan", [], "any"falsefalsefalse4), "html"nulltrue);
  71.             }
  72.             // line 5
  73.             echo "            ";
  74.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["column"], "tabletSpan", [], "any"falsefalsefalse5))) {
  75.                 echo "col-sm-";
  76.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["column"], "tabletSpan", [], "any"falsefalsefalse5), "html"nulltrue);
  77.             }
  78.             // line 6
  79.             echo "            ";
  80.             if (twig_test_empty(twig_get_attribute($this->env$this->source$context["column"], "desktopSpan", [], "any"falsefalsefalse6))) {
  81.                 echo twig_escape_filter($this->env$this->extensions['Cms\CoreBundle\Service\Twig\ContextExtension']->filterCall((isset($context["span"]) || array_key_exists("span"$context) ? $context["span"] : (function () { throw new RuntimeError('Variable "span" does not exist.'6$this->source); })()), (isset($context["_widget"]) || array_key_exists("_widget"$context) ? $context["_widget"] : (function () { throw new RuntimeError('Variable "_widget" does not exist.'6$this->source); })()), twig_get_attribute($this->env$this->source$context["loop"], "index0", [], "any"falsefalsefalse6)), "html"nulltrue);
  82.             }
  83.             // line 7
  84.             echo "            ";
  85.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["column"], "desktopSpan", [], "any"falsefalsefalse7))) {
  86.                 echo "col-md-";
  87.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["column"], "desktopSpan", [], "any"falsefalsefalse7), "html"nulltrue);
  88.             }
  89.             // line 8
  90.             echo "            ";
  91.             if ( !twig_test_empty(twig_get_attribute($this->env$this->source$context["column"], "largeDesktopSpan", [], "any"falsefalsefalse8))) {
  92.                 echo "col-lg-";
  93.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["column"], "largeDesktopSpan", [], "any"falsefalsefalse8), "html"nulltrue);
  94.             }
  95.             // line 9
  96.             echo "            ";
  97.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["column"], "classes", [], "any"falsefalsefalse9), "html"nulltrue);
  98.             echo "
  99.         \" data-editor-region-inline>
  100.             ";
  101.             // line 11
  102.             echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetChildren($context$context["column"]);
  103.             echo "
  104.         </div>
  105.     ";
  106.             ++$context['loop']['index0'];
  107.             ++$context['loop']['index'];
  108.             $context['loop']['first'] = false;
  109.             if (isset($context['loop']['length'])) {
  110.                 --$context['loop']['revindex0'];
  111.                 --$context['loop']['revindex'];
  112.                 $context['loop']['last'] = === $context['loop']['revindex0'];
  113.             }
  114.         }
  115.         $_parent $context['_parent'];
  116.         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
  117.         $context array_intersect_key($context$_parent) + $_parent;
  118.         // line 14
  119.         echo "</div>
  120. ";
  121.         
  122.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  123.         
  124.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  125.     }
  126.     public function getTemplateName()
  127.     {
  128.         return "@packageFallhaven/widgets/Row/build/tpl.html.twig";
  129.     }
  130.     public function isTraitable()
  131.     {
  132.         return false;
  133.     }
  134.     public function getDebugInfo()
  135.     {
  136.         return array (  128 => 14,  111 => 11,  105 => 9,  99 => 8,  93 => 7,  88 => 6,  82 => 5,  77 => 4,  74 => 3,  57 => 2,  43 => 1,);
  137.     }
  138.     public function getSourceContext()
  139.     {
  140.         return new Source("<div class=\"row{% if _widget.collapse is same as(true) %} row-collapse{% endif %}{% if _editing %} cspb-row{% endif %}{% if _widget.classes %} {{ _widget.classes }}{% endif %}\">
  141.     {% for column in _widget.columns %}
  142.         <div class=\"
  143.             {% if column.mobileSpan is not empty %}col-xs-{{ column.mobileSpan }}{% endif %}
  144.             {% if column.tabletSpan is not empty %}col-sm-{{ column.tabletSpan }}{% endif %}
  145.             {% if column.desktopSpan is empty %}{{ span|call(_widget, loop.index0) }}{% endif %}
  146.             {% if column.desktopSpan is not empty %}col-md-{{ column.desktopSpan }}{% endif %}
  147.             {% if column.largeDesktopSpan is not empty %}col-lg-{{ column.largeDesktopSpan }}{% endif %}
  148.             {{ column.classes }}
  149.         \" data-editor-region-inline>
  150.             {{ cms_widgetChildren(column) }}
  151.         </div>
  152.     {% endfor %}
  153. </div>
  154. ""@packageFallhaven/widgets/Row/build/tpl.html.twig""/var/www/campussuite/themes/bases/Campussuite2015/widgets/Row/build/tpl.html.twig");
  155.     }
  156. }