Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • renejdm Friend
    #180235

    Hi,

    Near the bottom of the template you have 4 module positions in a row: User1, User2, User3, and User4.

    I would like to create four new module positions directly below these ones (and still have everything be responsive). Let’s call them User5, User6, User7, and User8.

    Is this possible with JA Lens?

    If so, how?

    Rene

    MoonSailor Friend
    #465434

    Hi Rene,

    If you want to push other modules “user5”, “user6″,”user7″,”user8″ please open and edit this file : templates/ja_lens/index.php

    If you want to add the same as User1, User2, User3, and User4, please find code from line 254 to 291:

    [PHP]
    <?php
    $spotlight = array (‘user1′,’user2′,’user3′,’user4’);
    $botsl = jaTpl_calSpotlight ($spotlight,jaTpl_isOP()?100:99.5);
    if( $botsl ) {
    ?>
    <!– BOTTOM SPOTLIGHT–>
    <div id=”botsl” class=”wrap”>
    <div class=”main clearfix”>
    <div class=”main-inner1 clearfix”>

    <?php if( $this->countModules(‘user1’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user1’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user1’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user1″ style=”xhtml” />
    </div>
    <?php } ?>

    <?php if( $this->countModules(‘user2’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user2’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user2’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user2″ style=”xhtml” />
    </div>
    <?php } ?>

    <?php if( $this->countModules(‘user3’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user3’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user3’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user3″ style=”xhtml” />
    </div>
    <?php } ?>

    <?php if( $this->countModules(‘user4’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user4’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user4’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user4″ style=”xhtml” />
    </div>
    <?php } ?>
    </div>
    </div>
    </div>
    <!– //BOTTOM SPOTLIGHT –>
    <?php } ?>

    [/PHP]

    and add more code:

    [PHP]
    <?php
    $spotlight = array (‘user5′,’user6′,’user7′,’user8’);
    $botsl = jaTpl_calSpotlight ($spotlight,jaTpl_isOP()?100:99.5);
    if( $botsl ) {
    ?>
    <!– BOTTOM SPOTLIGHT–>
    <div id=”botsl” class=”wrap”>
    <div class=”main clearfix”>
    <div class=”main-inner1 clearfix”>

    <?php if( $this->countModules(‘user5’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user5’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user5’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user5″ style=”xhtml” />
    </div>
    <?php } ?>

    <?php if( $this->countModules(‘user6’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user6’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user6’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user6″ style=”xhtml” />
    </div>
    <?php } ?>

    <?php if( $this->countModules(‘user7’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user7’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user7’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user7″ style=”xhtml” />
    </div>
    <?php } ?>

    <?php if( $this->countModules(‘user8’) ) {?>
    <div class=”ja-box ja-box<?php echo $botsl[‘user8’][‘class’]; ?>” style=”width: <?php echo $botsl[‘user8’][‘width’]; ?>;”>
    <jdoc:include type=”modules” name=”user8″ style=”xhtml” />
    </div>
    <?php } ?>
    </div>
    </div>
    </div>
    <!– //BOTTOM SPOTLIGHT –>
    <?php } ?>
    [/PHP]

    renejdm Friend
    #465480

    Thanks MoonSailor,

    I really appreciate your answer (complete with code).

    Rene

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

This topic contains 3 replies, has 2 voices, and was last updated by  renejdm 12 years, 2 months ago.

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