Source for file view.html.php
Documentation is available at view.html.php
* @subpackage com_contact
* @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 Contacts component
* @subpackage com_contact
* @var string The name of the extension for the category
* @var string Default title to use for page title
* @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)
parent::commonCategoryDisplay();
// Compute the contact 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);
if ($item->params->get('show_email', 0) ==
1)
$item->email_to =
trim($item->email_to);
$item->email_to =
JHtml::_('email.cloak', $item->email_to);
parent::prepareDocument();
$id = (int)
@$menu->query['id'];
if ($menu &&
($menu->query['option'] !=
$this->extension ||
$menu->query['view'] ==
$this->viewName ||
$id !=
$this->category->id))
$path =
array(array('title' =>
$this->category->title, 'link' =>
''));
$category =
$this->category->getParent();
while (($menu->query['option'] !=
'com_contact' ||
$menu->query['view'] ==
'contact' ||
$id !=
$category->id) &&
$category->id >
1)
$category =
$category->getParent();
$this->pathway->addItem($item['title'], $item['link']);
Documentation generated on Tue, 19 Nov 2013 15:16:58 +0100 by phpDocumentor 1.4.3