Permalink
Browse files

Add notification plugin.

git-svn-id: http://plugins.svn.wordpress.org/menu-image/trunk@1450696 b8457f37-d9ea-0310-8a92-e5e31aec5664
  • Loading branch information...
zviryatko
zviryatko committed Jul 7, 2016
1 parent e62f620 commit 26cbfcbeeb94e08167a5d0af9b825c46fa8e8074
Showing with 969 additions and 3 deletions.
  1. +4 −1 README.md
  2. +13 −1 menu-image.php
  3. +948 −0 notice.php
  4. +4 −1 readme.txt
View
@@ -4,7 +4,7 @@
**Donate link:** http://makeyoulivebetter.org.ua/buy-beer
**Requires at least:** 3.5.1
**Tested up to:** 4.5
**Stable tag:** 2.6.4
**Stable tag:** 2.6.5
**License:** GPLv2 or later
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,9 @@ Then you can disable srcset (add it to your function.php):
## Changelog ##
### 2.6.5 ###
* Add notification plugin.
### 2.6.4 ###
* Fixing a clearing bug for WordPress 4.5+. Thanx @kau-boy
View
@@ -10,7 +10,7 @@
Plugin URI: http://html-and-cms.com/plugins/menu-image/
Description: Provide uploading images to menu item
Author: Alex Davyskiba aka Zviryatko
Version: 2.6.4
Version: 2.6.5
Author URI: http://makeyoulivebetter.org.ua/
*/
@@ -30,6 +30,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
require_once( 'notice.php' );
/**
* Provide attaching images to menu items.
*
@@ -64,6 +66,13 @@ class Menu_Image_Plugin {
*/
private $additionalDisplayableImageExtensions = array( 'ico' );
/**
* Notification plugin.
*
* @var AccelioNotice
*/
private $notice;
/**
* Plugin constructor, add all filters and actions.
*/
@@ -83,6 +92,9 @@ public function __construct() {
add_action( 'wp_update_nav_menu_item', array( $this, 'wp_update_nav_menu_item_action' ), 10, 2 );
add_action( 'admin_init', array( $this, 'admin_init' ), 99 );
add_filter( 'jetpack_photon_override_image_downsize', array( $this, 'jetpack_photon_override_image_downsize_filter' ), 10, 2 );
// Init notification plugin.
$this->notice = new AccelioNotice();
$this->notice->init();
}
/**
Oops, something went wrong.

0 comments on commit 26cbfcb

Please sign in to comment.