- md5
- 1a68649f369b5ad13bab3f6dbd4184b1
- sha1
- 65984643b481b51dd3e30f139f9788ffbe2b55eb
- sha256
- 8a0d13f85017710a1428306b6bfb2110255e43fc14b4d77166d5e4d7b4c3ac9e
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
<?php
/**
* @version $Id: view.html.php 10100 2008-03-04 21:08:19Z ircmaxell $
* @package Joomla
* @subpackage Weblinks
* @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
* @license GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/
// Check to ensure this file is included in Joomla!
defined( '_JEXEC' ) or die( 'Restricted access' );
jimport( 'joomla.application.component.view');
/**
* HTML View class for the WebLinks component
*
* @static
* @package Joomla
* @subpackage Weblinks
* @since 1.0
*/
class WeblinksViewCategories extends JView
{
function display( $tpl = null)
{
global $mainframe;
$document =& JFactory::getDocument();
$categories =& $this->get('data');
$total =& $this->get('total');
$state =& $this->get('state');
// Get the page/component configuration
$params = &$mainframe->getParams();
// Set some defaults if not set for params
$params->def('comp_description', JText::_('WEBLINKS_DESC'));
// Define image tag attributes
if ($params->get('image') != -1)
{
if($params->get('image_align')!="")
$attribs['align'] = $params->get('image_align');
else
$attribs['align'] = '';
$attribs['hspace'] = 6;
// Use the static HTML library to build the image tag
$image = JHTML::_('image', 'images/stories/'.$params->get('image'), JText::_('Web Links'), $attribs);
}
for($i = 0; $i < count($categories); $i++)
{
$category =& $categories[$i];
$category->link = JRoute::_('index.php?option=com_weblinks&view=category&id='. $category->slug);
}
$this->assignRef('image', $image);
$this->assignRef('params', $params);
$this->assignRef('categories', $categories);
parent::display($tpl);
}
}
?>
No other release has this exact content. See every version of this file.