February 20,2007

[翻譯]Joomla! 1.0.12版及較舊版本 樣板教學 7of9

原文: Hazman  
出處 : xtremeOpenSource

Joomla! 程式碼 - 頁尾
這段程式碼 <?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?> 呈現出頁尾的資訊。
複製到index.php檔案裡。
<?php
/**
* @version - Template version goes here
* @package - Name of the template goes here
* @author - Author's name goes here
* @email - Your email goes here
* @website - Your website goes here
* @copyright (C) - Your copyright goes here
* @license - Type of license goes here
*/
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
// needed to seperate the ISO number from the language file constant _ISO
$iso = split( '=', _ISO );
// xml prolog
echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<?php mosShowHead(); ?>
<?php if ( $my->id ) { initEditor(); } ?>
<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?>
</head>

<body>

<div id="main_container">

<div id="header">
Header
</div>

<table width="100%" cellpadding="0" cellspacing="0">
<tr valign="top">

<td width="150">
Left Column Content
<?php mosLoadModules ( 'left' ); ?>
</td>

<td width="100%">
Center Column Content
<?php mosMainBody(); ?>
</td>

<td width="150">
Right Column Content
<?php mosLoadModules ( 'right' ); ?>
</td>

</tr>
</table>

</div>

<div id="footer">
Footer
<?php include_once( $GLOBALS['mosConfig_absolute_path'] . '/includes/footer.php' ); ?>
</div>

</div>

</body>
</html>


Posted by waking_life at 樂多Roodo! │16:39 │回應(0)引用(0)樣式表心法
樂多分類:網路/3C 共同主題:Joomla! 工具:編輯本文
Ads by Roodo! 

引用URL

http://cgi.blog.roodo.com/trackback/2777173