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); } }
/** * Get object instance * * @return object */ public static function getInstance() { if (null === self::$_instance) { self::$_instance = new self(); } return self::$_instance; }
public function __construct() { $this->_control = Fruitframe_Control::getInstance(); }
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); }