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 {
8
8
private static $ file_css_min = '/materialize-css/css/materialize.min.css ' ;
9
9
private static $ file_js = '/materialize-css/js/materialize.js ' ;
10
10
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= ' ;
12
13
13
14
14
15
public static function include_full () {
15
16
$ 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 );
17
18
$ return .= self ::include_js ();
18
19
return $ return ;
19
20
}
@@ -68,6 +69,10 @@ private static function tag_js($path) {
68
69
return '<script type="text/javascript" src=" ' .$ path .'"></script> ' ;
69
70
}
70
71
72
+ private static function jquery_tag_js ($ path ) {
73
+ return '<script src=" ' .$ path .'" integrity=" ' .$ jquery_sha .'" crossorigin="anonymous"></script> ' ;
74
+ }
75
+
71
76
}
72
77
73
78
?>
You can’t perform that action at this time.
0 commit comments