Server : LiteSpeed System : Linux server 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : alsaif ( 1057) PHP Version : 7.4.33 Disable Function : show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname Directory : /home/alsaif/public_html/administrator/components/com_falang/views/elements/ |
<?php
/**
* @package Falang for Joomla!
* @author Stéphane Bouey <stephane.bouey@faboba.com> - http://www.faboba.com
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
* @copyright Copyright (C) 2010-2017. Faboba.com All rights reserved.
*/
// No direct access to this file
defined('_JEXEC') or die;
JLoader::import( 'views.default.view',FALANG_ADMINPATH);
/**
* HTML View class for the WebLinks component
*
* @static
* @package Joomla
* @subpackage Weblinks
* @since 1.0
*/
class ElementsViewElements extends FalangViewDefault
{
function display($tpl = null)
{
$document = JFactory::getDocument();
// browser title
$document->setTitle(JText::_('COM_FALANG_TITLE') . ' :: ' .JText::_('COM_FALANG_TITLE_CONTENT_ELEMENTS'));
// set page title
JToolBarHelper::title( JText::_( 'COM_FALANG_TITLE_CONTENT_ELEMENTS' ), 'extension' );
$layout = $this->getLayout();
if (method_exists($this,$layout)){
$this->$layout($tpl);
} else {
$this->addToolbar();
}
parent::display($tpl);
}
protected function addToolbar() {
// Set toolbar items for the page
JToolBarHelper::custom("elements.installer","archive","archive", JText::_( 'COM_FALANG_INSTALL' ),false);
JToolBarHelper::custom("elements.detail","eye","eye", JText::_( 'COM_FALANG_DETAIL' ),true);
JToolBarHelper::deleteList(JText::_("COM_FALANG_TRANSLATION_DELETE_MSG"), "elements.remove");
JToolBarHelper::help( 'screen.elements', true);
JHtmlSidebar::setAction('index.php?option=com_falang&view=element');
JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTROL_PANEL'), 'index.php?option=com_falang');
JHtmlSidebar::addEntry(JText::_('COM_FALANG_TRANSLATION'), 'index.php?option=com_falang&task=translate.overview');
JHtmlSidebar::addEntry(JText::_('COM_FALANG_ORPHANS'), 'index.php?option=com_falang&task=translate.orphans');
JHtmlSidebar::addEntry(JText::_('COM_FALANG_CONTENT_ELEMENTS'), 'index.php?option=com_falang&task=elements.show', true);
JHtmlSidebar::addEntry(JText::_('COM_FALANG_HELP_AND_HOWTO'), 'index.php?option=com_falang&task=help.show', false);
$this->sidebar = JHtmlSidebar::render();
}
function edit($tpl = null)
{
// Set toolbar items for the page
//JToolBarHelper::back();
JToolBarHelper::custom( 'elements.show', 'cancel', 'cancel', JText::_( 'COM_FALANG_CONTENT_ELEMENT_CANCEL' ), false );
JToolBarHelper::help( 'screen.elements', true);
// hide the sub menu
$this->_hideSubmenu();
}
function installer($tpl = null)
{
// browser title
$document = JFactory::getDocument();
$document->setTitle(JText::_('COM_FALANG_TITLE') . ' :: ' .JText::_('COM_FALANG_CONTENT_ELEMENT_INSTALLER'));
// set page title
JToolBarHelper::title( JText::_('COM_FALANG_TITLE') .' :: '. JText::_( 'COM_FALANG_CONTENT_ELEMENT_INSTALLER' ), 'falang' );
// Set toolbar items for the page
JToolBarHelper::custom( 'elements.show', 'cancel', 'cancel', JText::_( 'COM_FALANG_CONTENT_ELEMENT_CANCEL' ), false );
//JToolBarHelper::deleteList(JText::_("COM_FALANG_CONTENT_ELEMENT_REMOVE"), "elements.remove_install");
JToolBarHelper::help( 'screen.elements', true);
// hide the sub menu
$this->_hideSubmenu();
}
}