File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -8,12 +8,13 @@ class MaterializeCSSBuilder {
88 private static $ file_css_min = '/materialize-css/css/materialize.min.css ' ;
99 private static $ file_js = '/materialize-css/js/materialize.js ' ;
1010 private static $ file_js_min = '/materialize-css/js/materialize.min.js ' ;
11- private static $ file_jquery = 'jquery-2.1.1.min.js ' ;
11+ private static $ jquery_ver = 'jquery-3.3.1.min.js ' ;
12+ private static $ jquery_sha = 'sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8= ' ;
1213
1314
1415 public static function include_full () {
1516 $ return = self ::include_css ();
16- $ return .= self ::tag_js ('https://code.jquery.com/ ' .self ::$ file_jquery );
17+ $ return .= self ::tag_js ('https://code.jquery.com/ ' .self ::$ jquery_ver );
1718 $ return .= self ::include_js ();
1819 return $ return ;
1920 }
@@ -68,6 +69,10 @@ private static function tag_js($path) {
6869 return '<script type="text/javascript" src=" ' .$ path .'"></script> ' ;
6970 }
7071
72+ private static function jquery_tag_js ($ path ) {
73+ return '<script src=" ' .$ path .'" integrity=" ' .$ jquery_sha .'" crossorigin="anonymous"></script> ' ;
74+ }
75+
7176}
7277
7378?>
You can’t perform that action at this time.
0 commit comments