--- 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.com # # Copyright (C) 2019 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one/j1_template_mde/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 %} {% comment %} Liquid var initialization -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Set global settings ------------------------------------------------------------------------------ {% endcomment %} {% assign signin_modal_id = "modalOmniSignIn" %} {% comment %} Set config files ------------------------------------------------------------------------------ {% endcomment %} {% assign navigator_config = site.data.modules.j1_navigator %} {% assign quick_search_config = site.data.modules.j1_jekyll_search %} {% assign auth_manager_config = site.j1_auth %} {% assign cookie_consent_config = site.data.modules.j1_cookie_consent %} {% comment %} Set config data ------------------------------------------------------------------------------ {% endcomment %} {% assign nav_defaults = navigator_config.defaults %} {% assign nav_quicklinks_default = nav_defaults.nav_quicklinks %} {% assign nav_quicklinks_config = navigator_config.nav_quicklinks %} {% assign consent_defaults = cookie_consent_config.defaults %} {% assign consent_settings = cookie_consent_config.consent %} {% comment %} Set config options ------------------------------------------------------------------------------ {% endcomment %} {% assign quicklinks_options = nav_quicklinks_default | merge: nav_quicklinks_config %} {% assign consent_options = consent_defaults | merge: consent_settings %} {% 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 = quicklinks_options.signin_icon %} {% assign signout_icon = quicklinks_options.signout_icon %} {% 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 %} {% comment %} Show|Hide Quicksearch icon ------------------------------------------------------------------------------ {% endcomment %} {% if quick_search_config.enabled %} {% assign show_quick_search_icon = true %} {% else %} {% assign show_quick_search_icon = false %} {% endif %} {% comment %} Show|Hide AuthManager icon ------------------------------------------------------------------------------ {% endcomment %} {% if auth_manager_config.enabled %} {% assign show_auth_manager_icon = true %} {% else %} {% assign show_auth_manager_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 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 | strip_empty_lines }} {% assign cache = nil %}