{% extends 'grid-gallery.twig' %} {% macro label(label, for) %} {% endmacro %} {% block header %}

{{ translate('Main') }} {{ translate('Captions') }} {{ translate('Categories') }} {{ translate('Posts') }} {% block tabs %}{% endblock %}

{% endblock %} {% block preview %} {% import '@galleries/shortcode/style.twig' as style %} {% import '@galleries/helpers/attachment.twig' as attachment %} {% endblock %} {% block content %} {% import '@core/form.twig' as form %} {% import _self as f %}
{{ form.open('post', environment.generateUrl('galleries', 'saveSettings', { 'gallery_id': gallery.id }), { 'id': 'form-settings' }) }}
{% block area %} {{ form.row(translate('Gallery Type'), form.select('area[grid]', ['Fixed', 'Vertical', 'Horizontal', 'Fixed Columns'], settings.area.grid, { 'style': 'width: auto;' }), 'grid-type', 'gallery-types', 'columns') }} {{ form.row(translate('Responsive columns'), form.input('number', 'general[responsiveColumns][desktop][width]',settings.general.responsiveColumns.desktop.width|default(1200), { 'style': { 'width': '60px;' } }) ~ form.span('', 'px') ~ form.input('number', 'general[responsiveColumns][desktop][columns]', settings.general.responsiveColumns.desktop.columns|default(settings.general.columns.number|default(3)), { 'style': { 'width': '40px;' } }) ~ form.span('', 'columns') ~ '
' ~ form.input('number', 'general[responsiveColumns][tablet][width]', settings.general.responsiveColumns.tablet.width|default(768), { 'style': { 'width': '60px;' } }) ~ form.span('', 'px') ~ form.input('number', 'general[responsiveColumns][tablet][columns]', settings.general.responsiveColumns.tablet.columns|default(settings.general.columns.number|default(3)), { 'style': { 'width': '40px;' } }) ~ form.span('', 'columns') ~ '
' ~ form.input('number', 'general[responsiveColumns][mobile][width]', settings.general.responsiveColumns.mobile.width|default(320), { 'style': { 'width': '60px;' } }) ~ form.span('', 'px') ~ form.input('number', 'general[responsiveColumns][mobile][columns]', settings.general.responsiveColumns.mobile.columns|default(settings.general.columns.number|default(3)), { 'style': { 'width': '40px;' } }) ~ form.span('', 'columns'), 'responsive-columns') }} {#{{ form.row(environment.translate('Position'), form.select('area[position]', ['Center', 'Left', 'Right'], settings.area.position, { 'style': 'width: 300px;' }), 'grid-type') }}#} {{ form.row(translate('Gallery Name:'), form.input('text', 'title', gallery.title|raw, { 'style': { 'width': '232px;' } }) , 'title') }} {{ form.row(environment.translate('Gallery Position'), form.select('area[position]', ['Left', 'Center', 'Right'], settings.area.position|default(1), { 'style': 'width: 100px;' })) }} {{ form.row(translate('Images distance'), form.input('number', 'area[distance]', settings.area.distance, { 'style': { 'width': '140px;' } }) ~ form.span('', 'pixels'), 'distance') }} {{ form.row(translate('Gallery width'), form.input('number', 'area[width]', settings.area.width, { 'style': { 'width': '140px' } }) ~ form.select('area[width_unit]', ['pixels', 'percents'], settings.area.width_unit, { 'style': 'margin-top: -2px; height: 27px;' }), 'area-width') }} {# Setting gallery to full width of window #} {{ form.row(translate('Full screen width'), form.checkbox( 'fullscreen', '1', settings.fullscreen ? {'checked':'checked'} : {} ), 'enabled') }} {{ form.row(translate('Gallery padding'), form.input('number', 'area[padding]', settings.area.padding|default(0), { 'style': { 'width': '140px' } }) ~ form.span('', 'pixels'), 'area-padding') }} {# {{ form.row(environment.translate('Gallery height'), form.input('number', 'area[height]', settings.area.height, { 'style': { 'width': '205px'} }) ~ form.select('', ['pixels', 'percents'], null, { 'disabled': 'disabled', 'style': 'margin-top: -2px; height: 27px' }), 'area-height') }} #} {{ form.row(translate('Image width'), form.input('number', 'area[photo_width]', settings.area.photo_width, { 'style': { 'width': '140px'} }) ~ form.select('area[photo_width_unit]', ['pixels', 'percents'], settings.area.photo_width_unit, { 'style': 'margin-top: -2px; height: 27px; width: 85px;' }), 'photo-width') }} {{ form.row(translate('Image height'), form.input('number', 'area[photo_height]', settings.area.photo_height, { 'style': { 'width': '140px'} }) ~ form.select('area[photo_height_unit]', ['pixels'], settings.area.photo_height_unit, { 'style': 'margin-top: -2px; height: 27px; width: 85px;' }), 'photo-height') }} {{ form.row(translate('Image radius'), form.input('number', 'thumbnail[border][radius]', settings.thumbnail.border.radius, { 'style': { 'width': '140px'} }) ~ form.select('thumbnail[border][radius_unit]', ['pixels', 'percents'], settings.thumbnail.border.radius_unit, { 'style': 'margin-top: -2px; height: 27px; width: 85px;' }), 'border-radius') }} {# set crop quality #} {% set qualityList = { "100":"100%", "90":"90%", "80":"80%", "70":"70%", "60":"60%", "50":"50%", "40":"40%", "30":"30%", "20":"20%", "10":"10%" }%} {{ form.row(translate('Image crop quality'), form.select( 'thumbnail[cropQuality]', qualityList, settings.thumbnail.cropQuality|default('100') ), 'cropQuality') }} {{ form.row(translate('Display only first image'), form.checkbox('displayFirstPhoto', 'on', settings.displayFirstPhoto == 'on' ? {'checked':'checked'} : {}), 'display-first-photo') }} {% block openByLink %} {{ form.rowpro(translate('Open by link in popup'), 'utm_source=plugin&utm_medium=open-by-link&utm_campaign=gallery', 'open-by-link', form.checkbox( 'openByLink', 'on',{'disabled':'disabled'})) }} {% endblock %} {% block disableRightClick %} {% endblock %}
{% endblock %} {% block socialSharing %} {{ form.row(translate('Social Sharing'), form.radio('socialSharing[enabled]', true, {'id':'social-sharing-enable'}|merge(settings.socialSharing.enabled ? {'checked':'checked'} : {})) ~ f.label(translate('Enable'), 'social-sharing-enable') ~ form.radio('socialSharing[enabled]', false, {'id':'social-sharing-disable'}|merge(settings.socialSharing.enabled ? {} : {'checked':'checked'})) ~ f.label(translate('Disable'), 'social-sharing-disable'), 'social-sharing', true) }} {% if settings.socialSharing.pluginInstalled %} {% if settings.socialSharing.projectsList|length %} {{ form.row(translate('Social Buttons Project'), form.select('socialSharing[projectId]', settings.socialSharing.projectsList, settings.socialSharing.projectId, {'style': 'width: 200px'}), 'social-buttons-project') }} {{ form.row(translate('Gallery Sharing'), form.checkbox('socialSharing[gallerySharing][enabled]', true, settings.socialSharing.gallerySharing.enabled ? {'checked':'checked'} : {}), 'gallery-social-sharing') }} {{ form.row(translate('Buttons position'), form.select('socialSharing[gallerySharing][buttonsPosition]', { 'top': 'top', 'bottom': 'bottom', 'all': 'top and bottom', }, settings.socialSharing.gallerySharing.buttonsPosition, {'style': 'width: 200px'}), 'gallery-sharing-buttons-position') }} {{ form.row('', form.checkbox('socialSharing[imageSharing][enabled]','0', {'checked':'checked'}),'image-sharing-hidden') }} {% set enabled = settings.socialSharing.imageSharing.enabled %} {{ form.row(translate('Image Sharing'), form.checkbox('socialSharing[imageSharing][enabled]', true, enabled != '0' ? {'checked':'checked'} : {}), 'image-social-sharing') }} {{ form.row(translate('Buttons position'), form.select('socialSharing[imageSharing][buttonsPosition]', { 'top': 'top', 'bottom': 'bottom', 'left': 'left', 'right ': 'right ', }, settings.socialSharing.imageSharing.buttonsPosition, {'style': 'width: 200px'}), 'image-sharing-buttons-position') }} {{ form.row(translate('Buttons align'), form.select('socialSharing[imageSharing][buttonsAlignHorizontal]', { 'left': 'left', 'center': 'center', 'right': 'right', }, settings.socialSharing.imageSharing.buttonsAlignHorizontal, {'style': 'width: 200px'}), 'image-sharing-buttons-align-horizontal') }} {{ form.row(translate('Buttons align'), form.select('socialSharing[imageSharing][buttonsAlignVertical]', { 'top': 'top', 'middle': 'middle', 'bottom': 'bottom', }, settings.socialSharing.imageSharing.buttonsAlignVertical, {'style': 'width: 200px'}), 'image-sharing-buttons-align-vertical') }} {{ form.row('', form.checkbox('socialSharing[popupImageSharing][enabled]','0', {'checked':'checked'}),'popup-sharing-hidden') }} {% set enabled = settings.socialSharing.popupImageSharing.enabled %} {{ form.row(translate('Popup Image Sharing'), form.checkbox('socialSharing[popupImageSharing][enabled]', true, enabled != '0' ? {'checked':'checked'} : {}), 'popup-social-sharing') }} {{ form.row(translate('Buttons position'), form.select('socialSharing[popupImageSharing][buttonsPosition]', { 'top': 'top', 'bottom': 'bottom', 'left': 'left', 'right ': 'right ', }, settings.socialSharing.popupImageSharing.buttonsPosition, {'style': 'width: 200px'}), 'popup-sharing-buttons-position') }} {{ form.row(translate('Buttons align'), form.select('socialSharing[popupImageSharing][buttonsAlignHorizontal]', { 'left': 'left', 'center': 'center', 'right': 'right', }, settings.socialSharing.popupImageSharing.buttonsAlignHorizontal, {'style': 'width: 200px'}), 'popup-sharing-buttons-align-horizontal') }} {{ form.row(translate('Buttons align'), form.select('socialSharing[popupImageSharing][buttonsAlignVertical]', { 'top': 'top', 'middle': 'middle', 'bottom': 'bottom', }, settings.socialSharing.popupImageSharing.buttonsAlignVertical, {'style': 'width: 200px'}), 'popup-sharing-buttons-align-vertical') }} {% else %} {% endif %} {% else %} {% endif %}
{{ translate('You have no Social Sharing projects for now.')}} {{ translate('Create your first project')}} {{ translate('then just reload page with your Gallery settings, and you will see list with available Social Projects for your Gallery.')}}
{{ translate('You need to install Social Share Buttons by Supsystic to use this feature.')}} {{ translate('Install plugin')}} {{ translate("from your admin area, or visit it's official page on Wordpress.org") }} {{ translate('here.')}}
{% endblock %} {% block horizontalScroll %} {% set horizontalScrollEnabled = settings.horizontalScroll.enabled|default('false') == 'true' %} {{ form.row(translate('Horizontal Scroll'), form.radio('horizontalScroll[enabled]', 'true', {'id':'horizontal-scroll-enable'}|merge(horizontalScrollEnabled ? {'checked':'checked'} : {})) ~ f.label(translate('Enable'), 'horizontal-scroll-enable') ~ form.radio('horizontalScroll[enabled]', 'false', {'id':'horizontal-scroll-disable'}|merge(horizontalScrollEnabled ? {} : {'checked':'checked'})) ~ f.label(translate('Disable'), 'horizontal-scroll-disable'), 'horizontal-scroll', true) }} {{ form.row(translate('Scroll Bar Color'), form.text('horizontalScroll[color]', settings.horizontalScroll.color, {'class':'gg-color-picker'}), 'horizontal-scroll-color') }} {{ form.row(translate('Scroll Bar Transparency'), form.select('horizontalScroll[transparency]', { '0': '0%', '10': '10%', '20': '20%', '30': '30%', '40': '40%', '50': '50%', '60': '60%', '70': '70%', '80': '80%', '90': '90%', '100': '100%', }, settings.horizontalScroll.transparency|default('60'), {'style': 'width: auto'}), 'horizontal-scroll-transparency') }} {% block horizontalScrollAfter %} {% endblock %}
{% endblock %}

{{ translate("Load more gallery images with scroll or button") }}
{{ environment.translate('Get PRO') }}

{{ form.row(translate('Custom Buttons'), form.button('buttons-presets-editor-preview', 'Show preset Editor', {'class': 'button button-primary'}), 'custom-buttons-preview', true)}}
{% block border %} {% set borderTypes = { 'solid': 'Solid', 'dotted': 'Dotted', 'dashed': 'Dashed', 'double': 'Double', 'groove': 'Groove', 'ridge': 'Ridge', 'inset': 'Inset', 'outset': 'Outset', 'none': 'None' } %} {# #} {{ form.row(translate('Border Type'), form.select('thumbnail[border][type]', borderTypes, settings.thumbnail.border.type, { 'style': 'width: auto;' }) ~ form.input('text', 'border-type', 'Example', { 'style': 'margin-top: -2px; height: 27px; width: 70px; border: 1px solid black; display:none;' }), 'border-type', 'gallery-borders') }} {{ form.row(translate('Border color'), form.input('text', 'thumbnail[border][color]', settings.thumbnail.border.color, { 'class': 'gg-color-picker' }), 'border-color') }} {{ form.row(translate('Border width'), form.input('number', 'thumbnail[border][width]', settings.thumbnail.border.width, { 'style': { 'width': '140px;'} }) ~ form.span('', 'pixels'), 'border-width') }}

{{ environment.translate('Border') }}

{{ environment.translate('Available') }} {{ environment.translate('Disable') }}
{% endblock %} {% block shadow %} {{ form.row(translate('Overlay image with shadow'), form.select('thumbnail[shadow][overlay]', ['Off', 'On'], settings.thumbnail.shadow.overlay, { 'style': 'width: auto;' }), 'overlay-type') }} {{ form.row(translate('Shadow color'), form.text('thumbnail[shadow][color]', settings.thumbnail.shadow.color, { 'style': { 'width': '300px' }, 'class':'gg-color-picker' }), 'shadow-color') }} {{ form.row(translate('Shadow blur'), form.input('number', 'thumbnail[shadow][blur]', settings.thumbnail.shadow.blur, { 'style': { 'width': 'auto' } }), 'shadow-blur') }} {{ form.row(translate('Shadow X'), form.input('number', 'thumbnail[shadow][x]', settings.thumbnail.shadow.x, { 'style': { 'width': 'auto' } }), 'shadow-x') }} {{ form.row(translate('Shadow Y'), form.input('number', 'thumbnail[shadow][y]', settings.thumbnail.shadow.y, { 'style': { 'width': 'auto' } }), 'shadow-y') }}

{{ translate('Shadow') }}

{{ translate('Enable') }} {{ translate('Disable') }}
{{ translate('Shadow preset') }}
{{ translate('When mouse is over') }}
{% endblock %} {% block popup %} {# Enable/Disable popup #} {% set popUpEnabled = settings.box.enabled|default('true') == 'true' %} {{ form.row(translate('Pop-up Image'), form.radio( 'box[enabled]', 'true', {'id':'box-enable'}|merge(popUpEnabled ? {'checked':'checked'} : {}) ) ~ f.label( translate('Enable'), 'box-enable' ) ~ form.radio( 'box[enabled]', 'false', {'id':'box-disable'}|merge(popUpEnabled ? {} : {'checked':'checked'}) ) ~ f.label( translate('Disable'), 'box-disable' ), 'box', true) }} {# Select popup theme #} {{ form.row(translate('Popup box theme'), form.button( 'chooseTheme', translate('Choose theme'), {'class': 'button bordered', 'id': 'chooseTheme'} ) ~ form.hidden( 'box[type]', settings.box.type ) ~ form.hidden( 'box[theme]', settings.box.theme, {'id':'bigImageTheme'} )) }} {# Enable/Disable popup on mobile devices #} {{ form.row(translate('Disable on mobile'), form.checkbox( 'box[mobile]', 'on', settings.box.mobile == 'on' ? {'checked':'checked'} : {} ), 'mobile') }} {# Chose popup text #} {{ form.row(translate('Popup Image Text'), form.select( 'box[imageText]', { 'data-caption': translate('Caption'), 'data-title': translate('Title'), 'alt': translate('Alt text'), 'title': translate('Description'), }, settings.box.imageText|default('title'), {'style': 'width: 150px'} )) }} {# Hide popup captions #} {{ form.row(translate('Hide Popup Captions'), form.checkbox( 'box[captions]', 'on', settings.box.captions == 'on' ? {'checked':'checked'} : {} ), 'captions') }} {# Popup overlay bg-color #} {{ form.row(translate('Background color'), form.text( 'box[background]', settings.box.background, {'class':'gg-color-picker'} ), 'box-background') }} {# Popup overlay transparency #} {{ form.row(translate('Transparency'), form.select( 'box[transparency]', { '0': '0%', '10': '10%', '20': '20%', '30': '30%', '40': '40%', '50': '50%', '60': '60%', '70': '70%', '80': '80%', '90': '90%', '100': '100%', }, settings.box.transparency|default(30), {'style': 'width: auto'} ), 'box-transparency') }} {# Enable/Disable popup slideshow #} {{ form.row(translate('Slideshow'), form.select( 'box[slideshow]', {'true': translate('Enable'), 'false': translate('Disable')}, settings.box.slideshow|default('false'), {'style': 'width: auto'} ), 'slideshow') }} {# Popup slideshow speed #} {{ form.row(translate('Slideshow speed'), form.input( 'number', 'box[slideshowSpeed]', settings.box.slideshowSpeed|default(2500), {'style': {'width': 'auto'}}, 'box-slideshowSpeed' )) }} {# Popup slideshow mouse hover stop #} {{ form.row(translate('Slideshow pause on hover'), form.select( 'box[popupHoverStop]', {'true': translate('Yes'),'false': translate('No')}, settings.box.popupHoverStop|default('false'), {'style': 'width: auto'}, 'box-popupHoverStop' ), 'popupHoverStop') }} {# Popup slideshow autostart #} {{ form.row(translate('Slideshow autostart'), form.select( 'box[slideshowAuto]', {'true': translate('Yes'),'false': translate('No')}, settings.box.slideshowAuto|default('false'), {'style': 'width: auto'}, 'box-slideshowAuto' )) }} {# Popup image size #} {{ form.row(translate('Popup Image size'), form.input( 'number', 'box[popupwidth]', settings.box.popupwidth, {'style': { 'width': '60px' }} ) ~ form.span('', 'x') ~ form.input( 'number', 'box[popupheight]', settings.box.popupheight, { 'style': { 'width': '60px' } } ) ~ form.span('', 'pixels'), 'box-popupsize') }} {# Popup pro-option present #} {% block popupAfter %} {# Popup video size #} open {# Popup autoplay video #} {{ form.rowpro(translate('Autoplay video'), 'utm_source=plugin&utm_medium=video&utm_campaign=gallery', 'video.autoplay', form.select( 'popup[video][autoplay]', {'false':translate('No'), 'true':translate('Yes')}, settings.popup.video.autoplay|default('false'), {'disabled':''} )) }} {# Popup when video ends #} {{ form.rowpro(translate('When video ends'), 'utm_source=plugin&utm_medium=video&utm_campaign=gallery', 'video.onEnd', form.select( 'popup[video][onEnd]', { '0':translate('Do nothing'), '1':translate('Open next slide'), '2':translate('Close popup') }, settings.popup.video.onEnd|default('0'), {'disabled':''} )) }} {% endblock %}
{% endblock %} {% block preload %} {% set preloadEnabled = settings.preload.enabled|default('true') == 'true' %} {{ form.row(translate('Gallery Loader'), form.radio('preload[enabled]', 'true', {'id':'preload-enable'}|merge(preloadEnabled ? {'checked':'checked'} : {})) ~ f.label(translate('Enable'), 'preload-enable') ~ form.radio('preload[enabled]', 'false', {'id':'preload-disable'}|merge(preloadEnabled ? {} : {'checked':'checked'})) ~ f.label(translate('Disable'), 'preload-disable'), 'preload', true) }} {% if not environment.isPro() %} {% set piconImg %} {% endset %} {% endif %}
{{ form.text('preload[background]', "#0073AA", {'class':'gg-color-picker', 'id': 'preloadColor-free'}) }}
{{ form.button('buttons-preload-icon', 'Choose Icon', {'class': 'button button-primary', 'id': 'choosePreicon-free'}) }} {{ piconImg }}
{% endblock %}
{% block post %}

{{ translate("Show Posts and Pages") }}
Get PRO for 29$

{% endblock %}
{# Init effects variables #} {% set effects = { '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' }%} {% set iconsWithCaptionsEffects = { 'icons': 'Default', 'icons-scale': 'Scale', 'icons-sodium-left': 'Sodium Left', 'icons-sodium-top': 'Sodium Top', 'icons-nitrogen-top': 'Nitrogen Top' }%} {% set enableCaptions = settings.thumbnail.overlay.enabled|default('true') == 'true' %} {% set polaroidIsEnable = settings.thumbnail.overlay.effect == 'polaroid' ? 'true' : 'false' %} {# Enable/Disable Caption Effects #} {{ form.row(translate('Captions'), form.radio( 'thumbnail[overlay][enabled]', 'true', {'id':'showCaptions'}|merge(enableCaptions ? {'checked':'checked'} : {}) ) ~ f.label( translate('Enable'), 'showCaptions' ) ~ form.radio( 'thumbnail[overlay][enabled]', 'false', {'id':'hideCaptions'}|merge(enableCaptions ? {} : {'checked':'checked'}) ) ~ f.label( translate('Disable'), 'hideCaptions' ), '', true, 'useCaptions') }} {# Choise effect #} {{ form.row(translate('Effect'), form.button( '', translate('Choose effect'), {'id': 'chooseEffect', 'class': 'button bordered'} ) ~ form.hidden( 'thumbnail[overlay][effect]', settings.thumbnail.overlay.effect|default('quarter-appear'), {'id': 'overlayEffect'} ), 'chooseEffect') }} {# Show personal caption #} {{ form.row(translate('Personal captions'), form.select( 'thumbnail[overlay][personal]', {'true': translate('Enable'), 'false': translate('Disable')}, settings.thumbnail.overlay.personal|default('false'), { 'style': 'width: auto;' } ), 'overlay-personal') }} {# Enable/Disable polaroid effect #} {{ form.row(translate('Polaroid Style'), form.select( '', {'true': translate('Enable'), 'false': translate('Disable')}, polaroidIsEnable, {'style': 'width: auto;'} ), 'polaroid-effect') }} {# Enable/Disable polaroid animation #} {{ form.row(translate('Polaroid Image Animation'), form.select( 'thumbnail[overlay][polaroidAnimation]', {'true': translate('Enable'), 'false': translate('Disable')}, settings.thumbnail.overlay.polaroidAnimation | default('true'), { 'style': 'width: auto;' } ), 'polaroid-animation') }} {# Enable/Disable polaroid scattering #} {{ form.row(translate('Polaroid Image Scattering '), form.select( 'thumbnail[overlay][polaroidScattering]', {'true': translate('Enable'), 'false': translate('Disable')}, settings.thumbnail.overlay.polaroidScattering | default('true'), { 'style': 'width: auto;' } ), 'polaroid-scattering') }} {# Polaroid frame width #} {{ form.row(translate('Polaroid Frame Width'), form.input( 'number', 'thumbnail[overlay][polaroidFrameWidth]', settings.thumbnail.overlay.polaroidFrameWidth|default(20), { 'style': { 'width': '140px'} } ), 'polaroid-frame-width') }} {# Caption bg-color #} {{ form.row(translate('Background color'), form.text( 'thumbnail[overlay][background]', settings.thumbnail.overlay.background, {'class':'gg-color-picker'} ), 'overlay-background') }} {# Caption text color #} {{ form.row(translate('Text color'), form.text( 'thumbnail[overlay][foreground]', settings.thumbnail.overlay.foreground, {'class':'gg-color-picker'} ), 'overlay-foreground') }} {# Caption bg transparency #} {{ form.row(translate('Transparency'), form.select( 'thumbnail[overlay][transparency]', ['0%', '10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'], settings.thumbnail.overlay.transparency|default(9), { 'style': 'width: auto;' } ), 'overlay-transparency') }} {# Caption text size #} {{ form.row(translate('Text size'), form.input( 'number', 'thumbnail[overlay][text_size]', settings.thumbnail.overlay.text_size, { 'style': { 'width': '140px'} } ) ~ form.select( 'thumbnail[overlay][text_size_unit]', ['pixels', 'percents', 'ems'], settings.thumbnail.overlay.text_size_unit, { 'style': 'margin-top: -2px; height: 27px' } ), 'text-size') }} {# Caption text horizontal align #} {{ form.row(translate('Text horizontal align'), form.select( 'thumbnail[overlay][text_align]', {'left': 'Left', 'right': 'Right', 'center': 'Center', 'auto': 'Auto'}, settings.thumbnail.overlay.text_align, { 'style': 'width: auto;' } ), 'text-align') }} {# Caption text vertical align #} {{ form.row(translate('Text vertical align'), form.select( 'thumbnail[overlay][position]', {'top': 'Top', 'middle': 'Middle', 'bottom': 'Bottom'}, settings.thumbnail.overlay.position, { 'style': 'width: auto;' } ), 'overlay-position') }} {# Caption text font family #} {{ form.row(translate('Font family'), form.selectv( 'thumbnail[overlay][font_family]', fontList, settings.thumbnail.overlay.font_family, { 'style': 'width: auto;' } ), 'font-family') }} {# Hide image tooltip(browser default tooltip) #} {{ form.row(translate('Hide image title tooltip'), form.select( 'thumbnail[tooltip]', {'false': translate('No'), 'true': translate('Yes')}, settings.thumbnail.tooltip, { 'style': 'width: auto;' } ), 'tooltip') }} {# Mobile - show always caption(show none effect in mobile devices) #} {{ form.row(translate('Mobile - show always caption'), form.select( 'thumbnail[isMobile]', {'false': translate('No'), 'true': translate('Yes')}, settings.thumbnail.isMobile|default('false') ), 'ismobile') }}
{% block icons %} {% set iconsEnabled = settings.icons.enabled|default('false') == 'true' %} {{ form.row(translate('Show icons'), form.radio('icons[enabled]', 'true', {'id':'icons-enable'}|merge(iconsEnabled ? {'checked':'checked'} : {})) ~ form.label(translate('Enable'), 'icons-enable') ~ form.radio('icons[enabled]', 'false', {'id':'icons-disable'}|merge(iconsEnabled ? {} : {'checked':'checked'})) ~ form.label(translate('Disable'), 'icons-disable'), 'photo-icon', true) }} {{ form.row(translate('Select effect'), form.button(null, translate('Animation'), {'class': 'button bordered', 'id': 'selectIconsEffect'}) ~ form.hidden('icons[effect]', settings.icons.effect, {'id':'iconsEffectName'}) ) }}
{% endblock %}
{% block categories %}

{{ translate('Categorize images in the gallery') }}
Get PRO

{% block pagination %}

{{ translate('Let user switch gallery pages') }}
Get PRO

{% endblock %}
{% endblock %} {% block form %} {% endblock %} {{ form.close() }}

{{ translate('Are you really want to delete preset "%s"?')|format(preset.title) }}

{{ translate('Select a theme') }}

{% set bigImageThemes = { 'theme_1': 'Theme 1', 'theme_2': 'Theme 2', 'theme_3': 'Theme 3', 'theme_4': 'Theme 4', 'theme_5': 'Theme 5', 'theme_6': 'Theme 6', 'theme_7': 'Theme 7', } %} {% if environment.isPro() %} {% set bigImageThemes = bigImageThemes|merge({'theme_1_pro': 'Fullscreen popup'}) %} {% endif %} {% for value, name in bigImageThemes %} {% endfor %}
{% for type, name in effects %} {% if type == 'direction-aware' %} {% elseif type == '3d-cube' %} {% else %} {% endif %} {% endfor %}

Captions effects with icons

{% block iconsEffects %} {% for type, name in iconsWithCaptionsEffects %} {% endfor %} {% endblock %}

{{ translate('Select shadow') }}

{% set shadowPresets = { 'effect_1': { 'name': 'Effect 1', 'offset_x': '8', 'offset_y': '8', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_2': { 'name': 'Effect 2', 'offset_x': '-8', 'offset_y': '-8', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_3': { 'name': 'Effect 3', 'offset_x': '-8', 'offset_y': '8', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_4': { 'name': 'Effect 4', 'offset_x': '8', 'offset_y': '-8', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_5': { 'name': 'Effect 5', 'offset_x': '8', 'offset_y': '0', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_6': { 'name': 'Effect 6', 'offset_x': '-8', 'offset_y': '0', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_7': { 'name': 'Effect 7', 'offset_x': '0', 'offset_y': '-8', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_8': { 'name': 'Effect 8', 'offset_x': '0', 'offset_y': '8', 'blur': '6', 'color': 'rgba(0, 0, 0, 0.58)' }, 'effect_9': { 'name': 'Effect 9', 'offset_x': '0', 'offset_y': '4', 'blur': '10', 'color': 'rgba(0, 0, 0, 1.0)' }, 'effect_10': { 'name': 'Effect 10', 'offset_x': '0', 'offset_y': '-4', 'blur': '8', 'color': 'rgba(0, 0, 0, 1.0)' } } %} {% for value, effect in shadowPresets %} {% endfor %}
{% import '@galleries/shortcode/import.twig' as importTypes %}
Please be advised that this option is available only in Pro version. You can Get PRO today and get this and other PRO options for Galleries!
{% block modals %}
{% set iconsEffects = { 'hi-icon-effect-1a': { 'padding': '0', 'bg': '41ab6b'}, 'hi-icon-effect-1b': { 'padding': '0', 'bg': '41ab6b'}, 'hi-icon-effect-2a': { 'padding': '0', 'bg': 'eea303'}, 'hi-icon-effect-2b': { 'padding': '0', 'bg': 'eea303'}, 'hi-icon-effect-3a': { 'padding': '0', 'bg': 'f06060'}, 'hi-icon-effect-3b': { 'padding': '0', 'bg': 'f06060'}, 'hi-icon-effect-5a': { 'padding': '0', 'bg': '702fa8'}, 'hi-icon-effect-5b': { 'padding': '0', 'bg': '702fa8'}, 'hi-icon-effect-5c': { 'padding': '0', 'bg': '702fa8'}, 'hi-icon-effect-5d': { 'padding': '0', 'bg': '702fa8'}, 'hi-icon-effect-7a': { 'padding': '0', 'bg': 'd54f30'}, 'hi-icon-effect-7b': { 'padding': '0', 'bg': 'd54f30'}, 'hi-icon-effect-9a': { 'padding': '0', 'bg': '96a94b'}, 'hi-icon-effect-9b': { 'padding': '0', 'bg': '96a94b'}, } %} {% for name, p in iconsEffects %}
Select
{% endfor %}
{% endblock %} {% endblock %}