User Guide and Documentation

1. Theme StructureRelease Date: 2019/05/01

Where are theme files located?

Theme folders are located in the directory: /templates/website/ If you want to develop a new theme, create a new folder in this directory and define the folder name as the name of your theme. You can check and review by taking the current "Default" theme as sample.

How should the theme folder be named?  

When naming your theme folder, you can use uppercase and lowercase letters, digits and _ (underscores) as the special character.

What should the theme folder include?

The WISECP has a "Default" folder as standard. You can copy the php files and inc, locale, pages folders In this folder and paste into the theme you will create.

Content and Properties of Some Theme Files

  • theme.php

    1) This is a file that the system needs and should not be deleted. In the file, replace "Default" in Default_Theme with the folder name of your theme. Apply the same procedure to $name = 'Default'.

    2) In this file, you can add functions to use in your theme file. The $_theme variable in the theme file will return as Class (object).

  • master-content and ac-master-content.php

    The files such as theme files (eg index.php, domain.php, ac-dashboard.php) first check if there is any master-content.php or ac-master-content.php file before they are displayed on the screen, replaces the {get_content} value in the content file with the content of the specified sample theme files.

  • theme-settings.php and theme-config.php

    1) If you want to add a setting to configure in your theme, you can edit the theme-settings.php file. (Sample codes are available in the file. )

    2) With the change_settings function in the theme.php file, you can process the data from the form and convert it to the "array" data type to print to the theme-config.php file.
    cover.jpg

  • cover.jpg

    The theme cover image that will appear on Admin Area > Theme Settings > Theme Management.

  • common-needs.php

    This file is a template to display status information of orders, invoices, support requests etc.
 

« Getting Started 2. Using theme.php »

 
Copyright © 2019. All rights reserved.
Top