...
File/Folder Name | Description | Required | ||
---|---|---|---|---|
/assets/banners/ | Will hold any banners an Admin uploads to your theme. | No | ||
/assets/favicons/ | If an Admin changes the site favicon, it will be placed here. | No | ||
/assets/logos/ | Logos uploaded by Admins are added here. | No | ||
autoload.js | If your theme requires Javascript you can use this file for that.
| no | ||
autoload.css | CSS for your theme. | yes | ||
autoload.less | If you wish to work with LESS, phpFox supports compiling less variables from the Additional information on how to work with phpFox and LESS can be found here. | no | ||
variables.less | Store your LESS variables here if you plan to use autoload.less. You can find default variables from our Bootstrap theme, located at | no | ||
/html/layout.html | Your HTML goes here and we use Twig as our template engine. | no | ||
theme.json | JSON variables used to load your theme in phpFox | yes | ||
theme.png | Screenshot of your theme, which is displayed in the AdminCP. | yes |
Disable CSS Caching
When you are working with your theme it might be easier to make sure the browser does not cache your CSS changes. To get this working, navigate to the folder PF.Base/file/settings/. In that folder, if you don't have this file create a new file called debug.sett.php. Paste the following
Code Block |
---|
<?php define('PHPFOX_NO_TEMPLATE_CACHE', true); define('PHPFOX_NO_CSS_CACHE', true); |
These 2 PHP constants will tell phpFox not keep your CSS files fresh and to skip the template caching.