| [ Index ] |
PHP Cross Reference of Joomla 1.5.26 DE |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * @version $Id: view.feed.php 14401 2010-01-26 14:10:00Z louis $ 4 * @package Joomla 5 * @subpackage Weblinks 6 * @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved. 7 * @license GNU/GPL, see LICENSE.php 8 * Joomla! is free software. This version may have been modified pursuant 9 * to the GNU General Public License, and as distributed it includes or 10 * is derivative of works licensed under the GNU General Public License or 11 * other free or open source software licenses. 12 * See COPYRIGHT.php for copyright notices and details. 13 */ 14 15 // Check to ensure this file is included in Joomla! 16 defined( '_JEXEC' ) or die( 'Restricted access' ); 17 18 jimport( 'joomla.application.component.view'); 19 20 /** 21 * HTML View class for the WebLinks component 22 * 23 * @static 24 * @package Joomla 25 * @subpackage Weblinks 26 * @since 1.0 27 */ 28 class WeblinksViewCategory extends JView 29 { 30 function display($tpl = null) 31 { 32 global $mainframe; 33 34 $document =& JFactory::getDocument(); 35 36 $document->link = JRoute::_('index.php?option=com_weblinks&view=category&id='.JRequest::getVar('id',null, '', 'int')); 37 38 JRequest::setVar('limit', $mainframe->getCfg('feed_limit')); 39 $siteEmail = $mainframe->getCfg('mailfrom'); 40 $fromName = $mainframe->getCfg('fromname'); 41 $document->editor = $fromName; 42 $document->editorEmail = $siteEmail; 43 44 // Get some data from the model 45 $items =& $this->get( 'data' ); 46 $category =& $this->get( 'category' ); 47 48 foreach ( $items as $item ) 49 { 50 // strip html from feed item title 51 $title = $this->escape( $item->title ); 52 $title = html_entity_decode( $title ); 53 54 // url link to article 55 $link = JRoute::_('index.php?option=com_weblinks&view=weblink&id='. $item->id ); 56 57 // strip html from feed item description text 58 $description = $item->description; 59 $date = ( $item->date ? date( 'r', strtotime($item->date) ) : '' ); 60 61 // load individual item creator class 62 $feeditem = new JFeedItem(); 63 $feeditem->title = $title; 64 $feeditem->link = $link; 65 $feeditem->description = $description; 66 $feeditem->date = $date; 67 $feeditem->category = 'Weblinks'; 68 69 // loads item info into rss array 70 $document->addItem( $feeditem ); 71 } 72 } 73 } 74 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Mar 28 15:54:07 2012 | Cross-referenced by PHPXref 0.7.1 |