PHP Joomla 2.5的基本模板
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了PHP Joomla 2.5的基本模板相关的知识,希望对你有一定的参考价值。
<?php
defined('_JEXEC') or die;
JHtml::_('behavior.framework', true);
$app = JFactory::getApplication();
?>
<?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<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/<?php echo $this->template ?>/css/style.css" type="text/css" />
<!--[if IE]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ie.css" type="text/css" />
<![endif]-->
<!--[if IE 6]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ie6.css" type="text/css" />
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ie7.css" type="text/css" />
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ie8.css" type="text/css" />
<![endif]-->
<!--[if IE 9]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ie9.css" type="text/css" />
<![endif]-->
<!--[if gt IE 6]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_iegt6.css" type="text/css" />
<![endif]-->
<!--[if lte IE 7]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ielte7.css" type="text/css" />
<![endif]-->
<!--[if gte IE 8]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_iegte8.css" type="text/css" />
<![endif]-->
<!--[if lt IE 9]>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/style_ielt9.css" type="text/css" />
<![endif]-->
</head>
<body>
<div id="wrapper">
<div id="header">
<h1><?php echo $app->getCfg('sitename'); ?></h1>
</div>
<div id="content">
<?php if($this->countModules('left')) : ?>
<div class="columnLeft">
<jdoc:include type="modules" name="left" style="none" />
</div>
<?php endif; ?>
<div id="maincontent">
<jdoc:include type="message" />
<jdoc:include type="component" />
</div>
<?php if($this->countModules('right')) : ?>
<div class="columnRight">
<jdoc:include type="modules" name="right" style="none" />
</div>
<?php endif; ?>
</div>
<?php if($this->countModules('footer')) : ?>
<div class="footer">
<jdoc:include type="modules" name="footer" style="none" />
</div>
<?php endif; ?>
</div>
</body>
</html>
以上是关于PHP Joomla 2.5的基本模板的主要内容,如果未能解决你的问题,请参考以下文章
在文章中提交 PHP 表单时出现 Joomla 2.5 404 错误
500 - 当我将 joomla 模板 2.5 升级到 3.0 时找不到 JHtmlBehavior::mootools