当前位置: 首页>>代码示例>>PHP>>正文


PHP JToolbarHelper::divider方法代码示例

本文整理汇总了PHP中JToolbarHelper::divider方法的典型用法代码示例。如果您正苦于以下问题:PHP JToolbarHelper::divider方法的具体用法?PHP JToolbarHelper::divider怎么用?PHP JToolbarHelper::divider使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JToolbarHelper的用法示例。


在下文中一共展示了JToolbarHelper::divider方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: addToolbar

 /**
  * Method to configure the toolbar for this view.
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_finder');
     JToolbarHelper::title(JText::_('COM_FINDER_MAPS_TOOLBAR_TITLE'), 'zoom-in finder');
     $toolbar = JToolbar::getInstance('toolbar');
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publishList('maps.publish');
         JToolbarHelper::unpublishList('maps.unpublish');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolbarHelper::preferences('com_finder');
     }
     JToolbarHelper::divider();
     $toolbar->appendButton('Popup', 'bars', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 350);
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_CONTENT_MAPS');
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'maps.delete');
         JToolbarHelper::divider();
     }
     JHtmlSidebar::setAction('index.php?option=com_finder&view=maps');
     JHtmlSidebar::addFilter('', 'filter_branch', JHtml::_('select.options', JHtml::_('finder.mapslist'), 'value', 'text', $this->state->get('filter.branch')), true);
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_FILTER_BY_STATE'), 'filter_state', JHtml::_('select.options', JHtml::_('finder.statelist'), 'value', 'text', $this->state->get('filter.state')));
 }
开发者ID:educakanchay,项目名称:educared,代码行数:32,代码来源:view.html.php

示例2: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     // Since we don't track these assets at the item level, use the category id.
     $canDo = JHelperContent::getActions('com_newsfeeds', 'category', $this->item->catid);
     JToolbarHelper::title(JText::_('COM_NEWSFEEDS_MANAGER_NEWSFEED'), 'feed newsfeeds');
     // If not checked out, can save the item.
     if (!$checkedOut && ($canDo->get('core.edit') || count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0)) {
         JToolbarHelper::apply('newsfeed.apply');
         JToolbarHelper::save('newsfeed.save');
     }
     if (!$checkedOut && count($user->getAuthorisedCategories('com_newsfeeds', 'core.create')) > 0) {
         JToolbarHelper::save2new('newsfeed.save2new');
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolbarHelper::save2copy('newsfeed.save2copy');
     }
     if (empty($this->item->id)) {
         JToolbarHelper::cancel('newsfeed.cancel');
     } else {
         if ($this->state->params->get('save_history', 0) && $user->authorise('core.edit')) {
             JToolbarHelper::versions('com_newsfeeds.newsfeed', $this->item->id);
         }
         JToolbarHelper::cancel('newsfeed.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_NEWSFEEDS_FEEDS_EDIT');
 }
开发者ID:WineWorld,项目名称:joomlatrialcmbg,代码行数:37,代码来源:view.html.php

示例3: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $isNew = $this->item->id == 0;
     $canDo = $this->canDo;
     JToolbarHelper::title($isNew ? JText::_('COM_TEMPLATES_MANAGER_ADD_STYLE') : JText::_('COM_TEMPLATES_MANAGER_EDIT_STYLE'), 'eye thememanager');
     // If not checked out, can save the item.
     if ($canDo->get('core.edit')) {
         JToolbarHelper::apply('style.apply');
         JToolbarHelper::save('style.save');
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolbarHelper::save2copy('style.save2copy');
     }
     if (empty($this->item->id)) {
         JToolbarHelper::cancel('style.cancel');
     } else {
         JToolbarHelper::cancel('style.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolbarHelper::divider();
     // Get the help information for the template item.
     $lang = JFactory::getLanguage();
     $help = $this->get('Help');
     if ($lang->hasKey($help->url)) {
         $debug = $lang->setDebug(false);
         $url = JText::_($help->url);
         $lang->setDebug($debug);
     } else {
         $url = null;
     }
     JToolbarHelper::help($help->key, false, $url);
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:40,代码来源:view.html.php

示例4: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = JHelperContent::getActions('com_messages');
     JToolbarHelper::title(JText::_('COM_MESSAGES_MANAGER_MESSAGES'), 'envelope inbox');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('message.add');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::publish('messages.publish', 'COM_MESSAGES_TOOLBAR_MARK_AS_READ', true);
         JToolbarHelper::unpublish('messages.unpublish', 'COM_MESSAGES_TOOLBAR_MARK_AS_UNREAD', true);
     }
     JToolbarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     // Instantiate a new JLayoutFile instance and render the layout
     JHtml::_('behavior.modal', 'a.messagesSettings');
     $layout = new JLayoutFile('toolbar.mysettings');
     $bar->appendButton('Custom', $layout->render(array()), 'upload');
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::divider();
         JToolbarHelper::deleteList('', 'messages.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::trash('messages.trash');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_messages');
     }
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_MESSAGING_INBOX');
 }
开发者ID:grlf,项目名称:eyedock,代码行数:39,代码来源:view.html.php

示例5: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = MessagesHelper::getActions();
     JToolbarHelper::title(JText::_('COM_MESSAGES_MANAGER_MESSAGES'), 'inbox.png');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('message.add');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::publish('messages.publish', 'COM_MESSAGES_TOOLBAR_MARK_AS_READ');
         JToolbarHelper::unpublish('messages.unpublish', 'COM_MESSAGES_TOOLBAR_MARK_AS_UNREAD');
     }
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::divider();
         JToolbarHelper::deleteList('', 'messages.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::trash('messages.trash');
     }
     //JToolbarHelper::addNew('module.add');
     JToolbarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     JHtml::_('bootstrap.modal', 'collapseModal');
     $title = JText::_('COM_MESSAGES_TOOLBAR_MY_SETTINGS');
     $dhtml = "<a class=\"btn modal btn-small\" href=\"index.php?option=com_messages&amp;view=config&amp;tmpl=component\"\n\t\t\t\t\trel=\"{handler:'iframe', size:{x:700,y:300}}\">\n\t\t\t\t\t<i class=\"icon-cog\" title=\"{$title}\"></i>{$title}</a>";
     $bar->appendButton('Custom', $dhtml, 'config');
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_messages');
     }
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_MESSAGING_INBOX');
 }
开发者ID:ngxuanmui,项目名称:thongtinonline.net,代码行数:38,代码来源:view.html.php

示例6: addToolbar

 /**
  * Method to configure the toolbar for this view.
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_finder');
     JToolbarHelper::title(JText::_('COM_FINDER_FILTERS_TOOLBAR_TITLE'), 'zoom-in finder');
     $toolbar = JToolbar::getInstance('toolbar');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('filter.add');
         JToolbarHelper::editList('filter.edit');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publishList('filters.publish');
         JToolbarHelper::unpublishList('filters.unpublish');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin') || $canDo->get('core.options')) {
         JToolbarHelper::preferences('com_finder');
     }
     JToolbarHelper::divider();
     $toolbar->appendButton('Popup', 'bars', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 350);
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_SEARCH_FILTERS');
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'filters.delete');
         JToolbarHelper::divider();
     }
 }
开发者ID:brenot,项目名称:forumdesenvolvimento,代码行数:34,代码来源:view.html.php

示例7: addToolbar

 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_localise', 'component');
     JToolBarHelper::title(JText::sprintf('COM_LOCALISE_HEADER_MANAGER', JText::_('COM_LOCALISE_HEADER_PACKAGES')), 'install');
     if ($canDo->get('localise.create')) {
         JToolbarHelper::addNew('package.add');
     }
     if ($canDo->get('localise.edit')) {
         JToolbarHelper::editList('package.edit');
     }
     if ($canDo->get('localise.create') || $canDo->get('localise.edit')) {
         JToolbarHelper::divider();
     }
     if ($canDo->get('localise.delete')) {
         JToolbarHelper::deleteList('COM_LOCALISE_MSG_PACKAGES_VALID_DELETE', 'packages.delete');
         JToolBarHelper::divider();
     }
     JToolBarHelper::custom('package.download', 'out.png', 'out.png', 'JTOOLBAR_EXPORT', true);
     JToolBarHelper::divider();
     JToolBarHelper::custom('package.language', 'archive.png', 'archive.png', 'COM_LOCALISE_TOOLBAR_PACKAGES_LANGUAGE', true);
     JToolbarHelper::divider();
     if ($canDo->get('package.batch')) {
         JToolBarHelper::custom('package.batch', 'refresh.png', 'refresh.png', 'COM_LOCALISE_TOOLBAR_PACKAGES_BATCH', true);
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_localise');
         JToolbarHelper::divider();
     }
     JToolBarHelper::help('screen.packages', true);
 }
开发者ID:svenbluege,项目名称:com_localise,代码行数:31,代码来源:view.html.php

示例8: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since    1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $isNew = $this->item->id == 0;
     $checkedOut = !($this->item->checked_out == 0 || $this->item->checked_out == $userId);
     // Since we don't track these assets at the item level, use the category id.
     /** @noinspection PhpUndefinedClassInspection */
     $canDo = CatalogueHelper::getActions($this->item->id, 0);
     JToolbarHelper::title($isNew ? JText::_('COM_CATALOGUE_MANAGER_COUNTRY_NEW') : JText::_('COM_CATALOGUE_MANAGER_COUNTRY_EDIT'));
     // If not checked out, can save the item.
     if (!$checkedOut && $canDo->get('core.edit')) {
         JToolbarHelper::apply('country.apply');
         JToolbarHelper::save('country.save');
         if ($canDo->get('core.create')) {
             JToolbarHelper::save2new('country.save2new');
         }
     }
     // If an existing item, can save to a copy.
     if (!$isNew && $canDo->get('core.create')) {
         JToolbarHelper::save2copy('country.save2copy');
     }
     if (empty($this->item->id)) {
         JToolbarHelper::cancel('country.cancel');
     } else {
         JToolbarHelper::cancel('country.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolbarHelper::divider();
 }
开发者ID:saity74,项目名称:com_catalogue,代码行数:37,代码来源:view.html.php

示例9: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since	1.6
  */
 protected function addToolbar()
 {
     $canDo = UsersHelper::getActions();
     JToolbarHelper::title(JText::_('COM_USERS_VIEW_USERS_TITLE'), 'user');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('user.add');
     }
     if ($canDo->get('core.edit')) {
         JToolbarHelper::editList('user.edit');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::publish('users.activate', 'COM_USERS_TOOLBAR_ACTIVATE', true);
         JToolbarHelper::unpublish('users.block', 'COM_USERS_TOOLBAR_BLOCK', true);
         JToolbarHelper::custom('users.unblock', 'unblock.png', 'unblock_f2.png', 'COM_USERS_TOOLBAR_UNBLOCK', true);
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'users.delete');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_users');
         JToolbarHelper::divider();
     }
     JToolbarHelper::help('JHELP_USERS_USER_MANAGER');
     JHtmlSidebar::setAction('index.php?option=com_users&view=users');
     JHtmlSidebar::addFilter(JText::_('COM_USERS_FILTER_STATE'), 'filter_state', JHtml::_('select.options', UsersHelper::getStateOptions(), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('COM_USERS_FILTER_ACTIVE'), 'filter_active', JHtml::_('select.options', UsersHelper::getActiveOptions(), 'value', 'text', $this->state->get('filter.active')));
     JHtmlSidebar::addFilter(JText::_('COM_USERS_FILTER_USERGROUP'), 'filter_group_id', JHtml::_('select.options', UsersHelper::getGroups(), 'value', 'text', $this->state->get('filter.group_id')));
     JHtmlSidebar::addFilter(JText::_('COM_USERS_OPTION_FILTER_DATE'), 'filter_range', JHtml::_('select.options', Usershelper::getRangeOptions(), 'value', 'text', $this->state->get('filter.range')));
 }
开发者ID:RuDers,项目名称:JoomlaSQL,代码行数:37,代码来源:view.html.php

示例10: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return  void
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     $state = $this->get('State');
     $canDo = JHelperContent::getActions('com_messages');
     JToolbarHelper::title(JText::_('COM_MESSAGES_MANAGER_MESSAGES'), 'envelope inbox');
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('message.add');
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::publish('messages.publish', 'COM_MESSAGES_TOOLBAR_MARK_AS_READ', true);
         JToolbarHelper::unpublish('messages.unpublish', 'COM_MESSAGES_TOOLBAR_MARK_AS_UNREAD', true);
     }
     JToolbarHelper::divider();
     $bar = JToolBar::getInstance('toolbar');
     $bar->appendButton('Popup', 'cog', 'COM_MESSAGES_TOOLBAR_MY_SETTINGS', 'index.php?option=com_messages&amp;view=config&amp;tmpl=component', 500, 250, 0, 0, '', '', '<button class="btn" type="button" data-dismiss="modal" aria-hidden="true">' . JText::_('JCANCEL') . '</button>' . '<button class="btn btn-success" type="button" data-dismiss="modal" aria-hidden="true"' . ' onclick="jQuery(\'#modal-cog iframe\').contents().find(\'#saveBtn\').click();">' . JText::_('JSAVE') . '</button>');
     if ($state->get('filter.state') == -2 && $canDo->get('core.delete')) {
         JToolbarHelper::divider();
         JToolbarHelper::deleteList('', 'messages.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::divider();
         JToolbarHelper::trash('messages.trash');
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_messages');
     }
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_MESSAGING_INBOX');
 }
开发者ID:SysBind,项目名称:joomla-cms,代码行数:36,代码来源:view.html.php

示例11: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @return void
  */
 protected function addToolbar()
 {
     $canDo = MarketplaceHelper::getActions();
     $type = $this->state->get('filter.tags');
     $section = $this->state->get('filter.section');
     $this->section = ucfirst($section);
     JToolBarHelper::title(JText::sprintf('COM_MARKETPLACE_HEADER_' . $this->getName(), $this->section), 'marketplace');
     $repository_id = $this->state->get('filter.marketplace_repository_id');
     $countStores = MarketplaceHelper::getExtensionTotalStores();
     $stores = MarketplaceHelper::getExtensionStores();
     if ($canDo->get('marketplace.findextensions')) {
         if ($countStores) {
             JToolBarHelper::custom($this->getName() . '.findextensions', 'refresh', 'refresh', 'COM_MARKETPLACE_TOOLBAR_FIND_EXTENSIONS', false, false);
         }
         JToolBarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_marketplace');
         JToolbarHelper::divider();
     }
     if (!empty($this->nr_extensions)) {
         JHtmlSidebar::addFilter(JText::_('COM_MARKETPLACE_VALUE_REPOSITORY_SELECT'), 'filter_marketplace_repository_id', JHtml::_('select.options', $stores, 'value', 'text', $repository_id, true));
         if ($this->state->get('filter.browse') == '') {
             JHtmlSidebar::addFilter(JText::_('COM_MARKETPLACE_VALUE_TYPE_SELECT'), 'filter_tag', JHtml::_('select.options', MarketplaceHelper::getExtensionTypes(), 'value', 'text', $this->state->get('filter.tags'), true));
         }
         JHtmlSidebar::addFilter(JText::_('COM_MARKETPLACE_VALUE_CATEGORY_SELECT'), 'filter_category', JHtml::_('select.options', MarketplaceHelper::getExtensionCategories(), 'value', 'text', $this->state->get('filter.category'), true));
         JHtmlSidebar::addFilter(JText::_('COM_MARKETPLACE_VALUE_AUTHOR_SELECT'), 'filter_author', JHtml::_('select.options', MarketplaceHelper::getExtensionAuthors(), 'value', 'text', $this->state->get('filter.author'), true));
         JHtmlSidebar::addFilter(JText::_('COM_MARKETPLACE_VALUE_PLAN_SELECT'), 'filter_plan', JHtml::_('select.options', MarketplaceHelper::getExtensionPlans(), 'value', 'text', $this->state->get('filter.plan'), true));
     }
     if ($countStores == 0) {
         JFactory::getApplication()->redirect('index.php?option=com_marketplace&view=repositories', JText::_('COM_MARKETPLACE_MSG_REPOSITORIES_NO_REPOSITORIES'), 'warning');
     }
     MarketplaceHelper::addSubmenu($this->getName());
 }
开发者ID:bellodox,项目名称:joomla-marketplace-component,代码行数:39,代码来源:view.html.php

示例12: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $userId = $user->get('id');
     $isNew = $this->item->id == 0;
     //$checkedOut	= !($this->item->checked_out == 0 || $this->item->checked_out == $user->get('id'));
     // Since we don't track these assets at the item level, use the category id.
     //$canDo		= WcatalogHelper::getActions($this->item->catid, 0);
     JToolbarHelper::title(JText::_('COM_WCATALOG_MANAGER_CATEGORY'), 'categories.png');
     // If not checked out, can save the item.
     //if (!$checkedOut && ($canDo->get('core.edit') || count($user->getAuthorisedCategories('com_wcatalog', 'core.create')) > 0))
     //{
     JToolbarHelper::apply('category.apply');
     JToolbarHelper::save('category.save');
     //}
     //if (!$checkedOut && count($user->getAuthorisedCategories('com_wcatalog', 'core.create')) > 0){
     JToolbarHelper::save2new('category.save2new');
     //}
     // If an existing item, can save to a copy.
     //if (!$isNew && $canDo->get('core.create'))
     //{
     JToolbarHelper::save2copy('category.save2copy');
     //}
     if (empty($this->item->id)) {
         JToolbarHelper::cancel('category.cancel');
     } else {
         JToolbarHelper::cancel('category.cancel', 'JTOOLBAR_CLOSE');
     }
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_WCATALOG_CATEGORIES_EDIT');
 }
开发者ID:whiteof,项目名称:comcar,代码行数:37,代码来源:view.html.php

示例13: addToolbar

 /**
  * Method to configure the toolbar for this view.
  *
  * @return  void
  *
  * @since   2.5
  */
 protected function addToolbar()
 {
     $canDo = FinderHelper::getActions();
     JToolbarHelper::title(JText::_('COM_FINDER_INDEX_TOOLBAR_TITLE'), 'finder');
     $toolbar = JToolbar::getInstance('toolbar');
     $toolbar->appendButton('Popup', 'archive', 'COM_FINDER_INDEX', 'index.php?option=com_finder&view=indexer&tmpl=component', 500, 210, 0, 0, 'window.parent.location.reload()', 'COM_FINDER_HEADING_INDEXER');
     JToolbarHelper::divider();
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publishList('index.publish');
         JToolbarHelper::unpublishList('index.unpublish');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.delete')) {
         JToolbarHelper::deleteList('', 'index.delete');
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('index.purge', 'COM_FINDER_INDEX_TOOLBAR_PURGE', false);
         JToolbarHelper::divider();
     }
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_finder');
     }
     JToolbarHelper::divider();
     $toolbar->appendButton('Popup', 'stats', 'COM_FINDER_STATISTICS', 'index.php?option=com_finder&view=statistics&tmpl=component', 550, 350);
     JToolbarHelper::divider();
     JToolbarHelper::help('JHELP_COMPONENTS_FINDER_MANAGE_INDEXED_CONTENT');
     JHtmlSidebar::setAction('index.php?option=com_finder&view=index');
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_FILTER_BY_STATE'), 'filter_state', JHtml::_('select.options', JHtml::_('finder.statelist'), 'value', 'text', $this->state->get('filter.state')));
     JHtmlSidebar::addFilter(JText::_('COM_FINDER_INDEX_TYPE_FILTER'), 'filter_type', JHtml::_('select.options', JHtml::_('finder.typeslist'), 'value', 'text', $this->state->get('filter.type')));
 }
开发者ID:interfaceslivres,项目名称:ccmd-ufpb,代码行数:38,代码来源:view.html.php

示例14: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     $user = JFactory::getUser();
     $canDo = PluginsHelper::getActions();
     JToolbarHelper::title(JText::sprintf('COM_PLUGINS_MANAGER_PLUGIN', JText::_($this->item->name)), 'plugin');
     // If not checked out, can save the item.
     if ($canDo->get('core.edit')) {
         JToolbarHelper::apply('plugin.apply');
         JToolbarHelper::save('plugin.save');
     }
     JToolbarHelper::cancel('plugin.cancel', 'JTOOLBAR_CLOSE');
     JToolbarHelper::divider();
     // Get the help information for the plugin item.
     $lang = JFactory::getLanguage();
     $help = $this->get('Help');
     if ($lang->hasKey($help->url)) {
         $debug = $lang->setDebug(false);
         $url = JText::_($help->url);
         $lang->setDebug($debug);
     } else {
         $url = null;
     }
     JToolbarHelper::help($help->key, false, $url);
 }
开发者ID:interfaceslivres,项目名称:ccmd-ufpb,代码行数:30,代码来源:view.html.php

示例15: addToolbar

 protected function addToolbar()
 {
     $canDo = JHelperContent::getActions('com_jvisualcontent');
     $user = JFactory::getUser();
     JToolbarHelper::title(JText::_('COM_JVISUALCONTENT_EXTRAFIELDS_MANAGER'));
     // Create new button
     if ($canDo->get('core.create')) {
         JToolbarHelper::addNew('extrafield.add');
         JToolbarHelper::divider();
     }
     // Create edit button
     if ($canDo->get('core.edit') || $canDo->get('core.edit.own')) {
         JToolbarHelper::editList('type.edit');
     }
     // Create publish, unpublish buttons
     if ($canDo->get('core.edit.state')) {
         JToolbarHelper::publish('extrafields.publish');
         JToolbarHelper::unpublish('extrafields.unpublish');
         JToolbarHelper::divider();
     }
     if ($this->state->get('filter.published') == -2 && $user->authorise('core.delete')) {
         JToolbarHelper::deleteList('', 'extrafields.delete', 'JTOOLBAR_EMPTY_TRASH');
     } elseif ($canDo->get('core.edit.state')) {
         JToolbarHelper::trash('extrafields.trash');
     }
     // Create options button
     if ($canDo->get('core.admin')) {
         JToolbarHelper::preferences('com_jvisualcontent');
     }
     if (version_compare(JVERSION, '3.0', '>=')) {
         $fieldsType = array('textfield' => JText::_('COM_JVISUALCONTENT_TEXT_FIELD'), 'textarea' => JText::_('COM_JVISUALCONTENT_TEXTAREA'), 'select' => JText::_('COM_JVISUALCONTENT_DROPDOWN_SELECT'), 'multiselect' => JText::_('COM_JVISUALCONTENT_DROPDOWN_LIST'), 'radio' => JText::_('COM_JVISUALCONTENT_RADIO'), 'checkbox' => JText::_('COM_JVISUALCONTENT_CHECKBOX'), 'editor' => JText::_('COM_JVISUALCONTENT_EDITOR'), 'calendar' => JText::_('COM_JVISUALCONTENT_CALENDAR'), 'file' => JText::_('COM_JVISUALCONTENT_FILE'));
         JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false)), 'value', 'text', $this->state->get('filter.published'), true));
         JHtmlSidebar::addFilter(JText::_('COM_JVISUALCONTENT_OPTION_SELECT_TYPE'), 'filter_type', JHtml::_('select.options', $fieldsType, 'value', 'text', $this->state->get('filter.type')));
     }
 }
开发者ID:Glonum,项目名称:tz_portfolio,代码行数:35,代码来源:view.html.php


注:本文中的JToolbarHelper::divider方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。