public function display($tpl = null) { $this->option = JFactory::getApplication()->input->get('option'); $this->state = $this->get('State'); $this->form = $this->get('Form'); $this->importType = $this->state->get('import.context'); switch ($this->importType) { case 'locations': $this->legend = JText::_('COM_SOCIALCOMMUNITY_IMPORT_LOCATIONS_DATA'); $this->uploadTask = 'import.locations'; break; case 'countries': $this->legend = JText::_('COM_SOCIALCOMMUNITY_IMPORT_COUNTRIES_DATA'); $this->uploadTask = 'import.countries'; break; case 'states': $this->legend = JText::_('COM_SOCIALCOMMUNITY_IMPORT_STATES_DATA'); $this->uploadTask = 'import.states'; break; default: // Currencies $this->legend = JText::_('COM_SOCIALCOMMUNITY_IMPORT_CURRENCY_DATA'); $this->uploadTask = 'import.currencies'; break; } // Add submenu SocialCommunityHelper::addSubmenu($this->importType); // Prepare actions $this->addToolbar(); $this->setDocument(); parent::display($tpl); }
/** * Display the view */ public function display($tpl = null) { $this->state = $this->get('State'); $this->form = $this->get('Form'); $this->importType = $this->state->get("import.context"); switch ($this->importType) { case "locations": $this->legend = JText::_("COM_SOCIALCOMMUNITY_IMPORT_LOCATIONS_DATA"); $this->uploadTask = "import.locations"; break; case "countries": $this->legend = JText::_("COM_SOCIALCOMMUNITY_IMPORT_COUNTRIES_DATA"); $this->uploadTask = "import.countries"; break; case "states": $this->legend = JText::_("COM_SOCIALCOMMUNITY_IMPORT_STATES_DATA"); $this->uploadTask = "import.states"; break; default: // Currencies $this->legend = JText::_("COM_SOCIALCOMMUNITY_IMPORT_CURRENCY_DATA"); $this->uploadTask = "import.currencies"; break; } // Add submenu SocialCommunityHelper::addSubmenu($this->importType); // Prepare actions $this->addToolbar(); $this->setDocument(); parent::display($tpl); }
/** * Add a menu on the sidebar of page */ protected function addSidebar() { // Add submenu SocialCommunityHelper::addSubmenu($this->getName()); JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName()); JHtmlSidebar::addFilter(JText::_('JOPTION_SELECT_PUBLISHED'), 'filter_state', JHtml::_('select.options', JHtml::_('jgrid.publishedOptions', array('archived' => false, 'trash' => false)), 'value', 'text', $this->state->get('filter.state'), true)); $this->sidebar = JHtmlSidebar::render(); }
/** * Add a menu on the sidebar of page */ protected function addSidebar() { // Add submenu SocialCommunityHelper::addSubmenu($this->getName()); JHtmlSidebar::setAction('index.php?option=' . $this->option . '&view=' . $this->getName()); $states = array(JHtml::_('select.option', '0', JText::_('COM_SOCIALCOMMUNITY_DOES_NOT_EXISTS')), JHtml::_('select.option', '1', JText::_('COM_SOCIALCOMMUNITY_EXISTS'))); JHtmlSidebar::addFilter(JText::_('COM_SOCIALCOMMUNITY_SELECT_PROFILE_STATE'), 'filter_profile', JHtml::_('select.options', $states, 'value', 'text', $this->state->get('filter.profile'), true)); $this->sidebar = JHtmlSidebar::render(); }
public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); // Add submenu SocialCommunityHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->version = new SocialCommunity\Version(); // Load Prism library version if (!class_exists("Prism\\Version")) { $this->itprismVersion = JText::_("COM_SOCIALCOMMUNITY_PRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new Prism\Version(); $this->prismVersion = $itprismVersion->getShortVersion(); } // Add submenu SocialCommunityHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get('State'); $this->items = $this->get('Items'); $this->pagination = $this->get('Pagination'); // Load the component parameters. $params = JComponentHelper::getParams($this->option); $this->imagesFolder = $params->get("images_directory", "images/profiles"); // Add submenu SocialCommunityHelper::addSubmenu($this->getName()); // Prepare sorting data $this->prepareSorting(); // Prepare actions $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
/** * Add a menu on the sidebar of page */ protected function addSidebar() { // Add submenu SocialCommunityHelper::addSubmenu($this->getName()); $this->sidebar = JHtmlSidebar::render(); }