the-art-of-joomla-archive /modules/code/trunk/modules/mod_artof_articles/tmpl/default.php

Language PHP Lines 53
MD5 Hash 4f2339fe04f29f7b965f317d40e14233 Estimated Cost $752 (why?)
Repository https://bitbucket.org/eddieajau/the-art-of-joomla-archive View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
 * @version		$Id:combolayout.php 2547 2007-11-10 04:37:15Z masterchief $
 * @package		Artof.Modules
 * @subpackage	mod_artof_articles
 * @copyright	Copyright 2005 - 2010 New Life in IT Pty Ltd. All rights reserved.
 * @license		GNU General Public License <http://www.gnu.org/copyleft/gpl.html>
 * @author		Andrew Eddie <andrew.eddie@newlifeinit.com>
 * @link		http://www.theartofjoomla.com/extensions/mod-artof-articles.html
 */

// No direct access.
defined('JPATH_BASE') or die();

$relNF = $params->get('nofollow') ? ' rel="nofollow"' : '';
?>
<ul class="articles<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($list as $item) :  ?>
	<li class="clr">
		<?php if ($autoThumb = $params->get('autothumb')) : ?>
			<?php if ($thumb = modArtofArticlesHelper::getThumb($item->text, ($autoThumb == 2))) : ?>
				<?php if ($params->get('link_thumb')) : ?>
					<a href="<?php echo $item->link; ?>"<?php echo $relNF;?>>
						<?php echo $thumb; ?></a>
				<?php else : ?>
					<?php echo $thumb; ?>
				<?php endif; ?>
			<?php endif; ?>
		<?php endif;?>
		<a href="<?php echo $item->link; ?>" class="latestnews<?php echo $params->get('moduleclass_sfx'); ?>"<?php echo $relNF;?>>
			<?php echo htmlspecialchars($item->title); ?></a>
		<?php if ($params->get('show_intro')) : ?>
			<?php if ($len = $params->get('intro_length')) : ?>
				<p><?php echo modArtofArticlesHelper::truncate(strip_tags($item->text), $len); ?></p>
			<?php else : ?>
				<?php echo $item->text; ?>
			<?php endif; ?>
		<?php endif; ?>
		<?php if ($params->get('show_readmore')) : ?>
			<a href="<?php echo $item->link; ?>"<?php echo $relNF;?> style="float:right;">
				<?php echo $params->get('alt_readmore', JText::_('MOD_ARTOF_ARTICLES_Read_more')); ?></a>
		<?php endif; ?>
	</li>
<?php endforeach; ?>
</ul>
<div class="clr"></div>
<?php if ($params->get('viewall')) : ?>
<span class="articles-all<?php echo $params->get('moduleclass_sfx'); ?>">
	<a href="<?php echo JRoute::_(modArtofArticlesHelper::getViewallRoute($params));?>"<?php echo $relNF;?>>
		<?php echo $params->get('alt_viewall', JText::_('MOD_ARTOF_ARTICLES_Viewall'));?></a>
</span>
<?php endif; ?>
Back to Top