Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • digital222 Friend
    #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 Friend
    #557288

    It already has a right content with left sidebar. what actually you are looking for. Please tell us.

    Saguaros Moderator
    #557310

    Check my reply in this thread 🙂

    digital222 Friend
    #557341

    I want left content and right sidebar

    chavan Friend
    #557369

    Did you Try what @saguaros replied in the previous post, there is a link in there. here is the link

    http://www.joomlart.com/forums/topic/right-content/

    digital222 Friend
    #557391

    can I move the masscol-1 position over the component ? thank you


    1. Untitled-1
    chavan Friend
    #557401

    I hope it is done, please check your site and confirm

    this is the code i have changed for /tpls/blocks/right-content.php

Viewing 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