Exemplo n.º 1
0
 public function display($tpl = null)
 {
     switch (JRequest::getVar('layout')) {
         case 'feeds':
             $feeds = $this->fetchFeeds('http://www.yireo.com/blog?format=feed&type=rss', 3);
             $this->assignRef('feeds', $feeds);
             break;
         case 'promotion':
             $html = YireoHelper::fetchRemote('http://www.yireo.com/advertizement.php', 'SimpleLists');
             print $html;
             exit;
     }
     parent::display($tpl);
 }
Exemplo n.º 2
0
 public function display($tpl = null)
 {
     switch ($this->jinput->get('layout')) {
         case 'feeds':
             $feeds = $this->fetchFeeds('http://www.yireo.com/blog?format=feed&type=rss', 3);
             $this->feeds = $feeds;
             break;
         case 'promotion':
             $html = YireoHelper::fetchRemote('http://www.yireo.com/advertizement.php', $this->_option);
             print $html;
             exit;
     }
     parent::display($tpl);
 }