parent = false;
$this->blocks = array(
'gallery_before' => array($this, 'block_gallery_before'),
'gallery_attributes' => array($this, 'block_gallery_attributes'),
'photos_before' => array($this, 'block_photos_before'),
'photos_attributes' => array($this, 'block_photos_attributes'),
'photos' => array($this, 'block_photos'),
'photos_after' => array($this, 'block_photos_after'),
);
}
protected function doDisplay(array $context, array $blocks = array())
{
// line 1
$context["style"] = $this->env->loadTemplate("@galleries/shortcode/style.twig");
// line 2
echo "
";
// line 3
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
if ((array_key_exists("gallery", $context) && (!twig_test_empty($_gallery_)))) {
// line 4
echo "\t";
$this->displayBlock('gallery_before', $context, $blocks);
// line 14
echo "
\t
displayBlock('gallery_attributes', $context, $blocks);
// line 182
echo ">
\t\t";
// line 184
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ((($this->getAttribute($this->getAttribute($_settings_, "preload"), "enabled") == "true") || ($this->getAttribute($this->getAttribute($_settings_, "preload"), "enabled") == null))) {
// line 185
echo "\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (isset($context["environment"])) { $_environment_ = $context["environment"]; } else { $_environment_ = null; }
if (((($this->getAttribute($this->getAttribute($_settings_, "preload"), "icon_name") == "default") || ($this->getAttribute($_environment_, "isPro", array(), "method") != true)) || ($this->getAttribute($this->getAttribute($_settings_, "preload"), "enabled") == null))) {
// line 186
echo "\t\t\t\t
\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t\t
\t\t\t\t\t
\t\t\t\t
\t\t\t";
} else {
// line 195
echo "\t\t\t\t
\t\t\t\t\t
env, $this->getAttribute($this->getAttribute($_settings_, "preload"), "icon_name"), "html", null, true);
echo "\" style=\"color: ";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "preload"), "background"), "html", null, true);
echo "\">
\t\t\t\t\t\t";
// line 197
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable(range(1, $this->getAttribute($this->getAttribute($_settings_, "preload"), "icon_items")));
foreach ($context['_seq'] as $context["_key"] => $context["i"]) {
// line 198
echo "\t\t\t\t\t\t\t
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['i'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 200
echo "\t\t\t\t\t
\t\t\t\t
\t\t\t";
}
// line 203
echo "\t\t";
}
// line 204
echo "
\t\t";
// line 205
$this->displayBlock('photos_before', $context, $blocks);
// line 207
echo "
\t\t";
// line 208
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "enabled")) {
// line 209
echo "
";
// line 210
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo $this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "html");
echo "
";
// line 212
echo "
";
}
// line 214
echo "
\t\t
displayBlock('photos_attributes', $context, $blocks);
// line 220
echo ">
\t\t\t";
// line 222
$this->displayBlock('photos', $context, $blocks);
// line 229
echo "
\t\t\t
\t\t
\t\t
\t\t";
// line 236
$this->displayBlock('photos_after', $context, $blocks);
// line 238
echo "\t
\t
\t
";
}
}
// line 4
public function block_gallery_before($context, array $blocks = array())
{
// line 5
echo "\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($_settings_, "icons", array(), "any", true, true) && ($this->getAttribute($this->getAttribute($_settings_, "icons"), "enabled") == "true"))) {
// line 6
echo "\t\t\t
\t\t";
}
// line 13
echo "\t";
}
// line 16
public function block_gallery_attributes($context, array $blocks = array())
{
// line 17
echo "\t\t\tid=\"grid-gallery-";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "\"
\t\t\tdata-title=\"";
// line 18
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_gallery_, "title"), "html", null, true);
echo "\"
\t\t\tdata-grid-type=\"";
// line 19
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "area"), "grid"), "html", null, true);
echo "\"
\t\t\tdata-offset=\"";
// line 20
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "area"), "distance"), "html", null, true);
echo "\"
\t\t\tdata-area-position=\"";
// line 21
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "area"), "position"), "html", null, true);
echo "\"
\t\t\tdata-icons=\"";
// line 22
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "icons"), "enabled"), "html", null, true);
echo "\"
\t\t\tdata-preloader = \"";
// line 23
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "preload"), "enabled"), "html", null, true);
echo "\"
\t\t\t";
// line 24
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "grid") == "2")) {
// line 25
echo " \t\t\t\tdata-width=\"auto\"
\t\t\t";
} else {
// line 27
echo " \t\t\t\tdata-width=\"";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "area"), "photo_width"), "html", null, true);
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "photo_width_unit") == 1)) {
echo "%";
}
echo "\"
\t\t\t";
}
// line 29
echo "\t\t\tdata-height=\"";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "area"), "photo_height"), "html", null, true);
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "photo_height_unit") == 1)) {
echo "%";
}
echo "\"
\t\t\tdata-padding=\"";
// line 30
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "area"), "padding"), "html", null, true);
echo "\"
\t\t\tdata-quicksand = \"";
// line 31
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "quicksand"), "enabled") == "1")) {
echo "enabled";
} else {
echo "disabled";
}
echo "\"
\t\t\tdata-quicksand-duration = \"";
// line 32
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ((!twig_test_empty($this->getAttribute($this->getAttribute($_settings_, "quicksand"), "duration")))) {
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "quicksand"), "duration"), "html", null, true);
} else {
echo "none";
}
echo "\"
\t\t\t\t";
// line 33
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "enabled", array(), "any", true, true) && ($this->getAttribute($this->getAttribute($_settings_, "box"), "enabled") == "false"))) {
// line 34
echo "\t\t\t\t\tdata-popup-type = \"disable\"
\t\t\t\t";
} else {
// line 36
echo "\t\t\t\t\tdata-popup-theme = ";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "box"), "theme"), "html", null, true);
echo "
\t\t\t\t";
}
// line 38
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (isset($context["mobile"])) { $_mobile_ = $context["mobile"]; } else { $_mobile_ = null; }
if ((($this->getAttribute($this->getAttribute($_settings_, "box"), "type") == "0") && ($_mobile_ != "true"))) {
// line 39
echo "\t\t\t\t\tdata-popup-type =\"colorbox\"
\t\t\t\t\tdata-popup-fadeOut = \"";
// line 40
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "fadeOut", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "fadeOut"), 300)) : (300)), "html", null, true);
echo "\"
\t\t\t\t";
}
// line 42
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (isset($context["mobile"])) { $_mobile_ = $context["mobile"]; } else { $_mobile_ = null; }
if (((($this->getAttribute($this->getAttribute($_settings_, "box"), "type") == "1") && ($_mobile_ != "true")) && ((($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "enabled", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "enabled"), "true")) : ("true")) == "true"))) {
// line 43
echo "\t\t\t\t\tdata-popup-type = \"pretty-photo\"
\t\t\t\t";
}
// line 45
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (isset($context["mobile"])) { $_mobile_ = $context["mobile"]; } else { $_mobile_ = null; }
if (((($this->getAttribute($this->getAttribute($_settings_, "box"), "type") == "2") && ($_mobile_ != "true")) && ((($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "enabled", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "enabled"), "true")) : ("true")) == "true"))) {
// line 46
echo "\t\t\t\t\tdata-popup-type = \"photobox\"
\t\t\t\t";
}
// line 48
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "grid") == "3")) {
// line 49
echo "\t\t\t\t\tdata-columns-number = ";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "general"), "columns"), "number"), "html", null, true);
echo "
\t\t\t\t";
}
// line 51
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "box"), "captions") == "on")) {
// line 52
echo "\t\t\t\t\tdata-popup-captions = 'hide'
\t\t\t\t";
}
// line 54
echo "
\t\t\t\tdata-popup-image-text = \"";
// line 55
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "imageText", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "imageText"), "title")) : ("title")), "html", null, true);
echo "\"
\t\t\t\t";
// line 57
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "box"), "popupwidth") == "")) {
echo "
\t\t\t\t\tdata-popup-widthsize = \"auto\"
\t\t\t\t";
} else {
// line 59
echo "
\t\t\t\t\tdata-popup-widthsize = \"";
// line 60
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "box"), "popupwidth"), "html", null, true);
echo "\"
\t\t\t\t";
}
// line 62
echo "
\t\t\t\t";
// line 63
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "box"), "popupheight") == "")) {
echo "
\t\t\t\t\tdata-popup-heightsize = \"auto\"
\t\t\t\t";
} else {
// line 65
echo "
\t\t\t\t\tdata-popup-heightsize = \"";
// line 66
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "box"), "popupheight"), "html", null, true);
echo "\"
\t\t\t\t";
}
// line 68
echo "
\t\t\t";
// line 69
$context["popup_i18n_words"] = array("close" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("close")), "next" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("next")), "previous" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("previous")), "start_slideshow" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("start slideshow")), "stop_slideshow" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("stop slideshow")), "image" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("image")), "of" => call_user_func_array($this->env->getFunction('translate')->getCallable(), array("of")));
// line 70
echo "\t\t\tdata-popup-i18n-words = \"";
if (isset($context["popup_i18n_words"])) { $_popup_i18n_words_ = $context["popup_i18n_words"]; } else { $_popup_i18n_words_ = null; }
echo twig_escape_filter($this->env, twig_jsonencode_filter($_popup_i18n_words_));
echo "\"
data-popup-slideshow = \"";
// line 72
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "slideshow", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "slideshow"), "false")) : ("false")), "html", null, true);
echo "\"
\t\t\tdata-popup-slideshow-speed = \"";
// line 73
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "slideshowSpeed", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "slideshowSpeed"), 2500)) : (2500)), "html", null, true);
echo "\"
\t\t\tdata-popup-hoverstop = \"";
// line 74
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "popupHoverStop", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "popupHoverStop"), "false")) : ("false")), "html", null, true);
echo "\"
\t\t\tdata-popup-slideshow-auto = \"";
// line 75
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "slideshowAuto", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "slideshowAuto"), "false")) : ("false")), "html", null, true);
echo "\"
\t\t\tdata-popup-background = \"";
// line 76
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "box"), "background"), "html", null, true);
echo "\"
\t\t\tdata-popup-transparency = \"";
// line 77
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "transparency", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "box", array(), "any", false, true), "transparency"), 30)) : (30)), "html", null, true);
echo "\"
\t\t\tdata-popup-disable-history=\"";
// line 78
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "box"), "disableHistory"), "html", null, true);
echo "\"
\t\t\tdata-fullscreen=\"";
// line 79
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo (($this->getAttribute($_settings_, "fullscreen")) ? ("true") : ("false"));
echo "\"
\t\t\tdata-hide-tooltip=\"";
// line 80
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "tooltip"), "html", null, true);
echo "\"
\t\t\tdata-caption-font-family=\"";
// line 81
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"), "font_family"), "html", null, true);
echo "\"
\t\t\tdata-caption-text-size=\"";
// line 82
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 "\"
\t\t\tdata-is-mobile=\"";
// line 83
if (isset($context["isMobile"])) { $_isMobile_ = $context["isMobile"]; } else { $_isMobile_ = null; }
echo twig_escape_filter($this->env, ((array_key_exists("isMobile", $context)) ? (_twig_default_filter($_isMobile_, "0")) : ("0")), "html", null, true);
echo "\"
\t\t\tdata-caption-mobile=\"";
// line 84
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "isMobile", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "isMobile"), "false")) : ("false")), "html", null, true);
echo "\" ";
// line 85
echo "\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail"), "overlay"), "effect") == "polaroid")) {
// line 86
echo "\t\t\t\tdata-polaroid-animation=\"";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "overlay", array(), "any", false, true), "polaroidAnimation", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "overlay", array(), "any", false, true), "polaroidAnimation"), "true")) : ("true")), "html", null, true);
echo "\"
\t\t\t\tdata-polaroid-scattering=\"";
// line 87
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "overlay", array(), "any", false, true), "polaroidScattering", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "overlay", array(), "any", false, true), "polaroidScattering"), "true")) : ("true")), "html", null, true);
echo "\"
\t\t\t\tdata-polaroid-frame-width=\"";
// line 88
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "overlay", array(), "any", false, true), "polaroidFrameWidth", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "thumbnail", array(), "any", false, true), "overlay", array(), "any", false, true), "polaroidFrameWidth"), 20)) : (20)), "html", null, true);
echo "\"
\t\t\t";
}
// line 90
echo "\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "grid") == "3")) {
// line 91
echo "\t\t\t\tdata-responsive-colums=\"";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, twig_jsonencode_filter((($this->getAttribute($this->getAttribute($_settings_, "general", array(), "any", false, true), "responsiveColumns", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "general", array(), "any", false, true), "responsiveColumns"), "")) : (""))));
echo "\"
\t\t\t";
}
// line 93
echo "\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($_settings_, "horizontalScroll", array(), "any", true, true) && ($this->getAttribute($this->getAttribute($_settings_, "horizontalScroll"), "enabled") == "true"))) {
// line 94
echo "\t\t\t\tdata-horizontal-scroll=\"";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, twig_jsonencode_filter($this->getAttribute($_settings_, "horizontalScroll")));
echo "\"
\t\t\t";
}
// line 96
echo "
";
// line 97
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
$context["imageSharingButPos"] = $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "buttonsPosition");
// line 98
echo " ";
if (isset($context["imageSharingButPos"])) { $_imageSharingButPos_ = $context["imageSharingButPos"]; } else { $_imageSharingButPos_ = null; }
$context["imageSharingWrapperClass"] = ($_imageSharingButPos_ . " ");
// line 99
echo " ";
if (isset($context["imageSharingButPos"])) { $_imageSharingButPos_ = $context["imageSharingButPos"]; } else { $_imageSharingButPos_ = null; }
if ((($_imageSharingButPos_ == "top") || ($_imageSharingButPos_ == "bottom"))) {
// line 100
echo " ";
if (isset($context["imageSharingWrapperClass"])) { $_imageSharingWrapperClass_ = $context["imageSharingWrapperClass"]; } else { $_imageSharingWrapperClass_ = null; }
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
$context["imageSharingWrapperClass"] = ($_imageSharingWrapperClass_ . $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "buttonsAlignHorizontal"));
// line 101
echo " ";
} else {
// line 102
echo " ";
if (isset($context["imageSharingWrapperClass"])) { $_imageSharingWrapperClass_ = $context["imageSharingWrapperClass"]; } else { $_imageSharingWrapperClass_ = null; }
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
$context["imageSharingWrapperClass"] = (($_imageSharingWrapperClass_ . "vertical ") . $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "buttonsAlignVertical"));
// line 104
echo " ";
}
// line 105
echo "
";
// line 116
echo "
";
// line 117
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
$context["socialSharing"] = array("enabled" => $this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "enabled"), "gallerySharing" => array("enabled" => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "gallerySharing"), "enabled"), "position" => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "gallerySharing"), "buttonsPosition")), "imageSharing" => array("enabled" => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "enabled"), "wrapperClass" => $this->getAttribute($this, "getSocialSharingWrapperClass", array(0 => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "buttonsPosition"), 1 => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "buttonsAlignHorizontal"), 2 => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "imageSharing"), "buttonsAlignVertical")), "method")), "popupSharing" => array("enabled" => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "popupImageSharing"), "enabled"), "wrapperClass" => $this->getAttribute($this, "getSocialSharingWrapperClass", array(0 => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "popupImageSharing"), "buttonsPosition"), 1 => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "popupImageSharing"), "buttonsAlignHorizontal"), 2 => $this->getAttribute($this->getAttribute($this->getAttribute($_settings_, "socialSharing"), "popupImageSharing"), "buttonsAlignVertical")), "method")));
// line 142
echo "\t\t\tdata-social-sharing = \"";
if (isset($context["socialSharing"])) { $_socialSharing_ = $context["socialSharing"]; } else { $_socialSharing_ = null; }
echo twig_escape_filter($this->env, twig_jsonencode_filter($_socialSharing_));
echo "\"
\t\t\tclass=\"grid-gallery
\t\t\t\t";
// line 145
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "grid") == "1")) {
// line 146
echo "\t\t\t\t\tgrid-gallery-fluid-height
\t\t\t\t";
} else {
// line 148
echo "\t\t\t\t\tgrid-gallery-fixed
\t\t\t\t";
}
// line 150
echo "
\t\t\t\t";
// line 151
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "thumbs"), "enable") == "1")) {
// line 152
echo "\t\t\t\t\tgrid-gallery-thumbs
\t\t\t\t";
}
// line 154
echo "
\t\t\t\t";
// line 155
if (isset($context["environment"])) { $_environment_ = $context["environment"]; } else { $_environment_ = null; }
if ((($this->getAttribute($this->getAttribute($_environment_, "getConfig", array(), "method"), "get", array(0 => "optimizations"), "method") == 1) && ($this->getAttribute($_environment_, "isPro", array(), "method") == false))) {
// line 156
echo "\t\t\t\t\t\toptimizations
\t\t\t\t";
}
// line 158
echo "
\t\t\t\t";
// line 159
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($_settings_, "openByLink") == "on")) {
// line 160
echo "\t\t\t\t hidden-item
";
}
// line 162
echo "
\t\t\t\t";
// line 163
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($_settings_, "displayFirstPhoto") == "on")) {
// line 164
echo "\t\t\t\t one-photo
";
}
// line 166
echo " \"
\t\t\tstyle=\"
\t\t\t\twidth:";
// line 168
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, ($this->getAttribute($this->getAttribute($_settings_, "area"), "width") . strtr($this->getAttribute($this->getAttribute($_settings_, "area"), "width_unit"), array(0 => "px", 1 => "%"))), "html", null, true);
echo ";
\t\t\t\theight:";
// line 169
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
echo twig_escape_filter($this->env, (($this->getAttribute($this->getAttribute($_settings_, "area", array(), "any", false, true), "height", array(), "any", true, true)) ? (_twig_default_filter($this->getAttribute($this->getAttribute($_settings_, "area", array(), "any", false, true), "height"), "auto")) : ("auto")), "html", null, true);
echo "
\t\t\t\t\t";
// line 170
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ((($this->getAttribute($this->getAttribute($_settings_, "area"), "height") != "auto") && ($this->getAttribute($this->getAttribute($_settings_, "area"), "height") != null))) {
echo "px ";
}
echo ";
\t\t\t\t";
// line 171
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ((($this->getAttribute($this->getAttribute($_settings_, "area"), "position") == "1") || ($this->getAttribute($this->getAttribute($_settings_, "area"), "position") == "left"))) {
// line 172
echo "\t\t\t\t\tfloat: left;
\t\t\t\t";
}
// line 174
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ((($this->getAttribute($this->getAttribute($_settings_, "area"), "position") == "2") || ($this->getAttribute($this->getAttribute($_settings_, "area"), "position") == "right"))) {
// line 175
echo "\t\t\t\t\tfloat:right;
\t\t\t\t";
}
// line 177
echo "\t\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (($this->getAttribute($this->getAttribute($_settings_, "area"), "position") == "center")) {
// line 178
echo "\t\t\t\tmargin-left:auto;
\t\t\t\tmargin-right:auto;
\t\t\t\t";
}
// line 181
echo "\t\t\t";
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if ($this->getAttribute($this->getAttribute($_settings_, "fullscreen"), "enabled")) {
echo "position: fixed; z-index: 9999999; top: 0; left: 0; background-color: white;";
} else {
echo "position:relative;";
}
echo "\"
\t\t";
}
// line 205
public function block_photos_before($context, array $blocks = array())
{
// line 206
echo "\t\t";
}
// line 217
public function block_photos_attributes($context, array $blocks = array())
{
// line 218
echo "\t\t\t\tid=\"photos-";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
echo twig_escape_filter($this->env, $this->getAttribute($_gallery_, "id"), "html", null, true);
echo "\"
\t\t\t\tclass=\"grid-gallery-photos\"
\t\t\t";
}
// line 222
public function block_photos($context, array $blocks = array())
{
// line 223
echo "\t\t\t ";
$context["i"] = 0;
// line 224
echo "\t\t\t\t";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
$context['_parent'] = (array) $context;
$context['_seq'] = twig_ensure_traversable($this->getAttribute($_gallery_, "photos"));
foreach ($context['_seq'] as $context["_key"] => $context["photo"]) {
// line 225
echo "\t\t\t\t\t";
if (isset($context["gallery"])) { $_gallery_ = $context["gallery"]; } else { $_gallery_ = null; }
if (isset($context["photo"])) { $_photo_ = $context["photo"]; } else { $_photo_ = null; }
if (isset($context["settings"])) { $_settings_ = $context["settings"]; } else { $_settings_ = null; }
if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; }
$this->env->loadTemplate("@galleries/shortcode/helpers.twig")->display(array("gallery" => $_gallery_, "photo" => $_photo_, "settings" => $_settings_, "index" => $_i_));
// line 226
echo "\t\t\t\t ";
if (isset($context["i"])) { $_i_ = $context["i"]; } else { $_i_ = null; }
$context["i"] = ($_i_ + 1);
// line 227
echo "\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['photo'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 228
echo "\t\t\t";
}
// line 236
public function block_photos_after($context, array $blocks = array())
{
// line 237
echo "\t\t";
}
// line 106
public function getgetSocialSharingWrapperClass($_position = null, $_horizontalAlign = null, $_verticalAlign = null)
{
$context = $this->env->mergeGlobals(array(
"position" => $_position,
"horizontalAlign" => $_horizontalAlign,
"verticalAlign" => $_verticalAlign,
));
$blocks = array();
ob_start();
try {
// line 107
echo " ";
if (isset($context["position"])) { $_position_ = $context["position"]; } else { $_position_ = null; }
$context["class"] = ($_position_ . " ");
// line 108
echo " ";
if (isset($context["position"])) { $_position_ = $context["position"]; } else { $_position_ = null; }
if ((($_position_ == "top") || ($_position_ == "bottom"))) {
// line 109
echo " ";
if (isset($context["class"])) { $_class_ = $context["class"]; } else { $_class_ = null; }
if (isset($context["horizontalAlign"])) { $_horizontalAlign_ = $context["horizontalAlign"]; } else { $_horizontalAlign_ = null; }
$context["class"] = ($_class_ . $_horizontalAlign_);
// line 110
echo " ";
} else {
// line 111
echo " ";
if (isset($context["class"])) { $_class_ = $context["class"]; } else { $_class_ = null; }
if (isset($context["verticalAlign"])) { $_verticalAlign_ = $context["verticalAlign"]; } else { $_verticalAlign_ = null; }
$context["class"] = (($_class_ . "vertical ") . $_verticalAlign_);
// line 113
echo " ";
}
// line 114
echo " ";
if (isset($context["class"])) { $_class_ = $context["class"]; } else { $_class_ = null; }
echo twig_escape_filter($this->env, $_class_, "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/shortcode/gallery.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 800 => 114, 797 => 113, 792 => 111, 789 => 110, 784 => 109, 780 => 108, 776 => 107, 763 => 106, 759 => 237, 756 => 236, 752 => 228, 746 => 227, 742 => 226, 735 => 225, 729 => 224, 726 => 223, 723 => 222, 714 => 218, 711 => 217, 707 => 206, 704 => 205, 692 => 181, 687 => 178, 683 => 177, 679 => 175, 675 => 174, 671 => 172, 668 => 171, 661 => 170, 656 => 169, 651 => 168, 647 => 166, 643 => 164, 640 => 163, 637 => 162, 633 => 160, 630 => 159, 627 => 158, 623 => 156, 620 => 155, 617 => 154, 613 => 152, 610 => 151, 607 => 150, 603 => 148, 599 => 146, 596 => 145, 588 => 142, 585 => 117, 582 => 116, 579 => 105, 576 => 104, 571 => 102, 568 => 101, 563 => 100, 559 => 99, 555 => 98, 552 => 97, 549 => 96, 542 => 94, 538 => 93, 531 => 91, 527 => 90, 521 => 88, 516 => 87, 510 => 86, 506 => 85, 502 => 84, 497 => 83, 490 => 82, 485 => 81, 480 => 80, 475 => 79, 470 => 78, 465 => 77, 460 => 76, 455 => 75, 450 => 74, 445 => 73, 440 => 72, 433 => 70, 431 => 69, 428 => 68, 422 => 66, 419 => 65, 412 => 63, 409 => 62, 403 => 60, 400 => 59, 393 => 57, 387 => 55, 384 => 54, 380 => 52, 376 => 51, 369 => 49, 365 => 48, 361 => 46, 356 => 45, 352 => 43, 347 => 42, 341 => 40, 338 => 39, 333 => 38, 326 => 36, 322 => 34, 319 => 33, 309 => 32, 300 => 31, 295 => 30, 285 => 29, 274 => 27, 270 => 25, 267 => 24, 262 => 23, 257 => 22, 252 => 21, 247 => 20, 242 => 19, 237 => 18, 231 => 17, 228 => 16, 224 => 13, 211 => 10, 200 => 9, 186 => 8, 172 => 7, 169 => 6, 165 => 5, 162 => 4, 147 => 240, 143 => 238, 141 => 236, 132 => 229, 130 => 222, 126 => 220, 124 => 217, 119 => 214, 115 => 212, 110 => 210, 107 => 209, 104 => 208, 101 => 207, 99 => 205, 96 => 204, 93 => 203, 88 => 200, 81 => 198, 76 => 197, 68 => 196, 65 => 195, 54 => 186, 49 => 185, 46 => 184, 42 => 182, 40 => 16, 36 => 14, 33 => 4, 30 => 3, 27 => 2, 25 => 1,);
}
}