예제 #1
0
 public function render()
 {
     global $post;
     wp_nonce_field(plugin_basename(__FILE__), $this->_id . '_noncename');
     echo $this->_control->renderAll($this->_fields, $this->_getValues($post->ID), $this->_id);
     if (is_callable($this->_additionalFunctional)) {
         call_user_func($this->_additionalFunctional);
     }
 }
예제 #2
0
 /**
  * Get object instance
  *
  * @return object
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #3
0
 public function __construct()
 {
     $this->_control = Fruitframe_Control::getInstance();
 }
예제 #4
0
 public function render($user)
 {
     wp_nonce_field(plugin_basename(__FILE__), $this->_id . '_noncename');
     echo $this->_control->renderAll($this->_fields, $this->_getValues($user->ID), $this->_id);
 }