Пример #1
0
 function index()
 {
     ITCoreClass::index();
     if (!empty($_REQUEST['reset_data'])) {
         $this->_reset_data();
     }
     $this->_tab_object->index();
 }
Пример #2
0
 function index()
 {
     ITCoreClass::index();
     if ('views' === $this->_active_tab) {
         if (!empty($_REQUEST['delete_view'])) {
             $this->_delete_view();
         } else {
             if (!empty($_REQUEST['delete_view_screen'])) {
                 $this->_delete_view_screen();
             } else {
                 if (!empty($_REQUEST['modify_view'])) {
                     $this->_modify_view();
                 } else {
                     if (!empty($_REQUEST['modify_view_screen'])) {
                         $this->_modify_view_screen();
                     } else {
                         $this->_modify_views();
                     }
                 }
             }
         }
     } else {
         if (!empty($_REQUEST['cancel'])) {
             $this->_list_layouts();
         } else {
             if (!empty($_REQUEST['reset_data'])) {
                 $this->_reset_data();
             } else {
                 if (!empty($_REQUEST['submit_bulk_action_1']) || !empty($_REQUEST['submit_bulk_action_2'])) {
                     $this->_handle_bulk_action();
                 } else {
                     if (!empty($_REQUEST['hide_widget_areas'])) {
                         $this->_hide_widget_areas();
                     } else {
                         if (!empty($_REQUEST['show_widget_areas'])) {
                             $this->_show_widget_areas();
                         } else {
                             if (!empty($_REQUEST['modify_module_settings'])) {
                                 $this->_modify_module_settings();
                             } else {
                                 if (!empty($_REQUEST['delete_layout'])) {
                                     $this->_delete_layout();
                                 } else {
                                     if (!empty($_REQUEST['delete_layout_screen'])) {
                                         $this->_delete_layout_screen();
                                     } else {
                                         if (!empty($_REQUEST['set_default_layout'])) {
                                             $this->_setDefaultLayout();
                                         } else {
                                             if (!empty($_REQUEST['set_default_layout_screen'])) {
                                                 $this->_setDefaultLayoutScreen();
                                             } else {
                                                 if (!empty($_REQUEST['duplicate_layout'])) {
                                                     $this->_duplicateLayout();
                                                 } else {
                                                     if (!empty($_REQUEST['duplicate_layout_screen'])) {
                                                         $this->_duplicateLayoutScreen();
                                                     } else {
                                                         if (!empty($_REQUEST['add_module'])) {
                                                             $this->_add_module();
                                                         } else {
                                                             if (!empty($_REQUEST['add_module_screen'])) {
                                                                 $this->_add_module_screen();
                                                             } else {
                                                                 if (!empty($_REQUEST['save']) || !empty($_REQUEST['save_and_continue'])) {
                                                                     $this->_save_layout();
                                                                 } else {
                                                                     if (!empty($_REQUEST['layout']) || !empty($_REQUEST['add_layout'])) {
                                                                         $this->_modify_layout();
                                                                     } else {
                                                                         $this->_list_layouts();
                                                                     }
                                                                 }
                                                             }
                                                         }
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }
Пример #3
0
 function add_admin_styles()
 {
     ITCoreClass::add_admin_styles();
     wp_enqueue_style("{$this->_var}-seo", "{$this->_plugin_url}/css/seo-editor.css");
 }