Changeset 3337644
- Timestamp:
- 08/01/2025 07:57:38 AM (8 months ago)
- Location:
- notification-for-telegram
- Files:
-
- 4 edited
- 1 copied
-
tags/3.4.5 (copied) (copied from notification-for-telegram/trunk)
-
tags/3.4.5/index.php (modified) (3 diffs)
-
tags/3.4.5/readme.txt (modified) (2 diffs)
-
trunk/index.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
notification-for-telegram/tags/3.4.5/index.php
r3337411 r3337644 26 26 } 27 27 28 add_action('init', 'nftb_init_method'); 28 29 29 30 function nftb_init_method() { … … 31 32 $telegram_notify_option = get_option('telegram_notify_option_name'); 32 33 $notify_donot_load_css = isset($telegram_notify_option['notify_donot_load_css']) ? $telegram_notify_option['notify_donot_load_css'] : false; 33 34 34 35 35 //Enqueue Admin CSS on Job Board Settings page only 36 36 if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify' ) { … … 38 38 if ( !$notify_donot_load_css ) { 39 39 // Enqueue Core Admin Styles 40 wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/mystyle.css', __FILE__ )); 40 wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/mystyle.css', __FILE__ )); 41 41 42 } else { 42 43 43 // se la selezione notify_donot_load_css attiva Enqueue Minimal CSS Styles 44 44 wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ )); 45 46 47 } 48 49 45 } 50 46 wp_enqueue_script('nftb_plugin_script', plugins_url('/myjs.js', __FILE__), array('jquery') ); 51 47 52 } 53 48 } 54 49 } 55 50 56 51 57 //add_action('admin_enqueue_scripts', 'nftb_init_method'); 58 add_action('init', 'nftb_init_method'); 59 60 //trim css per carcaricrae il mio 61 function nftb_trim_css_version($src) { 62 if (strpos($src, 'ver=')) { 63 $src = remove_query_arg('ver', $src); 64 } 65 return $src; 66 } 67 add_filter('style_loader_src', 'nftb_trim_css_version', 9999); 52 53 54 55 68 56 69 57 // Activation -
notification-for-telegram/tags/3.4.5/readme.txt
r3337411 r3337644 5 5 Requires at least: 4.0 6 6 Tested up to: 6.8.1 7 Stable tag: 3.4. 47 Stable tag: 3.4.5 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 276 276 == Changelog == 277 277 278 = 3.4.5 = 279 Removed ver stripping from asset URLs for better cache handling and plugin compatibility. 280 278 281 = 3.4.4 = 279 282 Better logic to add the minimal CSS when main CSS is disable -
notification-for-telegram/trunk/index.php
r3337411 r3337644 26 26 } 27 27 28 add_action('init', 'nftb_init_method'); 28 29 29 30 function nftb_init_method() { … … 31 32 $telegram_notify_option = get_option('telegram_notify_option_name'); 32 33 $notify_donot_load_css = isset($telegram_notify_option['notify_donot_load_css']) ? $telegram_notify_option['notify_donot_load_css'] : false; 33 34 34 35 35 //Enqueue Admin CSS on Job Board Settings page only 36 36 if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify' ) { … … 38 38 if ( !$notify_donot_load_css ) { 39 39 // Enqueue Core Admin Styles 40 wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/mystyle.css', __FILE__ )); 40 wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/mystyle.css', __FILE__ )); 41 41 42 } else { 42 43 43 // se la selezione notify_donot_load_css attiva Enqueue Minimal CSS Styles 44 44 wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ )); 45 46 47 } 48 49 45 } 50 46 wp_enqueue_script('nftb_plugin_script', plugins_url('/myjs.js', __FILE__), array('jquery') ); 51 47 52 } 53 48 } 54 49 } 55 50 56 51 57 //add_action('admin_enqueue_scripts', 'nftb_init_method'); 58 add_action('init', 'nftb_init_method'); 59 60 //trim css per carcaricrae il mio 61 function nftb_trim_css_version($src) { 62 if (strpos($src, 'ver=')) { 63 $src = remove_query_arg('ver', $src); 64 } 65 return $src; 66 } 67 add_filter('style_loader_src', 'nftb_trim_css_version', 9999); 52 53 54 55 68 56 69 57 // Activation -
notification-for-telegram/trunk/readme.txt
r3337411 r3337644 5 5 Requires at least: 4.0 6 6 Tested up to: 6.8.1 7 Stable tag: 3.4. 47 Stable tag: 3.4.5 8 8 Requires PHP: 7.4 9 9 License: GPLv2 or later … … 276 276 == Changelog == 277 277 278 = 3.4.5 = 279 Removed ver stripping from asset URLs for better cache handling and plugin compatibility. 280 278 281 = 3.4.4 = 279 282 Better logic to add the minimal CSS when main CSS is disable
Note: See TracChangeset
for help on using the changeset viewer.