-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
689de71
commit ad6fae1
Showing
6 changed files
with
44 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?php | ||
|
||
require(rex_path::addon('speed_up','lib/speed_up.php')); | ||
require rex_path::addon('speed_up', 'lib/speed_up.php'); | ||
speed_up::install(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?php | ||
/** | ||
* REX_SPEED_UP[] | ||
* REX_SPEED_UP[]. | ||
*/ | ||
class rex_var_speed_up extends rex_var | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
<?php | ||
|
||
class speed_up_asset { | ||
class speed_up_asset | ||
{ | ||
public static function getUrl($file, $show_timestamp = true) | ||
{ | ||
if ($show_timestamp) { | ||
$timestamp = '?timestamp='.@filemtime(rex_path::assets($file)); | ||
$timestamp = '?timestamp=' . @filemtime(rex_path::assets($file)); | ||
} | ||
|
||
return rex_url::assets($file) . $timestamp; | ||
} | ||
|
||
public static function showUrl($file, $show_timestamp = true) { | ||
public static function showUrl($file, $show_timestamp = true) | ||
{ | ||
echo self::getUrl($file, $show_timestamp); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters