'; $this->render_message(); $this->render_title(); parent::display( $tmpl ); echo ''; $app_options = $this->get_app_options(); $app_helper_options = array( 'messages' => array( 'yes' => __( 'Yes', 'ari-adminer' ), 'no' => __( 'No', 'ari-adminer' ), 'ok' => __( 'OK', 'ari-adminer' ), 'cancel' => __( 'Cancel', 'ari-adminer' ), 'close' => __( 'Close', 'ari-adminer' ), ) ); $global_app_options = array( 'options' => $app_helper_options, 'app' => $app_options, ); printf( '', json_encode( $global_app_options, JSON_NUMERIC_CHECK ) ); } 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', ARIADMINER_MESSAGETYPE_NOTICE, 'alpha' ); $message = Request::get_var( 'msg' ); printf( '

%1$s

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