<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @packageFallhaven/widgets/Row/build/tpl.html.twig */
class __TwigTemplate_c98a89d13b79fee82de84ad242f2ae07 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@packageFallhaven/widgets/Row/build/tpl.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@packageFallhaven/widgets/Row/build/tpl.html.twig"));
// line 1
echo "<div class=\"row";
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", false, false, false, 1) === true)) {
echo " row-collapse";
}
if ((isset($context["_editing"]) || array_key_exists("_editing", $context) ? $context["_editing"] : (function () { throw new RuntimeError('Variable "_editing" does not exist.', 1, $this->source); })())) {
echo " cspb-row";
}
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", false, false, false, 1)) {
echo " ";
echo twig_escape_filter($this->env, 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", false, false, false, 1), "html", null, true);
}
echo "\">
";
// line 2
$context['_parent'] = $context;
$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", false, false, false, 2));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["column"]) {
// line 3
echo " <div class=\"
";
// line 4
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["column"], "mobileSpan", [], "any", false, false, false, 4))) {
echo "col-xs-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["column"], "mobileSpan", [], "any", false, false, false, 4), "html", null, true);
}
// line 5
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["column"], "tabletSpan", [], "any", false, false, false, 5))) {
echo "col-sm-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["column"], "tabletSpan", [], "any", false, false, false, 5), "html", null, true);
}
// line 6
echo " ";
if (twig_test_empty(twig_get_attribute($this->env, $this->source, $context["column"], "desktopSpan", [], "any", false, false, false, 6))) {
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", false, false, false, 6)), "html", null, true);
}
// line 7
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["column"], "desktopSpan", [], "any", false, false, false, 7))) {
echo "col-md-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["column"], "desktopSpan", [], "any", false, false, false, 7), "html", null, true);
}
// line 8
echo " ";
if ( !twig_test_empty(twig_get_attribute($this->env, $this->source, $context["column"], "largeDesktopSpan", [], "any", false, false, false, 8))) {
echo "col-lg-";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["column"], "largeDesktopSpan", [], "any", false, false, false, 8), "html", null, true);
}
// line 9
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["column"], "classes", [], "any", false, false, false, 9), "html", null, true);
echo "
\" data-editor-region-inline>
";
// line 11
echo $this->extensions['Cms\WidgetBundle\Service\Twig\WidgetExtension']->functionWidgetChildren($context, $context["column"]);
echo "
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['column'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 14
echo "</div>
";
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
public function getTemplateName()
{
return "@packageFallhaven/widgets/Row/build/tpl.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 128 => 14, 111 => 11, 105 => 9, 99 => 8, 93 => 7, 88 => 6, 82 => 5, 77 => 4, 74 => 3, 57 => 2, 43 => 1,);
}
public function getSourceContext()
{
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 %}\">
{% for column in _widget.columns %}
<div class=\"
{% if column.mobileSpan is not empty %}col-xs-{{ column.mobileSpan }}{% endif %}
{% if column.tabletSpan is not empty %}col-sm-{{ column.tabletSpan }}{% endif %}
{% if column.desktopSpan is empty %}{{ span|call(_widget, loop.index0) }}{% endif %}
{% if column.desktopSpan is not empty %}col-md-{{ column.desktopSpan }}{% endif %}
{% if column.largeDesktopSpan is not empty %}col-lg-{{ column.largeDesktopSpan }}{% endif %}
{{ column.classes }}
\" data-editor-region-inline>
{{ cms_widgetChildren(column) }}
</div>
{% endfor %}
</div>
", "@packageFallhaven/widgets/Row/build/tpl.html.twig", "/var/www/campussuite/themes/bases/Campussuite2015/widgets/Row/build/tpl.html.twig");
}
}