protected function addToolbar() { $bar = JToolBar::getInstance('toolbar'); JToolBarHelper::title(JText::_('COM_JCKMAN_SUBMENU_LAYOUT_NAME'), 'layout.png'); if ($this->canDo->get('core.create')) { JToolBarHelper::addNew('toolbars.add'); } if ($this->canDo->get('core.edit')) { JToolBarHelper::editList('toolbars.edit'); } if ($this->canDo->get('core.create')) { JToolBarHelper::custom('toolbars.copy', 'copy', 'copy', JText::_('JLIB_HTML_BATCH_COPY'), true); } if ($this->canDo->get('core.delete')) { JToolBarHelper::deleteList('', 'toolbars.remove'); } if ($this->canDo->get('core.edit.state')) { JToolbarHelper::checkin('toolbars.checkin'); } // Add a Link button for Control Panel $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=17#layout_man'); JHtmlSidebar::setAction('index.php?option=com_jckman&view=' . JFactory::getApplication()->input->get('view', 'toolbars')); JCKHelper::addSubmenu($this->app->input->get('view')); $this->sidebar = JHtmlSidebar::render(); }
protected function addToolbar() { $bar = JToolBar::getInstance('toolbar'); $canDo = JCKHelper::getActions(); JToolBarHelper::title(JText::_('COM_JCKMAN_SUBMENU_PLUGIN_NAME'), 'plugin.png'); if ($canDo->get('core.edit')) { JToolBarHelper::editList('list.edit'); } //end if if ($canDo->get('core.edit.state')) { JToolBarHelper::publishList('list.publish'); JToolBarHelper::unpublishList('list.unpublish'); JToolbarHelper::checkin('list.checkin'); } //end if // Add a Link button for Control Panel $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=14#plugin_man_help'); JCKHelper::addSubmenu($this->app->input->get('view')); JHtmlSidebar::setAction('index.php?option=com_jckman&view=list'); // FILTERS JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JCKHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state'))); JHtmlSidebar::addFilter(JText::_('- Select Core Type -'), 'filter_iscore', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'Core Plugins'), JHtml::_('select.option', '0', 'Not Core Plugins')), 'value', 'text', $this->state->get('filter.iscore'))); $this->sidebar = JHtmlSidebar::render(); }
protected function addToolbar() { $bar = JToolBar::getInstance('toolbar'); JToolBarHelper::title(JText::_('JCK Manager'), 'cpanel.png'); if ($this->canDo->get('core.admin')) { JToolbarHelper::preferences('com_jckman'); } JCKHelper::addSubmenu($this->app->input->get('view')); $this->sidebar = JHtmlSidebar::render(); }
protected function addToolbar() { $bar = JToolBar::getInstance('toolbar'); JToolBarHelper::title(JText::_('COM_JCKMAN_SUBMENU_INSTALL_NAME'), 'plugin.png'); // Add a Link button for Control Panel $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=16#installer_help'); JCKHelper::addSubmenu($this->app->input->get('view')); $this->sidebar = JHtmlSidebar::render(); }
protected function addToolbar() { $bar = JToolBar::getInstance('toolbar'); JToolBarHelper::title(JText::_('COM_JCKMAN_SUBMENU_UNINSTALL_NAME'), 'plugin.png'); if ($this->canDo->get('core.edit.state')) { JToolBarHelper::deleteList('', 'manage.remove', JText::_('JTOOLBAR_UNINSTALL')); } //end if $bar->appendButton('Link', 'cpanel', JText::_('COM_JCKMAN_SUBMENU_CPANEL_NAME'), 'index.php?option=com_jckman&view=cpanel'); JCKHelper::addSubmenu($this->app->input->get('view')); $this->sidebar = JHtmlSidebar::render(); }
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(); }
protected function addToolbar() { $this->app->input->set('hidemainmenu', true); $bar = JToolBar::getInstance('toolbar'); $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $this->user->get('id')); JToolBarHelper::title(JText::_('JCK Plugin') . ':' . chr(32) . JText::_($this->item->name), 'plugin.png'); if ($this->canDo->get('core.create') && !$checkedOut) { JToolBarHelper::apply('list.apply'); JToolBarHelper::save('list.save'); } //end if JToolBarHelper::cancel('list.cancel', 'JTOOLBAR_CLOSE'); //JToolBarHelper::help( $this->app->input->get( 'view' ), true ); JCKHelper::addSubmenu($this->app->input->get('view')); $this->sidebar = JHtmlSidebar::render(); }