Example #1
0
 public function display($tpl = null)
 {
     $this->version = new CrowdfundingData\Version();
     // Load ITPrism library version
     if (!class_exists("Prism\\Version")) {
         $this->itprismVersion = JText::_("COM_CROWDFUNDINGDATA_PRISM_LIBRARY_DOWNLOAD");
     } else {
         $itprismVersion = new Prism\Version();
         $this->itprismVersion = $itprismVersion->getShortVersion();
     }
     // Add submenu
     CrowdfundingDataHelper::addSubmenu($this->getName());
     $this->addToolbar();
     $this->addSidebar();
     $this->setDocument();
     parent::display($tpl);
 }
Example #2
0
 public function display($tpl = null)
 {
     $this->state = $this->get('State');
     $this->items = $this->get('Items');
     $this->pagination = $this->get('Pagination');
     $this->currencies = new Crowdfunding\Currencies(JFactory::getDbo());
     $this->currencies->load();
     $crowdfundingParams = JComponentHelper::getParams("com_crowdfunding");
     $this->amount = new Crowdfunding\Amount($crowdfundingParams);
     // Add submenu
     CrowdfundingDataHelper::addSubmenu($this->getName());
     // Prepare sorting data
     $this->prepareSorting();
     // Prepare actions
     $this->addToolbar();
     $this->addSidebar();
     $this->setDocument();
     parent::display($tpl);
 }