Plugin Directory

Changeset 3461476


Ignore:
Timestamp:
02/14/2026 07:07:57 PM (6 weeks ago)
Author:
aamato
Message:

Release 1.1.2 — Hero banner showing total spam blocked on Statistics page

Location:
spamanvil
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • spamanvil/tags/1.1.2/admin/css/admin.css

    r3461369 r3461476  
    6666    color: #646970;
    6767    margin-top: 4px;
     68}
     69
     70/* Hero Banner */
     71.spamanvil-hero-banner {
     72    background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
     73    border-radius: 8px;
     74    padding: 40px 30px;
     75    text-align: center;
     76    margin-bottom: 30px;
     77}
     78
     79.spamanvil-hero-number {
     80    font-size: 72px;
     81    font-weight: 800;
     82    color: #fff;
     83    line-height: 1;
     84    letter-spacing: -2px;
     85}
     86
     87.spamanvil-hero-label {
     88    font-size: 20px;
     89    font-weight: 600;
     90    color: #d63638;
     91    margin-top: 8px;
     92    text-transform: uppercase;
     93    letter-spacing: 2px;
     94}
     95
     96.spamanvil-hero-breakdown {
     97    font-size: 14px;
     98    color: #a7aaad;
     99    margin-top: 16px;
     100}
     101
     102.spamanvil-hero-breakdown strong {
     103    color: #fff;
    68104}
    69105
     
    350386/* Responsive */
    351387@media screen and (max-width: 782px) {
     388    .spamanvil-hero-banner {
     389        padding: 30px 20px;
     390    }
     391
     392    .spamanvil-hero-number {
     393        font-size: 48px;
     394    }
     395
     396    .spamanvil-hero-label {
     397        font-size: 16px;
     398    }
     399
     400    .spamanvil-hero-breakdown {
     401        font-size: 12px;
     402    }
     403
    352404    .spamanvil-stats-grid {
    353405        grid-template-columns: repeat(2, 1fr);
  • spamanvil/tags/1.1.2/admin/views/settings-stats.php

    r3461369 r3461476  
    99$summary = $this->stats->get_summary( 30 );
    1010$daily   = $this->stats->get_daily( 30 );
     11
     12$alltime_spam      = $this->stats->get_total( 'spam_detected' );
     13$alltime_heuristic = $this->stats->get_total( 'heuristic_blocked' );
     14$alltime_ip        = $this->stats->get_total( 'ip_blocked' );
     15$alltime_blocked   = $alltime_spam + $alltime_heuristic + $alltime_ip;
    1116?>
     17
     18<div class="spamanvil-hero-banner">
     19    <div class="spamanvil-hero-number"><?php echo esc_html( number_format_i18n( $alltime_blocked ) ); ?></div>
     20    <div class="spamanvil-hero-label"><?php esc_html_e( 'Spam Comments Blocked', 'spamanvil' ); ?></div>
     21    <div class="spamanvil-hero-breakdown">
     22        <?php
     23        printf(
     24            /* translators: 1: LLM spam count, 2: heuristic count, 3: IP blocked count */
     25            esc_html__( '%1$s by AI  |  %2$s by Heuristics  |  %3$s by IP Blocking', 'spamanvil' ),
     26            '<strong>' . esc_html( number_format_i18n( $alltime_spam ) ) . '</strong>',
     27            '<strong>' . esc_html( number_format_i18n( $alltime_heuristic ) ) . '</strong>',
     28            '<strong>' . esc_html( number_format_i18n( $alltime_ip ) ) . '</strong>'
     29        );
     30        ?>
     31    </div>
     32</div>
     33
     34<h2><?php esc_html_e( 'Last 30 Days', 'spamanvil' ); ?></h2>
    1235
    1336<div class="spamanvil-stats-grid">
  • spamanvil/tags/1.1.2/readme.txt

    r3461389 r3461476  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.1.1
     8Stable tag: 1.1.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    211211== Changelog ==
    212212
     213= 1.1.2 =
     214* Feature: All-time "Spam Comments Blocked" hero banner on Statistics page with AI, heuristic, and IP blocking breakdown
     215* Enhancement: 30-day stats now clearly labeled under a "Last 30 Days" heading
     216
    213217= 1.1.1 =
    214218* Feature: Data preservation on uninstall — settings, stats, logs, and blocked IPs are kept by default when reinstalling
  • spamanvil/tags/1.1.2/spamanvil.php

    r3461389 r3461476  
    44 * Plugin URI:        https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/
    55 * Description:       Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics.
    6  * Version:           1.1.1
     6 * Version:           1.1.2
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.1.1' );
     21define( 'SPAMANVIL_VERSION', '1.1.2' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
  • spamanvil/trunk/admin/css/admin.css

    r3461369 r3461476  
    6666    color: #646970;
    6767    margin-top: 4px;
     68}
     69
     70/* Hero Banner */
     71.spamanvil-hero-banner {
     72    background: linear-gradient(135deg, #1d2327 0%, #2c3338 100%);
     73    border-radius: 8px;
     74    padding: 40px 30px;
     75    text-align: center;
     76    margin-bottom: 30px;
     77}
     78
     79.spamanvil-hero-number {
     80    font-size: 72px;
     81    font-weight: 800;
     82    color: #fff;
     83    line-height: 1;
     84    letter-spacing: -2px;
     85}
     86
     87.spamanvil-hero-label {
     88    font-size: 20px;
     89    font-weight: 600;
     90    color: #d63638;
     91    margin-top: 8px;
     92    text-transform: uppercase;
     93    letter-spacing: 2px;
     94}
     95
     96.spamanvil-hero-breakdown {
     97    font-size: 14px;
     98    color: #a7aaad;
     99    margin-top: 16px;
     100}
     101
     102.spamanvil-hero-breakdown strong {
     103    color: #fff;
    68104}
    69105
     
    350386/* Responsive */
    351387@media screen and (max-width: 782px) {
     388    .spamanvil-hero-banner {
     389        padding: 30px 20px;
     390    }
     391
     392    .spamanvil-hero-number {
     393        font-size: 48px;
     394    }
     395
     396    .spamanvil-hero-label {
     397        font-size: 16px;
     398    }
     399
     400    .spamanvil-hero-breakdown {
     401        font-size: 12px;
     402    }
     403
    352404    .spamanvil-stats-grid {
    353405        grid-template-columns: repeat(2, 1fr);
  • spamanvil/trunk/admin/views/settings-stats.php

    r3461369 r3461476  
    99$summary = $this->stats->get_summary( 30 );
    1010$daily   = $this->stats->get_daily( 30 );
     11
     12$alltime_spam      = $this->stats->get_total( 'spam_detected' );
     13$alltime_heuristic = $this->stats->get_total( 'heuristic_blocked' );
     14$alltime_ip        = $this->stats->get_total( 'ip_blocked' );
     15$alltime_blocked   = $alltime_spam + $alltime_heuristic + $alltime_ip;
    1116?>
     17
     18<div class="spamanvil-hero-banner">
     19    <div class="spamanvil-hero-number"><?php echo esc_html( number_format_i18n( $alltime_blocked ) ); ?></div>
     20    <div class="spamanvil-hero-label"><?php esc_html_e( 'Spam Comments Blocked', 'spamanvil' ); ?></div>
     21    <div class="spamanvil-hero-breakdown">
     22        <?php
     23        printf(
     24            /* translators: 1: LLM spam count, 2: heuristic count, 3: IP blocked count */
     25            esc_html__( '%1$s by AI  |  %2$s by Heuristics  |  %3$s by IP Blocking', 'spamanvil' ),
     26            '<strong>' . esc_html( number_format_i18n( $alltime_spam ) ) . '</strong>',
     27            '<strong>' . esc_html( number_format_i18n( $alltime_heuristic ) ) . '</strong>',
     28            '<strong>' . esc_html( number_format_i18n( $alltime_ip ) ) . '</strong>'
     29        );
     30        ?>
     31    </div>
     32</div>
     33
     34<h2><?php esc_html_e( 'Last 30 Days', 'spamanvil' ); ?></h2>
    1235
    1336<div class="spamanvil-stats-grid">
  • spamanvil/trunk/readme.txt

    r3461389 r3461476  
    66Tested up to: 6.9
    77Requires PHP: 7.4
    8 Stable tag: 1.1.1
     8Stable tag: 1.1.2
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    211211== Changelog ==
    212212
     213= 1.1.2 =
     214* Feature: All-time "Spam Comments Blocked" hero banner on Statistics page with AI, heuristic, and IP blocking breakdown
     215* Enhancement: 30-day stats now clearly labeled under a "Last 30 Days" heading
     216
    213217= 1.1.1 =
    214218* Feature: Data preservation on uninstall — settings, stats, logs, and blocked IPs are kept by default when reinstalling
  • spamanvil/trunk/spamanvil.php

    r3461389 r3461476  
    44 * Plugin URI:        https://software.amato.com.br/spamanvil-antispam-plugin-for-wordpress/
    55 * Description:       Blocks comment spam using AI/LLM services with support for multiple providers, async processing, and intelligent heuristics.
    6  * Version:           1.1.1
     6 * Version:           1.1.2
    77 * Requires at least: 5.8
    88 * Requires PHP:      7.4
     
    1919}
    2020
    21 define( 'SPAMANVIL_VERSION', '1.1.1' );
     21define( 'SPAMANVIL_VERSION', '1.1.2' );
    2222define( 'SPAMANVIL_DB_VERSION', '1.0.0' );
    2323define( 'SPAMANVIL_PLUGIN_FILE', __FILE__ );
Note: See TracChangeset for help on using the changeset viewer.