Exemplo n.º 1
0
 /**
  * Initialize list of metaboxes from individual link
  *
  * @return string
  *
  * @access public
  */
 public function initLink()
 {
     if (aam_View_Collection::hasFeature(self::FEATURE_METABOX)) {
         $metabox = new aam_View_Metabox();
         $response = $metabox->initLink();
     } else {
         $response = self::DEFAULT_AJAX_RESPONSE;
     }
     return $response;
 }
Exemplo n.º 2
0
 /**
  * Initialize list of metaboxes from individual link
  *
  * @return string
  *
  * @access protected
  */
 protected function initLink()
 {
     $model = new aam_View_Metabox();
     return $model->initLink();
 }
Exemplo n.º 3
0
 /**
  * Hanlde Metabox initialization process
  *
  * @return void
  *
  * @access public
  */
 public function metaboxes()
 {
     global $post;
     //make sure that nobody is playing with screen options
     if ($post instanceof WP_Post) {
         $screen = $post->post_type;
     } elseif ($screen_object = get_current_screen()) {
         $screen = $screen_object->id;
     } else {
         $screen = '';
     }
     if (aam_Core_Request::get('aam_meta_init')) {
         try {
             $model = new aam_View_Metabox();
             $model->run($screen);
         } catch (Exception $e) {
         }
     } else {
         $this->getUser()->getObject(aam_Control_Object_Metabox::UID)->filterBackend($screen);
     }
 }