mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 08:04:05 +02:00
Code cleanup and refactoring #5
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
# Flextype 0.2.0, 2018-03-XX
|
||||
* Thunderer Shortcode Framework - added
|
||||
* Cache Flextype::VERSION for cache key - added
|
||||
* flextype/boot/shortcodes.php - removed
|
||||
* flextype/boot/events.php - removed
|
||||
* Code cleanup and refactoring #5
|
||||
|
||||
# Flextype 0.1.0, 2018-03-21
|
||||
* Initial Release
|
||||
|
@@ -1,6 +1,6 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2018 Flextype Content Management
|
||||
Copyright (c) 2018 Flextype
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "flextype/flextype",
|
||||
"type": "library",
|
||||
"type": "project",
|
||||
"description": "Flextype is Modern Open Source Flat-File Content Management System",
|
||||
"keywords": ["Flextype", "php", "cms", "flat-file", "markdown"],
|
||||
"keywords": ["Flextype", "php", "cms", "flat-file cms", "flat cms", "flatfile cms", "markdown"],
|
||||
"homepage": "http://flextype.org",
|
||||
"license": "MIT",
|
||||
"authors": [
|
||||
|
@@ -9,7 +9,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
|
||||
namespace Flextype;
|
||||
|
||||
class Cache
|
||||
@@ -232,10 +232,6 @@ class Cache
|
||||
/**
|
||||
* Initialize Flextype Cache
|
||||
*
|
||||
* <code>
|
||||
* Cache::init();
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
|
@@ -9,7 +9,7 @@
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
|
||||
namespace Flextype;
|
||||
|
||||
use Arr;
|
||||
@@ -86,10 +86,6 @@ class Config
|
||||
/**
|
||||
* Get config array
|
||||
*
|
||||
* <code>
|
||||
* $config = Config::getConfig();
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
@@ -101,10 +97,6 @@ class Config
|
||||
/**
|
||||
* Initialize Flextype Config
|
||||
*
|
||||
* <code>
|
||||
* Config::init();
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public static function init()
|
||||
|
@@ -42,10 +42,6 @@ class Filters
|
||||
/**
|
||||
* Dispatch filters
|
||||
*
|
||||
* <code>
|
||||
* Filter::dispatch('content', $content);
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @param string $filter_name The name of the filter hook.
|
||||
* @param mixed $value The value on which the filters hooked.
|
||||
@@ -85,14 +81,6 @@ class Filters
|
||||
/**
|
||||
* Add filter
|
||||
*
|
||||
* <code>
|
||||
* Filter::add('content', 'replacer');
|
||||
*
|
||||
* function replacer($content) {
|
||||
* return preg_replace(array('/\[b\](.*?)\[\/b\]/ms'), array('<strong>\1</strong>'), $content);
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @param string $filter_name The name of the filter to hook the $function_to_add to.
|
||||
* @param string $function_to_add The name of the function to be called when the filter is applied.
|
||||
|
@@ -133,10 +133,6 @@ class I18n
|
||||
/**
|
||||
* Initialize Flextype I18n
|
||||
*
|
||||
* <code>
|
||||
* I18n::init();
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
|
@@ -27,10 +27,6 @@ class Markdown
|
||||
/**
|
||||
* Markdown parser
|
||||
*
|
||||
* <code>
|
||||
* $content = Markdown::parse($content);
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @param string $content Content to parse
|
||||
* @return string Formatted content
|
||||
|
@@ -197,10 +197,6 @@ class Pages
|
||||
/**
|
||||
* Initialize Flextype Pages
|
||||
*
|
||||
* <code>
|
||||
* Pages::init();
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
|
@@ -92,10 +92,6 @@ class Plugins
|
||||
/**
|
||||
* Initialize Flextype Plugins
|
||||
*
|
||||
* <code>
|
||||
* Plugins::init();
|
||||
* </code>
|
||||
*
|
||||
* @access public
|
||||
* @return object
|
||||
*/
|
||||
|
@@ -60,7 +60,7 @@ class Shortcodes
|
||||
/**
|
||||
* Register default shortcodes
|
||||
*
|
||||
* @access public
|
||||
* @access protected
|
||||
*/
|
||||
protected static function registerDefaultShortcodes()
|
||||
{
|
||||
|
Reference in New Issue
Block a user