-
AuthorPosts
-
December 1, 2014 at 11:52 pm #203237
Can this php block module turned to right content ?
<?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
*//**
* Mainbody 3 columns, content in center: sidebar1 - content - sidebar2
*/
defined('_JEXEC') or die;
?>
<?php// Layout configuration
$layout_config = json_decode ('{
"one_sidebar2": {
"default" : [ "span3" , "span9" ],
"wide" : [],
"xtablet" : [ "span4" , "span8" ],
"tablet" : [ "span12" , "span12 spanfirst" ]
}
}');// positions configuration
$sidebar2 = 'sidebar-2';
// Detect layout
if ($this->countModules("$sidebar2")) {
$layout = 'one_sidebar2';
}$layout = $layout_config->$layout;
$col = 0;
?><section id="t3-mainbody" class="container t3-mainbody">
<div class="row"><?php if ($this->countModules($sidebar2)) : ?>
<!-- SIDEBAR 2 -->
<div class="t3-sidebar t3-sidebar-2 <?php echo $this->getClass($layout, $col) ?><?php $this->_c($sidebar2)?>" <?php echo $this->getData ($layout, $col++) ?>>
<jdoc:include type="modules" name="<?php $this->_p($sidebar2) ?>" style="T3Xhtml" />
</div>
<!-- //SIDEBAR 2 -->
<?php endif ?><!-- MAIN CONTENT -->
<div id="t3-content" class="t3-content <?php echo $this->getClass($layout, $col) ?>" <?php echo $this->getData ($layout, $col++) ?>>
<jdoc:include type="message" />
<div class="main-content"> <jdoc:include type="component" /></div>
<jdoc:include type="modules" name="<?php $this->_p('masscol-1') ?>" style="T3Xhtml" />
<jdoc:include type="modules" name="<?php $this->_p('masscol-2') ?>" style="T3Xhtml" />
</div>
<!-- //MAIN CONTENT --></div>
</section>
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
December 2, 2014 at 2:18 am #557288It already has a right content with left sidebar. what actually you are looking for. Please tell us.
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 2, 2014 at 8:20 am #557341I want left content and right sidebar
chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
December 2, 2014 at 5:05 pm #557391chavan Friendchavan
- Join date:
- October 2014
- Posts:
- 4612
- Downloads:
- 0
- Uploads:
- 110
- Thanked:
- 1440 times in 1290 posts
December 2, 2014 at 5:18 pm #557401I hope it is done, please check your site and confirm
this is the code i have changed for /tpls/blocks/right-content.php
AuthorPostsViewing 7 posts - 1 through 7 (of 7 total)This topic contains 7 replies, has 3 voices, and was last updated by chavan 9 years, 12 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
change module position
Viewing 7 posts - 1 through 7 (of 7 total)