AAAAmod_feed.xml000066600000007056151372011010007033 0ustar00 mod_feed Joomla! Project July 2005 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org 2.5.0 MOD_FEED_XML_DESCRIPTION mod_feed.php helper.php index.html tmpl en-GB.mod_feed.ini en-GB.mod_feed.sys.ini
mod_feed.php000066600000001551151372011010007014 0ustar00get('rssurl', ''); $rssrtl = $params->get('rssrtl', 0); //check if cache diretory is writable as cache files will be created for the feed $cacheDir = JPATH_CACHE; if (!is_writable($cacheDir)) { echo '
'; echo JText::_('MOD_FEED_ERR_CACHE'); echo '
'; return; } //check if feed URL has been set if (empty ($rssurl)) { echo '
'; echo JText::_('MOD_FEED_ERR_NO_URL'); echo '
'; return; } require JModuleHelper::getLayoutPath('mod_feed'); tmpl/default.php000066600000000711151372011010007647 0ustar00
tmpl/index.html000066600000000037151372011010007510 0ustar00 tmpl/.htaccess000066600000000177151372011010007316 0ustar00 Order allow,deny Deny from all helper.php000066600000010512151372011010006526 0ustar00get('rssurl', ''); $rssitems = $params->get('rssitems', 5); $rssdesc = $params->get('rssdesc', 1); $rssimage = $params->get('rssimage', 1); $rssitemdesc = $params->get('rssitemdesc', 1); $words = $params->def('word_count', 0); $rsstitle = $params->get('rsstitle', 1); $rssrtl = $params->get('rssrtl', 0); $moduleclass_sfx = $params->get('moduleclass_sfx', ''); $filter = JFilterInput::getInstance(); // get RSS parsed object $cache_time = 0; if ($params->get('cache')) { /* * The cache_time will get fed into JCache to initiate the feed_parser cache group and eventually * JCacheStorage will multiply the value by 60 and use that for its lifetime. The only way to sync * the feed_parser cache (which caches with an empty dataset anyway) with the module cache is to * first divide the module's cache time by 60 then inject that forward, which once stored into the * JCacheStorage object, will be the correct value in minutes. */ $cache_time = $params->get('cache_time', 15) / 60; } $rssDoc = JFactory::getFeedParser($rssurl, $cache_time); if ($rssDoc != false) { // channel header and link $channel['title'] = $filter->clean($rssDoc->get_title()); $channel['link'] = $filter->clean($rssDoc->get_link()); $channel['description'] = $filter->clean($rssDoc->get_description()); // channel image if exists $image['url'] = $rssDoc->get_image_url(); $image['title'] = $rssDoc->get_image_title(); //image handling $iUrl = isset($image['url']) ? $image['url'] : null; $iTitle = isset($image['title']) ? $image['title'] : null; // items $items = $rssDoc->get_items(); // feed elements $items = array_slice($items, 0, $rssitems); ?> $actualItems) { $totalItems = $actualItems; } else { $totalItems = $setItems; } ?>
<?php echo htmlspecialchars(@$iTitle); ?>
  • get_link())) { ?> get_title()); ?> clean(html_entity_decode($currItem->get_description(), ENT_COMPAT, 'UTF-8')); $text = str_replace(''', "'", $text); // word limit check if ($words) { $texts = explode(' ', $text); $count = count($texts); if ($count > $words) { $text = ''; for ($i = 0; $i < $words; $i ++) { $text .= ' '.$texts[$i]; } $text .= '...'; } } ?>
Order allow,deny Deny from all index.html000066600000000037151372011010006534 0ustar00