Plugin Directory

Changeset 3016602


Ignore:
Timestamp:
01/02/2024 05:09:24 PM (2 years ago)
Author:
poweredcache
Message:

Update to version 1.0.1 from GitHub

Location:
image-optimizer-pro
Files:
18 edited
1 copied

Legend:

Unmodified
Added
Removed
  • image-optimizer-pro/assets/icon.svg

    r3015934 r3016602  
    22<rect width="512" height="512" fill="#1F2641"/>
    33<g clip-path="url(#clip0_1111_106)">
    4 <path d="M232.712 410.033H232.712C195.453 410.065 159.518 396.216 131.917 371.187C131.879 371.152 131.856 371.104 131.854 371.052C131.851 371.001 131.869 370.95 131.904 370.912C131.938 370.874 131.987 370.851 132.038 370.849C132.09 370.846 132.14 370.864 132.178 370.898L132.513 370.528L132.177 370.898C159.707 395.863 195.549 409.677 232.713 409.644C284.873 409.644 332.473 383.159 360.038 338.8L360.039 338.799C360.052 338.777 360.07 338.758 360.09 338.743C360.111 338.728 360.135 338.718 360.16 338.712C360.184 338.706 360.21 338.705 360.235 338.709C360.261 338.713 360.285 338.723 360.307 338.736C360.328 338.75 360.347 338.767 360.362 338.788C360.377 338.809 360.387 338.832 360.393 338.857C360.399 338.882 360.4 338.908 360.396 338.933C360.391 338.958 360.382 338.982 360.369 339.004L360.368 339.006C346.901 360.737 328.105 378.668 305.765 391.098C283.424 403.528 258.278 410.046 232.712 410.033Z" fill="#F5F5FF" stroke="#F5F5FF"/>
    5 <path d="M352.926 339.747L353.279 341.091L359.9 339.343L361.161 346.074L362.527 345.817L360.99 337.619L352.926 339.747Z" fill="#F5F5FF"/>
    6 <path d="M139.275 369.811L139.312 371.201L132.466 371.374L133.14 378.19L131.756 378.325L130.938 370.024L139.275 369.811Z" fill="#F5F5FF"/>
     4<path d="M138.16 368.322C165.599 393.205 201.323 406.974 238.365 406.941V408.33C200.979 408.363 164.921 394.466 137.227 369.352C137.091 369.228 137.01 369.055 137.001 368.872C136.992 368.688 137.056 368.508 137.18 368.372C137.303 368.235 137.476 368.154 137.66 368.144C137.843 368.135 138.023 368.199 138.16 368.322ZM136.556 370.093C164.434 395.374 200.731 409.363 238.365 409.33C264.188 409.343 289.586 402.76 312.151 390.205C334.715 377.651 353.698 359.54 367.301 337.592C367.419 337.403 367.498 337.192 367.535 336.973C367.572 336.753 367.565 336.528 367.514 336.311C367.464 336.094 367.371 335.889 367.241 335.708C367.111 335.527 366.947 335.373 366.758 335.255C366.569 335.138 366.358 335.058 366.138 335.022C365.918 334.986 365.693 334.994 365.476 335.045C365.259 335.096 365.055 335.189 364.874 335.319C364.693 335.449 364.54 335.614 364.422 335.804C337.129 379.724 290.008 405.941 238.365 405.941H238.364C201.571 405.974 166.086 392.298 138.832 367.582L138.83 367.58C138.497 367.279 138.058 367.123 137.609 367.146C137.161 367.168 136.74 367.368 136.439 367.7C136.137 368.033 135.98 368.472 136.002 368.92C136.024 369.369 136.223 369.79 136.555 370.092L136.556 370.093Z" fill="#F5F5FF" stroke="#F5F5FF" stroke-width="2"/>
     5<path d="M353 335.524L353.737 337.749L367.528 334.854L370.154 346L373 345.574L369.798 332L353 335.524Z" fill="#F5F5FF"/>
     6<path d="M148.688 365L148.753 367.448L136.692 367.754L137.88 379.761L135.442 380L134 365.376L148.688 365Z" fill="#F5F5FF"/>
    77<path d="M169.069 242.629V317.43C169.069 317.677 169.02 317.922 168.926 318.15C168.831 318.379 168.693 318.586 168.518 318.761C168.343 318.936 168.136 319.075 167.907 319.169C167.679 319.264 167.434 319.313 167.187 319.313H40.2074C40.117 319.314 40.0267 319.307 39.9375 319.292C39.4896 319.227 39.08 319.004 38.7836 318.662C38.4873 318.32 38.3242 317.882 38.3242 317.43V242.629C38.3241 242.13 38.5222 241.651 38.8752 241.298C39.2281 240.945 39.7069 240.746 40.2061 240.746H167.186C167.433 240.746 167.678 240.795 167.906 240.889C168.134 240.984 168.342 241.122 168.517 241.297C168.692 241.472 168.831 241.679 168.925 241.908C169.02 242.136 169.069 242.381 169.069 242.628V242.629Z" fill="#E6E6E6"/>
    88<path d="M70.3321 285.221C79.4567 285.221 86.8536 277.824 86.8536 268.7C86.8536 259.575 79.4567 252.178 70.3321 252.178C61.2075 252.178 53.8105 259.575 53.8105 268.7C53.8105 277.824 61.2075 285.221 70.3321 285.221Z" fill="#6C63FF"/>
  • image-optimizer-pro/tags/1.0.1/includes/classes/Admin/Dashboard.php

    r3015934 r3016602  
    2020use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT;
    2121use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION;
     22use const ImageOptimizerPro\Constants\SETTING_OPTION;
    2223
    2324/**
     
    117118        $license_key  = get_license_key();
    118119        $license_info = get_license_info();
     120        $settings     = \ImageOptimizerPro\Utils\get_settings();
    119121
    120122        if ( is_network_admin() ) {
     
    141143                        </td>
    142144                    </tr>
     145                    <tr>
     146                        <th scope="row">
     147                        </th>
     148                        <td>
     149                            <fieldset>
     150                                <legend class="screen-reader-text">
     151                                    <span><?php esc_html_e( 'Use WebP over AVIF', 'image-optimizer-pro' ); ?></span>
     152                                </legend>
     153                                <label for="preferred_format">
     154                                    <input name="preferred_format" type="checkbox" id="preferred_format" value="webp" <?php checked( 'webp', $settings['preferred_format'] ); ?>>
     155                                    <?php esc_html_e( 'Use WebP over AVIF', 'image-optimizer-pro' ); ?>
     156                                </label>
     157                            </fieldset>
     158                            <span class="description">
     159                                <?php esc_html_e( 'Activate this option to prioritize the WebP format over AVIF for image optimization.', 'image-optimizer-pro' ); ?>
     160                            </span>
     161                        </td>
     162                    </tr>
    143163                    </tbody>
    144164                </table>
     
    244264        }
    245265
     266        $settings                     = [];
     267        $settings['preferred_format'] = sanitize_text_field( wp_unslash( $_POST['preferred_format'] ?? '' ) );
     268
    246269        $license_key         = sanitize_text_field( filter_input( INPUT_POST, 'license_key' ) );
    247270        $current_license_key = mask_string( $license_key, 3 );
     
    256279
    257280        if ( IMAGE_OPTIMIZER_PRO_IS_NETWORK ) {
     281            update_site_option( SETTING_OPTION, $settings );
    258282            update_site_option( LICENSE_KEY_OPTION, $encrypted_license_key );
    259283        } else {
     284            update_option( SETTING_OPTION, $settings, false );
    260285            update_option( LICENSE_KEY_OPTION, $encrypted_license_key, false );
    261286        }
  • image-optimizer-pro/tags/1.0.1/includes/classes/Optimizer.php

    r3015934 r3016602  
    5151
    5252    /**
     53     * Preferred image format.
     54     * It is used to determine the preferred image format for the current request.
     55     *
     56     * @var null
     57     */
     58    protected static $preferred_image_formats = null;
     59
     60    /**
    5361     * Singleton implementation
    5462     *
     
    107115            return true;
    108116        }
     117
     118        $settings = \ImageOptimizerPro\Utils\get_settings();
     119        // set preferred image format
     120        self::$preferred_image_formats = $settings['preferred_format'];
    109121
    110122        // skip photonized urls when image optimizer active
     
    14931505        }
    14941506
     1507        if ( ! empty( self::$preferred_image_formats ) && 'webp' === self::$preferred_image_formats ) {
     1508            $image_optimizer_url = add_query_arg( array( 'format' => 'webp' ), $image_optimizer_url );
     1509        }
     1510
    14951511        return self::url_schema( $image_optimizer_url, $scheme );
    14961512    }
  • image-optimizer-pro/tags/1.0.1/includes/constants.php

    r3015934 r3016602  
    99
    1010const MENU_SLUG          = 'image-optimizer-pro';
     11const SETTING_OPTION     = 'image_optimizer_pro_settings';
    1112const LICENSE_KEY_OPTION = 'image_optimizer_pro_license_key';
    1213
  • image-optimizer-pro/tags/1.0.1/includes/utils.php

    r3015934 r3016602  
    1212use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT;
    1313use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION;
     14use const ImageOptimizerPro\Constants\SETTING_OPTION;
    1415
    1516/**
     
    298299    return false;
    299300}
     301
     302/**
     303 * Get settings with defaults
     304 *
     305 * @return array
     306 * @since  1.0.1
     307 */
     308function get_settings() {
     309    $defaults = [
     310        'preferred_format' => '',
     311    ];
     312
     313    if ( IMAGE_OPTIMIZER_PRO_IS_NETWORK ) {
     314        $settings = get_site_option( SETTING_OPTION, [] );
     315    } else {
     316        $settings = get_option( SETTING_OPTION, [] );
     317    }
     318
     319    $settings = wp_parse_args( $settings, $defaults );
     320
     321    return $settings;
     322}
  • image-optimizer-pro/tags/1.0.1/languages/image-optimizer-pro.pot

    r3015934 r3016602  
    1 # Copyright (C) 2023 Powered Cache
     1# Copyright (C) 2024 Powered Cache
    22# This file is distributed under the GPL v2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Image Optimizer Pro 1.0\n"
     5"Project-Id-Version: Image Optimizer Pro 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/image-optimizer-pro\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-12-31T10:56:35+00:00\n"
     12"POT-Creation-Date: 2024-01-02T17:06:41+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    1616
    1717#. Plugin Name of the plugin
    18 #: includes/classes/Admin/Dashboard.php:103
    1918#: includes/classes/Admin/Dashboard.php:104
    20 #: includes/classes/Admin/Dashboard.php:125
    21 #: includes/classes/Admin/Dashboard.php:337
     19#: includes/classes/Admin/Dashboard.php:105
     20#: includes/classes/Admin/Dashboard.php:127
     21#: includes/classes/Admin/Dashboard.php:362
    2222msgid "Image Optimizer Pro"
    2323msgstr ""
     
    3939msgstr ""
    4040
    41 #: includes/classes/Admin/Dashboard.php:131
     41#: includes/classes/Admin/Dashboard.php:133
    4242msgid "License Key"
    4343msgstr ""
    4444
    45 #: includes/classes/Admin/Dashboard.php:135
     45#: includes/classes/Admin/Dashboard.php:137
    4646msgid "Deactivate License"
    4747msgstr ""
    4848
    49 #: includes/classes/Admin/Dashboard.php:137
     49#: includes/classes/Admin/Dashboard.php:139
    5050msgid "Activate License"
    5151msgstr ""
    5252
    53 #: includes/classes/Admin/Dashboard.php:145
     53#: includes/classes/Admin/Dashboard.php:151
     54#: includes/classes/Admin/Dashboard.php:155
     55msgid "Use WebP over AVIF"
     56msgstr ""
     57
     58#: includes/classes/Admin/Dashboard.php:159
     59msgid "Activate this option to prioritize the WebP format over AVIF for image optimization."
     60msgstr ""
     61
     62#: includes/classes/Admin/Dashboard.php:165
    5463msgid "Save Changes"
    5564msgstr ""
    5665
    57 #: includes/classes/Admin/Dashboard.php:173
     66#: includes/classes/Admin/Dashboard.php:193
    5867msgid "You cannot use Image Optimizer on localhost. Image Optimization service only works for the public accessible domains."
    5968msgstr ""
    6069
    61 #: includes/classes/Admin/Dashboard.php:193
     70#: includes/classes/Admin/Dashboard.php:213
    6271msgid "You need to activate your license to use Image Optimizer Pro."
    6372msgstr ""
    6473
    65 #: includes/classes/Admin/Dashboard.php:227
     74#: includes/classes/Admin/Dashboard.php:247
    6675msgid "Image Optimizer is already actived on Powered Cache Premium. You can mange it under the settings: <code>Powered Cache > Media Optimization > Image Optimization</code>. You can safely deactivate the Image Optimizer PRO plugin."
    6776msgstr ""
    6877
    69 #: includes/classes/Admin/Dashboard.php:263
     78#: includes/classes/Admin/Dashboard.php:288
    7079msgid "Settings saved."
    7180msgstr ""
    7281
    73 #: includes/classes/Admin/Dashboard.php:338
     82#: includes/classes/Admin/Dashboard.php:363
    7483msgid "We collect information about visitors who use our image optimization service, similar to what is typically recorded in standard web server access logs. Specifically, when visitors access images, we record data such as IP addresses, user agents (which identify the browser or tool used to access the image), referrer URLs (indicating the source webpage from which the image was requested), and the Site URL (the address of the webpage where the image is displayed). This type of data collection is a standard practice for monitoring and enhancing web services."
    7584msgstr ""
    7685
    77 #: includes/utils.php:161
     86#: includes/utils.php:162
    7887msgid "Your license is valid and activated."
    7988msgstr ""
    8089
    81 #: includes/utils.php:165
     90#: includes/utils.php:166
    8291msgid "Lifetime License."
    8392msgstr ""
    8493
    8594#. translators: %1$s: the number of active sites. %2$s: max sites
    86 #: includes/utils.php:178
     95#: includes/utils.php:179
    8796msgid "You have %1$s / %2$s sites activated."
    8897msgstr ""
    8998
    90 #: includes/utils.php:192
     99#: includes/utils.php:193
    91100msgid "License key does not exist"
    92101msgstr ""
    93102
    94 #: includes/utils.php:203
     103#: includes/utils.php:204
    95104msgid "Unregistered domain address"
    96105msgstr ""
    97106
    98 #: includes/utils.php:206
     107#: includes/utils.php:207
    99108msgid "Invalid license or url"
    100109msgstr ""
    101110
    102 #: includes/utils.php:209
     111#: includes/utils.php:210
    103112msgid "Can not add a new domain."
    104113msgstr ""
    105114
    106 #: includes/utils.php:213
     115#: includes/utils.php:214
    107116msgid "An error occurred, please try again."
    108117msgstr ""
    109118
    110 #: includes/utils.php:219
     119#: includes/utils.php:220
    111120msgid "Please enter a valid license key and activate it."
    112121msgstr ""
  • image-optimizer-pro/tags/1.0.1/plugin.php

    r3015934 r3016602  
    44 * Plugin URI:        https://poweredcache.com/image-optimizer-pro/
    55 * Description:       On-the-fly image optimization for WordPress. It automatically converts and serves images in AVIF or webp format where the browser supports, ensuring faster load times and enhanced user experience.
    6  * Version:           1.0
     6 * Version:           1.0.1
    77 * Requires at least: 5.7
    88 * Requires PHP:      7.2.5
     
    2424
    2525// Useful global constants.
    26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.0' );
     26define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.0.1' );
    2727define( 'IMAGE_OPTIMIZER_PRO_PLUGIN_FILE', __FILE__ );
    2828define( 'IMAGE_OPTIMIZER_PRO_URL', plugin_dir_url( __FILE__ ) );
  • image-optimizer-pro/tags/1.0.1/readme.txt

    r3015934 r3016602  
    1 === Image Optimizer Pro ===
     1=== Image Optimizer PRO - Optimize Images, Convert AVIF & WebP ===
    22Contributors:      poweredcache, m_uysl
    33Tags:              image optimizer, optimize images, webp, avif, image compression
     
    1717
    1818**Key Features**:
    19 * **On-the-fly Image Optimization**: No need to manually convert each image. Image Optimizer Pro does it for you!
    20 * **Serve in AVIF or WebP**: Utilize the latest image formats for faster loading and better performance.
    21 * **Global Network Distribution**: Images are distributed on our extensive global network, ensuring they are served swiftly to your visitors, no matter where they are.
     19- **On-the-fly Image Optimization**: No need to manually convert each image. Image Optimizer Pro does it for you!
     20- **Serve in AVIF or WebP**: Utilize the latest image formats for faster loading and better performance.
     21- **Global Network Distribution**: Images are distributed on our extensive global network, ensuring they are served swiftly to your visitors, no matter where they are.
    2222
    2323__Documentation__: [https://docs.poweredcache.com/image-optimization/](https://docs.poweredcache.com/image-optimization/)
     
    7878== Changelog ==
    7979
     80= 1.0.1  (2024-01-02)=
     81- Added option to prefer WebP format over AVIF.
     82
    8083= 1.0  (2023-12-31)=
    8184- Initial release
  • image-optimizer-pro/trunk/includes/classes/Admin/Dashboard.php

    r3015934 r3016602  
    2020use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT;
    2121use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION;
     22use const ImageOptimizerPro\Constants\SETTING_OPTION;
    2223
    2324/**
     
    117118        $license_key  = get_license_key();
    118119        $license_info = get_license_info();
     120        $settings     = \ImageOptimizerPro\Utils\get_settings();
    119121
    120122        if ( is_network_admin() ) {
     
    141143                        </td>
    142144                    </tr>
     145                    <tr>
     146                        <th scope="row">
     147                        </th>
     148                        <td>
     149                            <fieldset>
     150                                <legend class="screen-reader-text">
     151                                    <span><?php esc_html_e( 'Use WebP over AVIF', 'image-optimizer-pro' ); ?></span>
     152                                </legend>
     153                                <label for="preferred_format">
     154                                    <input name="preferred_format" type="checkbox" id="preferred_format" value="webp" <?php checked( 'webp', $settings['preferred_format'] ); ?>>
     155                                    <?php esc_html_e( 'Use WebP over AVIF', 'image-optimizer-pro' ); ?>
     156                                </label>
     157                            </fieldset>
     158                            <span class="description">
     159                                <?php esc_html_e( 'Activate this option to prioritize the WebP format over AVIF for image optimization.', 'image-optimizer-pro' ); ?>
     160                            </span>
     161                        </td>
     162                    </tr>
    143163                    </tbody>
    144164                </table>
     
    244264        }
    245265
     266        $settings                     = [];
     267        $settings['preferred_format'] = sanitize_text_field( wp_unslash( $_POST['preferred_format'] ?? '' ) );
     268
    246269        $license_key         = sanitize_text_field( filter_input( INPUT_POST, 'license_key' ) );
    247270        $current_license_key = mask_string( $license_key, 3 );
     
    256279
    257280        if ( IMAGE_OPTIMIZER_PRO_IS_NETWORK ) {
     281            update_site_option( SETTING_OPTION, $settings );
    258282            update_site_option( LICENSE_KEY_OPTION, $encrypted_license_key );
    259283        } else {
     284            update_option( SETTING_OPTION, $settings, false );
    260285            update_option( LICENSE_KEY_OPTION, $encrypted_license_key, false );
    261286        }
  • image-optimizer-pro/trunk/includes/classes/Optimizer.php

    r3015934 r3016602  
    5151
    5252    /**
     53     * Preferred image format.
     54     * It is used to determine the preferred image format for the current request.
     55     *
     56     * @var null
     57     */
     58    protected static $preferred_image_formats = null;
     59
     60    /**
    5361     * Singleton implementation
    5462     *
     
    107115            return true;
    108116        }
     117
     118        $settings = \ImageOptimizerPro\Utils\get_settings();
     119        // set preferred image format
     120        self::$preferred_image_formats = $settings['preferred_format'];
    109121
    110122        // skip photonized urls when image optimizer active
     
    14931505        }
    14941506
     1507        if ( ! empty( self::$preferred_image_formats ) && 'webp' === self::$preferred_image_formats ) {
     1508            $image_optimizer_url = add_query_arg( array( 'format' => 'webp' ), $image_optimizer_url );
     1509        }
     1510
    14951511        return self::url_schema( $image_optimizer_url, $scheme );
    14961512    }
  • image-optimizer-pro/trunk/includes/constants.php

    r3015934 r3016602  
    99
    1010const MENU_SLUG          = 'image-optimizer-pro';
     11const SETTING_OPTION     = 'image_optimizer_pro_settings';
    1112const LICENSE_KEY_OPTION = 'image_optimizer_pro_license_key';
    1213
  • image-optimizer-pro/trunk/includes/utils.php

    r3015934 r3016602  
    1212use const ImageOptimizerPro\Constants\LICENSE_INFO_TRANSIENT;
    1313use const ImageOptimizerPro\Constants\LICENSE_KEY_OPTION;
     14use const ImageOptimizerPro\Constants\SETTING_OPTION;
    1415
    1516/**
     
    298299    return false;
    299300}
     301
     302/**
     303 * Get settings with defaults
     304 *
     305 * @return array
     306 * @since  1.0.1
     307 */
     308function get_settings() {
     309    $defaults = [
     310        'preferred_format' => '',
     311    ];
     312
     313    if ( IMAGE_OPTIMIZER_PRO_IS_NETWORK ) {
     314        $settings = get_site_option( SETTING_OPTION, [] );
     315    } else {
     316        $settings = get_option( SETTING_OPTION, [] );
     317    }
     318
     319    $settings = wp_parse_args( $settings, $defaults );
     320
     321    return $settings;
     322}
  • image-optimizer-pro/trunk/languages/image-optimizer-pro.pot

    r3015934 r3016602  
    1 # Copyright (C) 2023 Powered Cache
     1# Copyright (C) 2024 Powered Cache
    22# This file is distributed under the GPL v2 or later.
    33msgid ""
    44msgstr ""
    5 "Project-Id-Version: Image Optimizer Pro 1.0\n"
     5"Project-Id-Version: Image Optimizer Pro 1.0.1\n"
    66"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/image-optimizer-pro\n"
    77"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
     
    1010"Content-Type: text/plain; charset=UTF-8\n"
    1111"Content-Transfer-Encoding: 8bit\n"
    12 "POT-Creation-Date: 2023-12-31T10:56:35+00:00\n"
     12"POT-Creation-Date: 2024-01-02T17:06:41+00:00\n"
    1313"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1414"X-Generator: WP-CLI 2.9.0\n"
     
    1616
    1717#. Plugin Name of the plugin
    18 #: includes/classes/Admin/Dashboard.php:103
    1918#: includes/classes/Admin/Dashboard.php:104
    20 #: includes/classes/Admin/Dashboard.php:125
    21 #: includes/classes/Admin/Dashboard.php:337
     19#: includes/classes/Admin/Dashboard.php:105
     20#: includes/classes/Admin/Dashboard.php:127
     21#: includes/classes/Admin/Dashboard.php:362
    2222msgid "Image Optimizer Pro"
    2323msgstr ""
     
    3939msgstr ""
    4040
    41 #: includes/classes/Admin/Dashboard.php:131
     41#: includes/classes/Admin/Dashboard.php:133
    4242msgid "License Key"
    4343msgstr ""
    4444
    45 #: includes/classes/Admin/Dashboard.php:135
     45#: includes/classes/Admin/Dashboard.php:137
    4646msgid "Deactivate License"
    4747msgstr ""
    4848
    49 #: includes/classes/Admin/Dashboard.php:137
     49#: includes/classes/Admin/Dashboard.php:139
    5050msgid "Activate License"
    5151msgstr ""
    5252
    53 #: includes/classes/Admin/Dashboard.php:145
     53#: includes/classes/Admin/Dashboard.php:151
     54#: includes/classes/Admin/Dashboard.php:155
     55msgid "Use WebP over AVIF"
     56msgstr ""
     57
     58#: includes/classes/Admin/Dashboard.php:159
     59msgid "Activate this option to prioritize the WebP format over AVIF for image optimization."
     60msgstr ""
     61
     62#: includes/classes/Admin/Dashboard.php:165
    5463msgid "Save Changes"
    5564msgstr ""
    5665
    57 #: includes/classes/Admin/Dashboard.php:173
     66#: includes/classes/Admin/Dashboard.php:193
    5867msgid "You cannot use Image Optimizer on localhost. Image Optimization service only works for the public accessible domains."
    5968msgstr ""
    6069
    61 #: includes/classes/Admin/Dashboard.php:193
     70#: includes/classes/Admin/Dashboard.php:213
    6271msgid "You need to activate your license to use Image Optimizer Pro."
    6372msgstr ""
    6473
    65 #: includes/classes/Admin/Dashboard.php:227
     74#: includes/classes/Admin/Dashboard.php:247
    6675msgid "Image Optimizer is already actived on Powered Cache Premium. You can mange it under the settings: <code>Powered Cache > Media Optimization > Image Optimization</code>. You can safely deactivate the Image Optimizer PRO plugin."
    6776msgstr ""
    6877
    69 #: includes/classes/Admin/Dashboard.php:263
     78#: includes/classes/Admin/Dashboard.php:288
    7079msgid "Settings saved."
    7180msgstr ""
    7281
    73 #: includes/classes/Admin/Dashboard.php:338
     82#: includes/classes/Admin/Dashboard.php:363
    7483msgid "We collect information about visitors who use our image optimization service, similar to what is typically recorded in standard web server access logs. Specifically, when visitors access images, we record data such as IP addresses, user agents (which identify the browser or tool used to access the image), referrer URLs (indicating the source webpage from which the image was requested), and the Site URL (the address of the webpage where the image is displayed). This type of data collection is a standard practice for monitoring and enhancing web services."
    7584msgstr ""
    7685
    77 #: includes/utils.php:161
     86#: includes/utils.php:162
    7887msgid "Your license is valid and activated."
    7988msgstr ""
    8089
    81 #: includes/utils.php:165
     90#: includes/utils.php:166
    8291msgid "Lifetime License."
    8392msgstr ""
    8493
    8594#. translators: %1$s: the number of active sites. %2$s: max sites
    86 #: includes/utils.php:178
     95#: includes/utils.php:179
    8796msgid "You have %1$s / %2$s sites activated."
    8897msgstr ""
    8998
    90 #: includes/utils.php:192
     99#: includes/utils.php:193
    91100msgid "License key does not exist"
    92101msgstr ""
    93102
    94 #: includes/utils.php:203
     103#: includes/utils.php:204
    95104msgid "Unregistered domain address"
    96105msgstr ""
    97106
    98 #: includes/utils.php:206
     107#: includes/utils.php:207
    99108msgid "Invalid license or url"
    100109msgstr ""
    101110
    102 #: includes/utils.php:209
     111#: includes/utils.php:210
    103112msgid "Can not add a new domain."
    104113msgstr ""
    105114
    106 #: includes/utils.php:213
     115#: includes/utils.php:214
    107116msgid "An error occurred, please try again."
    108117msgstr ""
    109118
    110 #: includes/utils.php:219
     119#: includes/utils.php:220
    111120msgid "Please enter a valid license key and activate it."
    112121msgstr ""
  • image-optimizer-pro/trunk/plugin.php

    r3015934 r3016602  
    44 * Plugin URI:        https://poweredcache.com/image-optimizer-pro/
    55 * Description:       On-the-fly image optimization for WordPress. It automatically converts and serves images in AVIF or webp format where the browser supports, ensuring faster load times and enhanced user experience.
    6  * Version:           1.0
     6 * Version:           1.0.1
    77 * Requires at least: 5.7
    88 * Requires PHP:      7.2.5
     
    2424
    2525// Useful global constants.
    26 define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.0' );
     26define( 'IMAGE_OPTIMIZER_PRO_VERSION', '1.0.1' );
    2727define( 'IMAGE_OPTIMIZER_PRO_PLUGIN_FILE', __FILE__ );
    2828define( 'IMAGE_OPTIMIZER_PRO_URL', plugin_dir_url( __FILE__ ) );
  • image-optimizer-pro/trunk/readme.txt

    r3015934 r3016602  
    1 === Image Optimizer Pro ===
     1=== Image Optimizer PRO - Optimize Images, Convert AVIF & WebP ===
    22Contributors:      poweredcache, m_uysl
    33Tags:              image optimizer, optimize images, webp, avif, image compression
     
    1717
    1818**Key Features**:
    19 * **On-the-fly Image Optimization**: No need to manually convert each image. Image Optimizer Pro does it for you!
    20 * **Serve in AVIF or WebP**: Utilize the latest image formats for faster loading and better performance.
    21 * **Global Network Distribution**: Images are distributed on our extensive global network, ensuring they are served swiftly to your visitors, no matter where they are.
     19- **On-the-fly Image Optimization**: No need to manually convert each image. Image Optimizer Pro does it for you!
     20- **Serve in AVIF or WebP**: Utilize the latest image formats for faster loading and better performance.
     21- **Global Network Distribution**: Images are distributed on our extensive global network, ensuring they are served swiftly to your visitors, no matter where they are.
    2222
    2323__Documentation__: [https://docs.poweredcache.com/image-optimization/](https://docs.poweredcache.com/image-optimization/)
     
    7878== Changelog ==
    7979
     80= 1.0.1  (2024-01-02)=
     81- Added option to prefer WebP format over AVIF.
     82
    8083= 1.0  (2023-12-31)=
    8184- Initial release
Note: See TracChangeset for help on using the changeset viewer.