public function display($tpl = null) { $this->version = new UserIdeasVersion(); // Load ITPrism library version jimport("itprism.version"); if (!class_exists("ITPrismVersion")) { $this->itprismVersion = JText::_("COM_USERIDEAS_ITPRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new ITPrismVersion(); $this->itprismVersion = $itprismVersion->getShortVersion(); } jimport("userideas.statistics.basic"); $basic = new UserIdeasStatisticsBasic(JFactory::getDbo()); $this->totalItems = $basic->getTotalItems(); $this->totalVotes = $basic->getTotalVotes(); $this->totalComments = $basic->getTotalComments(); // Get popular items. jimport("userideas.statistics.items.popular"); $this->popular = new UserIdeasStatisticsItemsPopular(JFactory::getDbo()); $this->popular->load(5); // Get most voted items. jimport("userideas.statistics.items.mostvoted"); $this->mostVoted = new UserIdeasStatisticsItemsMostVoted(JFactory::getDbo()); $this->mostVoted->load(5); // Get latest items. jimport("userideas.statistics.items.latest"); $this->latest = new UserIdeasStatisticsItemsLatest(JFactory::getDbo()); $this->latest->load(5); // Add submenu UserIdeasHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->version = new VirtualCurrencyVersion(); // Load ITPrism library version jimport("itprism.version"); if (!class_exists("ITPrismVersion")) { $this->itprismVersion = JText::_("COM_VIRTUALCURRENCY_ITPRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new ITPrismVersion(); $this->itprismVersion = $itprismVersion->getShortVersion(); } // Add submenu VirtualCurrencyHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->state = $this->get("State"); $this->params = $this->state->get("params"); $this->version = new CrowdFundingVersion(); // Load ITPrism library version jimport("itprism.version"); if (!class_exists("ITPrismVersion")) { $this->itprismVersion = JText::_("COM_CROWDFUNDING_ITPRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new ITPrismVersion(); $this->itprismVersion = $itprismVersion->getShortVersion(); } // Get popular projects. jimport("crowdfunding.statistics.projects.popular"); $this->popular = new CrowdFundingStatisticsProjectsPopular(JFactory::getDbo()); $this->popular->load(5); // Get popular most funded. jimport("crowdfunding.statistics.projects.mostfunded"); $this->mostFunded = new CrowdFundingStatisticsProjectsMostFunded(JFactory::getDbo()); $this->mostFunded->load(5); // Get latest started. jimport("crowdfunding.statistics.projects.latest"); $this->latestStarted = new CrowdFundingStatisticsProjectsLatest(JFactory::getDbo()); $this->latestStarted->load(5); // Get latest created. $this->latestCreated = new CrowdFundingStatisticsProjectsLatest(JFactory::getDbo()); $this->latestCreated->loadByCreated(5); // Get currency. jimport("crowdfunding.currency"); $currencyId = $this->params->get("project_currency"); $this->currency = CrowdFundingCurrency::getInstance(JFactory::getDbo(), $currencyId, $this->params); // Add submenu CrowdFundingHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }
public function display($tpl = null) { $this->version = new IdentityProofVersion(); // Load ITPrism library version jimport("itprism.version"); if (!class_exists("ITPrismVersion")) { $this->itprismVersion = JText::_("COM_IDENTITYPROOF_ITPRISM_LIBRARY_DOWNLOAD"); } else { $itprismVersion = new ITPrismVersion(); $this->itprismVersion = $itprismVersion->getShortVersion(); } // Get URI $this->uri = JUri::getInstance(); $uriCloned = clone $this->uri; // Generate HTTPS URI. $uriCloned->setScheme("https"); $this->uriHTTPS = $uriCloned->toString(); // Add submenu IdentityProofHelper::addSubmenu($this->getName()); $this->addToolbar(); $this->addSidebar(); $this->setDocument(); parent::display($tpl); }