Stud.IP  5.4
assets.php File Reference

Variables

 $uri = ltrim(Request::pathInfo(), '/')
 
 $response = new Trails_Response()
 
if(! $type||! $id) elseif(!in_array($type, ['css', 'js'])) elseif(!PluginAsset::exists($id)) else
 
 try
 

Variable Documentation

◆ $response

$response = new Trails_Response()

◆ $uri

$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.

Author
Jan-Hendrik Willms tleil.nosp@m.ax+s.nosp@m.tudip.nosp@m.@gma.nosp@m.il.co.nosp@m.m GPL2 or any later version
Since
Stud.IP 3.4

◆ else

if (isset( $_SERVER[ 'HTTP_IF_MODIFIED_SINCE']) &&$model->chdate<=strtotime( $_SERVER[ 'HTTP_IF_MODIFIED_SINCE'])) else
Initial value:
{
$model = PluginAsset::find($id)
$id
Definition: _sem_type.php:15

◆ try

try
Initial value:
{
$response->set_body($asset->getContent())
$response
Definition: assets.php:22