You've already forked joomla_test
first commit
This commit is contained in:
36
modules/mod_articles_news/tmpl/_item.php
Normal file
36
modules/mod_articles_news/tmpl/_item.php
Normal file
@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$item_heading = $params->get('item_heading', 'h4');
|
||||
?>
|
||||
<?php if ($params->get('item_title')) : ?>
|
||||
|
||||
<<?php echo $item_heading; ?> class="newsflash-title<?php echo $params->get('moduleclass_sfx'); ?>">
|
||||
<?php if ($params->get('link_titles') && $item->link != '') : ?>
|
||||
<a href="<?php echo $item->link;?>">
|
||||
<?php echo $item->title;?></a>
|
||||
<?php else : ?>
|
||||
<?php echo $item->title; ?>
|
||||
<?php endif; ?>
|
||||
</<?php echo $item_heading; ?>>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (!$params->get('intro_only')) :
|
||||
echo $item->afterDisplayTitle;
|
||||
endif; ?>
|
||||
|
||||
<?php echo $item->beforeDisplayContent; ?>
|
||||
|
||||
<?php echo $item->introtext; ?>
|
||||
|
||||
<?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :
|
||||
echo '<a class="readmore" href="'.$item->link.'">'.$item->linkText.'</a>';
|
||||
endif; ?>
|
18
modules/mod_articles_news/tmpl/default.php
Normal file
18
modules/mod_articles_news/tmpl/default.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<div class="newsflash<?php echo $moduleclass_sfx; ?>">
|
||||
<?php
|
||||
foreach ($list as $item) :
|
||||
require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
endforeach;
|
||||
?>
|
||||
</div>
|
26
modules/mod_articles_news/tmpl/horizontal.php
Normal file
26
modules/mod_articles_news/tmpl/horizontal.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
|
||||
<ul class="newsflash-horiz<?php echo $params->get('moduleclass_sfx'); ?>">
|
||||
<?php for ($i = 0, $n = count($list); $i < $n; $i ++) :
|
||||
$item = $list[$i]; ?>
|
||||
<li>
|
||||
<?php require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
|
||||
if ($n > 1 && (($i < $n - 1) || $params->get('showLastSeparator'))) : ?>
|
||||
|
||||
<span class="article-separator"> </span>
|
||||
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endfor; ?>
|
||||
</ul>
|
1
modules/mod_articles_news/tmpl/index.html
Normal file
1
modules/mod_articles_news/tmpl/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
22
modules/mod_articles_news/tmpl/vertical.php
Normal file
22
modules/mod_articles_news/tmpl/vertical.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
?>
|
||||
<ul class="newsflash-vert<?php echo $params->get('moduleclass_sfx'); ?>">
|
||||
<?php for ($i = 0, $n = count($list); $i < $n; $i ++) :
|
||||
$item = $list[$i]; ?>
|
||||
<li class="newsflash-item">
|
||||
<?php require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
if ($n > 1 && (($i < $n - 1) || $params->get('showLastSeparator'))) : ?>
|
||||
<span class="article-separator"> </span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endfor; ?>
|
||||
</ul>
|
Reference in New Issue
Block a user