Skip to content

Commit

Permalink
added material icons css
Browse files Browse the repository at this point in the history
  • Loading branch information
skydiver committed Mar 25, 2018
1 parent f17839b commit aad82df
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/MaterializeCSSBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@ class MaterializeCSSBuilder {
private static $file_css_min = '/materialize-css/css/materialize.min.css';
private static $file_js = '/materialize-css/js/materialize.js';
private static $file_js_min = '/materialize-css/js/materialize.min.js';
private static $jquery_ver = 'jquery-3.3.1.min.js';
private static $css_icons = 'https://fonts.googleapis.com/icon?family=Material+Icons';
private static $jquery_url = 'https://code.jquery.com/jquery-3.3.1.min.js';
private static $jquery_sha = 'sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=';


public static function include_full() {
$return = self::include_css();
$return .= self::tag_js('https://code.jquery.com/'.self::$jquery_ver);
$return .= self::jquery_tag_js(self::$jquery_url);
$return .= self::include_js();
return $return;
}
Expand All @@ -26,7 +27,9 @@ public static function include_all() {
}

public static function include_css() {
return self::tag_css(asset(self::$file_css_min));
$return = self::tag_css(self::$css_icons);
$return .= self::tag_css(asset(self::$file_css_min));
return $return;
}

public static function include_js() {
Expand Down Expand Up @@ -69,8 +72,8 @@ private static function tag_js($path) {
return '<script type="text/javascript" src="'.$path.'"></script>';
}

private static function jquery_tag_js($path) {
return '<script src="'.$path.'" integrity="'.$jquery_sha.'" crossorigin="anonymous"></script>';
private static function jquery_tag_js() {
return '<script src="'.self::$jquery_url.'" integrity="'.self::$jquery_sha.'" crossorigin="anonymous"></script>';
}

}
Expand Down

0 comments on commit aad82df

Please sign in to comment.