mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 16:14:16 +02:00
NEW BRAND NAME - FLEXTYPE
This commit is contained in:
35
flextype/boot/defines.php
Executable file
35
flextype/boot/defines.php
Executable file
@@ -0,0 +1,35 @@
|
||||
<?php namespace Flextype;
|
||||
|
||||
/**
|
||||
* @package Flextype
|
||||
*
|
||||
* @author Sergey Romanenko <awilum@yandex.ru>
|
||||
* @link http://flextype.org
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// Define the path to the root directory (without trailing slash).
|
||||
define('ROOT_DIR', str_replace(DIRECTORY_SEPARATOR, '/', getcwd()));
|
||||
|
||||
// Define the path to the site directory (without trailing slash).
|
||||
define('SITE_PATH', ROOT_DIR . '/site');
|
||||
|
||||
// Define the path to the pages directory (without trailing slash).
|
||||
define('PAGES_PATH', SITE_PATH . '/pages');
|
||||
|
||||
// Define the path to the themes directory (without trailing slash).
|
||||
define('THEMES_PATH', SITE_PATH . '/themes');
|
||||
|
||||
// Define the path to the plugins directory (without trailing slash).
|
||||
define('PLUGINS_PATH', SITE_PATH . '/plugins');
|
||||
|
||||
// Define the path to the config directory (without trailing slash).
|
||||
define('CONFIG_PATH', SITE_PATH . '/config');
|
||||
|
||||
// Define the path to the cache directory (without trailing slash).
|
||||
define('CACHE_PATH', SITE_PATH . '/cache');
|
||||
|
||||
// Define the path to the logs directory (without trailing slash).
|
||||
define('LOGS_PATH', SITE_PATH . '/logs');
|
16
flextype/boot/events.php
Normal file
16
flextype/boot/events.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php namespace Flextype;
|
||||
|
||||
/**
|
||||
* @package Flextype
|
||||
*
|
||||
* @author Sergey Romanenko <awilum@yandex.ru>
|
||||
* @link http://flextype.org
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// Set Flextype Meta Generator
|
||||
Events::addListener('onThemeMeta', function () {
|
||||
echo('<meta name="generator" content="Powered by Flextype" />');
|
||||
});
|
18
flextype/boot/shortcodes.php
Normal file
18
flextype/boot/shortcodes.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php namespace Flextype;
|
||||
|
||||
use Url;
|
||||
|
||||
/**
|
||||
* @package Flextype
|
||||
*
|
||||
* @author Sergey Romanenko <awilum@yandex.ru>
|
||||
* @link http://flextype.org
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
// Add {site_url} shortcode
|
||||
Shortcodes::add('site_url', function () {
|
||||
return Url::getBase();
|
||||
});
|
Reference in New Issue
Block a user