as a registered user you have some advantages like free downloads, comments and posting on our forums, depending upon this site's configuration and options.
Forums
Documentation
MAXdev Community
|
m. Including other AT commandsm. Including other AT commands Let's insert the logo of the site, the rotating banners set up in the Banner Module, date and time of the site. Open the Main theme template theme.html :
Just add a <A HREF> tag to make a linkable image to the Home Page defined in the Admin Pannel >> Settings >> Preferences >> Start page. The image logo.gif is linked by the AT command {image-path} that replaces the themes/YourTheme/image subfolder, where you have to copy the image. The alt parameter is to show a little box with the alternative text that will be compiled by the Php: echo (=display) the _GOTOINDEX constant. This constant has to be added in the /themes/YourTheme/lang/eng/global.php file: open it with Windows Block Note editor or other editors, and insert that line before the closing ?> command: define('_GOTOINDEX', 'Back to the Home page'); or the text you want to display. Save. Remember: if you set up different languages for your site, you have to create a /themes/YourTheme/lang/newlanguage subfolder with a global.php for the defines: this location is automatically searched by AutoTheme for the theme constants. If you have different languages, AT will look for the default language set up for the site.
<TD ALIGN="CENTER"> Banner here</TD> with the following AT command: <TD ALIGN="CENTER"><!-- [banners] --></TD> Create a banner with width=300 and height=60, or copy the banner from http://www.openitalia.net to the /images/banners/ folder and rename it banner.gif The banner has to be set up from the Admin Pannel: open it, click on Contents >> Banners: here add a banner client: insert your data, then submit. Now add a banner: select the client you just create, Show in all modules, all languages, Impressions=0 (unlimited), width=300, height=60, image URL: images/banners/banner.gif. If you will encounter problems, copy banner.gif into the /themes/images/ path and use these tags:
That's what the index will show:
with
With
Let's explain the code: in a professional theme design, text should not be hard-coded: so, instead of writing: <a href=”index.php”> HOME </a> you should write: <a href="<?php echo _URL1; ?>"><?php echo _LINK1; ?></a> and add these constants (_CONSTANT) to your /lang/eng/global.php as define() for each language used on your site: Global.php should look like this:
This method of using lang contants allows you to easily change link and url definitions by editing them simply in the language global.php file. This should be done for any text appearing in the theme template...
Replace with
That's how it looks in the preview:
You can change position of AT commands in the <TD ALIGN=”LEFT, CENTER, RIGHT”> tag, and the style in the <FONT CLASS””> tag.
Remember to activate the <MARQUEE> tag in the Admin Panel >> Settings >> Preferences >> HTML Options. |