{% load cms_tags sekizai_tags i18n thumbnail allink_image_tags allink_user_tags allink_link_tags %} {% spaceless %} {% comment %} IMPORTANT NOTE: Some editors automatically add a NEW LINE at the end of the document. This causes undesired extra space after the tag. So every time you adjust this file, make sure to open/save it in an editor that does NOT add a new line before committing. {% endcomment %} {# content for image modal #} {% if instance.image_modal_enabled and instance.link_file %} {% endif %} {# video modal #} {% if instance.template == "video_embedded_link" or instance.template == "video_file_link" %} {% endif %} {# the actual link text #} {# quick and dirty fix that created an empty space at the link text. But since changes here are made very seldom this is bearable ;) #} {# if button is login-button to member area, check if logged in and in group 'members' #}{% if instance.link_special == 'account_login' and user.is_authenticated %}{% trans 'Member Area' %}{% else %}{{ instance.label }}{% endif %}{# display the file's name' and 'description' attribute when linked to a file #}{% if instance.link_file.name %}{{ instance.link_file.name }}{% endif %}{% if instance.link_file.description %}{{ instance.link_file.description }}{% endif %}{% comment %} button-link-plugin mask {% endcomment %}{% block mask %}{# if button is login-button to member area, check if logged in and in group 'members' #}{% if instance.link_special == 'account_login' and user.is_authenticated %}{% trans 'Member Area' %}{% else %}{{ instance.label }}{% endif %}{# display the file's name' and 'description' attribute when linked to a file #}{% if instance.link_file.name %}{{ instance.link_file.name }}{% endif %}{% if instance.link_file.description %}{{ instance.link_file.description }}{% endif %}{% endblock mask %} {% if instance.form_modal_enabled %} {% include "modals/modal-header-markup.html" with title=instance.label modal_type="form-modal" %} {% endif %} {% if instance.link_page %} {% comment %} All non-cms page links (i.e. apps) will already have the include in the detail templates {% endcomment %} {% if instance.softpage_enabled %} {% include "modals/modal-header-markup.html" with title=instance.link_page modal_type="softpage" %} {% endif %} {% endif %} {% endspaceless %}