@@ -8,13 +8,14 @@ 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 $ jquery_ver = 'jquery-3.3.1.min.js ' ;
11
+ private static $ css_icons = 'https://fonts.googleapis.com/icon?family=Material+Icons ' ;
12
+ private static $ jquery_url = 'https://code.jquery.com/jquery-3.3.1.min.js ' ;
12
13
private static $ jquery_sha = 'sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8= ' ;
13
14
14
15
15
16
public static function include_full () {
16
17
$ return = self ::include_css ();
17
- $ return .= self ::tag_js ( ' https://code.jquery.com/ ' . self ::$ jquery_ver );
18
+ $ return .= self ::jquery_tag_js ( self ::$ jquery_url );
18
19
$ return .= self ::include_js ();
19
20
return $ return ;
20
21
}
@@ -26,7 +27,9 @@ public static function include_all() {
26
27
}
27
28
28
29
public static function include_css () {
29
- return self ::tag_css (asset (self ::$ file_css_min ));
30
+ $ return = self ::tag_css (self ::$ css_icons );
31
+ $ return .= self ::tag_css (asset (self ::$ file_css_min ));
32
+ return $ return ;
30
33
}
31
34
32
35
public static function include_js () {
@@ -69,8 +72,8 @@ private static function tag_js($path) {
69
72
return '<script type="text/javascript" src=" ' .$ path .'"></script> ' ;
70
73
}
71
74
72
- private static function jquery_tag_js ($ path ) {
73
- return '<script src=" ' .$ path .'" integrity=" ' .$ jquery_sha .'" crossorigin="anonymous"></script> ' ;
75
+ private static function jquery_tag_js () {
76
+ return '<script src=" ' .self :: $ jquery_url .'" integrity=" ' .self :: $ jquery_sha .'" crossorigin="anonymous"></script> ' ;
74
77
}
75
78
76
79
}
0 commit comments