97
97
<?php $ doc = JFactory::getDocument ();
98
98
unset($ doc ->_scripts [JURI ::root (true ) . '/media/jui/js/jquery.min.js ' ]); ?>
99
99
<?php else : ?>
100
- < ?php echo $ jquerycdn ?>
100
+ <script src="https:// < ?php echo $ jquerycdn ?> "></script >
101
101
<?php endif ; ?>
102
102
103
103
<jdoc:include type="head" />
110
110
unset($ doc ->_scripts [JURI ::root (true ) . '/media/system/js/core.js ' ]);
111
111
unset($ doc ->_scripts [JURI ::root (true ) . '/media/jui/js/bootstrap.min.js ' ]);
112
112
if (isset ($ this ->_script ['text/javascript ' ])) {
113
- $ this ->_script ['text/javascript ' ] = preg_replace ('% window\.addEvent\ ( \'load \',\s* function\(\)\s*{\s*new\s*JCaption\( \' img.caption \' \);\s*}\);\s*% ' , '' , $ this ->_script ['text/javascript ' ]);
114
- if (empty ($ this ->_script ['text/javascript ' ]))
113
+ $ this ->_script ['text/javascript ' ] = preg_replace ('/jQuery\( window\).on\ ( \'load \'\, function\(\) \{(.*);/is ' , '' , $ this ->_script ['text/javascript ' ]);
114
+ if (empty ($ this ->_script ['text/javascript ' ])) {
115
115
unset($ this ->_script ['text/javascript ' ]);
116
116
}
117
+ }
117
118
?>
118
119
<?php endif ; ?>
119
120
130
131
unset($ doc ->_scripts [JURI ::root (true ) . '/media/jui/js/jquery-migrate.min.js ' ]);
131
132
?>
132
133
<?php elseif ($ jqmigrate = 1 ) : ?>
133
- <script defer src="https://code.jquery.com/jquery-migrate-3.1.0 .min.js" crossorigin="anonymous"></script>
134
+ <script defer src="https://code.jquery.com/jquery-migrate-3.3.1 .min.js" crossorigin="anonymous"></script>
134
135
<?php endif ; ?>
135
136
136
137
<?php // Remove Joomla CSS file (Modal styles)
150
151
151
152
<?php // Load remote Bootstrap 4.5 CSS framework from CDN
152
153
if (($ bootstrapcdn == null ) && ($ bootstrapsource == 1 )) : ?>
153
- <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0 /css/bootstrap.min.css" integrity="sha384-9aIt2nRpC12Uk9gS9baDl411NQApFmC26EwAOH8WgZl5MYYxFfc+NcPb1dKGj7Sk " crossorigin="anonymous">
154
+ <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2 /css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z " crossorigin="anonymous">
154
155
<?php elseif (($ bootstrapcdn == null ) && ($ bootstrapsource == 2 )) : ?>
155
156
<?php echo $ bootstrapcdn ?>
156
157
<?php else : ?>
171
172
<?php elseif ($ fontawesome == 4 ) : ?>
172
173
<script defer src="<?php echo $ fontawesomecdn ; ?> "></script>
173
174
<?php endif ; ?>
174
-
175
+
175
176
<?php // Load Google Fonts ?>
176
177
<?php if (($ headerfont == 1 ) && ($ bodyfont == 1 ) && ($ headerfontname != null ) && ($ bodyfontname != null )) : ?>
177
178
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=<?php echo $ headerfontname ; ?> |<?php echo $ bodyfontname ; ?> ">
207
208
</style>
208
209
<?php endif ; ?>
209
210
210
- <?php // Add any custom dark mode CSS from the configuration.
211
- if ($ customcsscode != null ) : ?>
212
- <style>
213
- @media(prefers-color-scheme:dark) {
214
- <?php echo $ customdarkcsscode ?>
215
- }
216
- </style>
217
- <?php endif ; ?>
218
-
219
211
<?php // Load template favicons, loaded by default
220
212
if ($ loadfavicons == 1 ) : ?>
221
213
<link rel="apple-touch-icon" sizes="180x180" href="/templates/<?php echo $ this ->template ?> /favicons/apple-touch-icon.png">
248
240
249
241
<?php // Add Google Analytics tag if configured.
250
242
if ($ gacode != null ) : ?>
251
- <script async src="https://www.googletagmanager.com/gtag/js?id=UA-504090-1 "></script>
243
+ <script async src="https://www.googletagmanager.com/gtag/js?id=<?php echo $ gacode ; ?> "></script>
252
244
<script>
253
245
window.dataLayer = window.dataLayer || [];
254
246
function gtag(){dataLayer.push(arguments);}
@@ -265,7 +257,7 @@ function gtag(){dataLayer.push(arguments);}
265
257
266
258
</head>
267
259
268
- <?php /* Add the menu item alias to the body ID, class, or both * / ?>
260
+ <?php // Add the menu item alias to the body ID, class, or both. / / ?>
269
261
<?php if ($ bodymenu == 1 ) : ?>
270
262
<body class="<?php echo $ active ->alias ; ?> component-only ">
271
263
<?php elseif ($ bodymenu == 2 ) : ?>
@@ -276,13 +268,13 @@ function gtag(){dataLayer.push(arguments);}
276
268
<body class="component-only">
277
269
<?php endif ; ?>
278
270
279
- <?php // Add custom code after opening body tag
271
+ <?php // Add custom code after opening body tag
280
272
if ($ codeafterbody != null ) : ?>
281
273
<?php echo $ codeafterbody ;
282
274
?>
283
275
<?php endif ; ?>
284
276
285
- <?php // Choose either a fixed or fluid width container
277
+ <?php // Choose either a fixed or fluid width container
286
278
if ($ fluidcontainer == 1 ) : ?>
287
279
<div class="container-fluid">
288
280
<?php else : ?>
@@ -303,31 +295,31 @@ function gtag(){dataLayer.push(arguments);}
303
295
304
296
<?php // Use jQuery Migrate 3.0.1
305
297
if ($ jqmigrate == 1 ) : ?>
306
- <script src="https://code.jquery.com/jquery-migrate-3.0 .1.min.js" crossorigin="anonymous"></script>
298
+ <script src="https://code.jquery.com/jquery-migrate-3.3 .1.min.js" crossorigin="anonymous"></script>
307
299
<?php endif ; ?>
308
300
309
- <?php // Load the local or remote Bootstrap 3 or 4 JavaScript dependency
310
- // If CDN empty and load BS 3 remotely
301
+ <?php // Load the local or remote Bootstrap 3 or 4 JavaScript dependency
302
+ // If CDN empty and load BS 3 remotely
311
303
if (($ bootstrapcdn == null ) && ($ bootstrapsource == 1 )) : ?>
312
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI" crossorigin="anonymous"></script>
304
+ <script src="https://cdn.jsdelivr.net/npm/
[email protected] /dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
305
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
313
306
314
307
<?php // If CDN empty and load BS 4 remotely
315
308
elseif (($ bootstrapcdn == null ) && ($ bootstrapsource == 3 )) : ?>
316
309
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
317
- <script src="https://cdn.jsdelivr.net/npm/
[email protected] .
0 /dist/umd/popper.min.js" integrity="sha384-
Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo " crossorigin="anonymous"></script>
318
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0 /js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI " crossorigin="anonymous"></script>
310
+ <script src="https://cdn.jsdelivr.net/npm/
[email protected] .
1 /dist/umd/popper.min.js" integrity="sha384-
9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN " crossorigin="anonymous"></script>
311
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2 /js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV " crossorigin="anonymous"></script>
319
312
320
313
<?php // If CDN empty and load BS 4 remotely, but full jQuery 3 is loaded
321
314
elseif (($ bootstrapcdn == null ) && ($ bootstrapsource == 3 ) && ($ jqlibrary == 2 )) : ?>
322
- <script src="https://cdn.jsdelivr.net/npm/
[email protected] .
0 /dist/umd/popper.min.js" integrity="sha384-
Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo " crossorigin="anonymous"></script>
323
- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0 /js/bootstrap.min.js" integrity="sha384-OgVRvuATP1z7JjHLkuOU7Xw704+h835Lr+6QL9UvYjZE3Ipu6Tp75j7Bh/kR0JKI " crossorigin="anonymous"></script>
315
+ <script src="https://cdn.jsdelivr.net/npm/
[email protected] .
1 /dist/umd/popper.min.js" integrity="sha384-
9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN " crossorigin="anonymous"></script>
316
+ <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2 /js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV " crossorigin="anonymous"></script>
324
317
<?php else : ?>
325
318
<?php endif ; ?>
326
319
327
320
<?php // Add custom code before closing body tag
328
321
if ($ codebeforebody != null ) : ?>
329
- <?php echo $ codebeforebody ;
330
- ?>
322
+ <?php echo $ codebeforebody ; ?>
331
323
<?php endif ; ?>
332
324
333
325
<?php // Use Instant.page
0 commit comments