-
AuthorPosts
-
renejdm Friend
renejdm
- Join date:
- April 2012
- Posts:
- 186
- Downloads:
- 0
- Uploads:
- 38
- Thanks:
- 8
- Thanked:
- 12 times in 1 posts
August 25, 2012 at 6:50 pm #180235Hi,
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 FriendMoonSailor
- Join date:
- November 2011
- Posts:
- 1106
- Downloads:
- 0
- Uploads:
- 245
- Thanks:
- 89
- Thanked:
- 248 times in 223 posts
August 27, 2012 at 7:30 am #465434Hi 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]1 user says Thank You to MoonSailor for this useful post
-
AuthorPosts
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