impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
501 stars 178 forks source link

Added user friendly layout naming #779

Closed poocart closed 8 years ago

poocart commented 8 years ago

Removed hardcoded layout name options array from layout select fields in page forms. Added layout name parsing and page layout select field options array with names in page forms. Added example layout names in demo themes.

Layout name can be added by adding @Layout name: *chosen name* attribute to layout PHP file. This can either be done with PHP <?php // @Layout name: *chosen name* ?> or HTML <!-- @Layout name: *chosen name* -->. Need to remember that HTML way shows the layout name to public in rendered website DOM.

Layout PHP files with underscore still ignored as being partials like in previous ImpressPages versions.