Changeset 3432601
- Timestamp:
- 01/05/2026 10:00:31 AM (3 months ago)
- Location:
- gn-publisher/trunk
- Files:
-
- 4 edited
-
changelog.txt (modified) (1 diff)
-
gn-publisher.php (modified) (2 diffs)
-
includes/mb-helper-function.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
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 1 5 = 1.5.25 - (03 December 2025) = 2 6 -
gn-publisher/trunk/gn-publisher.php
r3409414 r3432601 8 8 * Plugin URI: https://gnpublisher.com/ 9 9 * Description: GN Publisher: The easy way to make Google News Publisher compatible RSS feeds. 10 * Version: 1.5.2 510 * Version: 1.5.26 11 11 * Author: Chris Andrews 12 12 * Author URI: https://gnpublisher.com/ … … 41 41 } 42 42 43 define( 'GNPUB_VERSION', '1.5.2 5' );43 define( 'GNPUB_VERSION', '1.5.26' ); 44 44 define( 'GNPUB_PATH', plugin_dir_path( __FILE__ ) ); 45 45 define( 'GNPUB_URL', plugins_url( '', __FILE__) ); -
gn-publisher/trunk/includes/mb-helper-function.php
r3409414 r3432601 358 358 return $my_allowed; 359 359 } 360 361 362 /* * BFCM Banner Integration363 * Loads assets from assets/css and assets/js364 */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 settings374 $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 CSS383 wp_enqueue_style(384 'gnpub-bfcm-style',385 GNPUB_URL. '/assets/css/bfcm-style.css',386 array(),387 GNPUB_VERSION388 );389 390 // 5. Register & Enqueue JS391 wp_enqueue_script(392 'gnpub-bfcm-script',393 GNPUB_URL. '/assets/js/bfcm-script.js',394 array('jquery'), // jQuery dependency395 GNPUB_VERSION,396 true397 );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_link403 ));404 } -
gn-publisher/trunk/readme.txt
r3409414 r3432601 5 5 Tested up to: 6.9 6 6 Requires PHP: 5.4 7 Stable tag: 1.5.2 57 Stable tag: 1.5.26 8 8 License: GPLv3 9 9 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 101 101 == Changelog == 102 102 103 = 1.5.26 - (05 January 2025) = 104 105 * Remove : Removed BFCM Banner #138 106 103 107 = 1.5.25 - (03 December 2025) = 104 108
Note: See TracChangeset
for help on using the changeset viewer.