/** * Setting the toolbar */ protected function addToolBar() { JToolBarHelper::addNew('portfolio.add'); JToolBarHelper::editList('portfolio.edit'); JToolBarHelper::custom('portfolios.rebuild', 'refresh.png', 'refresh_f2.png', 'COM_BT_PORTFOLIO_PORTFOLIOS_REBUILD_IMAGES', false); JToolBarHelper::divider(); JToolBarHelper::title(JText::_('COM_BT_PORTFOLIO_PORTFOLIOS_MANAGER'), 'portfolio.png'); JToolBarHelper::publish('portfolios.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('portfolios.unpublish', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::custom('portfolios.featured', 'featured.png', 'featured_f2.png', 'JFEATURED', true); JToolBarHelper::divider(); JToolBarHelper::checkin('portfolios.checkin'); JToolBarHelper::deleteList('', 'portfolios.delete'); JToolBarHelper::preferences('com_bt_portfolio'); $this->sidebar = ''; Bt_portfolioHelper::addSubmenu(JRequest::getCmd('view', 'cpanel')); //added since 2.0 for j3.0 if (!$this->legacy) { JHtmlSidebar::setAction('index.php?option=com_bt_portfolio&view=portfolios'); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', Bt_portfolioHelper::getPublishedOptions(), 'value', 'text', $this->state->get('filter.published'), true)); JHtmlSidebar::addFilter(JText::_('COM_BT_PORTFOLIO_SELECT_FEATURED'), 'filter_featured', JHtml::_('select.options', Bt_portfolioHelper::getFeaturedOptions(), 'value', 'text', $this->state->get('filter.featured'), true)); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_CATEGORY'), 'filter_catid', JHtml::_('select.options', Bt_portfolioHelper::getCategoryOptions(), 'value', 'text', $this->state->get('filter.catid'))); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_ACCESS'), 'filter_access', JHtml::_('select.options', JHtml::_('access.assetgroups'), 'value', 'text', $this->state->get('filter.access'))); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_LANGUAGE'), 'filter_language', JHtml::_('select.options', JHtml::_('contentlanguage.existing', true, true), 'value', 'text', $this->state->get('filter.language'))); $this->sidebar = JHtmlSidebar::render(); } }
/** * Setting the toolbar */ protected function addToolBar() { JToolBarHelper::preferences('com_bt_portfolio'); $this->sidebar = ''; Bt_portfolioHelper::addSubmenu(JRequest::getCmd('view', 'cpanel')); //added since 2.0 for j3.0 if (!$this->legacy) { $this->sidebar = JHtmlSidebar::render(); } }
/** * Setting the toolbar */ protected function addToolBar() { JToolBarHelper::editList('comment.edit'); JToolBarHelper::divider(); JToolBarHelper::title(JText::_('COM_BT_PORTFOLIO_COMMENTS_MANAGER'), 'article.png'); JToolBarHelper::publish('comments.publish', 'JTOOLBAR_PUBLISH', true); JToolBarHelper::unpublish('comments.unpublish', 'JTOOLBAR_UNPUBLISH', true); JToolBarHelper::divider(); JToolBarHelper::deleteList('', 'comments.delete'); JToolBarHelper::preferences('com_bt_portfolio'); $this->sidebar = ''; Bt_portfolioHelper::addSubmenu(JRequest::getCmd('view', 'cpanel')); //added since 2.0 for j3.0 if (!$this->legacy) { JHtmlSidebar::setAction('index.php?option=com_bt_portfolio&view=comments'); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', Bt_portfolioHelper::getPublishedOptions(), 'value', 'text', $this->state->get('filter.published'), true)); JHtmlSidebar::addFilter(JText::_('COM_BT_PORTFOLIO_COMMENT_SELECT_AUTHOR'), 'filter_author', JHtml::_('select.options', Bt_portfolioHelper::getAuthorOptions(), 'value', 'text', $this->state->get('filter.author'), true)); $this->sidebar = JHtmlSidebar::render(); } }