Plugin Directory

Changeset 3407428


Ignore:
Timestamp:
12/02/2025 01:04:15 AM (3 months ago)
Author:
wplingua
Message:

2.10.5

Location:
wplingua
Files:
491 added
5 edited

Legend:

Unmodified
Added
Removed
  • wplingua/trunk/data/node.php

    r3386891 r3407428  
    7979        // Plugin: SEOPress
    8080        '#seopress-metabox-js-extra',
     81
     82        // Plugin: WooCommerce
     83        '.woocommerce-Price-amount',
    8184    );
    8285}
  • wplingua/trunk/inc/admin/option-page.php

    r3403722 r3407428  
    295295        exit();
    296296    }
    297 }
    298 
    299 
    300 /**
    301  * Displays a Black Friday notice on wpLingua admin pages.
    302  *
    303  * This notice is shown only if:
    304  * - The API status is 'FREE'.
    305  * - The current date is on or before December 1, 2025.
    306  * - The user is on a wpLingua admin page.
    307  *
    308  * @return void
    309  */
    310 function wplng_admin_notice_bf() {
    311 
    312     $api_data     = wplng_get_api_data();
    313     $current_date = current_time( 'Y-m-d' );
    314 
    315     if ( empty( $api_data['status'] )
    316         || $api_data['status'] !== 'FREE'
    317         || empty( $current_date )
    318         || strtotime( $current_date ) > strtotime( '2025-12-01' )
    319         || ! wplng_is_wplingua_admin_page()
    320     ) {
    321         return;
    322     }
    323 
    324     $html  = '<div class="wplng-notice notice notice-info">';
    325     $html .= '<p style="font-weight: 600; text-align: center;">';
    326     $html .= '<span class="dashicons dashicons-info-outline"></span> ';
    327     $html .= 'Black Friday: Get 35% off on ';
    328     $html .= '<a href="https://wplingua.com/pricing/" target="_blank" rel="noopener noreferrer">';
    329     $html .= 'wpLingua.com';
    330     $html .= '</a> ';
    331     $html .= 'with the code BF2025';
    332     $html .= '</p>';
    333     $html .= '</div>'; // End .notice
    334 
    335     echo $html;
    336297}
    337298
  • wplingua/trunk/inc/admin/translation-edit-modal.php

    r3403722 r3407428  
    6565
    6666    $html .= '<div id="wplng-modal-edit-main">';
    67 
    68     // Start special message
    69 
    70     $api_data     = wplng_get_api_data();
    71     $current_date = current_time( 'Y-m-d' );
    72 
    73     if ( ! empty( $api_data['status'] )
    74         && $api_data['status'] === 'FREE'
    75         && ! empty( $current_date )
    76         && strtotime( $current_date ) <= strtotime( '2025-12-01' )
    77     ) {
    78         $html .= '<p style="font-weight: 600; text-align: center; margin: 0;">';
    79         $html .= '<span class="dashicons dashicons-info-outline" style="vertical-align: text-bottom;"></span> ';
    80         $html .= 'Black Friday: Get 35% off on ';
    81         $html .= '<a href="https://wplingua.com/pricing/" target="_blank" rel="noopener noreferrer" style="color: #2271b1; text-decoration: underline;">';
    82         $html .= 'wpLingua.com';
    83         $html .= '</a> ';
    84         $html .= 'with the code BF2025';
    85         $html .= '</p>';
    86         $html .= '<hr>';
    87     }
    88 
    89     // End special message
    90 
    9167    $html .= '<div id="wplng-translation-editor">';
    9268    $html .= '</div>'; // End #wplng-translation-editor
  • wplingua/trunk/readme.txt

    r3403722 r3407428  
    55Requires at least: 6.0
    66Tested up to: 6.8
    7 Stable tag: 2.10.4
     7Stable tag: 2.10.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    191191
    192192== Changelog ==
     193
     194= 2.10.5 =
     195
     196* Better WooCommerce compatibility: Exclude ".woocommerce-Price-amount"
    193197
    194198= 2.10.4 =
  • wplingua/trunk/wplingua.php

    r3403722 r3407428  
    88 * Text Domain: wplingua
    99 * Domain Path: /languages/
    10  * Version: 2.10.4
     10 * Version: 2.10.5
    1111 * Requires PHP: 7.4
    1212 * License: GPL v2 or later
     
    2525define( 'WPLNG_API_VERSION', '3.0' );
    2626define( 'WPLNG_API_SSLVERIFY', true );
    27 define( 'WPLNG_PLUGIN_VERSION', '2.10.4' );
     27define( 'WPLNG_PLUGIN_VERSION', '2.10.5' );
    2828define( 'WPLNG_PLUGIN_FILE', plugin_basename( __FILE__ ) );
    2929define( 'WPLNG_PLUGIN_PATH', __DIR__ );
     
    174174        add_filter( 'post_row_actions', 'wplng_row_edit_translation_link', 10, 2 );
    175175
    176         // Special notice
    177         add_action( 'admin_notices', 'wplng_admin_notice_bf');
    178 
    179176        /**
    180177         * wplng_translation : CPT, taxo, meta
Note: See TracChangeset for help on using the changeset viewer.