本文整理汇总了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);
}
示例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();
}
示例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);
}
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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);
}
示例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&view=config&layout=modal&tmpl=component', 450, 200);
}
示例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 );
}
示例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);
}
示例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 );
}
示例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&act=categories');
JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_MANAGER'), 'index.php?option=com_joomgallery&act=pictures');
JSubMenuHelper::addEntry(JText::_('JGA_COMMENTS_MANAGER'), 'index.php?option=com_joomgallery&act=comments');
JSubMenuHelper::addEntry(JText::_('JGA_PICTURE_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=upload');
JSubMenuHelper::addEntry(JText::_('JGA_BATCH_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=batchupload');
JSubMenuHelper::addEntry(JText::_('JGA_FTP_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=ftpupload');
JSubMenuHelper::addEntry(JText::_('JGA_JAVA_UPLOAD_MANAGER'), 'index.php?option=com_joomgallery&act=jupload');
JSubMenuHelper::addEntry(JText::_('JGA_CONFIGURATION_MANAGER'), 'index.php?option=com_joomgallery&act=configuration');
}
示例14: AdDefault
/**
* Default toolbar when editing the advertisment
*
*/
function AdDefault()
{
JToolbarHelper::save();
JToolbarHelper::spacer();
JToolbarHelper::cancel();
}