Joomla1.5:模板化片段
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Joomla1.5:模板化片段相关的知识,希望对你有一定的参考价值。
I find these Joomla snippets to be useful when constructing a new template.
<!------ THis replaces the Traditional <head> information ------> <?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' );?> <!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" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" > <head> <jdoc:include type="head" /> <link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/system.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/system/css/general.css" type="text/css" /> <link rel="stylesheet" href="<?php echo $this->baseurl ;?>/templates/<?php echo $this->template ;?>/css/default.css" type="text/css" /> </head> <!------ This is used where dynamic content will be loaded ------> <jdoc:include type="component" /> <!------ Different Types of Module Styles ------> <!-- Normal XHTML --> <jdoc:include type="modules" name="top" style="xhtml" /> <!-- Wrap a Table around a module --> <jdoc:include type="modules" name="top" style="table" /> <!-- Display Each Module Horizontally within a Table --> <jdoc:include type="modules" name="top" style="horiz" /> <!-- Put 4 DIV's around your content to make rounded corners --> <jdoc:include type="modules" name="top" style="rounded" /> <!-- No Divs. Module Title also won't be displayed --> <jdoc:include type="modules" name="top" style="raw" /> <!-- Debugging --> <jdoc:include type="modules" name="top" style="outline" />
以上是关于Joomla1.5:模板化片段的主要内容,如果未能解决你的问题,请参考以下文章