PluginProbe
QuadMenu – Mega Menu / 2.0.2
QuadMenu – Mega Menu v2.0.2
3.3.7 3.3.6 trunk 1.8.4 1.8.5 1.8.7 1.8.8 1.8.9 1.9.0 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 All 87 releases
quadmenu / includes / icons.php

icons.php in QuadMenu – Mega Menu 2.0.2, at includes/icons.php

33 lines 784 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if (!defined('ABSPATH')) {
4 die('-1');
5 }
6
7 class QuadMenu_Icons extends QuadMenu_Redux {
8
9 public $args = array();
10 public $sections = array();
11 public $theme;
12 public $ReduxFramework;
13
14 public function __construct() {
15
16 add_action('redux/options/' . QUADMENU_DB_OPTIONS . '/settings/change', array($this, 'icons'), 10, 2);
17 }
18
19 static function icons($options = false, $changed = false) {
20
21 //if settings change, take new values from redux update
22 if (empty($changed['styles_icons']))
23 return;
24
25 QuadMenu_Redux::do_reload(true);
26
27 QuadMenu_Redux::add_notification('blue', sprintf(esc_html__('Theme icons have been changed. Your options panel will be reloaded. %s.', 'quadmenu'), esc_html__('Please wait', 'quadmenu')));
28 }
29
30 }
31
32 new QuadMenu_Icons();
33