Skip to content
Timot Tarjani edited this page Mar 28, 2017 · 9 revisions

Theme structure

The themes are under the /themes folder. By default there are two theme engine: Laravel's blade(in development) and HcmsPHP. You can choose the engine in your theme config.php file eg: 'theme_engine' => 'hcms'. HcmsPHP is a PHP code which has website helpers.

HorizontCMS needs some default theme file, they are listed below. After the file creation they will be automatically recognized by the system. You don't have to include the header.php and footer.php into index. If they exists, the template engine will do it for you.

  • page_templates (dir) * Custom page templates come here. (eg: blog.php)
  • header.php
  • index.php
  • footer.php
  • page.php
  • 404.php
  • config.php
  • preview.jpg
  • theme_info.xml
Clone this wiki locally