| Server IP : 195.130.67.5 / Your IP : 216.73.217.154 Web Server : Microsoft-IIS/10.0 System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586 User : IUSR ( 0) PHP Version : 7.4.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /inetpub/wwwroot/icd/modules/mod_zo-latestnews/tmpl/ |
Upload File : |
<?php // no direct access
defined('_JEXEC') or die('Restricted access');
if($params->get('include_css',1)) {
$document =& JFactory::getDocument();
$document->addStyleSheet(JURI :: base().'modules/mod_zo-latestnews/css/css'.$params->get('css',1).'.css');
}
?>
<div class="zo-container">
<ul class="zo-latestnews<?php echo $params->get('moduleclass_sfx'); ?>">
<?php foreach ($list as $item) : ?>
<li>
<?php if($params->get('show_header',1)||$params->get('show_date',1)) { ?>
<div class="zo-last-header-div">
<?php if($params->get('show_header',1)) { ?>
<span class="zo-last-header"><?php echo $item->category; ?></span>
<? } ?>
<?php if($params->get('show_date',1)) { ?>
<span class="zo-last-date"><?php echo strftime($params->get('date_format','%d-%m-%Y'), strtotime($item->created)); ?></span>
<? } ?>
</div>
<? } ?>
<span class="zo-last-title"><a href="<?php echo $item->link; ?>"><?php echo $item->text; ?></a></span>
<?php if($params->get('show_intro',1)) { ?>
<span class="zo-last-introtext"><?php echo $item->introtext; ?></span>
<?php } ?>
<?php if($params->get('show_readmore',1)) { ?>
<span class="zo-last-readmore"><a href="<?php echo $item->link; ?>"><?php echo $params->get('readmore_TEXT','Leer más'); ?></a></span>
<?php } ?>
</li>
<?php endforeach; ?>
</ul>
<?php if($params->get('show_link',1)) { ?>
<?php //added the htmlentities() function to replace & with & and any other xhtml validation errors ?>
<div class="zo-last-link"><a href="<?php echo htmlentities($params->get('link', '')); ?>"><?php echo $params->get('link_text', 'Más noticias'); ?></a></div>
<? } ?>
<?php if($params->get('show_rss',1)) { ?>
<div class="zo-last-link"><a href="<?php echo htmlentities($params->get('rss_link', '')); ?>" target="_blank"><img title="rss" src="<?php echo htmlentities($params->get('rss_icon', '')); ?>" alt="RSS" width="<?php echo $params->get('rss_icon_width', ''); ?>" height="<?php echo $params->get('rss_icon_height', '');?>"/><?php echo $params->get('rss_text','Leer más'); ?></a></div>
<?php } ?>
</div>