32
1
mirror of https://github.com/joomla-extensions/weblinks.git synced 2024-11-11 15:51:05 +00:00
weblinks/src/administrator/components/com_weblinks/helpers/weblinks.php

43 lines
895 B
PHP
Raw Normal View History

<?php
/**
* @package Joomla.Administrator
* @subpackage com_weblinks
*
2015-02-18 00:35:48 +00:00
* @copyright Copyright (C) 2005 - 2015 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
/**
* Weblinks helper.
*
* @since 1.6
*/
class WeblinksHelper extends JHelperContent
{
/**
* Configure the Linkbar.
*
* @param string $vName The name of the active view.
*
* @return void
*
* @since 1.6
*/
public static function addSubmenu($vName = 'weblinks')
{
JHtmlSidebar::addEntry(
JText::_('COM_WEBLINKS_SUBMENU_WEBLINKS'),
'index.php?option=com_weblinks&view=weblinks',
$vName == 'weblinks'
);
JHtmlSidebar::addEntry(
JText::_('COM_WEBLINKS_SUBMENU_CATEGORIES'),
'index.php?option=com_categories&extension=com_weblinks',
$vName == 'categories'
);
}
}