PHP Classes

File: SmallServerAdmin/Controls/StaticIncludes.php

Recommend this page to a friend!
  Classes of Aleksey Nemiro   PHP Small Server Administrator   SmallServerAdmin/Controls/StaticIncludes.php   Download  
File: SmallServerAdmin/Controls/StaticIncludes.php
Role: Auxiliary script
Content type: text/plain
Description: Static files include
Class: PHP Small Server Administrator
Web panel for small Debian and Ubuntu servers
Author: By
Last change:
Date: 8 years ago
Size: 674 bytes
 

Contents

Class file image Download
<link rel="stylesheet" href="/Content/compiled.min.css?v=<?=filemtime(\Nemiro\Server::MapPath('~/Content/compiled.min.css'))?>" />
<?php
 
// include resources for current culture
 
if ($this->Parent->Culture != PAGE_DEFAULT_CULTURE && file_exists(\Nemiro\Server::MapPath('~/Content/local/'.$this->Parent->Culture.'.min.js')))
  {
    echo
'<script src="/Content/local/'.$this->Parent->Culture.'.min.js?v='.filemtime(\Nemiro\Server::MapPath('~/Content/local/'.$this->Parent->Culture.'.min.js')).'" type="text/javascript"></script>';
  }
?>
<script src="/Content/compiled.js?v=<?=filemtime(\Nemiro\Server::MapPath('~/Content/compiled.js'))?>" type="text/javascript"></script>