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 3
public function block_header($context, array $blocks = array())
{
// line 4
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"), "method"), "html", null, true);
echo "\">";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Galleries")), "html", null, true);
echo "
";
}
// line 13
public function block_content($context, array $blocks = array())
{
// line 14
echo "
";
// line 17
if ((!array_key_exists("galleries", $context))) {
// line 18
echo " ";
// line 19
echo " ";
} else {
// line 20
echo "
";
// line 23
echo " ";
if (isset($context["galleries"])) { $_galleries_ = $context["galleries"]; } else { $_galleries_ = null; }
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($_galleries_);
$context['_iterated'] = false;
foreach ($context['_seq'] as $context["_key"] => $context["gallery"]) {
// line 24
echo "
env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "\" class=\"gg-item gg-gallery\" style=\"height: auto;\">
";
// line 25
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_title_string_filter($this->env, $this->getAttribute($_gallery_, "title"));
echo "
";
// line 28
echo " ";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
$context["cover"] = call_user_func_array($this->env->getFunction('get_attachment')->getCallable(), array($this->getAttribute($_gallery_, "attachment_id"), "350", "225", "true"));
// line 29
echo "
";
// line 30
if (isset($context["cover"])) { $_cover_ = $context["cover"]; } else { $_cover_ = null; }
if ((twig_length_filter($this->env, $_cover_) < 1)) {
// line 31
echo " ";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
if ((twig_length_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_gallery_, "settings"), "posts"), "postCover")) > 1)) {
// line 32
echo " ";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
$context["cover"] = $this->getAttribute($this->getAttribute($this->getAttribute($_gallery_, "settings"), "posts"), "postCover");
// line 33
echo " ";
}
// line 34
echo " ";
}
// line 35
echo "
env, ((array_key_exists("cover", $context)) ? (_twig_default_filter($_cover_, ("holder.js/350x220?theme=gray&text=" . $this->getAttribute($_gallery_, "title")))) : (("holder.js/350x220?theme=gray&text=" . $this->getAttribute($_gallery_, "title")))), "html", null, true);
echo "\" alt=\"";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo $this->getAttribute($_gallery_, "title");
echo "\" width=\"350px\" height=\"220px\"/>
";
// line 37
echo " ";
// line 41
echo "
env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries", 1 => "settings", 2 => array("gallery_id" => $this->getAttribute($_gallery_, "id"))), "method"), "html", null, true);
echo "\"
class=\"button background\">
";
// line 49
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Settings")), "html", null, true);
echo "
env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries", 1 => "view", 2 => array("gallery_id" => $this->getAttribute($_gallery_, "id"))), "method"), "html", null, true);
echo "\"
class=\"button background\">
";
// line 56
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Images list")), "html", null, true);
echo "
env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries", 1 => "preview", 2 => array("gallery_id" => $this->getAttribute($_gallery_, "id"))), "method"), "html", null, true);
echo "\"
class=\"button background\">
";
// line 63
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Preview")), "html", null, true);
echo "
";
// line 71
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Total Images: ")), "html", null, true);
echo "
env, sprintf(call_user_func_array($this->env->getFunction('translate')->getCallable(), array("There are %s photos in the gallery %s")), twig_length_filter($this->env, $this->getAttribute($_gallery_, "photos")), $this->getAttribute($_gallery_, "title")), "html", null, true);
echo "\">
";
// line 75
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_escape_filter($this->env, ($this->getAttribute($_gallery_, "total") + (($this->getAttribute($this->getAttribute($this->getAttribute($_gallery_, "settings", array(), "any", false, true), "posts", array(), "any", false, true), "length", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($_gallery_, "settings", array(), "any", false, true), "posts", array(), "any", false, true), "length"), 0)) : (0))), "html", null, true);
echo "
env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Upload new images")), "html", null, true);
echo "\">
env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "\" ";
echo ">
";
// line 83
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Add Images")), "html", null, true);
echo "
env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Are you sure you want to delete this gallery?")), "html", null, true);
echo "\" class=\"button button-primary\" title=\"Delete this gallery\"
href=\"";
// line 88
if (isset($context["environment"])) { $_environment_ = $context["environment"]; } else { $_environment_ = null; }
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
if (isset($context["_wpnonce"])) { $__wpnonce_ = $context["_wpnonce"]; } else { $__wpnonce_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries", 1 => "delete", 2 => array("gallery_id" => $this->getAttribute($_gallery_, "id"), "_wpnonce" => $__wpnonce_)), "method"), "html", null, true);
echo "\">
";
// line 90
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Delete gallery")), "html", null, true);
echo "
";
// line 97
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Shortcode:")), "html", null, true);
echo " env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "\" class=\"ggCopyTextCode shortcode\" value=\"[supsystic-gallery id='";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "']\">
";
// line 98
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("PHPCode:")), "html", null, true);
echo "
env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "\" class=\"ggCopyTextCode phpcode\"
value=\"";
// line 100
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_escape_filter($this->env, (("getAttribute($_gallery_, "id")) . "]') ?>"), "html", null, true);
echo "\">
";
$context['_iterated'] = true;
}
if (!$context['_iterated']) {
// line 105
echo "
";
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("You have no galleries")), "html", null, true);
echo "
";
// line 107
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("You don't have any galleries yet.")), "html", null, true);
echo "
env, $this->getAttribute($_environment_, "generateUrl", array(0 => "galleries", 1 => "showPresets"), "method"), "html", null, true);
echo "\"
id=\"gg-create-gallery-link\"
style = \"color: #4ae8ea;\">";
// line 110
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Want to create one right now?")), "html", null, true);
echo "
";
// line 113
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("What is a gallery")), "html", null, true);
echo "
";
// line 115
echo call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Gallery — the highest type of entity in the Gallery by Supsystic."));
echo "
";
// line 117
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("You can have an unlimited number of galleries, to which you can attach the preloaded pictures.")), "html", null, true);
echo "
";
// line 118
echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Each gallery has a number of display settings and behaviors that you can save to presets and apply to other galleries.")), "html", null, true);
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['gallery'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 121
echo "
";
}
// line 123
echo "
";
// line 146
echo "
";
// line 189
echo "
";
// line 190
$context["importTypes"] = $this->env->loadTemplate("@galleries/shortcode/import.twig");
// line 191
echo "
env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Select source to import from")), "html", null, true);
echo "\" style=\"display: none;\">
";
// line 192
if (isset($context["importTypes"])) { $_importTypes_ = $context["importTypes"]; } else { $_importTypes_ = null; }
echo $_importTypes_->getshow(400);
echo "
";
}
// line 125
public function getputPreset($_data = null)
{
$context = $this->env->mergeGlobals(array(
"data" => $_data,
));
$blocks = array();
ob_start();
try {
// line 126
echo " getAttribute($_environment_, "isPro", array(), "method") == false) && $this->getAttribute($_data_, "pro"))) {
echo "disabled";
}
echo "\"
data-preset=\"";
// line 127
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_data_, "value"), "html", null, true);
echo "\">
";
// line 128
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 "
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 130
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 131
echo "
getAttribute($_data_, "title") == "Categories")) {
// line 133
echo " href=\"http://supsystic.com/plugins/photo-gallery/\" target=\"_blank\">
";
}
// line 135
echo " ";
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
if (($this->getAttribute($_data_, "title") == "Icons")) {
// line 136
echo " href=\"http://supsystic.com/plugins/photo-gallery/\" target=\"_blank\">
";
}
// line 138
echo " ";
if (isset($context["data"])) { $_data_ = $context["data"]; } else { $_data_ = null; }
if (($this->getAttribute($_data_, "title") == "Pagination")) {
// line 139
echo " href=\"http://supsystic.com/plugins/photo-gallery/\" target=\"_blank\">
";
}
// line 141
echo " Available in PRO
";
}
// line 144
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/index.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 424 => 144, 419 => 141, 415 => 139, 411 => 138, 407 => 136, 403 => 135, 399 => 133, 396 => 132, 393 => 131, 389 => 130, 381 => 129, 376 => 128, 371 => 127, 362 => 126, 351 => 125, 342 => 192, 337 => 191, 335 => 190, 332 => 189, 328 => 146, 324 => 123, 320 => 121, 311 => 118, 307 => 117, 302 => 115, 297 => 113, 291 => 110, 285 => 108, 281 => 107, 275 => 105, 264 => 100, 259 => 99, 255 => 98, 245 => 97, 235 => 90, 227 => 88, 223 => 87, 216 => 83, 209 => 81, 204 => 79, 196 => 75, 191 => 74, 185 => 71, 174 => 63, 166 => 60, 159 => 56, 151 => 53, 144 => 49, 136 => 46, 129 => 41, 127 => 37, 117 => 35, 114 => 34, 111 => 33, 107 => 32, 103 => 31, 100 => 30, 97 => 29, 93 => 28, 87 => 25, 81 => 24, 74 => 23, 70 => 20, 67 => 19, 65 => 18, 63 => 17, 58 => 14, 55 => 13, 44 => 8, 36 => 6, 32 => 4, 29 => 3,);
}
}