main_class ? ' ' . $this->main_class : '' ) . '">
' . $this->get_loading_icon() . '
'; $app_options = $this->get_app_options(); $app_helper_options = array( 'messages' => array( 'yes' => __( 'Yes', 'ari-stream-quiz' ), 'no' => __( 'No', 'ari-stream-quiz' ), 'ok' => __( 'OK', 'ari-stream-quiz' ), 'close' => __( 'Close', 'ari-stream-quiz' ), ) ); printf( '', json_encode( $app_options, JSON_NUMERIC_CHECK ), json_encode( $app_helper_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', ARISTREAMQUIZ_MESSAGETYPE_NOTICE, 'alpha' ); $message = Request::get_var( 'msg' ); printf( '

%1$s

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