| 1234567891011121314 |
- <?php
- class HTML {
- public static function script($path) {
- if(!file_exists($path)) return;
- $modified_time = filemtime($path);
- $src = preg_replace("/^public\//", "/", $path);
- ?>
- <script type="text/javascript" src="<?=htmlspecialchars($src)?>?<?=$modified_time?>"></script>
- <?php
- }
- }
- ?>
|