Witam!
Podpowie mi ktoś w jaki sposób przerobić ten szablon, aby pozycje były ustawione w poniższy sposób?
Szukam pomocy od wczesnego rana i nic juz nie rozumiem.
Kod:
<?php defined('_JEXEC') or die;
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
//Odczyt parametrów szablonu
$params = $app->getTemplate(true)->params;
//Odczyt zmienych systemowych
$option = $app->input->getCmd('option', '');
$view = $app->input->getCmd('view', '');
$layout = $app->input->getCmd('layout', '');
$task = $app->input->getCmd('task', '');
$itemid = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');
//Do³¹czenie arkuszy CSS
$doc->addStyleSheet('templates/' . $this->template . '/css/template.css');
//Ustalenie szerokoœci kontentu
if ($this->countModules('position-7') && $this->countModules('position-4'))
{
$span = "span6";
}
elseif ($this->countModules('position-7') && !$this->countModules('position-4'))
{
$span = "span9";
}
elseif (!$this->countModules('position-7') && $this->countModules('position-4'))
{
$span = "span9";
}
else
{
$span = "span12";
}
//Ustalenie zawartoœci logo
$logo = '<span class="site-title" title="' . $sitename . '">' . $sitename . '</span>';
?>
<!DOCTYPE HTML>
<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>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--<link href="media/jui/css/bootstrap.min.css" rel="stylesheet">-->
<!--<link href="media/jui/css/bootstrap-responsive.min.css" rel="stylesheet">-->
<jdoc:include type="head" />
</head>
<body class="site <?php echo $option
. ' view-' . $view
. ($layout ? ' layout-' . $layout : ' no-layout')
. ($task ? ' task-' . $task : ' no-task')
. ($itemid ? ' itemid-' . $itemid : '')
. ($params->get('fluidContainer') ? ' fluid' : '');
?>">
<div class="body">
<div class="container<?php echo ($params->get('fluidContainer') ? '-fluid' : ''); ?>">
<header class="header">
<a href="<?php echo $this->baseurl; ?>">
<?php echo $logo ?>
</a>
<div class="header-search pull-right">
<jdoc:include type="modules" name="position-0" style="none" />
</div>
</header>
<?php if ($this->countModules('position-1')) : ?>
<nav class="navigation" role="navigation">
<jdoc:include type="modules" name="position-1" style="none" />
</nav>
<?php endif; ?>
<jdoc:include type="modules" name="banner" style="xhtml" />
<div class="row-fluid">
<?php if ($this->countModules('position-8')) : ?>
<!-- Pocz¹tek lewego panelu -->
<div id="sidebar" class="span3">
<div class="sidebar-nav">
<jdoc:include type="modules" name="position-8" style="xhtml" />
</div>
</div>
<!-- Koniec lewego panelu -->
<?php endif; ?>
<main id="content" role="main" class="<?php echo $span; ?>" />
<!-- Pocz¹tek kontentu -->
<jdoc:include type="modules" name="position-3" style="xhtml" />
<jdoc:include type="message" />
<jdoc:include type="component" />
<jdoc:include type="modules" name="position-2" style="none" />
<!-- Koniec kontentu -->
</main>
<?php if ($this->countModules('position-7')) : ?>
<!-- Pocz¹tek prawego panelu -->
<div id="aside" class="span3">
<jdoc:include type="modules" name="position-7" style="xhtml" />
</div>
<!-- Koniec prawego panelu -->
<?php endif; ?>
</div>
</div>
</div>
<!-- Stopka -->
<jdoc:include type="modules" name="debug" style="none" />
<!--<script src="http://code.jquery.com/jquery-latest.js"></script>-->
</body>
</html>