Example #1
0
 public function display()
 {
     $params = $this->module->params;
     $form = $this->getService('com://admin/wufoo.model.forms')->id($params->form)->getItem();
     $this->assign('form', $form);
     return parent::display();
 }
Example #2
0
 public function display()
 {
     // Module parameters
     $model = $this->getService('com://site/events.model.events')->sort('date_start')->limit('2');
     // Assign vars and render view
     $this->assign('events', $model->getList());
     return parent::display();
 }
Example #3
0
 /**
  * @return ModDefaultHtml
  */
 public function display()
 {
     $article = $this->getService('com://site/articles.model.articles')->id($this->module->params->id)->getItem();
     $this->assign('article', $article);
     $this->assign('params', $this->module->params);
     $this->assign('showtitle', $this->module->showtitle);
     return parent::display();
 }
Example #4
0
 public function display()
 {
     $this->setLayout($this->module->params->get('layout', 'overlay'));
     //Create the url object and force the tmpl to empty
     $url = $this->getService('koowa:http.url', array('url' => $this->module->params->get('url')));
     $this->assign('url', $url);
     return parent::display();
 }
Example #5
0
 /**
  * @return ModDefaultHtml
  */
 public function display()
 {
     $model = $this->getService('com://admin/carousel.model.items')->carousel_category_id($this->module->params->category_id);
     $items = $model->enabled(1)->sort('created_on')->direction('desc')->getList();
     $this->assign('items', $items);
     $this->assign('total', $model->getTotal());
     return parent::display();
 }
Example #6
0
 public function display()
 {
     $model = KFactory::get($this->getModel());
     $this->forums = $model->getList();
     $this->total = $model->getTotal();
     $this->state = $model->getState();
     $this->forum = $model->getItem();
     $this->i = 0;
     parent::display();
 }
Example #7
0
 /**
  * @return ModDefaultHtml
  */
 public function display()
 {
     $model = $this->getService('com://site/portals.model.portals');
     if ($this->module->params->featured) {
         $model->featuted(1);
     }
     $portals = $model->getList();
     $this->assign('portals', $portals);
     return parent::display();
 }
Example #8
0
 public function display()
 {
     $params = $this->module->params;
     $this->assign('params', $params);
     if ($params->copyright_menu != '') {
         $menu = JFactory::getApplication()->getMenu()->getItems(array('menutype'), array($params->copyright_menu));
         $this->assign('copyright_menu', $menu);
     }
     return parent::display();
 }
Example #9
0
 public function display()
 {
     // get module parameters
     $this->assign('messages', $this->params->get('messages', '1'));
     $this->assign('watches', $this->params->get('watches', '1'));
     $this->assign('profile', $this->params->get('profile', '1'));
     $this->assign('logout', $this->params->get('logout', '1'));
     $this->me = KFactory::get('site::com.ninjaboard.model.people')->getMe();
     $this->profileurl = JRoute::_('index.php?option=com_ninjaboard&view=person&id=' . $this->me->id);
     $this->unread = (int) KFactory::tmp('site::com.ninjaboard.model.messages')->unread(1)->getTotal();
     parent::display();
 }
Example #10
0
 public function display()
 {
     $menu = JFactory::getApplication()->getMenu();
     $this->module->params->menutype = $this->module->params->menu;
     $this->module->params->endLevel = 2;
     $this->module->params->showAllChildren = true;
     $this->assign('menu', ModMenuHelper::getList($this->module->params));
     $this->assign('active', $menu->getActive());
     $this->assign('lang', JFactory::getLanguage());
     $this->assign('template', JFactory::getDocument()->template);
     $this->assign('params', $this->module->params);
     return parent::display();
 }
Example #11
0
 public function display()
 {
     $this->assign('header_text', trim($this->module->params->get('header_text')));
     $this->assign('footer_text', trim($this->module->params->get('footer_text')));
     $this->assign('moduleclass_sfx', $this->module->params->get('moduleclass_sfx'));
     // Module parameters
     $model = $this->getService('com://site/banners.model.banners')->enabled(1)->category($this->module->params->get('catid'))->sort($this->module->params->get('ordering', 0))->limit($this->module->params->get('count', 1));
     // Manage tags search
     if ($this->module->params->get('tag_search')) {
         $model->tags($this->_getKeywords());
     }
     // Assign vars and render view
     $this->assign('banners', $model->getList());
     return parent::display();
 }
Example #12
0
 /**
  * Renders the views output
  *
  * @return string
  */
 public function display()
 {
     $this->assign('button', $this->module->params->get('button', ''));
     $this->assign('button_pos', $this->module->params->get('button_pos', 'left'));
     $this->assign('button_text', $this->module->params->get('button_text', JText::_('Search')));
     $this->assign('width', intval($this->module->params->get('width', 20)));
     $this->assign('maxlength', $this->module->params->get('width') > 20 ? $this->module->params->get('width') : 20);
     $this->assign('text', $this->module->params->get('text', JText::_('search...')));
     $this->assign('moduleclass_sfx', $this->module->params->get('moduleclass_sfx'));
     // If no menu item id is given, or its value is zero, attempt to use
     // the current item id of the current menu.
     $itemid = intval($this->module->params->get('set_itemid', 0));
     $itemid = $itemid > 0 ? $itemid : KRequest::get('get.Itemid', 'int');
     $this->assign('itemid', $itemid);
     return parent::display();
 }
Example #13
0
 public function display()
 {
     // We will count the menu's here.
     for ($i = 1; $i < 7; $i++) {
         $name = $this->module->params->{'name-' . $i};
         $menu = $this->module->params->{'menu-' . $i};
         if (!empty($name) && !empty($menu)) {
             // Get the menu.
             $jmenu = JFactory::getApplication()->getMenu();
             $men = $jmenu->getItems(array('menutype'), array($menu));
             $count = count($jmenu->getItems(array('menutype', 'level'), array($menu, 1)));
             $this->assign('menu' . $i, $men);
             $this->assign('count' . $i, $count);
             $this->assign('featured' . $i, $this->getFeatured($i));
         }
     }
     $this->assign('attribs', $this->attribs);
     $this->assign('params', $this->module->params);
     return parent::display();
 }
Example #14
0
 public function display()
 {
     $this->feed = JFactory::getFeedParser($this->module->params->get('rssurl'), $this->module->params->get('cache_time', 15) * 60);
     return parent::display();
 }
Example #15
0
 public function display()
 { 
     $this->users = KFactory::get('com://admin/users.model.users')->loggedin(1)->limit(10)->getList(); 
     return parent::display();
 }
Example #16
0
 public function display()
 { 
     $this->articles = KFactory::get('com://admin/articles.model.articles')->sort('created')->direction('desc')->limit(10)->getList(); 
     return parent::display();
 }
Example #17
0
 public function display()
 {
     $this->assign('params', $this->module->params);
     return parent::display();
 }