← All changes
|
application/modules/wordpress/controllers/admin/shortcode.php
+4
-12
3.2.4
→
2.2.3
View file →
| @@ -1,24 +1,16 @@ | ||
| 1 | 1 | <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); |
| 2 | 2 | |
| 3 | -class Shortcode_Admin_Wordpress_HC_controller extends _Backend_HC_controller | |
| 3 | +class Wordpress_Shortcode_controller extends Backend_controller | |
| 4 | 4 | { |
| 5 | 5 | function index() |
| 6 | 6 | { |
| 7 | 7 | $app = $this->config->item('nts_app'); |
| 8 | + $this->data[ 'shortcode' ] = '[' . $app . ']'; | |
| 9 | + $this->set_include( 'shortcode', 'wordpress/admin' ); | |
| 8 | 10 | |
| 9 | - /* render view */ | |
| 10 | - $this->layout->set_partial( | |
| 11 | - 'content', | |
| 12 | - $this->render( | |
| 13 | - 'wordpress/admin/shortcode', | |
| 14 | - array( | |
| 15 | - 'shortcode' => $app, | |
| 16 | - ) | |
| 17 | - ) | |
| 18 | - ); | |
| 19 | - $this->layout(); | |
| 11 | + $this->load->view( $this->template, $this->data); | |
| 20 | 12 | } |
| 21 | 13 | } |
| 22 | 14 | |
| 23 | 15 | /* End of file customers.php */ |
| 24 | 16 | /* Location: ./application/controllers/admin/categories.php */ |