Example #1
0
 public function setting()
 {
     $module_directory = $this->cms_module_path();
     $data = array();
     $data['IS_ACTIVE'] = $this->IS_ACTIVE;
     $data['module_directory'] = $module_directory;
     if (!$this->IS_ACTIVE) {
         // get setting
         $module_table_prefix = $this->input->post('module_table_prefix');
         $module_prefix = $this->input->post('module_prefix');
         // set values
         if (isset($module_table_prefix) && $module_table_prefix !== FALSE) {
             cms_module_config($module_directory, 'module_table_prefix', $module_table_prefix);
         }
         if (isset($module_prefix) && $module_prefix !== FALSE) {
             cms_module_prefix($module_directory, $module_prefix);
         }
         // get values
         $data['module_table_prefix'] = cms_module_config($module_directory, 'module_table_prefix');
         $data['module_prefix'] = cms_module_prefix($module_directory);
     } else {
         $slideshow_height = $this->input->post('slideshow_height');
         if (isset($slideshow_height) && $slideshow_height !== FALSE) {
             cms_module_config($module_directory, 'slideshow_height', $slideshow_height);
         }
         // get values
         $data['slideshow_height'] = cms_module_config($module_directory, 'slideshow_height');
     }
     $navigation_name = $this->cms_navigation_name($module_directory . '/install/setting');
     if ($navigation_name === NULL || $navigation_name == '') {
         $navigation_name = 'main_module_management';
     }
     $this->view($module_directory . '/install_setting', $data, $navigation_name);
 }
 public function slide()
 {
     $this->load->model('slide_model');
     $data['slide_list'] = $this->slide_model->get();
     $data['slide_height'] = cms_module_config($this->cms_module_path(), 'slideshow_height');
     $data['module_path'] = $this->cms_module_path();
     if (count($data['slide_list']) > 0) {
         $this->view($this->cms_module_path() . '/widget_slide', $data);
     }
 }
Example #3
0
 public function setting()
 {
     $module_directory = $this->cms_module_path();
     $data = array();
     $data['IS_ACTIVE'] = $this->IS_ACTIVE;
     $data['module_directory'] = $module_directory;
     if (!$this->IS_ACTIVE) {
         // get setting
         $module_table_prefix = $this->input->post('module_table_prefix');
         $module_prefix = $this->input->post('module_prefix');
         // set values
         if (isset($module_table_prefix) && $module_table_prefix !== FALSE) {
             cms_module_config($module_directory, 'module_table_prefix', $module_table_prefix);
         }
         if (isset($module_prefix) && $module_prefix !== FALSE) {
             cms_module_prefix($module_directory, $module_prefix);
         }
         // get values
         $data['module_table_prefix'] = cms_module_config($module_directory, 'module_table_prefix');
         $data['module_prefix'] = cms_module_prefix($module_directory);
     }
     $this->view($module_directory . '/install_setting', $data, 'main_module_management');
 }
Example #4
0
function cms_module_prefix($module_directory, $new_prefix = NULL)
{
    return $module_table_prefix = cms_module_config($module_directory, 'module_prefix', $new_prefix);
}