diff options
author | Michael Miday <midaym@gmail.com> | 2015-09-15 23:29:35 +0200 |
---|---|---|
committer | Michael Miday <midaym@gmail.com> | 2015-09-17 18:37:28 +0200 |
commit | fd72a36a0cb063934ee2c22c66044d1e5b4e9007 (patch) | |
tree | 4ade2ab9684f6df34e23c623d4cc607a0faea894 /phpBB/styles/prosilver/template | |
parent | c319955f00f7c2744390df4a7879bd91d8318f3b (diff) | |
download | forums-fd72a36a0cb063934ee2c22c66044d1e5b4e9007.tar forums-fd72a36a0cb063934ee2c22c66044d1e5b4e9007.tar.gz forums-fd72a36a0cb063934ee2c22c66044d1e5b4e9007.tar.bz2 forums-fd72a36a0cb063934ee2c22c66044d1e5b4e9007.tar.xz forums-fd72a36a0cb063934ee2c22c66044d1e5b4e9007.zip |
[ticket/12769] Add CDN dynamic fallback for FA
Diffstat (limited to 'phpBB/styles/prosilver/template')
-rw-r--r-- | phpBB/styles/prosilver/template/overall_footer.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/styles/prosilver/template/overall_footer.html b/phpBB/styles/prosilver/template/overall_footer.html index aa1032301e..270be898c8 100644 --- a/phpBB/styles/prosilver/template/overall_footer.html +++ b/phpBB/styles/prosilver/template/overall_footer.html @@ -45,6 +45,19 @@ <script type="text/javascript" src="{T_ASSETS_PATH}/javascript/core.js?assets_version={T_ASSETS_VERSION}"></script> <!-- INCLUDEJS forum_fn.js --> <!-- INCLUDEJS ajax.js --> +<!-- IF S_ALLOW_CDN --> + <script type="text/javascript"> + (function($){ + var $fa_cdn = $('head').find('link[rel="stylesheet"]').first(), + $span = $('<span class="fa" style="display:none"></span>').appendTo('body'); + if ($span.css('fontFamily') !== 'FontAwesome' ) { + $fa_cdn.after('<link href="{T_ASSETS_PATH}/css/font-awesome.min.css" rel="stylesheet">'); + $fa_cdn.remove(); + } + $span.remove(); + })(jQuery); + </script> +<!-- ENDIF --> <!-- EVENT overall_footer_after --> |