Plugin Directory

Changeset 3337411


Ignore:
Timestamp:
07/31/2025 05:12:04 PM (8 months ago)
Author:
rainafarai
Message:

versione 3.4.4 fix css logic

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

Legend:

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

    r3337300 r3337411  
    44* Plugin URI: https://www.reggae.it/my-wordpress-plugins
    55 * Description:  Sends notifications to Telegram when events occur in WordPress.
    6  * Version: 3.4.3
     6 * Version: 3.4.4
    77 * Author: Andrea Marinucci
    88 * Author URI:
     
    3434
    3535//Enqueue Admin CSS on Job Board Settings page only
    36 if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify' && !$notify_donot_load_css  ) {
    37     // Enqueue Core Admin Styles
     36if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify'  ) {
     37   
     38    if ( !$notify_donot_load_css  ) {
     39    // Enqueue Core Admin Styles
    3840    wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/mystyle.css', __FILE__ ));
    39    
    40 
    41     //OLD BOOTSTRAP CODE
    42      // JS
    43     // wp_register_script('nftb_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js');
    44     // wp_enqueue_script('nftb_bootstrap');
    45 
    46     // CSS
    47     // wp_register_style('nftb_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
    48     // wp_enqueue_style('nftb_bootstrap');
    49    
     41    } else {
     42       
     43        // se la selezione notify_donot_load_css attiva Enqueue Minimal CSS Styles
     44        wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ ));
     45
     46
     47    }
     48     
    5049 
    5150wp_enqueue_script('nftb_plugin_script', plugins_url('/myjs.js', __FILE__), array('jquery') );
    5251
    53     } else {
    54         wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ ));
    55    
    56 //      echo '<style>
    57 // .telegram-notify-page .telegram-notify-nav-tab {
    58 //     float: left;
    59 
    60 //     padding: 5px 10px;
    61 //     font-size: 14px;
    62 //     line-height: 1.71428571;
    63  
    64    
    65 // }
    66 // </style>';
    67 
    68 
    69     }
     52    }
    7053       
    7154}   
  • notification-for-telegram/tags/3.4.4/readme.txt

    r3337300 r3337411  
    55Requires at least: 4.0
    66Tested up to: 6.8.1
    7 Stable tag: 3.4.3
     7Stable tag: 3.4.4
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    276276== Changelog ==
    277277
     278= 3.4.4 =
     279Better logic to add the minimal CSS when main CSS is disable
     280
    278281= 3.4.3 =
    279 Added a minimal CSS when Main CSS is disabled
     282Added a minimal CSS when main CSS is disabled
    280283
    281284= 3.4.2 =
  • notification-for-telegram/trunk/index.php

    r3337300 r3337411  
    44* Plugin URI: https://www.reggae.it/my-wordpress-plugins
    55 * Description:  Sends notifications to Telegram when events occur in WordPress.
    6  * Version: 3.4.3
     6 * Version: 3.4.4
    77 * Author: Andrea Marinucci
    88 * Author URI:
     
    3434
    3535//Enqueue Admin CSS on Job Board Settings page only
    36 if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify' && !$notify_donot_load_css  ) {
    37     // Enqueue Core Admin Styles
     36if ( isset( $_GET['page'] ) && $_GET['page'] == 'telegram-notify'  ) {
     37   
     38    if ( !$notify_donot_load_css  ) {
     39    // Enqueue Core Admin Styles
    3840    wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/mystyle.css', __FILE__ ));
    39    
    40 
    41     //OLD BOOTSTRAP CODE
    42      // JS
    43     // wp_register_script('nftb_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js');
    44     // wp_enqueue_script('nftb_bootstrap');
    45 
    46     // CSS
    47     // wp_register_style('nftb_bootstrap', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css');
    48     // wp_enqueue_style('nftb_bootstrap');
    49    
     41    } else {
     42       
     43        // se la selezione notify_donot_load_css attiva Enqueue Minimal CSS Styles
     44        wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ ));
     45
     46
     47    }
     48     
    5049 
    5150wp_enqueue_script('nftb_plugin_script', plugins_url('/myjs.js', __FILE__), array('jquery') );
    5251
    53     } else {
    54         wp_enqueue_style( 'nftb_plugin_script2', plugins_url ( '/nftb_minimal.css', __FILE__ ));
    55    
    56 //      echo '<style>
    57 // .telegram-notify-page .telegram-notify-nav-tab {
    58 //     float: left;
    59 
    60 //     padding: 5px 10px;
    61 //     font-size: 14px;
    62 //     line-height: 1.71428571;
    63  
    64    
    65 // }
    66 // </style>';
    67 
    68 
    69     }
     52    }
    7053       
    7154}   
  • notification-for-telegram/trunk/readme.txt

    r3337300 r3337411  
    55Requires at least: 4.0
    66Tested up to: 6.8.1
    7 Stable tag: 3.4.3
     7Stable tag: 3.4.4
    88Requires PHP: 7.4
    99License: GPLv2 or later
     
    276276== Changelog ==
    277277
     278= 3.4.4 =
     279Better logic to add the minimal CSS when main CSS is disable
     280
    278281= 3.4.3 =
    279 Added a minimal CSS when Main CSS is disabled
     282Added a minimal CSS when main CSS is disabled
    280283
    281284= 3.4.2 =
Note: See TracChangeset for help on using the changeset viewer.