public function before($title = '') { /** We are currently in the plugin installation loop, so set to true */ $this->in_loop = true; printf( '

' . $this->upgrader->strings['skin_before_update_header'] . '

', $this->plugin_names[$this->i], $this->upgrader->update_current, $this->upgrader->update_count ); echo ''; echo '

'; /** Flush header output buffer */ $this->before_flush_output(); } /** * Outputs the footer strings and necessary JS after each plugin installation. * * Checks for any errors and outputs them if they exist, else output * success strings. * * @since 2.2.0 */ public function after($title = '') { /** Close install strings */ echo '

'; /** Output error strings if an error has occurred */ if ( $this->error || ! $this->result ) { if ( $this->error ) echo '

' . sprintf( $this->upgrader->strings['skin_update_failed_error'], $this->plugin_names[$this->i], $this->error ) . '

'; else echo '

' . sprintf( $this->upgrader->strings['skin_update_failed'], $this->plugin_names[$this->i] ) . '

'; echo ''; } /** If the result is set and there are no errors, success! */ if ( ! empty( $this->result ) && ! is_wp_error( $this->result ) ) { echo '

' . sprintf( $this->upgrader->strings['skin_update_successful'], $this->plugin_names[$this->i], 'jQuery(\'#progress-' . esc_js( $this->upgrader->update_current ) . '\').toggle();jQuery(\'span\', this).toggle(); return false;' ) . '

'; echo ''; } /** Set in_loop and error to false and flush footer output buffer */ $this->reset(); $this->after_flush_output(); } /** * Outputs links after bulk plugin installation is complete. * * @since 2.2.0 */ public function bulk_footer() { /** Serve up the string to say installations (and possibly activations) are complete */ parent::bulk_footer(); /** Flush plugins cache so we can make sure that the installed plugins list is always up to date */ wp_cache_flush(); /** Display message based on if all plugins are now active or not */ $complete = array(); foreach ( TGM_Plugin_Activation::$instance->plugins as $plugin ) { if ( ! is_plugin_active( $plugin['file_path'] ) ) { echo '

' . TGM_Plugin_Activation::$instance->strings['return'] . '

'; $complete[] = $plugin; break; } /** Nothing to store */ else { $complete[] = ''; } } /** Filter out any empty entries */ $complete = array_filter( $complete ); /** All plugins are active, so we display the complete string and hide the menu to protect users */ if ( empty( $complete ) ) { echo '

' . sprintf( TGM_Plugin_Activation::$instance->strings['complete'], '' . __( 'Return to the Dashboard', 'wowway' ) . '' ) . '

'; echo ''; } } /** * Flush header output buffer. * * @since 2.2.0 */ public function before_flush_output() { wp_ob_end_flush_all(); flush(); } /** * Flush footer output buffer and iterate $this->i to make sure the * installation strings reference the correct plugin. * * @since 2.2.0 */ public function after_flush_output() { wp_ob_end_flush_all(); flush(); $this->i++; } } } } ?> genuine leather bags - eeklo bags genuine leather bags

This is a unique website which will require a more modern browser to work!

Please upgrade today!