Plugin Directory

Changeset 3337644


Ignore:
Timestamp:
08/01/2025 07:57:38 AM (8 months ago)
Author:
rainafarai
Message:

si vola 3.4.5

Location:
notification-for-telegram
Files:
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • notification-for-telegram/tags/3.4.5/index.php

    r3337411 r3337644  
    2626}
    2727
     28add_action('init', 'nftb_init_method');
    2829
    2930function nftb_init_method() {
     
    3132    $telegram_notify_option = get_option('telegram_notify_option_name');
    3233    $notify_donot_load_css = isset($telegram_notify_option['notify_donot_load_css']) ? $telegram_notify_option['notify_donot_load_css'] : false;
    33    
    34 
     34   
    3535//Enqueue Admin CSS on Job Board Settings page only
    3636if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify'  ) {
     
    3838    if ( !$notify_donot_load_css  ) {
    3939    // 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   
    4142    } else {
    42        
    4343        // se la selezione notify_donot_load_css attiva Enqueue Minimal CSS Styles
    4444        wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ ));
    45 
    46 
    47     }
    48      
    49  
     45    }
    5046wp_enqueue_script('nftb_plugin_script', plugins_url('/myjs.js', __FILE__), array('jquery') );
    5147
    52     }
    53        
     48    }       
    5449}   
    5550
    5651
    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
    6856
    6957// Activation
  • notification-for-telegram/tags/3.4.5/readme.txt

    r3337411 r3337644  
    55Requires at least: 4.0
    66Tested up to: 6.8.1
    7 Stable tag: 3.4.4
     7Stable tag: 3.4.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    276276== Changelog ==
    277277
     278= 3.4.5 =
     279Removed ver stripping from asset URLs for better cache handling and plugin compatibility.
     280
    278281= 3.4.4 =
    279282Better logic to add the minimal CSS when main CSS is disable
  • notification-for-telegram/trunk/index.php

    r3337411 r3337644  
    2626}
    2727
     28add_action('init', 'nftb_init_method');
    2829
    2930function nftb_init_method() {
     
    3132    $telegram_notify_option = get_option('telegram_notify_option_name');
    3233    $notify_donot_load_css = isset($telegram_notify_option['notify_donot_load_css']) ? $telegram_notify_option['notify_donot_load_css'] : false;
    33    
    34 
     34   
    3535//Enqueue Admin CSS on Job Board Settings page only
    3636if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify'  ) {
     
    3838    if ( !$notify_donot_load_css  ) {
    3939    // 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   
    4142    } else {
    42        
    4343        // se la selezione notify_donot_load_css attiva Enqueue Minimal CSS Styles
    4444        wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ ));
    45 
    46 
    47     }
    48      
    49  
     45    }
    5046wp_enqueue_script('nftb_plugin_script', plugins_url('/myjs.js', __FILE__), array('jquery') );
    5147
    52     }
    53        
     48    }       
    5449}   
    5550
    5651
    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
    6856
    6957// Activation
  • notification-for-telegram/trunk/readme.txt

    r3337411 r3337644  
    55Requires at least: 4.0
    66Tested up to: 6.8.1
    7 Stable tag: 3.4.4
     7Stable tag: 3.4.5
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    276276== Changelog ==
    277277
     278= 3.4.5 =
     279Removed ver stripping from asset URLs for better cache handling and plugin compatibility.
     280
    278281= 3.4.4 =
    279282Better logic to add the minimal CSS when main CSS is disable
Note: See TracChangeset for help on using the changeset viewer.