Plugin Directory

Changeset 3432601


Ignore:
Timestamp:
01/05/2026 10:00:31 AM (3 months ago)
Author:
gnpublisher
Message:

1.5.26 Released

Location:
gn-publisher/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gn-publisher/trunk/changelog.txt

    r3409414 r3432601  
     1= 1.5.26 - (05 January 2025) =
     2
     3* Remove : Removed BFCM Banner #138
     4
    15= 1.5.25 - (03 December 2025) =
    26
  • gn-publisher/trunk/gn-publisher.php

    r3409414 r3432601  
    88 * Plugin URI: https://gnpublisher.com/
    99 * Description: GN Publisher: The easy way to make Google News Publisher compatible RSS feeds.
    10  * Version: 1.5.25
     10 * Version: 1.5.26
    1111 * Author: Chris Andrews
    1212 * Author URI: https://gnpublisher.com/
     
    4141    }
    4242 
    43     define( 'GNPUB_VERSION', '1.5.25' );
     43    define( 'GNPUB_VERSION', '1.5.26' );
    4444    define( 'GNPUB_PATH', plugin_dir_path( __FILE__ ) );
    4545    define( 'GNPUB_URL', plugins_url( '', __FILE__) );
  • gn-publisher/trunk/includes/mb-helper-function.php

    r3409414 r3432601  
    358358    return $my_allowed;
    359359}
    360 
    361 
    362 /* * BFCM Banner Integration
    363  * Loads assets from assets/css and assets/js
    364  */
    365 add_action('admin_enqueue_scripts', 'gn_publisher_enqueue_bfcm_assets');
    366 
    367 function gn_publisher_enqueue_bfcm_assets($hook) {
    368  
    369     if ( $hook !== 'settings_page_gn-publisher-settings') {
    370         return;
    371     }
    372 
    373     // 2. define settings
    374     $expiry_date_str = '2025-12-25 23:59:59';
    375     $offer_link      = 'https://gnpublisher.com/bfcm-25/';
    376 
    377     // 3. Expiry Check (Server Side)   
    378     if ( current_time('timestamp') > strtotime($expiry_date_str) ) {
    379         return;
    380     }
    381 
    382     // 4. Register & Enqueue CSS 
    383     wp_enqueue_style(
    384         'gnpub-bfcm-style',
    385         GNPUB_URL. '/assets/css/bfcm-style.css',
    386         array(),
    387         GNPUB_VERSION
    388     );
    389 
    390     // 5. Register & Enqueue JS
    391     wp_enqueue_script(
    392         'gnpub-bfcm-script',
    393         GNPUB_URL. '/assets/js/bfcm-script.js',
    394         array('jquery'), // jQuery dependency
    395         GNPUB_VERSION,
    396         true
    397     );
    398 
    399     // 6. Data Pass (PHP to JS)
    400     wp_localize_script('gnpub-bfcm-script', 'bfcmData', array(
    401         'targetDate' => $expiry_date_str,
    402         'offerLink'  => $offer_link
    403     ));
    404 }
  • gn-publisher/trunk/readme.txt

    r3409414 r3432601  
    55Tested up to: 6.9
    66Requires PHP: 5.4
    7 Stable tag: 1.5.25
     7Stable tag: 1.5.26
    88License: GPLv3
    99License URI: https://www.gnu.org/licenses/gpl-3.0.html
     
    101101== Changelog ==
    102102
     103= 1.5.26 - (05 January 2025) =
     104
     105* Remove : Removed BFCM Banner #138
     106
    103107= 1.5.25 - (03 December 2025) =
    104108
Note: See TracChangeset for help on using the changeset viewer.