parent = $this->env->loadTemplate("grid-gallery.twig"); $this->blocks = array( 'header' => array($this, 'block_header'), 'content' => array($this, 'block_content'), 'iconsEffects' => array($this, 'block_iconsEffects'), ); } 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 " "; } // line 164 public function block_content($context, array $blocks = array()) { // line 165 echo " "; $context["importTypes"] = $this->env->loadTemplate("@galleries/shortcode/import.twig"); // line 166 echo " "; // line 167 if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } if (((!array_key_exists("gallery", $context)) || (null === $_gallery_))) { // line 168 echo "

"; echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("The gallery is does not exists")), "html", null, true); echo "

"; } else { // line 170 echo " "; if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } if (twig_test_empty($this->getAttribute($_gallery_, "photos"))) { // line 171 echo "

"; // line 173 echo twig_escape_filter($this->env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Currently this gallery has no images")), "html", null, true); echo " "; // line 175 if (isset($context["importTypes"])) { $_importTypes_ = $context["importTypes"]; } else { $_importTypes_ = null; } if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } echo $_importTypes_->getshow("1000", $this->getAttribute($_gallery_, "id")); echo "

"; } else { // line 178 echo " "; $context["view"] = $this->env->loadTemplate("@ui/type.twig"); // line 179 echo " "; if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } $context["entity"] = array("images" => $this->getAttribute($_gallery_, "photos")); // line 180 echo " "; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } $context["sliderSettings"] = $_settings_; // line 181 echo " "; // line 182 if (isset($context["viewType"])) { $_viewType_ = $context["viewType"]; } else { $_viewType_ = null; } if (($_viewType_ == "block")) { // line 183 echo " "; if (isset($context["view"])) { $_view_ = $context["view"]; } else { $_view_ = null; } if (isset($context["entity"])) { $_entity_ = $context["entity"]; } else { $_entity_ = null; } echo $_view_->getblock_view($_entity_); echo " "; } // line 185 echo " "; // line 186 if (isset($context["viewType"])) { $_viewType_ = $context["viewType"]; } else { $_viewType_ = null; } if (($_viewType_ == "list")) { // line 187 echo " "; if (isset($context["view"])) { $_view_ = $context["view"]; } else { $_view_ = null; } if (isset($context["entity"])) { $_entity_ = $context["entity"]; } else { $_entity_ = null; } if (isset($context["sliderSettings"])) { $_sliderSettings_ = $context["sliderSettings"]; } else { $_sliderSettings_ = null; } if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } echo $_view_->getlist_view($_entity_, $_sliderSettings_, $this->getAttribute($_gallery_, "id")); echo " "; } // line 189 echo " "; } // line 190 echo " "; } // 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 193 if (isset($context["importTypes"])) { $_importTypes_ = $context["importTypes"]; } else { $_importTypes_ = null; } if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } echo $_importTypes_->getshow(400, $this->getAttribute($_gallery_, "id")); echo "
env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Linked Images")), "html", null, true); echo "\" style=\"display:none;\">
env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("Select overlay effect")), "html", null, true); echo "\" style=\"display:none;\">
"; // line 211 $context["effects"] = array("none" => "None", "center" => "Middle", "quarter-appear" => "Appear", "quarter-slide-up" => "Quarter Slide Up", "quarter-slide-side" => "Quarter Slide Side", "quarter-fall-in" => "Quarter Fall in", "quarter-two-step" => "Quarter Two-step", "quarter-zoom" => "Quarter Caption Zoom", "cover-fade" => "Cover Fade", "cover-push-right" => "Cover Push Right", "revolving-door-left" => "Revolving Door Left", "revolving-door-right" => "Revolving Door Right", "revolving-door-top" => "Revolving Door Top", "revolving-door-bottom" => "Revolving Door Bottom", "cover-slide-top" => "Cover Slide Top", "offset" => "Caption Offset", "guillotine-reverse" => "Guillotine Reverse", "half-slide" => "Half Slide", "sqkwoosh" => "Sqkwoosh", "tunnel" => "Tunnel", "direction-aware" => "Direction Aware", "phophorus-rotate" => "Phophorus Rotate", "phophorus-offset" => "Phophorus Offset", "phophorus-scale" => "Phophorus Scale", "cube" => "Cube", "polaroid" => "Polaroid", "3d-cube" => "3D Cube"); // line 240 echo " "; $context["iconsWithCaptionsEffects"] = array("icons" => "Default", "icons-scale" => "Scale", "icons-sodium-left" => "Sodium Left", "icons-sodium-top" => "Sodium Top", "icons-nitrogen-top" => "Nitrogen Top"); // line 247 echo " "; ob_start(); // line 248 echo " border-radius: "; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, ($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "border"), "radius") . strtr($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "border"), "radius_unit"), array(0 => "px", 1 => "%"))), "html", null, true); echo "; "; // line 249 if (isset($context["environment"])) { $_environment_ = $context["environment"]; } else { $_environment_ = null; } if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } if ((($this->getAttribute($_environment_, "isPro", array(), "method") && $this->getAttribute($_settings_, "icons", array(), "any", true, true)) && ($this->getAttribute($this->getAttribute($_settings_, "icons"), "enabled") == "true"))) { // line 250 echo " "; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } if (($this->getAttribute($this->getAttribute($_settings_, "icons"), "overlay_enabled") == "true")) { // line 251 echo " background-color:"; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "icons", array(), "any", false, true), "overlay_color", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "icons", array(), "any", false, true), "overlay_color"), "#3498db")) : ("#3498db")), "html", null, true); echo "; "; } // line 253 echo " "; } else { // line 254 echo " color:"; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "foreground"), "html", null, true); echo "; background-color:"; // line 255 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "background"), "html", null, true); echo "; font-size:"; // line 256 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "text_size"), "html", null, true); if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, strtr($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "text_size_unit"), array(0 => "px", 1 => "%", 2 => "em")), "html", null, true); echo "; "; // line 257 if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } if (($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "text_align") != 3)) { // line 258 echo " text-align:"; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } echo twig_escape_filter($this->env, strtr($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "text_align"), array(0 => "left", 1 => "right", 2 => "center")), "html", null, true); echo "; "; } // line 260 echo " "; if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; } if ((($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "effect") == "none") || ($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "enabled") == "false"))) { // line 261 echo " "; // line 262 echo " bottom:0; "; } // line 264 echo " "; } // line 265 echo " "; $context["figcaptionStyle"] = ('' === $tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset()); // line 266 echo " "; // line 267 if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; } if (($this->getAttribute($this->getAttribute($this->getAttribute($_gallery_, "settings"), "icons"), "enabled") == "false")) { // line 268 echo " "; if (isset($context["effects"])) { $_effects_ = $context["effects"]; } else { $_effects_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($_effects_); foreach ($context['_seq'] as $context["type"] => $context["name"]) { // line 269 echo " "; if (isset($context["type"])) { $_type_ = $context["type"]; } else { $_type_ = null; } if (($_type_ == "direction-aware")) { // line 270 echo " "; } elseif (($_type_ == "3d-cube")) { // line 285 echo " "; } else { // line 310 echo " "; } // line 322 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['type'], $context['name'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 323 echo " "; } else { // line 325 echo "
env, call_user_func_array($this->env->getFunction('translate')->getCallable(), array("This effect requires icons be enabled. Enable Icons?")), "html", null, true); echo "\">

Captions effects with icons

"; // line 327 $this->displayBlock('iconsEffects', $context, $blocks); // line 351 echo "
"; } // line 353 echo "
"; } // line 327 public function block_iconsEffects($context, array $blocks = array()) { // line 328 echo " "; if (isset($context["iconsWithCaptionsEffects"])) { $_iconsWithCaptionsEffects_ = $context["iconsWithCaptionsEffects"]; } else { $_iconsWithCaptionsEffects_ = null; } $context['_parent'] = (array) $context; $context['_seq'] = twig_ensure_traversable($_iconsWithCaptionsEffects_); foreach ($context['_seq'] as $context["type"] => $context["name"]) { // line 329 echo " "; } $_parent = $context['_parent']; unset($context['_seq'], $context['_iterated'], $context['type'], $context['name'], $context['_parent'], $context['loop']); $context = array_intersect_key($context, $_parent) + $_parent; // line 350 echo " "; } public function getTemplateName() { return "@galleries/view.twig"; } public function isTraitable() { return false; } public function getDebugInfo() { return array ( 804 => 350, 794 => 346, 784 => 340, 779 => 339, 773 => 337, 763 => 331, 758 => 330, 752 => 329, 746 => 328, 743 => 327, 733 => 369, 728 => 368, 721 => 365, 716 => 364, 709 => 361, 704 => 360, 697 => 357, 692 => 356, 687 => 353, 683 => 351, 681 => 327, 675 => 325, 671 => 323, 665 => 322, 658 => 318, 650 => 314, 644 => 312, 639 => 311, 633 => 310, 626 => 306, 616 => 300, 610 => 298, 604 => 296, 588 => 285, 581 => 281, 574 => 278, 561 => 270, 557 => 269, 551 => 268, 548 => 267, 545 => 266, 542 => 265, 539 => 264, 535 => 262, 533 => 261, 529 => 260, 522 => 258, 519 => 257, 512 => 256, 507 => 255, 501 => 254, 498 => 253, 491 => 251, 487 => 250, 483 => 249, 477 => 248, 474 => 247, 471 => 240, 469 => 211, 464 => 209, 451 => 199, 447 => 198, 442 => 196, 434 => 193, 430 => 192, 427 => 191, 424 => 190, 421 => 189, 411 => 187, 408 => 186, 405 => 185, 397 => 183, 394 => 182, 391 => 181, 387 => 180, 383 => 179, 380 => 178, 372 => 175, 367 => 173, 363 => 171, 359 => 170, 353 => 168, 350 => 167, 347 => 166, 344 => 165, 341 => 164, 333 => 158, 325 => 153, 310 => 147, 305 => 144, 292 => 142, 287 => 141, 284 => 140, 281 => 139, 275 => 135, 270 => 132, 267 => 131, 264 => 130, 260 => 128, 257 => 127, 253 => 125, 250 => 124, 242 => 118, 231 => 97, 221 => 96, 214 => 95, 207 => 94, 200 => 93, 193 => 92, 186 => 91, 181 => 89, 177 => 88, 167 => 84, 160 => 83, 155 => 81, 146 => 80, 133 => 70, 124 => 64, 118 => 60, 109 => 49, 101 => 46, 92 => 40, 84 => 37, 76 => 32, 70 => 29, 67 => 28, 65 => 15, 52 => 9, 44 => 7, 36 => 5, 33 => 4, 30 => 3,); } }