mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-01 05:08:57 +02:00
[ticket/13955] Fix javascript to conform to Google and add simple_header
Fix the javascript code to conform to Google Fonts standard Add code to fix simple_header PHPBB3-13955
This commit is contained in:
parent
b346f216c2
commit
886ca1dbb9
@ -28,19 +28,19 @@
|
||||
-->
|
||||
|
||||
<!-- IF S_ALLOW_CDN -->
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
WebFontConfig = {
|
||||
google: {
|
||||
families: ['Open+Sans:600:cyrillic-ext,latin,greek-ext,greek,vietnamese,latin-ext,cyrillic']
|
||||
}
|
||||
google: { families: [ 'Open+Sans:600:cyrillic-ext,latin,greek-ext,greek,vietnamese,latin-ext,cyrillic' ] }
|
||||
};
|
||||
|
||||
(function(d) {
|
||||
var wf = d.createElement('script'), s = d.scripts[0];
|
||||
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
|
||||
wf.async = true;
|
||||
(function() {
|
||||
var wf = document.createElement('script');
|
||||
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
|
||||
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
|
||||
wf.type = 'text/javascript';
|
||||
wf.async = 'true';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(wf, s);
|
||||
})(document);
|
||||
})();
|
||||
</script>
|
||||
<!-- ENDIF -->
|
||||
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
|
||||
|
@ -7,19 +7,19 @@
|
||||
<title>{SITENAME} • <!-- IF S_IN_MCP -->{L_MCP} • <!-- ELSEIF S_IN_UCP -->{L_UCP} • <!-- ENDIF -->{PAGE_TITLE}</title>
|
||||
|
||||
<!-- IF S_ALLOW_CDN -->
|
||||
<script>
|
||||
<script type="text/javascript">
|
||||
WebFontConfig = {
|
||||
google: {
|
||||
families: ['Open Sans:n6']
|
||||
}
|
||||
google: { families: [ 'Open+Sans:600:cyrillic-ext,latin,greek-ext,greek,vietnamese,latin-ext,cyrillic' ] }
|
||||
};
|
||||
|
||||
(function(d) {
|
||||
var wf = d.createElement('script'), s = d.scripts[0];
|
||||
wf.src = 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js';
|
||||
wf.async = true;
|
||||
(function() {
|
||||
var wf = document.createElement('script');
|
||||
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
|
||||
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
|
||||
wf.type = 'text/javascript';
|
||||
wf.async = 'true';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(wf, s);
|
||||
})(document);
|
||||
})();
|
||||
</script>
|
||||
<!-- ENDIF -->
|
||||
<link href="{T_STYLESHEET_LINK}" rel="stylesheet">
|
||||
|
Loading…
x
Reference in New Issue
Block a user