示例#1
0
文件: schema.php 项目: juaniiie/mwi
 public function uninstall()
 {
     //
     // REMOVE THEME
     //
     $bke = Themes\Model\Theme::where_slug('base_bke')->first();
     if (isset($bke) and !empty($bke)) {
         $bke->delete();
     }
     $fte = Themes\Model\Theme::where_slug('base_fte')->first();
     if (isset($fte) and !empty($fte)) {
         $fte->delete();
     }
     //
     // REMOVE THEME SETTINGS
     //
     $settings = Settings\Model\Setting::where_module_slug('themes')->get();
     if (isset($settings) and !empty($settings)) {
         foreach ($settings as $setting) {
             $setting->delete();
         }
     }
 }
示例#2
0
文件: themes.php 项目: juaniiie/mwi
 public function get_edit($theme_id)
 {
     $this->data['section_bar'] = array(__('themes::lang.Frontend Themes')->get(ADM_LANG) => URL::base() . '/' . ADM_URI . '/' . 'themes', __('themes::lang.Backend Themes')->get(ADM_LANG) => URL::base() . '/' . ADM_URI . '/' . 'themes/backend', __('themes::lang.Not Installed Themes')->get(ADM_LANG) => URL::base() . '/' . ADM_URI . '/' . 'themes/not_installed', __('themes::lang.Edit Layout')->get(ADM_LANG) => URL::base() . '/' . ADM_URI . '/' . 'themes/edit_layout/' . $theme_id);
     $this->data['section_bar_active'] = __('themes::lang.Edit Layout')->get(ADM_LANG);
     $this->data['theme_view'] = Themes\Model\Theme::find($theme_id);
     return $this->theme->render('themes::backend.edit_layout', $this->data);
 }