In order to create a BillingFox theme you have to use getElement('top')
in the top of your pages, getElement('header')
before <head>
of your pages and getElement('footer')
before <body>
of your pages.
After that you will have to edit all file paths to use your theme files, example: set <link rel="stylesheet" href="/css/style.css">
to <link rel="stylesheet" href="/content/themes/YOUR_THEME_DIRECTORY/css/style.css">
Now you have to set logo image link to images/brand/logo.webp
and the redirects to files without file extension (BillingFox validate URLs without file extensions for aesthetic purposes)
You can now create a file called maintenance.php
where you can use the getWebVar(...)
function to get maintenance text
You must create a file called custom_page.php
where you can use the constants: PAGE_CONTENT
, PAGE_TITLE
and PAGE_META_DESCRIPTION
to get custom page info
After you finished theme files you can add them into a new theme directory in content/themes/
, after you activate the theme, it should display properly.
Copy to clipboard// Example theme page:
<?php getElement('top'); ?> <!DOCTYPE html> <html> <head> <title>My theme page</title> <link rel="stylesheet" href="content/themes/MY_THEME_DIRECTORY/css/style.css"> <?php getElement('header'); ?> </head> <body> Content here <?php getElement('footer'); ?> </body> </html>