--- regenerate: true --- {% capture cache %} {% comment %} # ----------------------------------------------------------------------------- # ~/assets/data/footer.html # Liquid procedure to generate HTML (data) portion of the page footer for # (fragmented) AJAX load # # 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: # {{ variable | 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 %} {% capture about_box %}themes/{{site.template.name}}/modules/footers/boxes/about_box.proc{% endcapture %} {% capture news_box %}themes/{{site.template.name}}/modules/footers/boxes/news_box.proc{% endcapture %} {% capture links_box %}themes/{{site.template.name}}/modules/footers/boxes/links_box.proc{% endcapture %} {% capture contacts_box %}themes/{{site.template.name}}/modules/footers/boxes/contacts_box.proc{% endcapture %} {% capture legal_statements %}themes/{{site.template.name}}/modules/footers/boxes/legal_statements.proc{% endcapture %} {% capture social_media_icons %}themes/{{site.template.name}}/modules/footers/boxes/social_media_icons.proc{% endcapture %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign footer_config_file = site.data.modules.j1_footer %} {% assign footer_config = footer_config_file.footer %} {% comment %} Set global settings -------------------------------------------------------------------------------- {% endcomment %} {% assign footer_id = footer_config_file.global.id %} {% assign footer_theme = footer_config_file.global.theme %} {% comment %} Set base icons and sizes -------------------------------------------------------------------------------- {% endcomment %} {% assign nav_menu_icon_family = nav_menu_options.icon_family %} {% assign nav_menu_icon_style = nav_menu_options.icon_style %} {% assign nav_menu_icon_color = nav_menu_options.icon_color %} {% assign nav_menu_icon_size = nav_menu_options.icon_size %} {% assign icon_family = nav_menu_icon_family | strip | downcase %} {% if icon_family == 'fontawesome' or icon_family == 'fontawesome5' %} {% assign nav_menu_icon_family = 'fa' %} {% assign nav_menu_icon_style = nav_menu_icon_style %} {% elsif icon_family == 'mdi' %} {% assign nav_menu_icon_family = 'mdi' %} {% assign nav_menu_icon_style = nav_menu_icon_style %} {% else %} {% assign nav_menu_icon_family = 'mdi' %} {% assign nav_menu_icon_style = nav_menu_icon_style %} {% endif %} {% include {{select_color}} color=nav_menu_icon_color fallback="#9E9E9E" %} {% assign nav_menu_icon_color = color %} {% include {{select_icon_size}} family=nav_menu_icon_family size=nav_menu_icon_size %} {% assign nav_menu_icon_size = size %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% assign enabled_boxes = 0 %} {% comment %} Calculate number of enabled FooterBoxes -------------------------------------------------------------------------------- {% endcomment %} {% for item in footer_config %} {% if item.footer_box %} {% for boxes in item.footer_box %} {% for box in boxes %} {% for property in box %} {% if property.enabled %} {% assign enabled_boxes = enabled_boxes | plus:1 %} {% endif %} {% endfor %} {% endfor %} {% endfor %} {% endif %} {% endfor %} {% assign footer_box_width_md = 12 | divided_by:enabled_boxes %}
{% comment %} COLLECT|PLACE copyright|issue date information ------------------------------------------------------------------------------ {% endcomment %}
{% endcapture %} {{ cache | strip_empty_lines }} {% assign cache = nil %}