mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-04 20:27:40 +02:00
@@ -1,9 +1,20 @@
|
||||
<?php
|
||||
|
||||
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
|
||||
|
||||
/**
|
||||
* Javascript class
|
||||
* Monstra Engine
|
||||
*
|
||||
* This source file is part of the Monstra Engine. More information,
|
||||
* documentation and tutorials can be found at http://monstra.org
|
||||
*
|
||||
* @package Monstra
|
||||
*
|
||||
* @author Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
* @copyright 2012-2013 Romanenko Sergey / Awilum <awilum@msn.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
class Javascript
|
||||
{
|
||||
/**
|
||||
@@ -23,7 +34,6 @@ class Javascript
|
||||
// Nothing here
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Add javascript
|
||||
*
|
||||
@@ -46,7 +56,6 @@ class Javascript
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Combine and load site javascript
|
||||
*/
|
||||
@@ -64,11 +73,9 @@ class Javascript
|
||||
$frontend_buffer = '';
|
||||
$frontend_regenerate = false;
|
||||
|
||||
|
||||
// Sort javascripts by priority
|
||||
$javascripts = Arr::subvalSort(Javascript::$javascripts, 'priority');
|
||||
|
||||
|
||||
if (BACKEND) {
|
||||
|
||||
// Build backend site javascript
|
||||
@@ -126,4 +133,4 @@ class Javascript
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user