本文整理汇总了PHP中JHtmlSidebar::render方法的典型用法代码示例。如果您正苦于以下问题:PHP JHtmlSidebar::render方法的具体用法?PHP JHtmlSidebar::render怎么用?PHP JHtmlSidebar::render使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JHtmlSidebar
的用法示例。
在下文中一共展示了JHtmlSidebar::render方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
/**
* Display the view
*
* @since 1.1.0
*/
public function display($tpl = null)
{
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
if (FieldsandfiltersFactory::isVersion('>=', 3.2)) {
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
}
// Check for errors.
if (count($errors = $this->get('Errors'))) {
throw new Exception(implode("\n", $errors));
}
FieldsandfiltersHelper::addSubmenu(JFactory::getApplication()->input->getCmd('view', ''));
$this->addToolbar();
if (FieldsandfiltersFactory::isVersion()) {
$this->sidebar = JHtmlSidebar::render();
if (is_null($tpl) && FieldsandfiltersFactory::isVersion('<', 3.2)) {
$tpl = '3.1';
}
} else {
if (is_null($tpl)) {
$tpl = '2.5';
}
}
parent::display($tpl);
}
示例2: display
/**
* Display the view
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return void
*/
public function display($tpl = null)
{
ContentHelper::addSubmenu('featured');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->authors = $this->get('Authors');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
// Levels filter.
$options = array();
$options[] = JHtml::_('select.option', '1', JText::_('J1'));
$options[] = JHtml::_('select.option', '2', JText::_('J2'));
$options[] = JHtml::_('select.option', '3', JText::_('J3'));
$options[] = JHtml::_('select.option', '4', JText::_('J4'));
$options[] = JHtml::_('select.option', '5', JText::_('J5'));
$options[] = JHtml::_('select.option', '6', JText::_('J6'));
$options[] = JHtml::_('select.option', '7', JText::_('J7'));
$options[] = JHtml::_('select.option', '8', JText::_('J8'));
$options[] = JHtml::_('select.option', '9', JText::_('J9'));
$options[] = JHtml::_('select.option', '10', JText::_('J10'));
$this->f_levels = $options;
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
parent::display($tpl);
}
示例3: display
/**
* Method to display the view.
*
* @param string $tpl A template file to load. [optional]
*
* @return mixed A string if successful, otherwise a JError object.
*
* @since 2.5
*/
public function display($tpl = null)
{
// Load plug-in language files.
FinderHelperLanguage::loadPluginLanguage();
$this->items = $this->get('Items');
$this->total = $this->get('Total');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->pluginState = $this->get('pluginState');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
FinderHelper::addSubmenu('index');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
if (!$this->pluginState['plg_content_finder']->enabled) {
JFactory::getApplication()->enqueueMessage(JText::_('COM_FINDER_INDEX_PLUGIN_CONTENT_NOT_ENABLED'), 'warning');
} elseif ($this->get('TotalIndexed') === 0) {
JFactory::getApplication()->enqueueMessage(JText::_('COM_FINDER_INDEX_NO_DATA') . ' ' . JText::_('COM_FINDER_INDEX_TIP'), 'notice');
}
JHtml::addIncludePath(JPATH_COMPONENT . '/helpers/html');
// Configure the toolbar.
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
parent::display($tpl);
}
示例4: display
function display($cachable = false, $urlparams = false)
{
$db = JFactory::getDBO();
$_configdisplayprice = JSFactory::getModel("configDisplayPrice");
$rows = $_configdisplayprice->getList();
$countries = JSFactory::getModel("countries");
$list = $countries->getAllCountries(0);
$countries_name = array();
foreach ($list as $v) {
$countries_name[$v->country_id] = $v->name;
}
foreach ($rows as $k => $v) {
$list = unserialize($v->zones);
foreach ($list as $k2 => $v2) {
$list[$k2] = $countries_name[$v2];
}
if (count($list) > 10) {
$tmp = array_slice($list, 0, 10);
$rows[$k]->countries = implode(", ", $tmp) . "...";
} else {
$rows[$k]->countries = implode(", ", $list);
}
}
$typedisplay = array(0 => _JSHOP_PRODUCT_BRUTTO_PRICE, 1 => _JSHOP_PRODUCT_NETTO_PRICE);
$view = $this->getView("config_display_price", 'html');
$view->setLayout("list");
$view->assign('rows', $rows);
$view->assign('typedisplay', $typedisplay);
$view->sidebar = JHtmlSidebar::render();
$dispatcher = JDispatcher::getInstance();
$dispatcher->trigger('onBeforeDisplayConfigDisplayPrice', array(&$view));
$view->displayList();
}
示例5: display
function display($tpl = null)
{
$this->categories = $this->get('Categories');
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->countItems = $this->get('CountItems');
$this->pagination = $this->get('Pagination');
/*
jimport('joomla.html.pagination');
$limit = JRequest::getVar('limit', '25', '', 'int');
$limitstart = JRequest::getVar('limitstart', '0', '', 'int');
$pagination = new JPagination($this->countItems, $limitstart, $limit);
$this->pagination = $pagination;*/
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
$this->addToolbar();
$version = new JVersion();
if (version_compare($version->getShortVersion(), '3.0.0', '<')) {
$tpl = 'legacy';
} else {
/*JHtmlSidebar::addFilter(
JText::_('JOPTION_SELECT_CATEGORY'),
'filter_category',
JHtml::_('select.options', DJClassifiedsCategory::getCatSelect(), 'value', 'text', $this->state->get('filter.category'), true)
);*/
JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_published', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'JPUBLISHED'), JHtml::_('select.option', '0', 'JUNPUBLISHED')), 'value', 'text', $this->state->get('filter.published'), true));
JHtmlSidebar::addFilter(JText::_('COM_DJCLASSIFIEDS_SELECT_ACTIVE'), 'filter_active', JHtml::_('select.options', array(JHtml::_('select.option', '1', 'COM_DJCLASSIFIEDS_ACTIVE'), JHtml::_('select.option', '0', 'COM_DJCLASSIFIEDS_HIDE')), 'value', 'text', $this->state->get('filter.active'), true));
$this->sidebar = JHtmlSidebar::render();
}
parent::display($tpl);
}
示例6: display
/**
* Display the view
*
* @return void
*/
public function display($tpl = null)
{
if ($this->getLayout() !== 'modal') {
ContentHelper::addSubmenu('articles');
}
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->authors = $this->get('Authors');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
// Levels filter.
$options = array();
$options[] = JHtml::_('select.option', '1', JText::_('J1'));
$options[] = JHtml::_('select.option', '2', JText::_('J2'));
$options[] = JHtml::_('select.option', '3', JText::_('J3'));
$options[] = JHtml::_('select.option', '4', JText::_('J4'));
$options[] = JHtml::_('select.option', '5', JText::_('J5'));
$options[] = JHtml::_('select.option', '6', JText::_('J6'));
$options[] = JHtml::_('select.option', '7', JText::_('J7'));
$options[] = JHtml::_('select.option', '8', JText::_('J8'));
$options[] = JHtml::_('select.option', '9', JText::_('J9'));
$options[] = JHtml::_('select.option', '10', JText::_('J10'));
$this->f_levels = $options;
// We don't need toolbar in the modal window.
if ($this->getLayout() !== 'modal') {
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
}
parent::display($tpl);
}
示例7: addToolBar
/**
* 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();
}
}
示例8: display
/**
* Template types display method
*
* @copyright
* @author RolandD
* @todo
* @see
* @access public
* @param
* @return
* @since 4.0
*/
public function display($tpl = null)
{
// Load the template types
$this->templatetypes = $this->get('Items');
// Get the pagination
$this->pagination = $this->get('Pagination');
// Load the user state
$this->state = $this->get('State');
// Render the submenu
if (version_compare(JVERSION, '3.0', '>=')) {
CsviHelper::addSubmenu('templatetypes');
$this->sidebar = JHtmlSidebar::render();
} else {
// Get the panel
$this->loadHelper('panel');
$this->sidebar = '';
}
// Show the toolbar
JToolBarHelper::title(JText::_('COM_CSVI_TEMPLATETYPES'), 'csvi_templates_48');
JToolBarHelper::custom('templatetypes.reset', 'csvi_reset_32', 'csvi_reset_32', JText::_('COM_CSVI_RESET_SETTINGS'), false);
JToolBarHelper::divider();
JToolBarHelper::custom('templatetype.add', 'csvi_add_32', 'csvi_add_32', 'JTOOLBAR_NEW', false);
JToolBarHelper::custom('templatetype.edit', 'csvi_edit_32', 'csvi_edit_32', 'JTOOLBAR_EDIT', true);
JToolBarHelper::divider();
JToolBarHelper::custom('templatetypes.publish', 'csvi_publish_32', 'csvi_publish_32', JText::_('JTOOLBAR_PUBLISH'), true);
JToolBarHelper::custom('templatetypes.unpublish', 'csvi_unpublish_32', 'csvi_unpublish_32', JText::_('JTOOLBAR_UNPUBLISH'), true);
//JToolBarHelper::help('about.html', true);
// Display it all
parent::display($tpl);
}
示例9: display
/**
* Display the view
*
* @param string $tpl Template name
*
* @return void
*/
public function display($tpl = null)
{
switch ($this->getLayout()) {
case 'confirmdelete':
$this->confirmdelete();
return;
break;
case 'import':
$this->import($tpl);
return;
break;
}
// Initialise variables.
$app = JFactory::getApplication();
$input = $app->input;
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->packageOptions = $this->get('PackageOptions');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
throw new RuntimeException(implode("\n", $errors), 500);
return false;
}
$this->table_groups = $this->get('TableGroups');
FabrikAdminHelper::setViewLayout($this);
$this->addToolbar();
FabrikAdminHelper::addSubmenu($input->getWord('view', 'lists'));
if (FabrikWorker::j3()) {
$this->sidebar = JHtmlSidebar::render();
}
FabrikHelperHTML::iniRequireJS();
parent::display($tpl);
}
示例10: display
function display($tpl = null)
{
$this->courses = JoomdleHelperContent::getCourseList();
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
parent::display($tpl);
}
示例11: display
function display($tpl = null)
{
$this->days = $this->get('Days');
$this->countDays = $this->get('CountDays');
$this->state = $this->get('State');
jimport('joomla.html.pagination');
$limit = JRequest::getVar('limit', '25', '', 'int');
$limitstart = JRequest::getVar('limitstart', '0', '', 'int');
$pagination = new JPagination($this->countDays, $limitstart, $limit);
$this->pagination = $pagination;
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
$this->addToolbar();
if (class_exists('JHtmlSidebar')) {
$this->sidebar = JHtmlSidebar::render();
}
$version = new JVersion();
if (version_compare($version->getShortVersion(), '3.0.0', '<')) {
$tpl = 'legacy';
}
parent::display($tpl);
}
示例12: display
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise an Error object.
*
* @since 1.6
*/
public function display($tpl = null)
{
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->state = $this->get('State');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
// Modal layout doesn't need the submenu.
if ($this->getLayout() !== 'modal') {
NewsfeedsHelper::addSubmenu('newsfeeds');
}
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
// We don't need toolbar in the modal layout.
if ($this->getLayout() !== 'modal') {
$this->addToolbar();
$this->sidebar = JHtmlSidebar::render();
} else {
// In article associations modal we need to remove language filter if forcing a language.
// We also need to change the category filter to show show categories with All or the forced language.
if ($forcedLanguage = JFactory::getApplication()->input->get('forcedLanguage', '', 'CMD')) {
// If the language is forced we can't allow to select the language, so transform the language selector filter into an hidden field.
$languageXml = new SimpleXMLElement('<field name="language" type="hidden" default="' . $forcedLanguage . '" />');
$this->filterForm->setField($languageXml, 'filter', true);
// Also, unset the active language filter so the search tools is not open by default with this filter.
unset($this->activeFilters['language']);
// One last changes needed is to change the category filter to just show categories with All language or with the forced language.
$this->filterForm->setFieldAttribute('category_id', 'language', '*,' . $forcedLanguage, 'filter');
}
}
parent::display($tpl);
}
示例13: display
/**
* Display the view
*/
public function display($tpl = null)
{
// Joomla 2.5
if (version_compare(JVERSION, '3.0', 'lt')) {
jimport('joomla.environment.request');
JHtml::stylesheet('com_icagenda/template.j25.css', false, true);
JHtml::stylesheet('com_icagenda/icagenda-back.j25.css', false, true);
}
$this->params = JComponentHelper::getParams('com_icagenda');
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
$this->events = $this->get('Events');
$this->dates = $this->get('Dates');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode("\n", $errors));
return false;
}
// We don't need toolbar in the modal window.
if ($this->getLayout() !== 'modal') {
$this->addToolbar();
if (version_compare(JVERSION, '3.0', 'ge')) {
$this->sidebar = JHtmlSidebar::render();
}
}
parent::display($tpl);
}
示例14: display
/**
* Execute and display a template script.
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return mixed A string if successful, otherwise a JError object.
*/
public function display($tpl = null)
{
$app = JFactory::getApplication();
if (!BwPostmanHelper::canView('campaigns')) {
$app->enqueueMessage(JText::sprintf('COM_BWPOSTMAN_VIEW_NOT_ALLOWED', JText::_('COM_BWPOSTMAN_CAMS')), 'error');
$app->redirect('index.php?option=com_bwpostman');
} else {
$dispatcher = JEventDispatcher::getInstance();
JPluginHelper::importPlugin('bwpostman', 'bwtimecontrol');
// Get data from the model
$this->state = $this->get('State');
$this->items = $this->get('Items');
$this->filterForm = $this->get('FilterForm');
$this->activeFilters = $this->get('ActiveFilters');
$this->pagination = $this->get('Pagination');
$this->total = $this->get('total');
$this->auto_nbr = 0;
// trigger Plugin BwTimeControl event and get results
$this->auto_nbr = $dispatcher->trigger('onBwPostmanCampaignsPrepare', array(&$this->items));
$this->addToolbar();
BwPostmanHelper::addSubmenu('campaigns');
$this->sidebar = JHtmlSidebar::render();
// Call parent display
parent::display($tpl);
}
}
示例15: display
/**
* Display the Message templates view
*
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
*
* @return void
*/
function display($tpl = null)
{
// Get data from the model
$this->items = $this->get('Items');
$this->pagination = $this->get('Pagination');
// Check for errors.
if (count($errors = $this->get('Errors'))) {
JError::raiseError(500, implode('<br />', $errors));
return false;
}
// Add menu helper file
require_once JPATH_COMPONENT . '/helpers/menu.php';
// Add sidebar
MenuHelper::addSubmenu('messagetemplates');
// Load message type model
$model = JModelLegacy::getInstance('messagetype', 'IssnregistryModel');
// Load message types
$types = $model->getMessageTypesHash();
// Pass $types to the layout
$this->assignRef('types', $types);
// Set the toolbar
$this->addToolBar();
// Render the sidebar
$this->sidebar = JHtmlSidebar::render();
// Display the template
parent::display($tpl);
}