PageRenderTime 14ms CodeModel.GetById 12ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/mod_articles_news/tmpl/_item.php

https://bitbucket.org/eternaware/joomus
PHP | 36 lines | 22 code | 7 blank | 7 comment | 10 complexity | 2988ebf4ac1cd45e9af1420e51fde7c1 MD5 | raw file
Possible License(s): LGPL-2.1
 1<?php
 2/**
 3 * @package     Joomla.Site
 4 * @subpackage  mod_articles_news
 5 *
 6 * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 7 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 8 */
 9
10defined('_JEXEC') or die;
11$item_heading = $params->get('item_heading', 'h4');
12?>
13<?php if ($params->get('item_title')) : ?>
14
15	<<?php echo $item_heading; ?> class="newsflash-title<?php echo $params->get('moduleclass_sfx'); ?>">
16	<?php if ($params->get('link_titles') && $item->link != '') : ?>
17		<a href="<?php echo $item->link;?>">
18			<?php echo $item->title;?></a>
19	<?php else : ?>
20		<?php echo $item->title; ?>
21	<?php endif; ?>
22	</<?php echo $item_heading; ?>>
23
24<?php endif; ?>
25
26<?php if (!$params->get('intro_only')) :
27	echo $item->afterDisplayTitle;
28endif; ?>
29
30<?php echo $item->beforeDisplayContent; ?>
31
32<?php echo $item->introtext; ?>
33
34<?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :
35	echo '<a class="readmore" href="'.$item->link.'">'.$item->linkText.'</a>';
36endif; ?>