{# ThemeWare "Communities" widget #} {# TW communities widget and content #} {# TODO: prüfen... #} {# TODO: - Add floating option... - Add usp-bar option... #} {# ---------------- START: SET TEMPLATE VARS ---------------- #} {# ThemeWare: Set theme variables #} {% set twtWidgetCommunitiesAdditionalTextShow = theme_config('twt-widget-communities-additional-text-show') %} {% set twtWidgetCommunitiesBlog = theme_config('twt-widget-communities-blog') %} {% set twtWidgetCommunitiesBlogger = theme_config('twt-widget-communities-blogger') %} {% set twtWidgetCommunitiesFacebook = theme_config('twt-widget-communities-facebook') %} {% set twtWidgetCommunitiesFlickr = theme_config('twt-widget-communities-flickr') %} {% set twtWidgetCommunitiesIconStyle = theme_config('twt-widget-communities-icon-style') %} {% set twtWidgetCommunitiesInstagram = theme_config('twt-widget-communities-instagram') %} {% set twtWidgetCommunitiesLinkedin = theme_config('twt-widget-communities-linkedin') %} {% set twtWidgetCommunitiesPinterest = theme_config('twt-widget-communities-pinterest') %} {% set twtWidgetCommunitiesTiktok = theme_config('twt-widget-communities-tiktok') %} {% set twtWidgetCommunitiesTwitch = theme_config('twt-widget-communities-twitch') %} {% set twtWidgetCommunitiesTwitter = theme_config('twt-widget-communities-twitter') %} {% set twtWidgetCommunitiesVimeo = theme_config('twt-widget-communities-vimeo') %} {% set twtWidgetCommunitiesWebsite = theme_config('twt-widget-communities-website') %} {% set twtWidgetCommunitiesWhatsapp = theme_config('twt-widget-communities-whatsapp') %} {% set twtWidgetCommunitiesXing = theme_config('twt-widget-communities-xing') %} {% set twtWidgetCommunitiesYoutube = theme_config('twt-widget-communities-youtube') %} {# ---------------- END: SET TEMPLATE VARS ---------------- #} {% if twtWidgetCommunitiesIconStyle == 1 %} {% set style = 'default' %} {% elseif twtWidgetCommunitiesIconStyle == 2 %} {% set style = 'isolated' %} {% elseif twtWidgetCommunitiesIconStyle == 3 %} {% set style = 'badge' %} {% elseif twtWidgetCommunitiesIconStyle == 4 %} {% set style = 'square' %} {% elseif twtWidgetCommunitiesIconStyle == 5 %} {% set style = 'circle' %} {% elseif twtWidgetCommunitiesIconStyle == 6 %} {% set style = 'default-mono' %} {% elseif twtWidgetCommunitiesIconStyle == 7 %} {% set style = 'isolated-mono' %} {% elseif twtWidgetCommunitiesIconStyle == 8 %} {% set style = 'badge-mono' %} {% elseif twtWidgetCommunitiesIconStyle == 9 %} {% set style = 'square-mono' %} {% elseif twtWidgetCommunitiesIconStyle == 10 %} {% set style = 'circle-mono' %} {% endif %} {# ThemeWare: Overwrite icon style when its floating #} {% if type == 'floating' %} {% set style = 'square' %} {% endif %} {# ThemeWare: Social icons #} {% block twt_widget_communities %}
{% block twt_widget_communities_content %} {% if twtWidgetCommunitiesAdditionalTextShow == 2 %}

{{ "twt.widget.communities.additionalText"|trans|sw_sanitize }}

{% endif %} {% endblock %}
{% endblock %}