Remove redundant jquery files, use Theme::jquery

This commit is contained in:
Anaggh S 2018-03-09 00:20:39 +05:30
parent ed15866770
commit f527fe7c56
7 changed files with 7 additions and 13 deletions

View File

@ -169,7 +169,7 @@ class Theme {
public static function jquery($cdn=false) public static function jquery($cdn=false)
{ {
if ($cdn) { 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; return '<script src="'.DOMAIN_CORE_JS.'jquery.min.js'.'"></script>'.PHP_EOL;
} }
@ -183,4 +183,4 @@ class Theme {
} }
} }
?> ?>

View File

@ -28,7 +28,7 @@
<!-- Javascript --> <!-- Javascript -->
<?php <?php
echo Theme::js('js/jquery.min.js'); echo Theme::jquery();
echo Theme::js('js/bootstrap.min.js'); echo Theme::js('js/bootstrap.min.js');
?> ?>
@ -36,4 +36,4 @@
<?php Theme::plugins('siteBodyEnd'); ?> <?php Theme::plugins('siteBodyEnd'); ?>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,7 @@
<!-- Javascript --> <!-- Javascript -->
<?php <?php
echo Theme::js('js/jquery.min.js'); echo Theme::jquery();
echo Theme::js('js/bootstrap.min.js'); echo Theme::js('js/bootstrap.min.js');
?> ?>
@ -54,4 +54,4 @@
<?php Theme::plugins('siteBodyEnd'); ?> <?php Theme::plugins('siteBodyEnd'); ?>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

View File

@ -38,7 +38,7 @@
<!-- Javascript --> <!-- Javascript -->
<?php <?php
echo Theme::js('js/jquery.min.js'); echo Theme::jquery();
echo Theme::js('js/bootstrap.min.js'); echo Theme::js('js/bootstrap.min.js');
echo Theme::js('js/highlight.min.js'); echo Theme::js('js/highlight.min.js');
?> ?>

File diff suppressed because one or more lines are too long