1
0
mirror of https://github.com/monstra-cms/monstra.git synced 2025-07-31 18:30:20 +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.');
/**
* Action 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 Action
{
/**

View File

@@ -1,10 +1,21 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Backend 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 Backend
{
public static function main() { }
}
}

View File

@@ -1,9 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Filter 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 Filter
{
/**

View File

@@ -1,8 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Frontend 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 Frontend
{
public static function main() { }
@@ -12,4 +24,4 @@ class Frontend
public static function template() { return 'index'; }
public static function content() { return ''; }
}
}

View File

@@ -1,9 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* I18n 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 I18n
{
/**

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

View File

@@ -1,9 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Navigation 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 Navigation
{
/**
@@ -13,14 +24,12 @@ class Navigation
*/
public static $items = array();
/**
* Navigation types
*/
const LEFT = 1;
const TOP = 2;
/**
* Add new item
*
@@ -51,7 +60,6 @@ class Navigation
);
}
/**
* Draw items
*

View File

@@ -1,9 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Plugin 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 Plugin
{
/**

View File

@@ -1,9 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* Stylesheet 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 Stylesheet
{
/**
@@ -13,7 +24,6 @@ class Stylesheet
*/
public static $stylesheets = array();
/**
* Protected constructor since this is a static class.
*
@@ -24,7 +34,6 @@ class Stylesheet
// Nothing here
}
/**
* Add stylesheet
*
@@ -47,7 +56,6 @@ class Stylesheet
);
}
/**
* Minify, combine and load site stylesheet
*/
@@ -65,7 +73,6 @@ class Stylesheet
$frontend_buffer = '';
$frontend_regenerate = false;
// Sort stylesheets by priority
$stylesheets = Arr::subvalSort(Stylesheet::$stylesheets, 'priority');
@@ -93,7 +100,6 @@ class Stylesheet
$backend_regenerate = false;
}
} else {
// Build frontend site stylesheets
@@ -129,7 +135,6 @@ class Stylesheet
}
}
/**
* CSS Parser
*/
@@ -144,5 +149,4 @@ class Stylesheet
$frontend_buffer);
}
}
}

View File

@@ -1,8 +1,20 @@
<?php
<?php defined('MONSTRA_ACCESS') or die('No direct script access.');
/**
* View 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 View
{
/**