-
AuthorPosts
-
thangnn1510 Friend
thangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
June 27, 2011 at 4:19 am #398546Thanks for giving me the login information. I have checked and make changes for you. I have done the following steps:
1. Copy default_articles.php from modules/mod_jaslideshow2/tmpl to templates/ja_rasite/html/mod_jaslideshow2.
2. Change code in default_articles.php to:
<div class="ja-slidewrap<?php echo $params->get('moduleclass_sfx');?> ja-<?php echo $source;?>" id="ja-slide-articles-<?php echo $module->id;?>" style="visibility:hidden">
<div class="ja-slide-main-wrap<?php echo ($navAlignment == 'vertical_left' ? ' ja-slide-right' : '' )?>">
<div class="ja-slide-mask">
</div>
<div class="ja-slide-main">
<?php foreach( $list as $k=> $item ) :
// parse image in the article's content.
$helper->parseImages( $item, $params );
$list[$k] = $item;
$link = "";
if($k==1){
$link ="http://www.bostontown.co.uk/index.php?option=com_content&view=article&id=59&Itemid=53";
}else if($k==2){
$link = "http://www.bostontown.co.uk/index.php?option=com_mtree&Itemid=57";
}else{
$link = "";
}?>
<div class="ja-slide-item">
<?php if($link!=""){ echo "<a href='".$link."'>"; } ?><?php echo $helper->renderImage ($item->title, $item->mainImage, $params, $mainWidth, $mainHeight );?><?php if($link!=""){ echo "</a>"; } ?>
<?php if ( $showdescwhen == 'always' ):?>
<div class="ja-slide-desc">
<a <?php echo $target; ?> href="<?php echo $item->link; ?>">
<span><?php echo $helper->trimString( $item->title, $titleMaxChars );?></span>
</a>
<p><?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars ); ?></p>
<?php if ($showDescription=='desc-readmore'): ?>
<a <?php echo $target; ?> class="readon readmore" href="<?php echo $item->link; ?>">
<?php echo $readmoretext;?>
</a><?php endif; ?>
</div>
<?php endif; ?>
</div>
<?php endforeach; ?>
</div><?php if ( $animation=='move' && $container ) :?>
<div class="but_prev ja-slide-prev"></div>
<div class="but_next ja-slide-next"></div>
<?php endif; ?><!-- JA SLIDESHOW 3 MARK -->
<div class="maskDesc">
<div class="inner"></div>
</div>
</div>
<!-- END JA SLIDESHOW 3 MARK -->
<?php if( $showDescription && $showdescwhen != 'always' ) : ?>
<div class="ja-slide-descs">
<?php foreach( $list as $item ) : ?>
<div class="ja-slide-desc">
<a <?php echo $target; ?> href="<?php echo $item->link; ?>">
<span><?php echo $helper->trimString( $item->title, $titleMaxChars );?></span>
</a>
<p><?php echo $helper->trimString( strip_tags($item->introtext), $descMaxChars ); ?></p>
<?php if ($showDescription=='desc-readmore'): ?>
<a <?php echo $target; ?> class="readon readmore" href="<?php echo $item->link; ?>">
<?php echo $readmoretext;?>
</a><?php endif; ?>
</div>
<?php endforeach; ?>
</div>
<?php endif; ?><!-- JA SLIDESHOW 3 NAVIAGATION -->
<?php if ( $navigation ): ?>
<div class="ja-slide-thumbs-wrap<?php echo $classNav;?>">
<div class="ja-slide-thumbs">
<?php foreach( $list as $key => $item ) : ?>
<div class="ja-slide-thumb">
<?php if ($navigation=='thumbs'){?>
<div class="ja-slide-thumb-inner">
<?php if( $navShowthumb ) : ?>
<?php echo $helper->renderImage ( $item->title, $item->thumbnail, $params,
$thumbWidth, $thumbHeight, 'align="left"' ); ?>
<?php endif; ?>
<h3><?php echo $helper->trimString( $item->title, $titleMaxChars );?></h3>
<?php if( $navShowDate ) : ?>
<span class="ja-createdate clearfix">
<?php echo JTEXT::_("POSTED DATE"). " ". JHTML::_('date', $item->date, JText::_('DATE_FORMAT_LC4')); ?>
</span>
<?php endif; ?>
<?php if( $navShowdesc ): ?>
<?php echo $helper->trimString( strip_tags($item->introtext), $navDescmaxlength ); ?>
<?php endif; ?>
</div>
<?php }else{?><span><?php echo ($key+1);?></span><?php } ?>
</div>
<?php endforeach; ?>
</div><div class="ja-slide-thumbs-mask" style=" display:none ">
<div class="ja-slide-thumbs-mask-left"> </div>
<div class="ja-slide-thumbs-mask-center"> </div>
<div class="ja-slide-thumbs-mask-right"> </div>
</div><p class="ja-slide-thumbs-handles">
<?php foreach( $list as $item ) : ?>
<span> </span>
<?php endforeach; ?>
</p>
<!-- JA SLIDESHOW 3 NAVIAGATION --></div>
<?php endif; ?>
<!-- JA SLIDESHOW 3 BUTTONS CONTROL -->
<?php if ($control): ?>
<div class="ja-slide-buttons clearfix">
<span class="ja-slide-prev">« <?php echo JText::_('PREVIOUS');?></span>
<span class="ja-slide-playback">‹ <?php echo JText::_('PLAYBACK');?></span>
<span class="ja-slide-stop"><?php echo JText::_('STOP');?></span>
<span class="ja-slide-play"><?php echo JText::_('PLAY');?> ›</span>
<span class="ja-slide-next"><?php echo JText::_('NEXT');?> »</span>
</div>
<?php endif; ?></div>
3. Open templates/ja_rasite/css/mod_jaslideshow2.css and edit this code:
.ja-slide-mask {
background: url(../images/slide-mask.png) no-repeat top left;
height: 300px;
left: 0;
position: absolute;
top: 0;
width: 660px;
z-index: 3;
}to
.ja-slide-mask {
background: url(../images/slide-mask.png) no-repeat top left;
height: 0;
left: 0;
position: absolute;
top: 0;
width: 660px;
z-index: 3;
}
Please check and tell me if there’s any problem. Thanks.
-
AuthorPosts
This topic contains 16 replies, has 4 voices, and was last updated by thangnn1510 13 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum