Source for file view.html.php
Documentation is available at view.html.php
* @subpackage com_newsfeeds
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* HTML View class for the Newsfeeds component
* @subpackage com_newsfeeds
* @var string Default title to use for page title
* @var string The name of the extension for the category
* @var string The name of the view to link individual items to
* Execute and display a template script.
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
* @return mixed A string if successful, otherwise a Error object.
public function display($tpl =
null)
// Compute the newsfeed slug.
foreach ($this->items as $item)
$item->slug =
$item->alias ?
($item->id.
':'.
$item->alias) :
$item->id;
$temp->loadString($item->params);
$item->params =
clone($this->params);
$item->params->merge($temp);
$id = (int)
@$menu->query['id'];
if ($menu &&
($menu->query['option'] !=
'com_newsfeeds' ||
$menu->query['view'] ==
'newsfeed' ||
$id !=
$this->category->id))
$path =
array(array('title' =>
$this->category->title, 'link' =>
''));
$category =
$this->category->getParent();
while (($menu->query['option'] !=
'com_newsfeeds' ||
$menu->query['view'] ==
'newsfeed' ||
$id !=
$category->id) &&
$category->id >
1)
$category =
$category->getParent();
$this->pathway->addItem($item['title'], $item['link']);
Documentation generated on Tue, 19 Nov 2013 15:17:19 +0100 by phpDocumentor 1.4.3