Skip to content

Commit

Permalink
[Bump] Updated to 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
idawnlight committed Jun 22, 2018
1 parent 837b115 commit 39ae3a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

define("MATERIAL_VERSION", "3.2.1");
define("MATERIAL_VERSION", "3.2.2");

require_once("lib/UACheck.php");
require_once("lib/pangu.php");
Expand Down Expand Up @@ -31,7 +31,6 @@ function jsLsload($name, $uri)
{
$options = Helper::options();
$identifier = $name . $uri . filemtime($options->themeFile(getTheme(), $uri)) . MATERIAL_VERSION;
//$md5 = md5(file_get_contents($options->themeFile(getTheme(), $uri)));
$hash = md5($identifier);
echo '<script>lsloader.load("' . $name . '","' . getThemeFile($uri) . '?' . $hash . '", true)</script>';
}
Expand All @@ -45,7 +44,6 @@ function cssLsload($name, $uri)
{
$options = Helper::options();
$identifier = $name . $uri . filemtime($options->themeFile(getTheme(), $uri)) . MATERIAL_VERSION;
//$md5 = md5(file_get_contents($options->themeFile(getTheme(), $uri)));
$hash = md5($identifier);
echo '<style id="' . $name . '"></style>';
echo '<script>if(typeof window.lsLoadCSSMaxNums === "undefined")window.lsLoadCSSMaxNums = 0;window.lsLoadCSSMaxNums++;lsloader.load("' . $name . '","' . getThemeFile($uri) . '?' . $hash . '",function(){if(typeof window.lsLoadCSSNums === "undefined")window.lsLoadCSSNums = 0;window.lsLoadCSSNums++;if(window.lsLoadCSSNums == window.lsLoadCSSMaxNums)document.documentElement.style.display="";}, false)</script>';
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* @package Material
* @author 黎明余光
* @version 3.2.1
* @version 3.2.2
* @link https://blog.lim-light.com
*/

Expand Down

0 comments on commit 39ae3a0

Please sign in to comment.