function processImage($img, $width, $height) { if (!$img) { return ''; } $img = str_replace(JURI::base(), '', $img); $img = rawurldecode($img); $imagesurl = file_exists(JPATH_SITE . '/' . $img) ? modJANewsHelper::jaResize($img, $width, $height) : ''; return $imagesurl; }
} else { ?> <table> <?php } ?> <?php //endif; ?> <?php } else { ?> <?php $link = JRoute::_(ContentHelperRoute::getArticleRoute($news->slug, $news->catslug, $news->sectionid)); $image = modJANewsHelper::replaceImage($news, $imgalign, 1, $smallmaxchar, $smallshowimage, $smallimg_w, $smallimg_h, $hiddenClasses); //Next news ?> <?php if ($params->get('display_type') == 'list') { ?> <li><span onmouseover="showttip( '<?php echo $bigmaxchar ? strip_tags($news->introtext1) : strip_tags($news->introtext); ?> ');" onmouseout="hidettip();"> <strong><a href="<?php echo $link; ?> " title="<?php echo strip_tags($news->title); ?>
}); window.addEvent('domready', function() { jaNewsHL.start(); }); </script> <?php } $pauseplay = $autoroll ? 'Pause' : 'Play'; ?> <div id="ja-newshlcache" style="display: none"> <?php foreach ($rows as $news) { $link = JRoute::_(ContentHelperRoute::getArticleRoute($news->slug, $news->catslug, $news->sectionid)); $image = modJANewsHelper::replaceImage($news, $imgalign, 1, $bigmaxchar, 1, $bigimg_w, $bigimg_h, $hiddenClasses); ?> <div> <div class="ja-newscontent"> <?php echo $image; ?> <?php if ($showhltitle) { ?> <h4 class="jazin-title"><a href="<?php echo $link; ?> " class="ja-newstitle" title="<?php echo strip_tags($news->title);
} $mainframe =& JFactory::getApplication('site'); JHTML::stylesheet('', modJANewsHelper::getFile('ja.news.fp.css', 'modules/mod_janews_fp/ja.news/', 'templates/' . $mainframe->getTemplate() . '/css/')); // If the template has a css override use it //Show frontpage $numberofheadlinenews = $params->get('numberofheadlinenews', 0); $troi = $params->get('troi', 0); $catid = trim($params->get('categoryid')); $secid = trim($params->get('sectionid')); $bigmaxchar = $params->get('bigmaxchars', 0); $bigitems = $params->get('bigitems', 0); $bigshowimage = $params->get('bigshowimage', 0); $bigimg_w = $params->get('bigimg_w', 0); $bigimg_h = $params->get('bigimg_h', 0); $imgalign = ''; $smallmaxchar = $params->get('smallmaxchars', 0); $smallitems = $numberofheadlinenews - $bigitems; $smallshowimage = $params->get('smallshowimage', 0); $smallimg_w = $params->get('smallimg_w', 0); $smallimg_h = $params->get('smallimg_h', 0); $fp_layout = trim($params->get('fp_layout', 'default_fp')); if (strpos($fp_layout, '.php') > 0) { $fp_layout = substr($fp_layout, 0, -4); } $rows = modJANewsHelper::getHLNews($numberofheadlinenews, $params); if (count($rows)) { $path = JModuleHelper::getLayoutPath('mod_janews_fp', $fp_layout); if (file_exists($path)) { require $path; } }