From 7086111ad4dd997e12a3220e1ee60c9b9bcf0bb8 Mon Sep 17 00:00:00 2001 From: Charles Date: Tue, 7 Jan 2020 13:06:14 +0100 Subject: Added wordpress --- .../plugins/akismet/class.akismet-widget.php | 114 +++++++++++++++++++++ 1 file changed, 114 insertions(+) create mode 100644 srcs/wordpress/wp-content/plugins/akismet/class.akismet-widget.php (limited to 'srcs/wordpress/wp-content/plugins/akismet/class.akismet-widget.php') diff --git a/srcs/wordpress/wp-content/plugins/akismet/class.akismet-widget.php b/srcs/wordpress/wp-content/plugins/akismet/class.akismet-widget.php new file mode 100644 index 0000000..55b0f35 --- /dev/null +++ b/srcs/wordpress/wp-content/plugins/akismet/class.akismet-widget.php @@ -0,0 +1,114 @@ + __( 'Display the number of spam comments Akismet has caught' , 'akismet') ) + ); + + if ( is_active_widget( false, false, $this->id_base ) ) { + add_action( 'wp_head', array( $this, 'css' ) ); + } + } + + function css() { +?> + + + + + +

+ + +

+ + + +
+ %1$s spam blocked by Akismet', '%1$s spam blocked by Akismet', $count , 'akismet'), number_format_i18n( $count ) ); ?> +
+ +