Developer Center

1. Theme Structure

We've created a sample theme structure on Github, and we recommend using it as a starting point.

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 "Classic" 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?

WISECP has "Modern" and "Classic" theme directories as standard. You can copy the "inc, locale, pages" folders together with other PHP files from any of these directories and place them in 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

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top