Example #1
0
 function _register_meta_boxes()
 {
     $boxes = builder_get_settings_editor_boxes($this->_parent->_active_tab);
     foreach ((array) $boxes as $var => $args) {
         $this->_add_meta_box($var, $args);
     }
 }
Example #2
0
 function _register_meta_boxes()
 {
     $boxes = builder_get_settings_editor_boxes('basic');
     $has_custom_boxes = false;
     foreach ((array) $boxes as $var => $args) {
         if (true !== $args['_builtin']) {
             $has_custom_boxes = true;
         }
     }
     if (false === $has_custom_boxes && has_action('builder_custom_settings')) {
         builder_add_settings_editor_box(__('Child Theme Settings', 'it-l10n-Builder-Cohen'), array($this, 'legacy_custom_meta_box_handler'));
     }
     $boxes = builder_get_settings_editor_boxes('basic');
     foreach ((array) $boxes as $var => $args) {
         $this->_add_meta_box($var, $args);
     }
 }