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


PHP JToolbarHelper::spacer方法代码示例

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


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

示例1: display

 /**
  * Display the view.
  *
  * @param	string	$tpl	The subtemplate to display.
  *
  * @return	void
  */
 function display($tpl = null)
 {
     JToolbarHelper::title(JText::_('jUpgradePro'), 'jupgrade');
     JToolbarHelper::custom('cpanel', 'back.png', 'back_f2.png', 'Back', false, false);
     JToolbarHelper::preferences('com_jupgradepro', '500');
     JToolbarHelper::spacer();
     JToolbarHelper::custom('help', 'help.png', 'help_f2.png', 'Help', false, false);
     JToolbarHelper::spacer();
     // get params
     $params = JComponentHelper::getParams('com_jupgradepro');
     //
     // Joomla bug: JInstaller not save the defaults params reading config.xml
     //
     $db = JFactory::getDBO();
     if (!$params->get('method')) {
         $default_params = '{"method":"rest","rest_hostname":"http:\\/\\/www.example.org\\/","rest_username":"","rest_password":"","rest_key":"","path":"","driver":"mysql","hostname":"localhost","username":"","password":"","database":"","prefix":"jos_","skip_checks":"0","skip_files":"1","skip_templates":"1","skip_extensions":"1","skip_core_users":"0","skip_core_categories":"0","skip_core_sections":"0","skip_core_contents":"0","skip_core_contents_frontpage":"0","skip_core_menus":"0","skip_core_menus_types":"0","skip_core_modules":"0","skip_core_modules_menu":"0","skip_core_banners":"0","skip_core_banners_clients":"0","skip_core_banners_tracks":"0","skip_core_contacts":"0","skip_core_newsfeeds":"0","skip_core_weblinks":"0","positions":"0","debug":"0"}';
         $query = "UPDATE #__extensions SET `params` = '{$default_params}' WHERE `element` = 'com_jupgradepro'";
         $db->setQuery($query);
         $db->query();
         // get params.. again
         $params = JComponentHelper::getParams('com_jupgradepro');
     }
     // Load mooTools
     //JHTML::_('behavior.mootools'); // 2.5
     JHtml::_('behavior.framework', true);
     $xmlfile = JPATH_COMPONENT_ADMINISTRATOR . '/jupgradepro.xml';
     $xml = JFactory::getXML($xmlfile);
     $this->params = $params;
     $this->version = $xml->version[0];
     parent::display($tpl);
 }
开发者ID:prox91,项目名称:joomla-dev,代码行数:38,代码来源:view.html.php

示例2: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @access  public
  * @return  void
  *
  * @since 2.0
  */
 function addToolbar()
 {
     JToolBarHelper::title(JText::_('COM_JOOMGALLERY_IMGMAN_IMAGE_MANAGER') . ' :: ' . JText::_('COM_JOOMGALLERY_FIELDSET_EDITIMAGES'), 'images');
     JToolbarHelper::apply('apply');
     JToolbarHelper::save('save');
     JToolbarHelper::cancel('cancel');
     JToolbarHelper::spacer();
 }
开发者ID:pabloarias,项目名称:JoomGallery,代码行数:16,代码来源:view.html.php

示例3: addToolbar

 protected function addToolbar()
 {
     JToolbarHelper::title(JText::_('Event') . ': <small><small>[ upload ]</small></small>');
     JToolbarHelper::cancel('upload.cancel', 'Close');
     $bar = JToolbar::getInstance('toolbar');
     if ($this->folder->getFolderType()->getName() == 'local') {
         JToolbarHelper::spacer(100);
         $bar->appendButton('Link', 'folder', 'COM_EVENTGALLERY_BUTTON_FILES_DESC', JRoute::_('index.php?option=com_eventgallery&view=files&folderid=' . $this->item->id), false);
         $bar->appendButton('Link', 'edit', 'COM_EVENTGALLERY_BUTTON_EDIT_DESC', JRoute::_('index.php?option=com_eventgallery&task=event.edit&id=' . $this->item->id), false);
     }
 }
开发者ID:sansandeep143,项目名称:av,代码行数:11,代码来源:view.html.php

示例4: setToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function setToolbar()
 {
     JToolbarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'pluginsmanager');
     JToolbarHelper::spacer();
     JToolbarHelper::editList('plugin.edit');
     JToolbarHelper::divider();
     JToolbarHelper::publish('publish', 'JTOOLBAR_ENABLE', true);
     JToolbarHelper::unpublish('unpublish', 'JTOOLBAR_DISABLE', true);
     JToolbarHelper::divider();
     JToolbarHelper::checkin('checkin');
     JToolbarHelper::spacer();
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:17,代码来源:view.html.php

示例5: setToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function setToolbar()
 {
     JToolbarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'puzzle');
     JToolbarHelper::spacer();
     JToolbarHelper::editList('plugin.edit');
     JToolbarHelper::divider();
     JToolbarHelper::publish('publish', 'JTOOLBAR_ENABLE', true);
     JToolbarHelper::unpublish('unpublish', 'JTOOLBAR_DISABLE', true);
     JToolbarHelper::divider();
     JToolbarHelper::checkin('checkin');
     JToolbarHelper::spacer();
     $help_url = 'http://www.kunena.org/docs/';
     JToolBarHelper::help('COM_KUNENA', false, $help_url);
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:19,代码来源:view.html.php

示例6: setToolBarEdit

 protected function setToolBarEdit()
 {
     // Set the titlebar text
     JToolBarHelper::title(JText::_('COM_KUNENA'), 'categories');
     JToolbarHelper::spacer();
     JToolBarHelper::apply('apply');
     JToolBarHelper::save('save');
     JToolBarHelper::save2new('save2new');
     // If an existing item, can save to a copy.
     if ($this->category->exists()) {
         JToolBarHelper::save2copy('save2copy');
     }
     JToolBarHelper::cancel();
     JToolbarHelper::spacer();
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:15,代码来源:view.html.php

示例7: addToolbar

 /**
  * Add the page title and toolbar.
  *
  * @since   1.6
  */
 protected function addToolbar()
 {
     JFactory::getApplication()->input->set('hidemainmenu', true);
     //$canDo = PluginsHelper::getActions();
     JToolbarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_PLUGIN_MANAGER'), 'pluginsmanager');
     JToolbarHelper::spacer();
     // If not checked out, can save the item.
     //if ($canDo->get('core.edit'))
     //{
     JToolbarHelper::apply('apply');
     JToolbarHelper::save('save');
     //}
     JToolbarHelper::cancel('cancel', 'JTOOLBAR_CLOSE');
     JToolbarHelper::spacer();
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:20,代码来源:view.html.php

示例8: setToolBarDefault

 /**
  *
  */
 protected function setToolBarDefault()
 {
     $bar = JToolBar::getInstance('toolbar');
     JToolbarHelper::spacer();
     JToolBarHelper::apply();
     JToolBarHelper::save('save');
     JToolBarHelper::divider();
     JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'wrench');
     JHtml::_('bootstrap.modal', 'settingModal');
     $title = JText::_('COM_KUNENA_RESET_CONFIG');
     $dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">\n\t\t\t\t\t<i class=\"icon-checkbox-partial\" title=\"{$title}\"></i>\n\t\t\t\t\t{$title}</button>";
     $bar->appendButton('Custom', $dhtml, 'restore');
     JToolbarHelper::spacer();
     $help_url = 'http://www.kunena.org/docs/Configuration';
     JToolBarHelper::help('COM_KUNENA', false, $help_url);
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:19,代码来源:view.html.php

示例9: setToolBarDefault

 protected function setToolBarDefault()
 {
     $bar = JToolBar::getInstance('toolbar');
     JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'config');
     JToolbarHelper::spacer();
     JToolBarHelper::apply();
     JToolBarHelper::save('save');
     JToolBarHelper::divider();
     if (version_compare(JVERSION, '3.0', '>')) {
         JHtml::_('bootstrap.modal', 'settingModal');
         $title = JText::_('COM_KUNENA_RESET_CONFIG');
         $dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">\r\n\t\t\t\t\t\t<i class=\"icon-checkbox-partial\" title=\"{$title}\"></i>\r\n\t\t\t\t\t\t{$title}</button>";
         $bar->appendButton('Custom', $dhtml, 'restore');
     } else {
         JHtml::_('moobootstrap.modal', 'settingModal');
         $title = JText::_('COM_KUNENA_RESET_CONFIG');
         $dhtml = "<a data-toggle=\"modal\" data-target=\"#settingModal\" class=\"toolbar\">\r\n\t\t\t\t\t\t<span class=\"icon-32-restore\" title=\"{$title}\"></span>\r\n\t\t\t\t\t\t\t{$title}</a>";
         $bar->appendButton('Custom', $dhtml, 'restore');
     }
     JToolbarHelper::spacer();
     //$bar->appendButton('Popup', 'restore', 'COM_KUNENA_RESET_CONFIG', 'index.php?option=com_kunena&amp;view=config&amp;layout=modal&amp;tmpl=component', 450, 200);
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:22,代码来源:view.html.php

示例10: setToolBarDefault

	protected function setToolBarDefault()
	{
		$bar = JToolBar::getInstance('toolbar');

		JToolbarHelper::spacer();
		JToolBarHelper::apply();
		JToolBarHelper::save('save');
		JToolBarHelper::divider();

		if (version_compare(JVERSION, '3.0', '>'))
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'wrench');

			JHtml::_('bootstrap.modal', 'settingModal');
			$title = JText::_('COM_KUNENA_RESET_CONFIG');
			$dhtml = "<button data-toggle=\"modal\" data-target=\"#settingModal\" class=\"btn btn-small\">
						<i class=\"icon-checkbox-partial\" title=\"$title\"></i>
						$title</button>";
			$bar->appendButton('Custom', $dhtml, 'restore');
		}
		else
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CONFIGURATION'), 'config');

			JHtml::_('moobootstrap.modal', 'settingModal');
			$title = JText::_('COM_KUNENA_RESET_CONFIG');
			$dhtml = "<a data-toggle=\"modal\" data-target=\"#settingModal\" class=\"toolbar\">
						<span class=\"icon-32-restore\" title=\"$title\"></span>
							$title</a>";
			$bar->appendButton('Custom', $dhtml, 'restore');
		}

		JToolbarHelper::spacer();
		$help_url  = 'https://www.kunena.org/docs/Configuration';
		JToolBarHelper::help( 'COM_KUNENA', false, $help_url );
	}
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:36,代码来源:view.html.php

示例11: setToolBarEdit

 /**
  *
  */
 protected function setToolBarEdit()
 {
     JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CATEGORY_MANAGER'), 'list-view');
     JToolbarHelper::spacer();
     JToolBarHelper::apply('apply');
     JToolBarHelper::save('save');
     JToolBarHelper::save2new('save2new');
     // If an existing item, can save to a copy.
     if ($this->category->exists()) {
         JToolBarHelper::save2copy('save2copy');
     }
     JToolBarHelper::cancel();
     JToolbarHelper::spacer();
     $help_url = 'http://www.kunena.org/docs/Sections,_Categories,_sub-Categories_(Part_1)';
     JToolBarHelper::help('COM_KUNENA', false, $help_url);
 }
开发者ID:Ruud68,项目名称:Kunena-Forum,代码行数:19,代码来源:view.html.php

示例12: setToolBarEdit

	protected function setToolBarEdit()
	{
		// Set the titlebar text

		if (version_compare(JVERSION, '3', '>'))
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CATEGORY_MANAGER'), 'list-view');
		}
		else
		{
			JToolBarHelper::title(JText::_('COM_KUNENA') . ': ' . JText::_('COM_KUNENA_CATEGORY_MANAGER'), 'categories');
		}

		JToolbarHelper::spacer();
		JToolBarHelper::apply('apply');
		JToolBarHelper::save('save');
		JToolBarHelper::save2new('save2new');

		// If an existing item, can save to a copy.
		if ($this->category->exists())
		{
			JToolBarHelper::save2copy('save2copy');
		}

		JToolBarHelper::cancel();
		JToolbarHelper::spacer();
		$help_url  = 'https://www.kunena.org/docs/en/setup/sections-categories';
		JToolBarHelper::help( 'COM_KUNENA', false, $help_url );
	}
开发者ID:BillVGN,项目名称:PortalPRP,代码行数:29,代码来源:view.html.php

示例13: HELP_MENU

 function HELP_MENU()
 {
     global $submenu_anders;
     //JToolbarHelper::startTable();
     JToolBarHelper::title(JText::_('JGA_HELP_MANAGER'), 'systeminfo');
     JToolbarHelper::custom('cpanel', 'config.png', 'config.png', 'JGA_TOOLBAR_CPANEL', false);
     JToolbarHelper::spacer();
     //JToolbarHelper::endTable();
     if ($submenu_anders != 1) {
         return;
     }
     JSubMenuHelper::addEntry(JText::_('JGA_CATEGORY_MANAGER'), 'index.php?option=com_joomgallery&amp;act=categories');
     JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_MANAGER'), 'index.php?option=com_joomgallery&amp;act=pictures');
     JSubMenuHelper::addEntry(JText::_('JGA_COMMENTS_MANAGER'), 'index.php?option=com_joomgallery&amp;act=comments');
     JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=upload');
     JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=batchupload');
     JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=ftpupload');
     JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&amp;act=jupload');
     JSubMenuHelper::addEntry(JText::_('JGA_CONFIGURATION_MANAGER'), 'index.php?option=com_joomgallery&amp;act=configuration');
 }
开发者ID:planetangel,项目名称:Planet-Angel-Website,代码行数:20,代码来源:toolbar.joomgallery.html.php

示例14: AdDefault

 /**
  * Default toolbar when editing the advertisment
  *
  */
 function AdDefault()
 {
     JToolbarHelper::save();
     JToolbarHelper::spacer();
     JToolbarHelper::cancel();
 }
开发者ID:ZoiaoDePeixe,项目名称:sms-cep-service-joomla-2.5,代码行数:10,代码来源:toolbar.byjg.html.php


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