Plugin Directory

Changeset 3360206


Ignore:
Timestamp:
09/12/2025 02:01:52 AM (5 months ago)
Author:
bluefuton
Message:

Akismet: improve setup page by outlining key benefits

Location:
akismet/trunk
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • akismet/trunk/_inc/akismet-admin.css

    r3316601 r3360206  
    341341}
    342342
     343/* Setup */
     344.akismet-setup-instructions__heading {
     345    font-size: 1.375rem;
     346    font-weight: 700;
     347    padding-block-end: 0;
     348}
     349
     350h3.akismet-setup-instructions__subheading {
     351    color: var(--akismet-color-dark-grey);
     352    font-size: 1rem;
     353    font-weight: 400;
     354    line-height: 1.5;
     355    margin: 0 0 1.25rem;
     356    padding-block-start: 1rem;
     357}
     358
     359.akismet-setup-instructions__feature-list {
     360    list-style: none;
     361    margin: 1rem 0.5rem 1.5rem;
     362    max-width: 640px;
     363    padding: 0 1rem;
     364}
     365
     366.akismet-setup-instructions__feature {
     367    align-items: start;
     368    display: flex;
     369    margin-block-end: 1rem;
     370    text-align: left;
     371}
     372
     373.akismet-setup-instructions__icon {
     374    height: 20px;
     375    width: 20px;
     376}
     377
     378.akismet-setup-instructions__body {
     379    flex: 1;
     380    padding-inline-start: 0.5rem;
     381}
     382
     383.akismet-setup-instructions__title {
     384    color: #1d2327;
     385    font-size: 1rem;
     386    font-weight: 600;
     387    line-height: 1.3;
     388    margin: 0;
     389    text-align: left;
     390}
     391
     392p.akismet-setup-instructions__text {
     393    color: var(--akismet-color-grey-80);
     394    font-size: 0.875rem;
     395    line-height: 1.5;
     396    margin: 0.25rem 0 0;
     397    padding: 0;
     398    text-align: left;
     399}
     400
     401.akismet-setup-instructions__button,
     402.akismet-setup-instructions__button:hover,
     403.akismet-setup-instructions__button:visited {
     404    font-size: 1rem;
     405    margin-inline-start: 1.5rem;
     406}
     407
    343408/* Setup - API key input */
    344409.akismet-enter-api-key-box {
  • akismet/trunk/_inc/akismet.css

    r3316601 r3360206  
    433433}
    434434
    435 .akismet-setup-instructions {
    436     text-align: center;
    437 }
    438 
    439435.akismet-setup-instructions form {
    440436    padding-bottom: 1.5rem;
  • akismet/trunk/_inc/rtl/akismet-admin-rtl.css

    r3316601 r3360206  
    1 /* This file was automatically generated on Jun 19 2025 22:31:12 */
     1/* This file was automatically generated on Aug 29 2025 01:35:40 */
    22
    33body {
     
    343343}
    344344
     345/* Setup */
     346.akismet-setup-instructions__heading {
     347    font-size: 1.375rem;
     348    font-weight: 700;
     349    padding-block-end: 0;
     350}
     351
     352h3.akismet-setup-instructions__subheading {
     353    color: var(--akismet-color-dark-grey);
     354    font-size: 1rem;
     355    font-weight: 400;
     356    line-height: 1.5;
     357    margin: 0 0 1.25rem;
     358    padding-block-start: 1rem;
     359}
     360
     361.akismet-setup-instructions__feature-list {
     362    list-style: none;
     363    margin: 1rem 0.5rem 1.5rem;
     364    max-width: 640px;
     365    padding: 0 1rem;
     366}
     367
     368.akismet-setup-instructions__feature {
     369    align-items: start;
     370    display: flex;
     371    margin-block-end: 1rem;
     372    text-align: right;
     373}
     374
     375.akismet-setup-instructions__icon {
     376    height: 20px;
     377    width: 20px;
     378}
     379
     380.akismet-setup-instructions__body {
     381    flex: 1;
     382    padding-inline-start: 0.5rem;
     383}
     384
     385.akismet-setup-instructions__title {
     386    color: #1d2327;
     387    font-size: 1rem;
     388    font-weight: 600;
     389    line-height: 1.3;
     390    margin: 0;
     391    text-align: right;
     392}
     393
     394p.akismet-setup-instructions__text {
     395    color: var(--akismet-color-grey-80);
     396    font-size: 0.875rem;
     397    line-height: 1.5;
     398    margin: 0.25rem 0 0;
     399    padding: 0;
     400    text-align: right;
     401}
     402
     403.akismet-setup-instructions__button,
     404.akismet-setup-instructions__button:hover,
     405.akismet-setup-instructions__button:visited {
     406    font-size: 1rem;
     407    margin-inline-start: 1.5rem;
     408}
     409
    345410/* Setup - API key input */
    346411.akismet-enter-api-key-box {
  • akismet/trunk/_inc/rtl/akismet-rtl.css

    r3316601 r3360206  
    1 /* This file was automatically generated on Jun 19 2025 22:00:12 */
     1/* This file was automatically generated on Aug 28 2025 23:50:16 */
    22
    33.wp-admin.jetpack_page_akismet-key-config, .wp-admin.settings_page_akismet-key-config {
     
    435435}
    436436
    437 .akismet-setup-instructions {
    438     text-align: center;
    439 }
    440 
    441437.akismet-setup-instructions form {
    442438    padding-bottom: 1.5rem;
  • akismet/trunk/akismet.php

    r3348405 r3360206  
    77Plugin URI: https://akismet.com/
    88Description: Used by millions, Akismet is quite possibly the best way in the world to <strong>protect your blog from spam</strong>. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key.
    9 Version: 5.5.1a4
     9Version: 5.5.1a5
    1010Requires at least: 5.8
    1111Requires PHP: 7.2
     
    4040}
    4141
    42 define( 'AKISMET_VERSION', '5.5.1a4' );
     42define( 'AKISMET_VERSION', '5.5.1a5' );
    4343define( 'AKISMET__MINIMUM_WP_VERSION', '5.8' );
    4444define( 'AKISMET__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
  • akismet/trunk/readme.txt

    r3346674 r3360206  
    3737
    3838* Improve caching of compatible plugins.
     39* Explain the key features of Akismet more clearly on the setup page.
    3940
    4041= 5.5 =
  • akismet/trunk/views/connect-jp.php

    r3182785 r3360206  
    11<?php
     2declare( strict_types = 1 );
    23
    34//phpcs:disable VariableAnalysis
    45// There are "undefined" variables here because they're defined in the code that includes this file as a template.
    5 
    66?>
    77<div class="akismet-box">
  • akismet/trunk/views/setup.php

    r3182785 r3360206  
    1 <div class="akismet-setup-instructions">
    2     <p><?php esc_html_e( 'Set up your Akismet account to enable spam filtering on this site.', 'akismet' ); ?></p>
     1<?php
     2$tick_icon = '<svg class="akismet-setup-instructions__icon" width="48" height="48" viewBox="0 0 48 48" aria-hidden="true" focusable="false" xmlns="http://www.w3.org/2000/svg">
     3  <circle cx="24" cy="24" r="22" fill="#2E7D32"/>
     4  <path d="M16 24l6 6 12-14" fill="none" stroke="#FFFFFF" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/>
     5</svg>';
     6?>
     7<section class="akismet-setup-instructions">
     8    <h2 class="akismet-setup-instructions__heading"><?php esc_html_e( 'Eliminate spam from your site', 'akismet' ); ?></h2>
     9
     10    <h3 class="akismet-setup-instructions__subheading">
     11        <?php echo esc_html__( 'Protect your site from comment spam and contact form spam — automatically.', 'akismet' ); ?>
     12    </h3>
     13
     14    <ul class="akismet-setup-instructions__feature-list">
     15        <li class="akismet-setup-instructions__feature">
     16            <?php echo $tick_icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
     17            <div class="akismet-setup-instructions__body">
     18                <h4 class="akismet-setup-instructions__title">
     19                    <?php echo esc_html__( 'Machine learning accuracy', 'akismet' ); ?>
     20                </h4>
     21                <p class="akismet-setup-instructions__text">
     22                    <?php echo esc_html__( 'Learns from billions of spam signals across the web to stop junk before it reaches you.', 'akismet' ); ?>
     23                </p>
     24            </div>
     25        </li>
     26        <li class="akismet-setup-instructions__feature">
     27            <?php echo $tick_icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
     28            <div class="akismet-setup-instructions__body">
     29                <h4 class="akismet-setup-instructions__title">
     30                    <?php echo esc_html__( 'Zero effort', 'akismet' ); ?>
     31                </h4>
     32                <p class="akismet-setup-instructions__text">
     33                    <?php echo esc_html__( 'Akismet runs quietly in the background, saving you hours of manual moderation.', 'akismet' ); ?>
     34                </p>
     35            </div>
     36        </li>
     37        <li class="akismet-setup-instructions__feature">
     38            <?php echo $tick_icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
     39            <div class="akismet-setup-instructions__body">
     40                <h4 class="akismet-setup-instructions__title">
     41                    <?php echo esc_html__( 'Works with popular contact forms', 'akismet' ); ?>
     42                </h4>
     43                <p class="akismet-setup-instructions__text">
     44                    <?php echo esc_html__( 'Seamlessly integrates with plugins like Elementor, Contact Form 7, Jetpack and WPForms.', 'akismet' ); ?>
     45                </p>
     46            </div>
     47        </li>
     48        <li class="akismet-setup-instructions__feature">
     49            <?php echo $tick_icon; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
     50            <div class="akismet-setup-instructions__body">
     51                <h4 class="akismet-setup-instructions__title">
     52                    <?php echo esc_html__( 'Flexible pricing', 'akismet' ); ?>
     53                </h4>
     54                <p class="akismet-setup-instructions__text">
     55                    <?php echo esc_html__( 'Name your own price for personal sites. Businesses start on a paid plan.', 'akismet' ); ?>
     56                </p>
     57            </div>
     58        </li>
     59    </ul>
     60
    361    <?php
    462    Akismet::view(
    563        'get',
    664        array(
    7             'text'    => __( 'Choose an Akismet plan', 'akismet' ),
    8             'classes' => array( 'akismet-button', 'akismet-is-primary' ),
     65            'text'    => __( 'Get started', 'akismet' ),
     66            'classes' => array( 'akismet-button', 'akismet-is-primary', 'akismet-setup-instructions__button' ),
    967        )
    1068    );
    1169    ?>
    12 </div>
     70</section>
  • akismet/trunk/views/title.php

    r2177137 r3360206  
     1<?php
     2declare( strict_types = 1 );
     3?>
    14<div class="centered akismet-box-header">
    25    <h2><?php esc_html_e( 'Eliminate spam from your site', 'akismet' ); ?></h2>
Note: See TracChangeset for help on using the changeset viewer.