{% set lightBoxParam = useLightBox is defined and useLightBox is not empty ? useLightBox : pimcore_checkbox('use_light_box').isChecked() %} {% set useLightBox = lightBoxParam and editmode == false %} {% set linkElement = pimcore_link('link') %} {% set hasLink = linkElement.isEmpty() == false %} {% set linkElementData = hasLink ? linkElement.data : [] %} {% set link = hasLink ? linkElement.href : null %} {% set linkTarget = hasLink and linkElementData.target is defined ? linkElement.target : null %}
{{ editmode == false and useLightBox ? ('')|raw : (editmode == false and hasLink ? '' : '')|raw }} {{ pimcore_image('image', {'thumbnail' : toolbox_get_image_thumbnail('teaser_element'), 'class' : 'img-responsive'}) }} {{ editmode == false and (useLightBox or hasLink) ? '' : '' }}

{{ pimcore_input('headline') }}

{{ pimcore_wysiwyg('text', {'height' : 100, 'customConfig' : toolbox_get_ckeditor_config_path()}) }}
{{ pimcore_link('link', {'class' : 'btn btn-default teaser-link'}) }}