parent = $this->env->loadTemplate("grid-gallery.twig");
$this->blocks = array(
'header' => array($this, 'block_header'),
'content' => array($this, 'block_content'),
);
}
protected function doGetParent(array $context)
{
return "grid-gallery.twig";
}
protected function doDisplay(array $context, array $blocks = array())
{
$this->parent->display($context, array_merge($this->blocks, $blocks));
}
// line 25
public function block_header($context, array $blocks = array())
{
// line 26
echo "
env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries"), "method"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Gallery by Supsystic")), "html", null, true);
echo "
env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries", 1 => "showPresets"), "method"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Create new gallery")), "html", null, true);
echo "
";
}
// line 33
public function block_content($context, array $blocks = array())
{
// line 34
echo "
";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Choose Gallery Template.You can change template and settings on the next step.")), "html", null, true);
echo "
";
// line 36
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Gallery Name:")), "html", null, true);
echo "
";
// line 40
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Save")), "html", null, true);
echo "
";
// line 45
echo "
";
// line 50
echo "
";
// line 52
$context["preset"] = $this;
// line 53
echo "
";
// line 54
$context["presets"] = array(0 => array("title" => "Standard Gallery", "image" => "template1.jpg", "pro" => false, "value" => 1), 1 => array("title" => "Vertical Gallery", "image" => "template2.jpg", "pro" => false, "value" => 2), 2 => array("title" => "Rounded Gallery", "image" => "template3.jpg", "pro" => false, "value" => 3), 3 => array("title" => "Horizontal Gallery", "image" => "template4.jpg", "pro" => false, "value" => 4), 4 => array("title" => "Categories and Icons", "image" => "template5.jpg", "pro" => true, "value" => 5), 5 => array("title" => "Post feed and Pagination", "image" => "template6.jpg", "pro" => true, "value" => 6), 6 => array("title" => "Post feed Slide Up", "image" => "template7.jpg", "pro" => true, "value" => 7), 7 => array("title" => "Post feed Description", "image" => "template8.jpg", "pro" => true, "value" => 8));
// line 64
echo "
";
// line 66
echo " ";
// line 69
echo "
";
// line 70
if (isset($context["presets"])) { $_presets_ = $context["presets"]; } else { $_presets_ = null; }
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($_presets_);
foreach ($context['_seq'] as $context["_key"] => $context["data"]) {
// line 71
echo " ";
if (isset($context["preset"])) { $_preset_ = $context["preset"]; } else { $_preset_ = null; }
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
echo $_preset_->getputPreset($_data_);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['data'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 73
echo "
";
}
// line 3
public function getputPreset($_data = null)
{
$context = $this->env->mergeGlobals(array(
"data" => $_data,
));
$blocks = array();
ob_start();
try {
// line 4
echo " getAttribute($_environment_, "isPro", array(), "method") == false) && $this->getAttribute($_data_, "pro"))) {
echo "disabled";
}
echo "\"
data-preset=\"";
// line 5
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_data_, "value"), "html", null, true);
echo "\">
env, $this->getAttribute($this->getAttribute($_environment_, "getModule", array(0 => "galleries"), "method"), "getLocationUrl", array(), "method"), "html", null, true);
echo "/assets/img/";
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_data_, "image"), "html", null, true);
echo "\" alt=\"\"/>
";
// line 7
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
if (isset($context["environment"])) { $_environment_ = $context["environment"]; } else { $_environment_ = null; }
if (($this->getAttribute($_data_, "pro") && ($this->getAttribute($_environment_, "isPro", array(), "method") == false))) {
// line 8
echo "
Available in PRO
";
} else {
// line 12
echo "
Select
";
// line 16
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Selected")), "html", null, true);
echo "
";
}
// line 19
echo "
";
// line 20
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
echo twig_escape_filter($this->env, twig_title_string_filter($this->env, $this->getAttribute($_data_, "title")), "html", null, true);
echo "
";
} catch (Exception $e) {
ob_end_clean();
throw $e;
}
return ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
}
public function getTemplateName()
{
return "@galleries/gallery_preset.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 185 => 20, 182 => 19, 176 => 16, 170 => 12, 164 => 8, 160 => 7, 152 => 6, 147 => 5, 138 => 4, 127 => 3, 115 => 73, 104 => 71, 99 => 70, 96 => 69, 94 => 66, 91 => 64, 89 => 54, 86 => 53, 84 => 52, 80 => 50, 74 => 45, 69 => 40, 62 => 36, 56 => 34, 53 => 33, 43 => 29, 35 => 27, 32 => 26, 29 => 25,);
}
}