mirror of
https://github.com/gantry/gantry5.git
synced 2026-08-17 16:34:55 -05:00
Added support for Font awesome 7 #3331
This commit is contained in:
+9
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+6
File diff suppressed because one or more lines are too long
+6
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -25,6 +25,8 @@ form:
|
||||
fa4: Font Awesome 4 (legacy)
|
||||
fa5css: Font Awesome 6 Free (Webfont / CSS)
|
||||
fa5js: Font Awesome 6 Free (SVG / JS)
|
||||
fa7css: Font Awesome 7 Free (Webfont / CSS)
|
||||
fa7js: Font Awesome 7 Free (SVG / JS)
|
||||
|
||||
fa4_compatibility:
|
||||
type: enable.enable
|
||||
|
||||
@@ -13,21 +13,26 @@
|
||||
{% endblock -%}
|
||||
|
||||
{% block head_scripts -%}
|
||||
{% if faEnabled %}
|
||||
{% if faVersion == 'manual' or gantry.config.page.fontawesome.html_js_import|trim %}
|
||||
{{ gantry.config.page.fontawesome.html_js_import|html|raw -}}
|
||||
{% elseif faVersion == 'fa5js' %}
|
||||
<script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome6-all.min.js') }}"></script>
|
||||
{% if gantry.config.page.fontawesome.fa4_compatibility|default(1) %}
|
||||
<script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome6-shim.min.js') }}"></script>
|
||||
{% endif %}
|
||||
{% if faEnabled %}
|
||||
{% if faVersion == 'manual' or gantry.config.page.fontawesome.html_js_import|trim %}
|
||||
{{ gantry.config.page.fontawesome.html_js_import|html|raw -}}
|
||||
{% elseif faVersion == 'fa5js' %}
|
||||
<script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome6-all.min.js') }}"></script>
|
||||
{% if gantry.config.page.fontawesome.fa4_compatibility|default(1) %}
|
||||
<script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome6-shim.min.js') }}"></script>
|
||||
{% endif %}
|
||||
{% elseif faVersion == 'fa7js' %}
|
||||
<script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome7-all.min.js') }}"></script>
|
||||
{% if gantry.config.page.fontawesome.fa4_compatibility|default(1) %}
|
||||
<script type="text/javascript" src="{{ url('gantry-assets://js/font-awesome7-shim.min.js') }}"></script>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endblock -%}
|
||||
{% endif %}
|
||||
{% endblock -%}
|
||||
|
||||
{% block head_platform %}{% endblock %}
|
||||
|
||||
{% block head_overrides -%}
|
||||
{% block head_overrides -%}
|
||||
{% if faEnabled %}
|
||||
{% if faVersion == 'manual' or gantry.config.page.fontawesome.html_css_import|trim %}
|
||||
{{ gantry.config.page.fontawesome.html_css_import|html|raw -}}
|
||||
@@ -38,12 +43,14 @@
|
||||
{% if gantry.config.page.fontawesome.fa4_compatibility|default(1) %}
|
||||
|
||||
{% endif %}
|
||||
{% elseif faVersion == 'fa7css' %}
|
||||
<link rel="stylesheet" href="gantry-assets://css/font-awesome7-all.min.css" type="text/css">
|
||||
{% elseif (faVersion == 'fa5js' or (faVersion == 'manual' and gantry.config.page.fontawesome.html_js_import)) and (gantry.config.page.fontawesome.content_compatibility|default(1)) %}
|
||||
<link rel="stylesheet" href="gantry-assets://css/font-awesome6-pseudo.min.css" type="text/css">
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% for scss in gantry.theme.configuration.css.overrides %}
|
||||
<link rel="stylesheet" href="{{ scss }}.scss" type="text/css"/>
|
||||
<link rel="stylesheet" href="{{ scss }}.scss" type="text/css"/>
|
||||
{%- endfor %}
|
||||
{% endblock -%}
|
||||
{% endassets -%}
|
||||
|
||||
Reference in New Issue
Block a user