I did what you recommended but I didn't delete the mast-col this time, but just moved sidebar-1 and sidebar-2 under the component.
This is what I got:
The changes on the website are still not visable...
My theme name is: komisja-prawo.php, code:
<?php
defined('_JEXEC') or die;
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"
class='<jdoc:include type="pageclass" ></jdoc:include>'>
<head>
<jdoc:include type="head" ></jdoc:include>
<?php $this->loadBlock('head') ?>
</head>
<body>
<div class="t3-wrapper"> <!-- Need this wrapper for off-canvas menu. Remove if you don't use of-canvas -->
<?php $this->loadBlock('header') ?>
<?php $this->loadBlock('mainnav') ?>
<?php $this->loadBlock('spotlight-1') ?>
<?php $this->loadBlock('mainbody-content-left-p') ?>
<?php $this->loadBlock('spotlight-2') ?>
<?php $this->loadBlock('navhelper') ?>
<?php $this->loadBlock('footer') ?>
</div>
</body>
</html>
mainbody-content-left-p.php, code:
<?php
defined('_JEXEC') or die;
?>
<?php
/**
* Mainbody 3 columns, content in left, mast-col on top of 2 sidebars: content - sidebar1 - sidebar2
*/
// positions configuration
$mastcol = 'mast-col';
$sidebar1 = 'sidebar-1';
$sidebar2 = 'sidebar-2';
$mastcol = $this->countModules($mastcol) ? $mastcol : false;
$sidebar1 = $this->countModules($sidebar1) ? $sidebar1 : false;
$sidebar2 = $this->countModules($sidebar2) ? $sidebar2 : false;
if ($sidebar1 && $sidebar2) {
$this->loadBlock('mainbody/two-sidebar-right-p', array('sidebar1' => $sidebar1, 'sidebar2' => $sidebar2, 'mastcol' => $mastcol));
} elseif ($mastcol && ($sidebar1 || $sidebar2)) {
$this->loadBlock('mainbody/one-sidebar-right-with-mastcol', array('sidebar' => $sidebar1 ? $sidebar1 : $sidebar2, 'mastcol' => $mastcol));
} elseif ($sidebar1 || $sidebar2) {
$this->loadBlock('mainbody/one-sidebar-right', array('sidebar' => $sidebar1 ? $sidebar1 : $sidebar2));
} else {
$this->loadBlock('mainbody/no-sidebar');
}
//should we show mastcol when there was no sidebar
?>
two-sidebar-right-p.php, code:
<?php
defined('_JEXEC') or die;
/**
* Mainbody 3 columns, content in center: content - sidebar1 - sidebar2
*/
?>
<div id="t3-mainbody" class="container t3-mainbody">
<div class="row">
<!-- MAIN CONTENT -->
<div id="t3-content" class="t3-content col-xs-12 col-sm-8 col-md-6">
<?php if($this->hasMessage()) : ?>
<jdoc:include type="message" ></jdoc:include>
<?php endif ?>
<jdoc:include type="component" ></jdoc:include>
<table><tr><td><jdoc:include type="modules" name="<?php $this->_p($vars['sidebar1']) ?>" style="T3Xhtml" /></td><td><jdoc:include type="modules" name="<?php $this->_p($vars['sidebar2']) ?>" style="T3Xhtml" /></td></tr></table>
</div>
<!-- //MAIN CONTENT -->
<div class="t3-sidebar col-xs-12 col-sm-4 col-md-6">
<div class="row">
<?php if ($vars['mastcol']) : ?>
<!-- MASSCOL 1 -->
<div class="t3-mastcol t3-mastcol-1 <?php $this->_c($vars['mastcol']) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars['mastcol']) ?>" style="T3Xhtml" />
</div>
<!-- //MASSCOL 1 -->
<?php endif ?>
<!-- SIDEBAR 1 -->
<?php /*?><div class="t3-sidebar t3-sidebar-1 col-xs-6 col-sm-12 col-md-6 <?php $this->_c($vars['sidebar1']) ?>">
</div><?php */?>
<!-- //SIDEBAR 1 -->
<!-- SIDEBAR 2 -->
<?php /*?><div class="t3-sidebar t3-sidebar-2 col-xs-6 col-sm-12 col-md-6 <?php $this->_c($vars['sidebar2']) ?>">
</div><?php */?>
<!-- //SIDEBAR 2 -->
</div>
</div>
</div>
</div>
What am I doing wrong? Thanks!