Templates / Appearance - Please read:
| » Templates |
|
The script templates are in the 'templates' folder. These are the ones you`ll need to edit to adapt the system into your website. Please see the readme file in the 'templates' folder for information
on the 'html/*.html' template files. All styles are set in the stylesheet: stylesheet.css RSS feed styling is set in the RSS stylesheet: rss_style.css Note that many modern browsers have their own default styles, so this file has no effect. All language is found in the 'lang/english.php' file. E-mail templates are in the 'templates/email/' folder. Payment/Checkout templates are in the 'templates/checkout/' folder. |
| » Adding New Pages | ||
|
All my scripts are structured the same with the templates and they all use the Savant2 template engine. I personally
think this is the best template engine out there. Adding new pages is relatively easy: [1] - Create a new .tpl.php file and pop it in the 'templates' folder. You might want to look at the structure of the others to get the same HTML/div information. These files can use both standard HTML and PHP. [2] - Next open the index.php and find the closing break; at the bottom of the file. Lets say you create a new file called 'pictures.tpl.php', after this break add the following:
Access the new page as '?p=pictures'. If you are using mod_rewrite you`ll also need to add the 'pictures' attribute to the first RewriteRule. If you add this you would access the page as 'pictures.html'. [3] - If you need to pass dynamic data into the template, assign a new var:
Then use <?php echo $this->RANDOM; ?> in the template. This example would generate a random number from 1 to 9. You could also add this directly into the template as <?php echo rand(1,9); ?>. You won`t need to pass data using the assign method unless you want content generated by the music system which couldn`t be accessed directly in the template. Hope that helps create new pages. |
| » Adapt System Into Existing Website Design |
|
Not straightforward as most websites are different. You need to look at the current HTML structure of your current site. Work out which can be seperated as header data
and footer data. This is the starting point of the code that needs to go in the Maian Music template files. Of course you`ll also need to make sure that code associated to
Maian Music exists in the templates. So, create a backup of the default Maian Music set up before you begin. Using iframes and/or PHP include files is NOT recommended. Template adapting is recommended for advanced users only. If you have no knowledge of HTML you are best finding someone who can adapt the system for you. |
| » CSS Layout |
| Maian Music has a CSS structure. All control elements are rendered by the stylesheet. Be careful when editing the stylesheet or the code. One div in the wrong place and the whole layout will be out of place. Again, don`t touch if you don`t understand it. |
| » Searching Template Files |
| Many people ask where certain attributes are in the code. This can be overcome by using a good search utility. I highly recommend Super Finder. Its FREE! |