Gogeta103
22-12-2009, 16:27
Witam
Edytowałem sobie na swoje potrzeby szablon Relax firmy 123WebDesign i w pewnym momencie zauważyłem że w szablonie brak przypisanych modułów typu user1, user2, user3, itp.
Chciałbym zapytać czy ktoś napisałby mi gotowy kod??
Oto plik index.php:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!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="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->
</head>
<body class="body_bg">
<div id="page_bg">
<div id="page_bg1">
<!--header start -->
<div id="header">
<div id="logo">
<table cellspacing="0" cellpadding="0" style="width: 900px; height: 60px; text-align: center; margin: 0 auto;">
<tr><td style="text-align: center; vertical-align: middle;">
<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
</td></tr>
</table>
</div>
</div>
<!--header end -->
<!--topmenu start-->
<div class="pill_m">
<div id="pillmenu">
<table cellspacing="0" cellpadding="0" style="margin: 0 auto;">
<tr><td>
<jdoc:include type="modules" name="user3" />
</td></tr>
</table>
</div>
</div>
<!--topmenu end-->
<!--center start-->
<div class="center">
<div id="wrapper">
<div id="content">
<!--pathway start-->
<div class="cpathway">
<jdoc:include type="module" name="breadcrumbs" />
</div>
<!--pathway end-->
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn" style="margin:25px 0 0 0;">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $wd123 = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn" style="float:right;">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
</div>
<!--center end-->
</div>
</div>
<!--footer start-->
<div id="footer">
<div id="f123">
<div>
<div style="text-align: center; padding: 24px 0 0;">
<?php $wd123 = ''; include "templates.php"; ?>
</div>
<div style=" padding: 5px 0; text-align: center; color: #fff;">
Valid <a style="color: #fff;" href="http://validator.w3.org/check/referer">XHTML</a> and <a style="color: #fff;" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</div>
</div>
</div>
</div>
<!--footer end-->
<jdoc:include type="modules" name="debug" />
</body>
</html>
Edytowałem sobie na swoje potrzeby szablon Relax firmy 123WebDesign i w pewnym momencie zauważyłem że w szablonie brak przypisanych modułów typu user1, user2, user3, itp.
Chciałbym zapytać czy ktoś napisałby mi gotowy kod??
Oto plik index.php:
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!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="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->
</head>
<body class="body_bg">
<div id="page_bg">
<div id="page_bg1">
<!--header start -->
<div id="header">
<div id="logo">
<table cellspacing="0" cellpadding="0" style="width: 900px; height: 60px; text-align: center; margin: 0 auto;">
<tr><td style="text-align: center; vertical-align: middle;">
<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
</td></tr>
</table>
</div>
</div>
<!--header end -->
<!--topmenu start-->
<div class="pill_m">
<div id="pillmenu">
<table cellspacing="0" cellpadding="0" style="margin: 0 auto;">
<tr><td>
<jdoc:include type="modules" name="user3" />
</td></tr>
</table>
</div>
</div>
<!--topmenu end-->
<!--center start-->
<div class="center">
<div id="wrapper">
<div id="content">
<!--pathway start-->
<div class="cpathway">
<jdoc:include type="module" name="breadcrumbs" />
</div>
<!--pathway end-->
<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
<div id="leftcolumn" style="margin:25px 0 0 0;">
<jdoc:include type="modules" name="left" style="rounded" />
<?php $wd123 = 'banner'; include "templates.php"; ?>
</div>
<?php endif; ?>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="maincolumn">
<?php else: ?>
<div id="maincolumn_full">
<?php endif; ?>
<div class="nopad">
<jdoc:include type="message" />
<?php if($this->params->get('showComponent')) : ?>
<jdoc:include type="component" />
<?php endif; ?>
</div>
</div>
<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
<div id="rightcolumn" style="float:right;">
<jdoc:include type="modules" name="right" style="rounded" />
</div>
<?php endif; ?>
<div class="clr"></div>
</div>
</div>
</div>
<!--center end-->
</div>
</div>
<!--footer start-->
<div id="footer">
<div id="f123">
<div>
<div style="text-align: center; padding: 24px 0 0;">
<?php $wd123 = ''; include "templates.php"; ?>
</div>
<div style=" padding: 5px 0; text-align: center; color: #fff;">
Valid <a style="color: #fff;" href="http://validator.w3.org/check/referer">XHTML</a> and <a style="color: #fff;" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
</div>
</div>
</div>
</div>
<!--footer end-->
<jdoc:include type="modules" name="debug" />
</body>
</html>