| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/modules/mod_jw_srfr/tmpl/compact/ |
Upload File : |
<?php
/**
* @version 2.3
* @package Simple RSS Feed Reader (module)
* @author JoomlaWorks - http://www.joomlaworks.gr
* @copyright Copyright (c) 2006 - 2011 JoomlaWorks Ltd. All rights reserved.
* @license GNU/GPL license: http://www.gnu.org/copyleft/gpl.html
*/
// no direct access
defined('_JEXEC') or die('Restricted access');
/*
Here we call the stylesheet style.css from a folder called 'css' and located at the same directory with this template file. If Joomla!'s cache is turned on, we print out the CSS include within a script tag so we're valid and the styling is included properly (it's how Joomla! works unfortunately).
*/
$filePath = substr(JURI::base(), 0, -1).str_replace(JPATH_SITE,'',dirname(__FILE__));
?>
<?php if($mainframe->getCfg('caching')): ?>
<script type="text/javascript">
//<![CDATA[
document.write('\
<style type="text/css" media="all">\
@import "<?php echo $filePath; ?>/css/style.css";\
</style>\
');
//]]>
</script>
<?php else: ?>
<?php $document->addStyleSheet($filePath.'/css/style.css'); ?>
<?php endif; ?>
<div class="srfrContainer <?php echo $moduleclass_sfx; ?>">
<?php if($feedsBlockPreText): ?>
<p class="srfrPreText"><?php echo $feedsBlockPreText; ?></p>
<?php endif; ?>
<ul class="srfrList">
<?php foreach($output as $key=>$feed): ?>
<li class="srfrRow<?php echo $key%2; ?>">
<a target="_blank" href="<?php echo $feed->itemLink; ?>">
<?php if($feedItemTitle): ?>
<?php echo $feed->itemTitle; ?>
<?php endif; ?>
<?php if($feedItemDescription): ?>
<span>
<?php if($feedItemTitle): ?>
<b class="srfrTitle"><?php echo $feed->itemTitle; ?></b>
<?php endif; ?>
<?php if($feedItemDescription || $feed->feedImageSrc): ?>
<?php if($feed->feedImageSrc): ?>
<img class="srfrImage" src="<?php echo $feed->feedImageSrc; ?>" alt="<?php echo $feed->itemTitle; ?>" />
<?php endif; ?>
<?php if($feedItemDescription): ?>
<?php echo $feed->itemDescription; ?>
<?php endif; ?>
<br /><br />
<?php endif; ?>
<?php if($feedTitle): ?>
<?php echo JText::_('MOD_JW_SRFR_SOURCE'); ?>: <b class="srfrFeedSourcePopup"<?php if($feedFavicon && $feed->feedFavicon) echo ' style="line-height:16px;padding:2px 0 2px 20px;background:url('.$feed->feedFavicon.') no-repeat 0 50%;"'; ?>><?php echo $feed->feedTitle; ?></b>
<br />
<?php endif; ?>
<?php if($feedItemDate): ?>
<?php echo JText::_('MOD_JW_SRFR_CREATED_ON'); ?>: <b><?php echo $feed->itemDate; ?></b>
<br />
<?php endif; ?>
</span>
<?php endif; ?>
</a>
<?php if($feedTitle || $feedItemDate): ?>
<div class="srfrFeedDetails">
<?php if($feedTitle): ?>
<span class="srfrFeedSource"<?php if($feedFavicon && $feed->feedFavicon) echo ' style="line-height:16px;padding:2px 0 2px 20px;background:url('.$feed->feedFavicon.') no-repeat 0 50%;"'; ?>>
<a target="_blank" href="<?php echo $feed->siteURL; ?>"><?php echo $feed->feedTitle; ?></a>
</span>
<?php endif; ?>
<?php if($feedTitle && $feedItemDate): ?> | <?php endif; ?>
<?php if($feedItemDate): ?>
<span class="srfrFeedItemDate"><?php echo $feed->itemDate; ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
</li>
<?php endforeach; ?>
</ul>
<?php if($feedsBlockPostText): ?>
<p class="srfrPostText"><?php echo $feedsBlockPostText; ?></p>
<?php endif; ?>
<?php if($feedsBlockPostLink): ?>
<p class="srfrPostTextLink"><a href="<?php echo $feedsBlockPostLinkURL; ?>"><?php echo $feedsBlockPostLinkTitle; ?></a></p>
<?php endif; ?>
</div>
<div class="clr"></div>