Releases: mecha-cms/mecha
v2.2.1: Update
- Added
$as
parameter tocopy
andmove
methods ofFile
andFolder
class. - Fixed
send
function not sending HTML email. - Small bug fixes for the
let
hook.
v2.2.0
Compatible with PHP 7.3.0 and above. Mecha uses Closure::fromCallable()
method (which is only available in PHP version 7.1.0 and above) to convert named function into closures, so that we can pass $this
reference from another class instance to the function body even if it’s a named function. The ??
operator becomes a must-have feature in this version as we no longer use extra $fail
parameter on certain class methods to set default values.
- Added ability to read special file named
task.php
. - Added classes:
Client
,Files
,Folders
,Layout
,Pager\Page
,Pager\Pages
,Pages
,Post
,Server
,SGML
. - Added more static functions:
abort
,alert
,anemon
,any
,c2f
,cache
,check
,concat
,content
,cookie
,eq
,exist
,extend
,f2c
,f2p
,fetch
,find
,fire
,ge
,get
,gt
,has
,hook
,is
,kick
,le
,let
,lt
,map
,mecha
,ne
,not
,open
,p2f
,page
,pages
,pluck
,route
,send
,session
,set
,shake
,state
,step
,stream
,test
,token
. - Added page conditional statement features.
- Moved YAML parser feature to a separate YAML extension.
- Moved class
Page
andPager
to a separate Page extension. - Moved configuration file from
.\lot\extend\:extension\state\config.php
to.\lot\x\:extension\state.php
. - Moved configuration file from
.\lot\shield\:layout\state\config.php
to.\lot\layout\state.php
. - Moved configuration file from
.\lot\state\config.php
to.\state.php
. - Moved search functionality to a separate Search extension.
- Now you can call page properties via
$this
property inside the hook function, either as a named function or as an anonymous function. - Removed ability to read special file named
__index.php
andindex__.php
. Onlyindex.php
file that will be read automatically. - Removed automatic constant creation for every folder name in the
.\lot
directory. - Removed classes:
Extend
Elevator
,Form
,Mecha
,Plugin
,Shield
,Union
. - Removed language and layout switcher features. Now we no longer have the ability to change themes through configuration files, and therefore there will only be one theme on every website built with Mecha.
- Removed plugin feature. There are no such thing called “plugin” in this version. They are now simply called “extension”.
- Renamed
.\lot\extend
directory address to.\lot\x
. - Renamed class
Config
toState
. - Renamed class
Date
toTime
. - Renamed class
Guardian
toGuard
. - Renamed class
Message
toAlert
. - Renamed the
X
constant toP
. “P” stands for “Placeholder”. - The “Set, Get and Reset” method naming standard has now been changed to “Set, Get and Let”.
- Use
null
value everywhere as the default value for all inaccessible data. From now on, use the??
operator to determine alternative value. $pages
variable is now a generator. Every page data in it will be loaded only if you iterate over the generator.
2.0.0
Compatible with PHP 5.3.6 and above.
- Refactor.
1.2.8
- Small bug fixes
- HTML, CSS and JavaScript minifier update.
This is going to be the last release version for v1.x.x
.
I will upload the site copy next time.
1.2.7
Highlight
Added options
Field Type
Just like option
field type, but users can select more than one option with this field type. Field type aliases like t
for text
, s
for summary
and b
for boolean
are now completely removed because of that option
and options
field type which have the same o
prefix.
Added attributes
and parser
Property for Field
Make it possible to set custom HTML attributes in custom fields, and also to set custom function to validate user input on data submission.
1.2.6
Highlight
Internal Hook Updates
My first plan on the renewal of this CMS was to provide a better support for the category plugin by updating the data carried along with the hooks to be more stable.
Advance Markdown Attribute Parser
I recently updated the custom attributes parser in my Parsedown Extra extension. You can now add more HTML attributes other than ID and classes on every Markdown syntax that can accept custom attributes such as code block, heading, image and link using normal HTML attributes syntax.
1.2.5
-
Unblacklisting the hard-coded page slug
-
Improve page type checking
-
Reorder parameter in most
Get
method to parse the page file:Get::post($reference, $excludes, $folder, $FP, $connector); Get::response($reference, $excludes, array $folder, array $FP, $connector);
1.2.4
Improvements.
1.2.3
http://mecha-cms.com/article/version-1-2-3
- Switch to Parsedown Extra
- Add ability to create recent and random posts by tag, time and slug
- Layout updates (grid system)
- Allow nested query string array from
$_GET
to be parsed byHTTP::query()
- Fix inconsistent HTML parser toggle view
- HTML parser toggle will be replaced by a select box contains list of the available HTML parser if we have more than 1 HTML parser engine
- Etc.
1.2.2
- Fix broken shield configuration path.