'; $this->render_message(); $this->render_title(); parent::display( $tmpl ); echo ''; $app_options = $this->get_app_options(); $global_app_options = App_Helper::get_global_app_options( 'ari_cf7connector_plugin' ); $global_app_options['app'] = $app_options; wp_localize_script( 'ari-cf7connector-app', 'ARI_APP', $global_app_options ); } public function set_title( $title ) { $this->title = $title; } protected function render_title() { if ( $this->title ) printf( '

%s

', $this->title ); } protected function render_message() { if ( ! Request::exists( 'msg' ) ) return ; $message_type = Request::get_var( 'msg_type', ARICF7CONNECTOR_MESSAGETYPE_NOTICE, 'alpha' ); $message = Request::get_var( 'msg' ); printf( '

%1$s

', $message, $message_type ); } protected function get_app_options() { $app_options = null; return $app_options; } }