Remove redundant jquery files, use Theme::jquery
This commit is contained in:
parent
ed15866770
commit
f527fe7c56
|
@ -169,7 +169,7 @@ class Theme {
|
|||
public static function jquery($cdn=false)
|
||||
{
|
||||
if ($cdn) {
|
||||
return '<script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>';
|
||||
return '<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha384-tsQFqpEReu7ZLhBV2VZlAu7zcOV+rXbYlF2cqB8txI/8aZajjp4Bqd+V6D5IgvKT" crossorigin="anonymous"></script>';
|
||||
}
|
||||
return '<script src="'.DOMAIN_CORE_JS.'jquery.min.js'.'"></script>'.PHP_EOL;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
|
||||
<!-- Javascript -->
|
||||
<?php
|
||||
echo Theme::js('js/jquery.min.js');
|
||||
echo Theme::jquery();
|
||||
echo Theme::js('js/bootstrap.min.js');
|
||||
?>
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -46,7 +46,7 @@
|
|||
|
||||
<!-- Javascript -->
|
||||
<?php
|
||||
echo Theme::js('js/jquery.min.js');
|
||||
echo Theme::jquery();
|
||||
echo Theme::js('js/bootstrap.min.js');
|
||||
?>
|
||||
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -38,7 +38,7 @@
|
|||
|
||||
<!-- Javascript -->
|
||||
<?php
|
||||
echo Theme::js('js/jquery.min.js');
|
||||
echo Theme::jquery();
|
||||
echo Theme::js('js/bootstrap.min.js');
|
||||
echo Theme::js('js/highlight.min.js');
|
||||
?>
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue