test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • yakusa Friend
    #184699

    Hi all!
    I have almost done my first ever clean template based on bootstrap, and im not a programmer.
    I want to make a flexible template

    My mainblock looks like here

    <blockquote><div class=”container”>

    <?php if($this->countModules(‘left’)) : ?>
    <div class=”span2″>

    <div class=”boxlr”>
    <jdoc:include type=”modules” name=”left” style=”xhtml” />
    </div>

    </div>
    <?php endif; ?>
    <div class=”span7″>
    <div class=”hero-unit”>
    <jdoc:include type=”message” />
    <jdoc:include type=”component” />
    </div>
    </div>

    <?php if($this->countModules(‘right’)) : ?>
    <div class=”span2″>
    <div class=”boxlr”>
    <jdoc:include type=”modules” name=”right” style=”xhtml” />
    </div>

    </div>
    <?php endif; ?>
    <div style=”clear:both;”>
    <div class=”row”>
    <div class=”span4″>
    <jdoc:include type=”modules” name=”user1″ style=”xhtml” />
    </div>
    <div class=”span4″>
    <jdoc:include type=”modules” name=”user2″ style=”xhtml” />
    </div>
    <div class=”span4″>
    <jdoc:include type=”modules” name=”user3″ style=”xhtml” />
    </div>
    </div>
    <div class=”row”>
    <jdoc:include type=”modules” name=”breadcrumb” style=”xhtml” />
    </div>

    <footer>
    <jdoc:include type=”modules” name=”footer” style=”xhtml” />
    </footer>

    </div></blockquote>

    Almost is good but i want to make something like this
    If both of left and right columns are disabled (no modules assigned) then the mainblock hero-unit is full width like span12 (940px) instead of span7 (540px).
    When one column is used 1/3 of container (left or right) then the main block will be at 2/3 of rest space.
    I hope this is not big problem. Thanks for any help!

    Saguaros Moderator
    #482648

    Hi,

    Bootstrap is new to joomla’s user, please go to : http://twitter.github.com/bootstrap/ to learn more about bootstrap

    If you want to use our new T3 framework, you can check it out here: http://t3-framework.org/

    Regards

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 11 years, 10 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum