X-Git-Url: http://p2p-next.cs.pub.ro/gitweb/?a=blobdiff_plain;f=application%2Fcontrollers%2Farticle.php;h=12724258bd7bb56fab7b6a4d2c1c9359ee8d35e6;hb=93de016032e54b45db35f18d8538fd5b11a7c72e;hp=4ff9ba69ca1c048737fac99f5858c82c6a0201f0;hpb=211dc651c32bb8998b3eb2fdd3a3b85fc31921ec;p=living-lab-site.git diff --git a/application/controllers/article.php b/application/controllers/article.php index 4ff9ba6..1272425 100644 --- a/application/controllers/article.php +++ b/application/controllers/article.php @@ -5,35 +5,31 @@ * Their content depends on the language. * * The page views are located in "application/views/article/$language/$method". - * Article's name can be set in language file 'article_lang.php' by using an - * entry named "article_$method". If not present "$method" is used as a name. - * Article meta description has the entry "article_$method_description" * * @category Controller * @author Călin-Andrei Burloiu */ class Article extends Article_Controller { + + public function __construct() + { + parent::__construct(); + } public function _remap($method, $params = array()) - { + { + parent::_remap($method, $params); + // ** // ** DATA // ** - $this->lang->load('article'); - $title = $this->lang->line("article_$method"); - if ($title == FALSE) - $title = $method; - $descr = $this->lang->line("article_${method}_description"); - if ($descr == FALSE) - $descr = ''; - $html_params = array( 'title' => - $title.' - '. $this->config->item('site_name'), - 'css' => array( - 'jquery-ui.css' - ), - //'js' => array(), - 'metas' => array('description'=>$descr) + $html_params = array('title' => $this->title.' – ' + . $this->config->item('site_name'), + 'css' => $this->css, + 'js' => $this->js, + 'metas' => + array('description'=>$this->metaDescription) ); $this->load->library('html_head_params', $html_params); @@ -44,8 +40,7 @@ class Article extends Article_Controller { $this->load->view('header', array('selected_menu' => $method)); $main_params['content'] = $this->_load($method, $params); - // TODO side - $main_params['side'] = '

Side Box

TODO: Put side box content here

'; + $main_params['side'] = $this->load->view('side_default.php', NULL, TRUE); $this->load->view('main', $main_params); $this->load->view('footer');