Exemplo n.º 1
0
 protected function addToolbar()
 {
     $bar = JToolBar::getInstance('toolbar');
     $canDo = JCKHelper::getActions();
     JToolBarHelper::title(JText::_('COM_JCKMAN_SUBMENU_IMPORT_NAME'), 'plugin.png');
     if (!JCKHelper::isMobile() && !JCKHelper::isiPad()) {
         $bar->appendButton('Link', 'export', JText::_('JTOOLBAR_EXPORT'), 'index.php?option=com_jckman&task=cpanel.export');
     }
     $bar->appendButton('Link', 'cpanel', JText::_('COM_JCKMAN_SUBMENU_CPANEL_NAME'), 'index.php?option=com_jckman&view=cpanel');
     JToolBarHelper::help($this->app->input->get('view'), false, 'http://www.joomlackeditor.com/installation-guide?start=20#restore');
     JCKHelper::addSubmenu($this->app->input->get('view'));
     $this->sidebar = JHtmlSidebar::render();
 }
Exemplo n.º 2
0
			<div><?php 
        echo $text;
        ?>
</div>
		</a>
		<?php 
    }
    echo '<div id="jckcpanel">';
    $size = '64';
    $base = 'index.php?option=com_jckman';
    $view = '&amp;view=';
    $task = '&amp;task=';
    $path = 'administrator/components/com_jckman/icons/';
    $canDo = JCKHelper::getActions();
    $isMobile = JCKHelper::isMobile();
    $isIOS = JCKHelper::isMobile() || JCKHelper::isiPad();
    quickiconButton($base . $view . 'list', 'icon-' . $size . '-plugin.png', JText::_('COM_JCKMAN_QUICKICON_PLUGIN_NAME'), 'list', $path);
    if ($canDo->get('jckman.install')) {
        quickiconButton($base . $view . 'install', 'icon-' . $size . '-installer.png', JText::_('COM_JCKMAN_QUICKICON_INSTALL_NAME'), 'install', $path);
    }
    if ($canDo->get('jckman.uninstall')) {
        quickiconButton($base . $view . 'extension', 'icon-' . $size . '-uninstaller.png', JText::_('COM_JCKMAN_QUICKICON_UNINSTALL_NAME'), 'plugin', $path);
    }
    $jckinstallerpath = JPATH_PLUGINS . DS . 'editors' . DS . 'jckeditor' . DS . 'install' . DS;
    if ($canDo->get('core.edit')) {
        if (is_dir($jckinstallerpath)) {
            $link = JURI::root() . 'plugins/editors/jckeditor/install/index.php?task=permissions';
            quickiconButton($link, 'icon-' . $size . '-systemcheck.png', JText::_('COM_JCKMAN_QUICKICON_SYSTEMCHECK_NAME'), 'system', $path, 'modal');
        } else {
            quickiconButton($base . $task . 'cpanel.check', 'icon-' . $size . '-systemcheck.png', JText::_('COM_JCKMAN_QUICKICON_SYSTEMCHECK_NAME'), 'system', $path);
        }