From d4b234f611d405b8a7935a86f50ec071779c2729 Mon Sep 17 00:00:00 2001 From: Calin Burloiu Date: Thu, 25 Aug 2011 18:30:31 +0300 Subject: [PATCH] layout corrections in watch video page --- application/controllers/video.php | 12 ++++++++++-- application/views/video/watch_view.php | 2 ++ css/video.css | 6 ++++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/application/controllers/video.php b/application/controllers/video.php index 6f22400..5a4b9d5 100644 --- a/application/controllers/video.php +++ b/application/controllers/video.php @@ -33,6 +33,9 @@ class Video extends CI_Controller { { $this->load->helper('url'); + // ** + // ** LOADING MODEL + // ** // Retrieve video information. $this->load->model('videos_model'); $data['video'] = $this->videos_model->get_video($id, $name); @@ -54,8 +57,6 @@ class Video extends CI_Controller { //'metas' => array('description'=>'','keywords'=>'') ); $this->load->library('html_head_params', $params); - $this->load->view('html_begin', $this->html_head_params); - $this->load->view('header'); // Preloading video plugin. // TODO plugin auto: type and format @@ -67,6 +68,13 @@ class Video extends CI_Controller { // $data['plugin_content'] = $this->_plugin('ns-html5', // $data['video']['url'][0], TRUE); + // ** + // ** LOADING VIEWS + // ** + $this->load->view('html_begin', $this->html_head_params); + $this->load->view('header'); + + //$main_params['content'] = $this->load->view('video/watch_view', $data, TRUE); $this->load->view('video/watch_view', $data); $this->load->view('footer'); diff --git a/application/views/video/watch_view.php b/application/views/video/watch_view.php index 231b702..36ae1e0 100644 --- a/application/views/video/watch_view.php +++ b/application/views/video/watch_view.php @@ -3,6 +3,7 @@ siteUrl = ''; +
+