You appear to be a bot. Output may be restricted
Description
Fires when the dashboard is loaded.
Usage
Jetpack::dashboard_widget_footer();
Parameters
Returns
void
Source
File name: jetpack/class.jetpack.php
Lines:
1 to 68 of 68
public static function dashboard_widget_footer() { ?> <footer> <div class="protect"> <h3><?php esc_html_e( 'Brute force attack protection', 'jetpack' ); ?></h3> <?php if ( self::is_module_active( 'protect' ) ) : ?> <p class="blocked-count"> <?php echo number_format_i18n( get_site_option( 'jetpack_protect_blocked_attempts', 0 ) ); ?> </p> <p><?php echo esc_html_x( 'Blocked malicious login attempts', '{#} Blocked malicious login attempts -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p> <?php elseif ( current_user_can( 'jetpack_activate_modules' ) && ! ( new Status() )->is_offline_mode() ) : ?> <a href=" <?php echo esc_url( wp_nonce_url( self::admin_url( array( 'action' => 'activate', 'module' => 'protect', ) ), 'jetpack_activate-protect' ) ); ?> " class="button button-jetpack" title="<?php esc_attr_e( 'Protect helps to keep you secure from brute-force login attacks.', 'jetpack' ); ?>"> <?php esc_html_e( 'Activate brute force attack protection', 'jetpack' ); ?> </a> <?php else : ?> <?php esc_html_e( 'Brute force attack protection is inactive.', 'jetpack' ); ?> <?php endif; ?> </div> <div class="akismet"> <h3><?php esc_html_e( 'Anti-spam', 'jetpack' ); ?></h3> <?php if ( is_plugin_active( 'akismet/akismet.php' ) ) : ?> <p class="blocked-count"> <?php echo number_format_i18n( get_option( 'akismet_spam_count', 0 ) ); ?> </p> <p><?php echo esc_html_x( 'Blocked spam comments.', '{#} Spam comments blocked by Akismet -- number is on a prior line, text is a caption.', 'jetpack' ); ?></p> <?php elseif ( current_user_can( 'activate_plugins' ) && ! is_wp_error( validate_plugin( 'akismet/akismet.php' ) ) ) : ?> <a href=" <?php echo esc_url( wp_nonce_url( add_query_arg( array( 'action' => 'activate', 'plugin' => 'akismet/akismet.php', ), admin_url( 'plugins.php' ) ), 'activate-plugin_akismet/akismet.php' ) ); ?> " class="button button-jetpack"> <?php esc_html_e( 'Activate Anti-spam', 'jetpack' ); ?> </a> <?php else : ?> <p><a href="<?php echo esc_url( 'https://akismet.com/?utm_source=jetpack&utm_medium=link&utm_campaign=Jetpack%20Dashboard%20Widget%20Footer%20Link' ); ?>"><?php esc_html_e( 'Anti-spam can help to keep your blog safe from spam!', 'jetpack' ); ?></a></p> <?php endif; ?> </div> </footer> <?php }