From aad82dfb0f16655c77170d1d13516f1807e99d0a Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 25 Mar 2018 20:37:16 -0300 Subject: [PATCH] added material icons css --- src/MaterializeCSSBuilder.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/MaterializeCSSBuilder.php b/src/MaterializeCSSBuilder.php index 3d3743c..070c359 100755 --- a/src/MaterializeCSSBuilder.php +++ b/src/MaterializeCSSBuilder.php @@ -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; } @@ -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() { @@ -69,8 +72,8 @@ private static function tag_js($path) { return ''; } - private static function jquery_tag_js($path) { - return ''; + private static function jquery_tag_js() { + return ''; } }