<?php
/*
# ------------------------------------------------------------------------
# Ja NewsPro
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3
http://www.gnu.org/licenses/gpl-3.0.html
# ------------------------------------------------------------------------
*/
$cls_sufix = trim($params->get('blog_theme',''));
if($cls_sufix) $cls_sufix = '-'.$cls_sufix;
$class = '';
if(JRequest::getInt('subcat', 0)) $class = 'subcontents-'.JRequest::getInt('subcat');
$showcreator = $helper->get( 'showcreator', 0 );
$showdate = $helper->get( 'showdate', 0 );
$maxchars = intval (trim( $helper->get( 'maxchars', 200 ) ));
$showreadmore = intval (trim( $helper->get( 'showreadmore', 1 ) ));
$showsubcattitle = trim( $helper->get( 'showsubcattitle', 1));
$params_new = new JParameter('');
$catid = $secid;
$cooki_name = 'mod'.$moduleid.'_'.$catid;
if(isset($_COOKIE[$cooki_name]) && $_COOKIE[$cooki_name]!=''){
$cookie_user_setting = $_COOKIE[$cooki_name];
$arr_values = explode('&', $cookie_user_setting);
if($arr_values){
foreach ($arr_values as $row){
list($k, $value) = explode('=', $row);
if($k!=''){
$params_new->set($k, $value);
}
}
}
}
$introitems = intval (trim( $params_new->get( 'introitems', $helper->get( 'introitems', 1 ) )));
$linkitems = intval (trim( $params_new->get( 'linkitems', $helper->get( 'linkitems', 0 ) ) ));
$showimage = intval (trim( $params_new->get( 'showimage', $helper->get( 'showimage', 1 ) ) ));
$showtooltip = intval (trim( $helper->get( 'showtooltip', 1 ) ));
?>
<div class="ja-box column ja-zintheme<?php echo $cls_sufix;?><?php if (isset($y) && $y==0) echo ' ja-box-first' ?> <?php echo $class?>" style="clear: both;">
<div class="ja-box-inner clearfix">
<?php
foreach ($rows as $i=>$row){
if($i>=$introitems) break;
?>
<div class="ja-zincontent clearfix">
<?php if($showimage) echo $row->image; ?>
<h4 class="ja-zintitle">
<a href="<?php echo $row->link;?>" title="<?php echo strip_tags($row->title);?>"><?php echo $row->title;?></a>
</h4>
<?php if ( $showcreator || $showdate ) : ?>
<p class="ja-zinmeta">
<?php if ($showdate) : ?>
<span class="createdate">
<?php echo $row->created?>
<?php if ($showcreator) : ?> | <?php endif; ?>
</span>
<?php endif; ?>
<?php if ($showcreator) : ?>
<span class="createby"><?php echo $row->creator;?></span>
<?php endif; ?>
</p>
<?php endif; ?>
<?php
if($maxchars > strlen($row->introtext1)) {
echo $row->introtext;
} else {
echo $row->introtext1;
}
?>
<?php if ($showreadmore) : ?>
<p class="readmore">
<a href="<?php echo $row->link; ?>" title="<?php echo JText::sprintf('READ MORE...');?>">
<span><?php echo JText::sprintf('READ MORE...');?></span>
</a>
</p>
<?php endif; ?>
</div>
<?php unset($rows[$i])?>
<?php }?>
<?php if($rows){?>
<div class="ja-zinlinks clearfix">
<strong><?php echo JTEXT::_('MORE:')?></strong>
<ul class="jazin-links">
<?php foreach ($rows as $row){?>
<li>
<span <?php if($showtooltip){
?>class="editlinktip jahasTip" title="<?php echo trim(strip_tags($row->title), '"'); ?>:
?php echo htmlspecialchars($row->image.$row->introtext)?>"<?php }?>>
<a href="<?php echo $row->link; ?>">
<?php echo $row->title; ?>
</a>
</span>
</li>
<?php }?>
</ul>
</div>
<?php }?>
</div>
</div>
Bookmarks