Plugin Directory

Changeset 2900857


Ignore:
Timestamp:
04/18/2023 06:07:03 PM (3 years ago)
Author:
roumi
Message:

Release 2.3

Location:
wp-admin-notification-center
Files:
4 added
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • wp-admin-notification-center/tags/2.3/assets/css/notification_center.css

    r2886676 r2900857  
    1212}
    1313
    14 #wanc_container .notice, #wanc_container #message, #wanc_container .fs-notice, #wanc_container .pms-cross-promo {
     14#wanc_container .notice, #wanc_container #message, #wanc_container .fs-notice, #wanc_container .pms-cross-promo, #wanc_container .update {
    1515    margin: 20px 10px !important;
    1616}
  • wp-admin-notification-center/tags/2.3/assets/js/notice.js

    r2886676 r2900857  
    1818
    1919        //We get all the notifications to display in the modal
    20         this.preAdminNotifications = document.querySelectorAll('.notice, #message, .fs-notice, .pms-cross-promo');
     20        this.preAdminNotifications = document.querySelectorAll('.notice, #message, .fs-notice, .pms-cross-promo, .update');
    2121
    2222        //We get the notification button
     
    5555    },
    5656    moveNotifications: function () {
    57         document.getElementById('wanc_pre_notice_style-css').remove();
     57        const preNoticeStyle = document.getElementById('wanc_pre_notice_style-css');
     58        if (preNoticeStyle) {
     59            preNoticeStyle.remove();
     60        }
    5861        //If there is no notification to display => out
    5962        if (this.adminNotifications.length < 1) return true;
  • wp-admin-notification-center/tags/2.3/index.php

    r2886676 r2900857  
    66Author URI: https://github.com/roumilb
    77License: GPLv3
    8 Version: 2.2.3
     8Version: 2.3
    99Text Domain: wanc
    1010Domain Path: /languages
  • wp-admin-notification-center/tags/2.3/readme.txt

    r2886676 r2900857  
    33Tags: notification, notice, notices, notifications, admin
    44Requires at least: 5.0
    5 Tested up to: 6.1.1
     5Tested up to: 6.2
    66Requires PHP: 7.0
    7 Stable tag: 2.2.3
     7Stable tag: 2.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
    37 = 2.2.3 =
    38 * Change plugin name
    39 * Configuration as a better display
    40 * Cleaner code architecture
     37= 2.3 =
     38* Fix incompatibility with Mailpoet
     39* Change admin menu
  • wp-admin-notification-center/tags/2.3/src/Controllers/NotificationCenter.php

    r2771298 r2900857  
    1414    {
    1515        $this->wancSettingsLib = new WancSettings();
     16        add_filter('mailpoet_conflict_resolver_whitelist_script', [$this, 'mailpoetWhitelistScript']);
     17        add_filter('mailpoet_conflict_resolver_whitelist_style', [$this, 'mailpoetWhitelistStyle']);
    1618        add_action('admin_enqueue_scripts', [$this, 'addScript']);
    1719        add_action('admin_bar_menu', [$this, 'addItemInAdminBar'], 100);
     
    5254        wp_enqueue_style('wanc_pre_notice_style', plugins_url('wp-admin-notification-center/assets/css/pre_notification_center.css?time='.time()));
    5355    }
     56
     57    public function mailpoetWhitelistScript($scripts)
     58    {
     59        $scripts[] = 'wp-admin-notification-center';
     60        return $scripts;
     61    }
     62
     63    public function mailpoetWhitelistStyle($styles)
     64    {
     65        $styles[] = 'wp-admin-notification-center';
     66        return $styles;
     67    }
    5468}
  • wp-admin-notification-center/tags/2.3/src/Init.php

    r2878096 r2900857  
    2323    {
    2424        add_menu_page(
    25             'Notification Center',
    26             __('Notification Center', 'wanc'),
     25            'Hide Admin Notice',
     26            __('Hide Admin Notice', 'wanc'),
    2727            'manage_options',
    2828            self::WANC_SLUG_MENU,
    29             [new Settings(), 'optionsPage']
     29            [new Settings(), 'optionsPage'],
     30            plugins_url('wp-admin-notification-center/assets/images/logo.svg')
    3031        );
    3132    }
  • wp-admin-notification-center/trunk/assets/css/notification_center.css

    r2886676 r2900857  
    1212}
    1313
    14 #wanc_container .notice, #wanc_container #message, #wanc_container .fs-notice, #wanc_container .pms-cross-promo {
     14#wanc_container .notice, #wanc_container #message, #wanc_container .fs-notice, #wanc_container .pms-cross-promo, #wanc_container .update {
    1515    margin: 20px 10px !important;
    1616}
  • wp-admin-notification-center/trunk/assets/js/notice.js

    r2886676 r2900857  
    1818
    1919        //We get all the notifications to display in the modal
    20         this.preAdminNotifications = document.querySelectorAll('.notice, #message, .fs-notice, .pms-cross-promo');
     20        this.preAdminNotifications = document.querySelectorAll('.notice, #message, .fs-notice, .pms-cross-promo, .update');
    2121
    2222        //We get the notification button
     
    5555    },
    5656    moveNotifications: function () {
    57         document.getElementById('wanc_pre_notice_style-css').remove();
     57        const preNoticeStyle = document.getElementById('wanc_pre_notice_style-css');
     58        if (preNoticeStyle) {
     59            preNoticeStyle.remove();
     60        }
    5861        //If there is no notification to display => out
    5962        if (this.adminNotifications.length < 1) return true;
  • wp-admin-notification-center/trunk/index.php

    r2886676 r2900857  
    66Author URI: https://github.com/roumilb
    77License: GPLv3
    8 Version: 2.2.3
     8Version: 2.3
    99Text Domain: wanc
    1010Domain Path: /languages
  • wp-admin-notification-center/trunk/readme.txt

    r2886676 r2900857  
    33Tags: notification, notice, notices, notifications, admin
    44Requires at least: 5.0
    5 Tested up to: 6.1.1
     5Tested up to: 6.2
    66Requires PHP: 7.0
    7 Stable tag: 2.2.3
     7Stable tag: 2.3
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3535== Changelog ==
    3636
    37 = 2.2.3 =
    38 * Change plugin name
    39 * Configuration as a better display
    40 * Cleaner code architecture
     37= 2.3 =
     38* Fix incompatibility with Mailpoet
     39* Change admin menu
  • wp-admin-notification-center/trunk/src/Controllers/NotificationCenter.php

    r2771298 r2900857  
    1414    {
    1515        $this->wancSettingsLib = new WancSettings();
     16        add_filter('mailpoet_conflict_resolver_whitelist_script', [$this, 'mailpoetWhitelistScript']);
     17        add_filter('mailpoet_conflict_resolver_whitelist_style', [$this, 'mailpoetWhitelistStyle']);
    1618        add_action('admin_enqueue_scripts', [$this, 'addScript']);
    1719        add_action('admin_bar_menu', [$this, 'addItemInAdminBar'], 100);
     
    5254        wp_enqueue_style('wanc_pre_notice_style', plugins_url('wp-admin-notification-center/assets/css/pre_notification_center.css?time='.time()));
    5355    }
     56
     57    public function mailpoetWhitelistScript($scripts)
     58    {
     59        $scripts[] = 'wp-admin-notification-center';
     60        return $scripts;
     61    }
     62
     63    public function mailpoetWhitelistStyle($styles)
     64    {
     65        $styles[] = 'wp-admin-notification-center';
     66        return $styles;
     67    }
    5468}
  • wp-admin-notification-center/trunk/src/Init.php

    r2878096 r2900857  
    2323    {
    2424        add_menu_page(
    25             'Notification Center',
    26             __('Notification Center', 'wanc'),
     25            'Hide Admin Notice',
     26            __('Hide Admin Notice', 'wanc'),
    2727            'manage_options',
    2828            self::WANC_SLUG_MENU,
    29             [new Settings(), 'optionsPage']
     29            [new Settings(), 'optionsPage'],
     30            plugins_url('wp-admin-notification-center/assets/images/logo.svg')
    3031        );
    3132    }
Note: See TracChangeset for help on using the changeset viewer.