Stud.IP
5.4
|
Variables | |
$uri = ltrim(Request::pathInfo(), '/') | |
$response = new Trails_Response() | |
if(! $type||! $id) elseif(!in_array($type, ['css', 'js'])) elseif(!PluginAsset::exists($id)) | else |
try | |
$response = new Trails_Response() |
$uri = ltrim(Request::pathInfo(), '/') |
Output plugin assets
This will load and output plugin assets. For now, this will be the compiled LESS files of plugins. All served assets will set the appropriate headers so that the browser will cache the assets for a certain amount of time.
if (isset( $_SERVER[ 'HTTP_IF_MODIFIED_SINCE']) &&$model->chdate<=strtotime( $_SERVER[ 'HTTP_IF_MODIFIED_SINCE'])) else |