--- regenerate: true --- {% capture cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/assets/data/quicklinks.html # Liquid PROCEDURE template to create the HTML portion of the quicklink bar # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX) # # Product/Info: # https://jekyll.one # # Copyright (C) 2020 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE # ----------------------------------------------------------------------------- # Test data: # liquid_var: {{ liquid_var | debug }} # ----------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %} {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %} {% assign apps = site.data.apps %} {% assign modules = site.data.modules %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign template_settings = site.data.template_settings %} {% assign authentication_defaults = modules.defaults.authentication.defaults %} {% assign authentication_settings = modules.authentication.settings %} {% assign navigator_defaults = modules.defaults.navigator.defaults %} {% assign navigator_settings = modules.navigator.settings %} {% assign consent_defaults = modules.defaults.cookie_consent.defaults %} {% assign consent_settings = modules.cookie_consent.settings %} {% assign quick_search_defaults = modules.defaults.jekyll_search.defaults %} {% assign quick_search_settings = modules.jekyll_search.settings %} {% comment %} Control Center disabled -------------------------------------------------------------------------------- {% assign cc_app_config_defaults = apps.defaults.cc.defaults %} {% assign cc_app_config_settings = apps.cc.settings %} -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign nav_quicklinks_defaults = navigator_defaults.nav_quicklinks %} {% assign nav_quicklinks_settings = navigator_settings.nav_quicklinks %} {% comment %} Set config options -------------------------------------------------------------------------------- {% endcomment %} {% assign authentication_options = authentication_defaults | merge: authentication_settings %} {% assign quick_search_options = quick_search_defaults | merge: quick_search_settings %} {% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %} {% assign consent_options = consent_defaults | merge: consent_settings %} {% comment %} Control Center disabled -------------------------------------------------------------------------------- {% assign cc_app_config_options = cc_app_config_defaults | merge: cc_app_config_settings %} -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Set authentication properties -------------------------------------------------------------------------------- {% endcomment %} {% assign authentication_enabled = authentication_options.j1_auth.enabled %} {% assign auth_client_config = authentication_options.auth_client %} {% comment %} Set quicklinks properties -------------------------------------------------------------------------------- {% endcomment %} {% assign icon_family = quicklinks_options.icon_family | downcase %} {% assign cookies_icon = quicklinks_options.cookies_icon %} {% assign search_icon = quicklinks_options.top_search_icon %} {% assign sidebar_icon = quicklinks_options.sidebar_icon %} {% assign signin_icon = auth_client_config.signin_icon %} {% assign signout_icon = auth_client_config.signout_icon %} {% assign control_center_icon = cc_app_config_options.quicklinks_icon %} {% assign control_center_url = cc_app_config_options.quicklinks_url %} {% assign translator_icon = quicklinks_options.translator_icon %} {% assign home_icon = quicklinks_options.home_icon %} {% assign home_url = quicklinks_options.home_url %} {% assign r_text_icon = quicklinks_options.r_text_icon %} {% assign back_icon = quicklinks_options.back_icon %} {% assign back_url = quicklinks_options.back_url %} {% assign disqus_icon = quicklinks_options.disqus_icon %} {% assign github_icon = quicklinks_options.github_icon %} {% assign patreon_icon = quicklinks_options.patreon_icon %} {% assign facebook_icon = quicklinks_options.facebook_icon %} {% assign twitter_icon = quicklinks_options.twitter_icon %} {% assign disqus_url = quicklinks_options.disqus_url %} {% assign github_url = quicklinks_options.github_url %} {% assign patreon_url = quicklinks_options.patreon_url %} {% assign facebook_url = quicklinks_options.facebook_url %} {% assign twitter_url = quicklinks_options.twitter_url %} {% assign signin_modal_id = auth_client_config.signin_modal_id %} {% comment %} Show|Hide Quicksearch icon -------------------------------------------------------------------------------- {% endcomment %} {% if quick_search_options.enabled %} {% assign show_quick_search_icon = true %} {% else %} {% assign show_quick_search_icon = false %} {% endif %} {% comment %} Show|Hide Translator icon -------------------------------------------------------------------------------- {% endcomment %} {% if template_settings.translation.enabled %} {% assign show_translator_icon = true %} {% else %} {% assign show_translator_icon = false %} {% endif %} {% comment %} Show|Hide AuthManager icon -------------------------------------------------------------------------------- {% endcomment %} {% if authentication_enabled %} {% assign show_auth_manager_icon = true %} {% else %} {% assign show_auth_manager_icon = false %} {% endif %} {% comment %} Show|Hide Control Center icon -------------------------------------------------------------------------------- {% endcomment %} {% if cc_app_config_options.enabled %} {% assign show_control_center_icon = true %} {% else %} {% assign show_control_center_icon = false %} {% endif %} {% comment %} Show|Hide Sidebar icon -------------------------------------------------------------------------------- {% endcomment %} {% if quicklinks_options.sidebar %} {% assign show_sidebar_icon = true %} {% else %} {% assign show_sidebar_icon = false %} {% endif %} {% comment %} Show|Hide RSizer icon -------------------------------------------------------------------------------- {% endcomment %} {% if quicklinks_options.r_text_sizer %} {% assign show_r_text_icon = true %} {% else %} {% assign show_r_text_icon = false %} {% endif %} {% comment %} Show|Hide CookieConsent icon -------------------------------------------------------------------------------- {% endcomment %} {% if consent_options.enabled %} {% assign consent_enabled = true %} {% else %} {% assign consent_enabled = false %} {% endif %} {% if consent_options.show_consent_icon %} {% assign consent_icon_enabled = true %} {% else %} {% assign consent_icon_enabled = false %} {% endif %} {% if consent_enabled and consent_icon_enabled %} {% assign show_cookie_consent_icon = true %} {% else %} {% assign show_cookie_consent_icon = false %} {% endif %} {% comment %} Select icon family and size (color set dynamically by adapter) -------------------------------------------------------------------------------- {% endcomment %} {% if quicklinks_options.icon_family == 'FontAwesome' or quicklinks_options.icon_family == 'FontAwesome4' or quicklinks_options.icon_family == 'FontAwesome5' %} {% assign icon_family = 'fa' %} {% elsif quicklinks_options.icon_family == 'MDI' or quicklinks_options.icon_family == 'Material Design Icons'%} {% assign icon_family = 'mdi' %} {% else %} {% assign icon_family = 'mdi' %} {% endif %} {% include {{select_icon_size}} family=quicklinks_options.icon_family size=quicklinks_options.icon_size %} {% assign icon_size = size %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% endcapture %} {{ cache | pretty_print | remove:'' | remove:'' | strip_empty_lines }} {% assign cache = nil %}