You've already forked joomla_test
first commit
This commit is contained in:
51
templates/as002036free/html/mod_articles_news/_item.php
Normal file
51
templates/as002036free/html/mod_articles_news/_item.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
$images = json_decode($item->images);
|
||||
|
||||
$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 /** For Intro Image **/ if (isset($images->image_intro) and !empty($images->image_intro)) : ?>
|
||||
<?php $imgfloat = (empty($images->float_intro)) ? $item->params->get('float_intro') : $images->float_intro; ?>
|
||||
<div class="img-intro-<?php echo htmlspecialchars($imgfloat); ?>">
|
||||
<a href="<?php echo $item->link; ?>">
|
||||
<img
|
||||
<?php if ($images->image_intro_caption):
|
||||
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
|
||||
endif; ?>
|
||||
src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
|
||||
</a>
|
||||
</div>
|
||||
<?php /** End For Intro Image **/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; ?>
|
24
templates/as002036free/html/mod_articles_news/default.php
Normal file
24
templates/as002036free/html/mod_articles_news/default.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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="mod-newsflash mod-newsflash__<?php echo $moduleclass_sfx; ?>">
|
||||
<?php
|
||||
foreach ($list as $item) :
|
||||
?>
|
||||
<div class="item">
|
||||
<?php
|
||||
require JModuleHelper::getLayoutPath('mod_articles_news', '_item');
|
||||
?>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</div>
|
26
templates/as002036free/html/mod_articles_news/horizontal.php
Normal file
26
templates/as002036free/html/mod_articles_news/horizontal.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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="mod-newsflash mod-newsflash__horiz mod-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
templates/as002036free/html/mod_articles_news/index.html
Normal file
1
templates/as002036free/html/mod_articles_news/index.html
Normal file
@ -0,0 +1 @@
|
||||
<!DOCTYPE html><title></title>
|
22
templates/as002036free/html/mod_articles_news/vertical.php
Normal file
22
templates/as002036free/html/mod_articles_news/vertical.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Site
|
||||
* @subpackage mod_articles_news
|
||||
*
|
||||
* @copyright Copyright (C) 2005 - 2012 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="mod-newsflash mod-newsflash__vert mod-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