We moved to new unified forum!

Please post all new support queries in our New Forum.

T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. michal
  2. General Discussion
  3. Saturday, 08 March 2014
  4.  Subscribe via email
Hello, I'm using T3 BS3 Blank layout joomla 3.0+

I use duplicated layout with two sidebars on the right and content on the left, and there is mast-col above sidebars.

The thing is... I deleted code responsible for mast-col so that in template settings(layout tab) mast-col disappeard but on the website it still works...

I even deleted whole code from: two-sidebar-right.php and the website was untouched....




Please give me some suggestions
Comment
There are no comments made yet.
Accepted Answer Pending Moderation
0
Votes
Undo
I believe that you should delete the files listed in

\templates\t3_bs3_blank\tpls\blocks\mainbody\two-sidebar-right

<?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 ?>


And in \ templates \ t3_bs3_blank \ tpls \ blocks \ mainbody content -left - you should remove all calls from col - mast of block .



<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;
?>

<?php
/**
* Mainbody 3 columns, content in left and 2 sidebars: content - sidebar1 - sidebar2
*/

// positions configuration
$sidebar1 = 'sidebar-1';
$sidebar2 = 'sidebar-2';

$sidebar1 = $this->countModules($sidebar1) ? $sidebar1 : false;
$sidebar2 = $this->countModules($sidebar2) ? $sidebar2 : false;

if ($sidebar1 && $sidebar2) {
$this->loadBlock('mainbody/two-sidebar-right', array('sidebar1' => $sidebar1, 'sidebar2' => $sidebar2));
} elseif ($sidebar1 || $sidebar2) {
$this->loadBlock('mainbody/one-sidebar-right', array('sidebar' => $sidebar1 ? $sidebar1 : $sidebar2));
} else {
$this->loadBlock('mainbody/no-sidebar');
}

?>


I believe it is, but you should give new names for all the blocks that you change. Ex:

one-sidebar-right --->one-sidebar-right-p

Change the call of one-sidebar-right-p within the block

mainbody-content-left-p
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
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:http://s28.postimg.org/m6vgzhvfh/image.jpg

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!
Attachments (2)
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Try this:

mainbody-content-left-p.php, code:


-------------------------------------------------------


<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

defined('_JEXEC') or die;
?>

<?php
/**
* Mainbody 3 columns, content in left, 2 sidebars: content - sidebar1 - sidebar2
*/

// positions configuration

$sidebar1 = 'sidebar-1';
$sidebar2 = 'sidebar-2';


$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, ));
} elseif ($sidebar1 || $sidebar2) {
$this->loadBlock('mainbody/one-sidebar-right', array('sidebar' => $sidebar1 ? $sidebar1 : $sidebar2));
} else {
$this->loadBlock('mainbody/no-sidebar');
}


?>
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
Accepted Answer Pending Moderation
0
Votes
Undo
Try this:

two-sidebar-right-p.php, code:

-------------------------------------------------------------------------------------------------------


<?php
/**
* @package T3 Blank
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/

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" />
<?php endif ?>
<jdoc:include type="component" />
</div>
<!-- //MAIN CONTENT -->

<div class="t3-sidebar col-xs-12 col-sm-4 col-md-6">
<div class="row">

<!-- SIDEBAR 1 -->
<div class="t3-sidebar t3-sidebar-1 col-xs-6 col-sm-12 col-md-6 <?php $this->_c($vars['sidebar1']) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars['sidebar1']) ?>" style="T3Xhtml" />
</div>
<!-- //SIDEBAR 1 -->

<!-- SIDEBAR 2 -->
<div class="t3-sidebar t3-sidebar-2 col-xs-6 col-sm-12 col-md-6 <?php $this->_c($vars['sidebar2']) ?>">
<jdoc:include type="modules" name="<?php $this->_p($vars['sidebar2']) ?>" style="T3Xhtml" />
</div>
<!-- //SIDEBAR 2 -->

</div>
</div>

</div>
</div>
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.