Edit index.php located in your template folder to setup another markup.
Head
Generates dynamic metadata and loads external CSS and Javascript.
Syntax: <head> <?php head(); ?> </head>
Center
Displays main contents and administration.
Syntax: <?php center(); ?>
Extras
Displays extra contents.
Syntax: <?php extras(); ?>
Parameter: alias (alphabetic) • rank (numeric)
Navigation lists
Displays navigation list.
Syntax: <?php navi_list('parameter'); ?>
Parameter: categories • articles • comments
Additional lists
Displays installed languages or templates.
Syntax: <?php languages_list(); ?>
Syntax: <?php templates_list(); ?>
Login links
Displays login, registration, administration and logout link.
Syntax: <?php login_links(); ?>
Breadcrumbs
Generates breadcrumbs navigation path.
Syntax: <?php breadcrumbs(); ?>
Search form
Displays search form.
Syntax: <?php search_form(); ?>
Browser tags
Setup the _my_browser constant inside your template:
Syntax: <body class="<?php echo _my_browser; ?>">
This will generate a body class according to the visitor's browser:
Demonstration: <body class="none">
Browser styles
Define Google Chrome 4 and Mozilla Firefox 3:
- .chrome4 input.button, .firefox3 input.button {
- padding: 4px 5px !important;
- }
What about fixing Internet Explorer 6 and 7:
- .msie6 input.button, .msie7 input.button {
- padding: 4px 0 2px 0 !important;
- }
No need for conditional comments and CSS hacks anymore!
Browser selectors like chrome, firefox, konqueror, msie, netscape, opera and safari can only be used in combination with their major version number.
Section tags
Setup the _last_parameter constant inside your template:
Syntax: <body class="<?php echo _last_parameter; ?>">
This will generate a body class according to the current section.
Example: <body class="home">
Section styles
Define another background for #content that only affects your home section:
- .home #content {
- background: #666;
- }
Use another template once the differences became too complex.