mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-05 04:37:51 +02:00
General Core Improvments
This commit is contained in:
@@ -4,4 +4,4 @@
|
||||
* Set meta generator
|
||||
*/
|
||||
Action::add('theme_header', 'setMetaGenerator');
|
||||
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.MONSTRA_VERSION.'" />'; }
|
||||
function setMetaGenerator() { echo '<meta name="generator" content="Powered by Monstra '.Core::VERSION.'" />'; }
|
@@ -5,32 +5,6 @@
|
||||
* Monstra CMS Defines
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Set gzip output
|
||||
*/
|
||||
define('MONSTRA_GZIP', false);
|
||||
|
||||
/**
|
||||
* Set gzip styles
|
||||
*/
|
||||
define('MONSTRA_GZIP_STYLES', false);
|
||||
|
||||
/**
|
||||
* Set Monstra version
|
||||
*/
|
||||
define('MONSTRA_VERSION', '2.0.1');
|
||||
|
||||
/**
|
||||
* Set Monstra version id
|
||||
*/
|
||||
define('MONSTRA_VERSION_ID', 20001);
|
||||
|
||||
/**
|
||||
* Set Monstra site url
|
||||
*/
|
||||
define('MONSTRA_SITEURL', 'http://monstra.org');
|
||||
|
||||
/**
|
||||
* The filesystem path to the 'monstra' folder
|
||||
*/
|
||||
@@ -109,11 +83,6 @@
|
||||
* The filesystem path to the 'uploads' folder
|
||||
*/
|
||||
define('UPLOADS', ROOT . DS . 'public' . DS . 'uploads');
|
||||
|
||||
/**
|
||||
* Set login sleep value
|
||||
*/
|
||||
define('MONSTRA_LOGIN_SLEEP', 1);
|
||||
|
||||
/**
|
||||
* Set password salt
|
||||
@@ -136,9 +105,9 @@
|
||||
define('CHECK_MONSTRA_VERSION', true);
|
||||
|
||||
/**
|
||||
* Monstra CMS mobile detection
|
||||
* Set gzip output
|
||||
*/
|
||||
define('MONSTRA_MOBILE', true);
|
||||
define('MONSTRA_GZIP', false);
|
||||
|
||||
/**
|
||||
* Monstra database settings
|
||||
|
8
monstra/boot/shortcodes.php
Normal file
8
monstra/boot/shortcodes.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
|
||||
|
||||
/**
|
||||
* Add new shortcode {siteurl}
|
||||
*/
|
||||
Shortcode::add('siteurl', 'returnSiteUrl');
|
||||
function returnSiteUrl() { return Option::get('siteurl'); }
|
Reference in New Issue
Block a user