Exemplo n.º 1
0
 public function getTerms()
 {
     $app = JFactory::getApplication();
     $id = $app->input->getInt('k2item_id');
     require_once JPATH_COMPONENT_ADMINISTRATOR . '/library/k2item.php';
     $k2item = new K2StoreItem();
     $data = $k2item->display($id);
     $view = $this->getView('checkout', 'html');
     $view->set('_controller', 'checkout');
     $view->set('_view', 'checkout');
     $view->set('_doTask', true);
     $view->set('hidemenu', true);
     $view->assign('html', $data);
     $view->setLayout('checkout_terms');
     ob_start();
     $view->display();
     $html = ob_get_contents();
     ob_end_clean();
     echo $html;
     $app->close();
 }
Exemplo n.º 2
0
 /**
  * This displays the content article
  * specified in the plugin's params
  *
  * @return unknown_type
  */
 function _displayArticle()
 {
     $html = '';
     $articleid = $this->params->get('articleid');
     if ($articleid) {
         require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_k2store' . DS . 'library' . DS . 'k2item.php';
         $html = K2StoreItem::display($articleid);
     }
     return $html;
 }