Mecha CMS

Mecha CMS blog and documentation.

Version 1.2.3

Updated: Sunday, 07 August 2016

Changelog in Mecha 1.2.3.

Switch to Parsedown

Markdown parser engine replaced from Markdown Extra to Parsedown Extra for performance and extensibility reason. It has custom features added by me, especially to support the optional syntax in Markdown Extra that are not available in the original version of Parsedown Extra. As an example, this syntax will not work in Parsedown Extra but work in Markdown Extra:

~~~ .html
This is a code block.
With Parsedown, you have to remove the
dot prefix from the class name.
~~~

I have uploaded the Markdown Extra version here, so you can continue to use it if you don’t like the custom Parsedown Extra version. Here’s another comparison between Markdown Extra and Parsedown Extra (original):

PatternMarkdown ExtraParsedown Extra
{.foo#bar}
{.foo #bar}
~~~ html
~~~ .html
~~~ {.foo#bar}
*[CSS]: Cascading Style Sheet
*[CSS]:
~~strike~~

Recent Post by Time, Tag, Slug

Added ability to create recent post widget by time, tag and slug:

echo Widget::recentPost(7, 'time:2016');
echo Widget::recentPost(7, 'kind:4');
echo Widget::recentPost(7, 'slug:plugin');

Random Post by Time, Tag, Slug

Added ability to create random post widget by time, tag and slug:

echo Widget::randomPost(7, 'time:2016');
echo Widget::randomPost(7, 'kind:4');
echo Widget::randomPost(7, 'slug:plugin');

Frontend, Backend, Both Frontend and Backend

Function loader based on file name now applies for functions.php too. It is also possible to load them only in frontend by affixing the file name with a __:

// ↓ will be loaded in both frontend and backend
lot\shields\foo\functions.php

// ↓ will be loaded only in backend
lot\shields\foo\__functions.php

// ↓ will be loaded only in frontend
lot\shields\foo\functions__.php
// ↓ will be loaded in both frontend and backend
lot\plugins\foo\launch.php

// ↓ will be loaded only in backend
lot\plugins\foo\__launch.php
lot\plugins\__foo\launch.php

// ↓ will be loaded only in frontend
lot\plugins\foo\launch__.php
lot\plugins\foo__\launch.php

Better Grid Layout

Fluid width grid system but fixed gap in between.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Download Mecha v1.2.3

Donation and Email Subscription