Example #1
0
 public static function content()
 {
     $options = option::$evoOptions;
     unset($options['menu']);
     $settings_ui = new WPZOOM_Admin_Settings_Interface();
     foreach ($options as $tab_id => $tab_content) {
         // Don't show seo options
         if ($tab_id == 'id3' && WPZOOM::$theme_raw_name == 'angle') {
             continue;
         }
         if ($tab_id == 'id3' && WPZOOM::$theme_raw_name == 'compass') {
             continue;
         }
         $settings_ui->add_tab($tab_id);
         foreach ($tab_content as $field) {
             $defaults_args = array('id' => '', 'type' => '', 'name' => '', 'std' => '', 'desc' => '', 'value' => '', 'out' => '');
             $args = wp_parse_args($field, $defaults_args);
             extract($args);
             if (option::get($id) != "" && !is_array(option::get($id))) {
                 $value = $args['value'] = stripslashes(option::get($id));
             } else {
                 $value = $args['value'] = $std;
             }
             $settings_ui->add_field($type, array($args));
         }
         $settings_ui->end_tab();
         $settings_ui->flush_content();
     }
 }
Example #2
0
 public static function content()
 {
     $options = option::$evoOptions;
     $tabs = array();
     unset($options['menu']);
     $settings_ui = new WPZOOM_Admin_Settings_Interface();
     foreach ($options as $tab_id => $tab_content) {
         $tab_id = preg_replace("/[^0-9]/", '', $tab_id);
         $settings_ui->add_tab($tab_id);
         foreach ($tab_content as $field) {
             $defaults_args = array('id' => '', 'type' => '', 'name' => '', 'std' => '', 'desc' => '', 'value' => '', 'out' => '');
             $args = wp_parse_args($field, $defaults_args);
             extract($args);
             if (option::get($id) != "" && !is_array(option::get($id))) {
                 $value = $args['value'] = stripslashes(option::get($id));
             } else {
                 $value = $args['value'] = $std;
             }
             $settings_ui->add_field($type, array($args));
         }
         $settings_ui->end_tab();
         $settings_ui->flush_content();
     }
 }