1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-08-04 20:27:40 +02:00

Core Improvements: Next Round #79 #80

This commit is contained in:
Awilum
2013-01-08 22:16:29 +02:00
parent 0c984788c0
commit 7e71457a2e
72 changed files with 524 additions and 369 deletions

View File

@@ -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
}
}
}
}