Version Description
- Fixed: Empty global values to return.
- Fixed: Check the sidemenus slug with htmlspecialchars_decode().
Download this release
Release Info
Developer | gqevu6bsiz |
Plugin | WP Admin UI Customize |
Version | 1.5.6 |
Comparing to | |
See all releases |
Code changes from version 1.5.5 to 1.5.6
- inc/setting_admin_bar_menu.php +3 -0
- inc/setting_dashboard.php +4 -0
- inc/setting_default.php +1 -1
- inc/setting_manage_metabox.php +6 -0
- inc/setting_sidemenu.php +14 -6
- readme.txt +7 -3
- wp-admin-ui-customize.php +34 -9
inc/setting_admin_bar_menu.php
CHANGED
@@ -194,6 +194,9 @@ body.wp-admin-ui-customize_page_wp_admin_ui_customize_admin_bar .postbox .inside
|
|
194 |
.widget h4 {
|
195 |
padding: 10px 15px;
|
196 |
}
|
|
|
|
|
|
|
197 |
.widget-top a.widget-action:after {
|
198 |
padding: 9px 12px;
|
199 |
}
|
194 |
.widget h4 {
|
195 |
padding: 10px 15px;
|
196 |
}
|
197 |
+
.widget-top a.widget-action {
|
198 |
+
cursor: pointer;
|
199 |
+
}
|
200 |
.widget-top a.widget-action:after {
|
201 |
padding: 9px 12px;
|
202 |
}
|
inc/setting_dashboard.php
CHANGED
@@ -92,6 +92,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
92 |
|
93 |
<p>
|
94 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
|
|
95 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Dashboard' ) ); ?>
|
96 |
</a>
|
97 |
</p>
|
@@ -157,6 +158,9 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
157 |
float: left;
|
158 |
visibility: visible;
|
159 |
}
|
|
|
|
|
|
|
160 |
</style>
|
161 |
<script type="text/javascript">
|
162 |
jQuery(document).ready(function($) {
|
92 |
|
93 |
<p>
|
94 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
95 |
+
<span class="dashicons dashicons-update"></span>
|
96 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Dashboard' ) ); ?>
|
97 |
</a>
|
98 |
</p>
|
158 |
float: left;
|
159 |
visibility: visible;
|
160 |
}
|
161 |
+
.button.column_load .dashicons {
|
162 |
+
margin-top: 3px;
|
163 |
+
}
|
164 |
</style>
|
165 |
<script type="text/javascript">
|
166 |
jQuery(document).ready(function($) {
|
inc/setting_default.php
CHANGED
@@ -55,7 +55,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
55 |
<div class="stuffbox" id="aboutbox">
|
56 |
<h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd ); ?></span></h3>
|
57 |
<div class="inside">
|
58 |
-
<p><?php _e( 'Version checked' , $this->ltd ); ?> : 3.8 - 4.
|
59 |
<ul>
|
60 |
<li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd ); ?></a></li>
|
61 |
<li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd ); ?></a></li>
|
55 |
<div class="stuffbox" id="aboutbox">
|
56 |
<h3><span class="hndle"><?php _e( 'About plugin' , $this->ltd ); ?></span></h3>
|
57 |
<div class="inside">
|
58 |
+
<p><?php _e( 'Version checked' , $this->ltd ); ?> : 3.8 - 4.3</p>
|
59 |
<ul>
|
60 |
<li><a href="<?php echo $this->Site; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Plugin\'s site' , $this->ltd ); ?></a></li>
|
61 |
<li><a href="<?php echo $this->AuthorUrl; ?>?utm_source=use_plugin&utm_medium=side&utm_content=<?php echo $this->ltd; ?>&utm_campaign=<?php echo str_replace( '.' , '_' , $this->Ver ); ?>" target="_blank"><?php _e( 'Developer\'s site' , $this->ltd ); ?></a></li>
|
inc/setting_manage_metabox.php
CHANGED
@@ -119,6 +119,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
119 |
|
120 |
<p>
|
121 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
|
|
122 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Posts' ) ); ?>
|
123 |
</a>
|
124 |
</p>
|
@@ -214,6 +215,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
214 |
|
215 |
<p>
|
216 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
|
|
217 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Pages' ) ); ?>
|
218 |
</a>
|
219 |
</p>
|
@@ -321,6 +323,7 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
321 |
|
322 |
<p>
|
323 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
|
|
324 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , $cpt->label ); ?>
|
325 |
</a>
|
326 |
</p>
|
@@ -367,6 +370,9 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
367 |
float: left;
|
368 |
visibility: visible;
|
369 |
}
|
|
|
|
|
|
|
370 |
</style>
|
371 |
<script type="text/javascript">
|
372 |
jQuery(document).ready(function($) {
|
119 |
|
120 |
<p>
|
121 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
122 |
+
<span class="dashicons dashicons-update"></span>
|
123 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Posts' ) ); ?>
|
124 |
</a>
|
125 |
</p>
|
215 |
|
216 |
<p>
|
217 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
218 |
+
<span class="dashicons dashicons-update"></span>
|
219 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , __( 'Pages' ) ); ?>
|
220 |
</a>
|
221 |
</p>
|
323 |
|
324 |
<p>
|
325 |
<a href="<?php echo $load_link; ?>" class="button button-primary column_load">
|
326 |
+
<span class="dashicons dashicons-update"></span>
|
327 |
<?php echo sprintf( __( 'Metaboxes loading for %s', $this->ltd ) , $cpt->label ); ?>
|
328 |
</a>
|
329 |
</p>
|
370 |
float: left;
|
371 |
visibility: visible;
|
372 |
}
|
373 |
+
.button.column_load .dashicons {
|
374 |
+
margin-top: 3px;
|
375 |
+
}
|
376 |
</style>
|
377 |
<script type="text/javascript">
|
378 |
jQuery(document).ready(function($) {
|
inc/setting_sidemenu.php
CHANGED
@@ -167,16 +167,21 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
167 |
|
168 |
<?php if( !empty( $mm["title"] ) ) : ?>
|
169 |
|
|
|
|
|
170 |
<?php $mwsm = array(); ?>
|
171 |
<?php if( !empty( $Data["sub"] ) ) : ?>
|
172 |
<?php foreach($Data["sub"] as $sm) : ?>
|
|
|
|
|
|
|
173 |
|
174 |
-
<?php if( $
|
175 |
|
176 |
<?php $cap = ""; ?>
|
177 |
-
<?php if( !empty( $
|
178 |
-
<?php foreach( $
|
179 |
-
<?php if( $tmp_sm[2] == $
|
180 |
<?php $cap = $tmp_sm[1]; ?>
|
181 |
<?php break; ?>
|
182 |
<?php endif; ?>
|
@@ -192,12 +197,12 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
192 |
|
193 |
<?php $cap = ""; ?>
|
194 |
<?php foreach( $this->Menu as $tmp_m ) : ?>
|
195 |
-
<?php if( $tmp_m[2] == $
|
196 |
<?php $cap = $tmp_m[1]; ?>
|
197 |
<?php break; ?>
|
198 |
<?php endif; ?>
|
199 |
<?php endforeach; ?>
|
200 |
-
|
201 |
<?php $menu_widget = array( 'title' => $mm["title"] , 'slug' => $mm["slug"] , 'parent_slug' => '' , 'new' => false , 'cap' =>$cap , 'submenu' => $mwsm ); ?>
|
202 |
<?php $this->sidebar_menu_widget( $menu_widget ); ?>
|
203 |
|
@@ -243,6 +248,9 @@ wp_enqueue_style( $this->PageSlug , $this->Url . $this->PluginSlug . '.css', arr
|
|
243 |
.widget h4 {
|
244 |
padding: 12px 15px;
|
245 |
}
|
|
|
|
|
|
|
246 |
.widget-top a.widget-action:after {
|
247 |
padding: 7px 12px;
|
248 |
}
|
167 |
|
168 |
<?php if( !empty( $mm["title"] ) ) : ?>
|
169 |
|
170 |
+
<?php $mm_slug = htmlspecialchars_decode( $mm["slug"] ); ?>
|
171 |
+
|
172 |
<?php $mwsm = array(); ?>
|
173 |
<?php if( !empty( $Data["sub"] ) ) : ?>
|
174 |
<?php foreach($Data["sub"] as $sm) : ?>
|
175 |
+
|
176 |
+
<?php $sm_slug = htmlspecialchars_decode( $sm["slug"] ); ?>
|
177 |
+
<?php $sm_parent_slug = htmlspecialchars_decode( $sm["parent_slug"] ); ?>
|
178 |
|
179 |
+
<?php if( $mm_slug == $sm_parent_slug ) : ?>
|
180 |
|
181 |
<?php $cap = ""; ?>
|
182 |
+
<?php if( !empty( $this->SubMenu[$mm_slug] ) ) : ?>
|
183 |
+
<?php foreach( $this->SubMenu[$mm_slug] as $k => $tmp_sm ) : ?>
|
184 |
+
<?php if( $tmp_sm[2] == $sm_slug ) : ?>
|
185 |
<?php $cap = $tmp_sm[1]; ?>
|
186 |
<?php break; ?>
|
187 |
<?php endif; ?>
|
197 |
|
198 |
<?php $cap = ""; ?>
|
199 |
<?php foreach( $this->Menu as $tmp_m ) : ?>
|
200 |
+
<?php if( $tmp_m[2] == $mm_slug ) : ?>
|
201 |
<?php $cap = $tmp_m[1]; ?>
|
202 |
<?php break; ?>
|
203 |
<?php endif; ?>
|
204 |
<?php endforeach; ?>
|
205 |
+
|
206 |
<?php $menu_widget = array( 'title' => $mm["title"] , 'slug' => $mm["slug"] , 'parent_slug' => '' , 'new' => false , 'cap' =>$cap , 'submenu' => $mwsm ); ?>
|
207 |
<?php $this->sidebar_menu_widget( $menu_widget ); ?>
|
208 |
|
248 |
.widget h4 {
|
249 |
padding: 12px 15px;
|
250 |
}
|
251 |
+
.widget-top a.widget-action {
|
252 |
+
cursor: pointer;
|
253 |
+
}
|
254 |
.widget-top a.widget-action:after {
|
255 |
padding: 7px 12px;
|
256 |
}
|
readme.txt
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
=== WP Admin UI Customize ===
|
2 |
Contributors: gqevu6bsiz
|
3 |
-
Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
|
5 |
Requires at least: 3.8
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
@@ -50,6 +50,10 @@ These to Customization is possible.
|
|
50 |
|
51 |
== Changelog ==
|
52 |
|
|
|
|
|
|
|
|
|
53 |
= 1.5.5 =
|
54 |
* Fixed: Menu items can not expand with Google Chrome.
|
55 |
|
1 |
=== WP Admin UI Customize ===
|
2 |
Contributors: gqevu6bsiz
|
3 |
+
Donate link: http://gqevu6bsiz.chicappa.jp/please-donation/?utm_source=wporg&utm_medium=donate&utm_content=wauc&utm_campaign=1_5_6
|
4 |
Tags: admin, post, posts, page, option, sitemenu, menu, custom, customize, dashboard, admin_bar, multisite, network, metabox
|
5 |
Requires at least: 3.8
|
6 |
+
Tested up to: 4.3
|
7 |
+
Stable tag: 1.5.6
|
8 |
License: GPL2
|
9 |
|
10 |
Customize the management screen UI.
|
50 |
|
51 |
== Changelog ==
|
52 |
|
53 |
+
= 1.5.6 =
|
54 |
+
* Fixed: Empty global values to return.
|
55 |
+
* Fixed: Check the sidemenus slug with htmlspecialchars_decode().
|
56 |
+
|
57 |
= 1.5.5 =
|
58 |
* Fixed: Menu items can not expand with Google Chrome.
|
59 |
|
wp-admin-ui-customize.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
-
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
6 |
-
Version: 1.5.
|
7 |
Author: gqevu6bsiz
|
8 |
-
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
@@ -58,7 +58,7 @@ class WP_Admin_UI_Customize
|
|
58 |
|
59 |
|
60 |
function __construct() {
|
61 |
-
$this->Ver = '1.5.
|
62 |
$this->Name = 'WP Admin UI Customize';
|
63 |
$this->Dir = plugin_dir_path( __FILE__ );
|
64 |
$this->Url = plugin_dir_url( __FILE__ );
|
@@ -1827,6 +1827,12 @@ class WP_Admin_UI_Customize
|
|
1827 |
function admin_bar_menu() {
|
1828 |
global $wp_admin_bar;
|
1829 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1830 |
$GetData = $this->get_flit_data( 'admin_bar_menu' );
|
1831 |
|
1832 |
if( !empty( $GetData["UPFN"] ) ) {
|
@@ -2221,6 +2227,12 @@ class WP_Admin_UI_Customize
|
|
2221 |
// FilterStart
|
2222 |
function wp_dashboard_setup() {
|
2223 |
global $wp_meta_boxes;
|
|
|
|
|
|
|
|
|
|
|
|
|
2224 |
|
2225 |
$Data = $this->get_flit_data( 'dashboard' );
|
2226 |
|
@@ -2257,6 +2269,12 @@ class WP_Admin_UI_Customize
|
|
2257 |
// FilterStart
|
2258 |
function manage_metabox() {
|
2259 |
global $wp_meta_boxes, $current_screen, $post_type;
|
|
|
|
|
|
|
|
|
|
|
|
|
2260 |
|
2261 |
$GetData = $this->get_flit_data( 'manage_metabox' );
|
2262 |
|
@@ -2322,6 +2340,12 @@ class WP_Admin_UI_Customize
|
|
2322 |
global $menu;
|
2323 |
global $submenu;
|
2324 |
|
|
|
|
|
|
|
|
|
|
|
|
|
2325 |
$GetData = $this->get_flit_data( 'sidemenu' );
|
2326 |
$General = $this->get_flit_data( 'admin_general' );
|
2327 |
|
@@ -2408,8 +2432,9 @@ class WP_Admin_UI_Customize
|
|
2408 |
$SetMain_menu[] = $separator_menu;
|
2409 |
} else {
|
2410 |
$gm_search = false;
|
|
|
2411 |
foreach($menu as $gm_pos => $gm) {
|
2412 |
-
if($mm["slug"] == $gm[2]) {
|
2413 |
$menu[$gm_pos][0] = $this->val_replace( $mm["title"] );
|
2414 |
$SetMain_menu[] = $menu[$gm_pos];
|
2415 |
$gm_search = true;
|
@@ -2419,8 +2444,7 @@ class WP_Admin_UI_Customize
|
|
2419 |
if( empty( $gm_search ) ) {
|
2420 |
foreach($submenu as $gsm_parent_slug => $v) {
|
2421 |
foreach($v as $gsm_pos => $gsm) {
|
2422 |
-
if($mm["slug"] == $gsm[2]) {
|
2423 |
-
|
2424 |
foreach($menu as $tmp_m) {
|
2425 |
if( $tmp_m[2] == $gsm_parent_slug) {
|
2426 |
$submenu[$gsm_parent_slug][$gsm_pos][4] = $tmp_m[4];
|
@@ -2439,12 +2463,13 @@ class WP_Admin_UI_Customize
|
|
2439 |
|
2440 |
if( !empty( $GetData["sub"] ) ) {
|
2441 |
foreach($GetData["sub"] as $sm_pos => $sm) {
|
|
|
2442 |
if($sm["slug"] == 'separator') {
|
2443 |
$SetMain_submenu[$sm["parent_slug"]][] = $separator_menu;
|
2444 |
} else {
|
2445 |
$gm_search = false;
|
2446 |
foreach($menu as $gm_pos => $gm) {
|
2447 |
-
if($sm["slug"] == $gm[2]) {
|
2448 |
$menu[$gm_pos][0] = $this->val_replace( $sm["title"] );
|
2449 |
$SetMain_submenu[$sm["parent_slug"]][] = $menu[$gm_pos];
|
2450 |
$gm_search = true;
|
@@ -2454,7 +2479,7 @@ class WP_Admin_UI_Customize
|
|
2454 |
if( empty( $gm_search ) ) {
|
2455 |
foreach($submenu as $gsm_parent_slug => $v) {
|
2456 |
foreach($v as $gsm_pos => $gsm) {
|
2457 |
-
if($sm["slug"] == $gsm[2]) {
|
2458 |
$submenu[$gsm_parent_slug][$gsm_pos][0] = $this->val_replace( $sm["title"] );
|
2459 |
$SetMain_submenu[$sm["parent_slug"]][] = $submenu[$gsm_parent_slug][$gsm_pos];
|
2460 |
}
|
2 |
/*
|
3 |
Plugin Name: WP Admin UI Customize
|
4 |
Description: An excellent plugin to customize the management screens.
|
5 |
+
Plugin URI: http://wpadminuicustomize.com/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_6
|
6 |
+
Version: 1.5.6
|
7 |
Author: gqevu6bsiz
|
8 |
+
Author URI: http://gqevu6bsiz.chicappa.jp/?utm_source=use_plugin&utm_medium=list&utm_content=wauc&utm_campaign=1_5_6
|
9 |
Text Domain: wauc
|
10 |
Domain Path: /languages
|
11 |
*/
|
58 |
|
59 |
|
60 |
function __construct() {
|
61 |
+
$this->Ver = '1.5.6';
|
62 |
$this->Name = 'WP Admin UI Customize';
|
63 |
$this->Dir = plugin_dir_path( __FILE__ );
|
64 |
$this->Url = plugin_dir_url( __FILE__ );
|
1827 |
function admin_bar_menu() {
|
1828 |
global $wp_admin_bar;
|
1829 |
|
1830 |
+
if( empty( $wp_admin_bar ) ) {
|
1831 |
+
|
1832 |
+
return false;
|
1833 |
+
|
1834 |
+
}
|
1835 |
+
|
1836 |
$GetData = $this->get_flit_data( 'admin_bar_menu' );
|
1837 |
|
1838 |
if( !empty( $GetData["UPFN"] ) ) {
|
2227 |
// FilterStart
|
2228 |
function wp_dashboard_setup() {
|
2229 |
global $wp_meta_boxes;
|
2230 |
+
|
2231 |
+
if( empty( $wp_meta_boxes ) ) {
|
2232 |
+
|
2233 |
+
return false;
|
2234 |
+
|
2235 |
+
}
|
2236 |
|
2237 |
$Data = $this->get_flit_data( 'dashboard' );
|
2238 |
|
2269 |
// FilterStart
|
2270 |
function manage_metabox() {
|
2271 |
global $wp_meta_boxes, $current_screen, $post_type;
|
2272 |
+
|
2273 |
+
if( empty( $current_screen ) or empty( $wp_meta_boxes ) or empty( $post_type ) ) {
|
2274 |
+
|
2275 |
+
return false;
|
2276 |
+
|
2277 |
+
}
|
2278 |
|
2279 |
$GetData = $this->get_flit_data( 'manage_metabox' );
|
2280 |
|
2340 |
global $menu;
|
2341 |
global $submenu;
|
2342 |
|
2343 |
+
if( empty( $menu ) ) {
|
2344 |
+
|
2345 |
+
return false;
|
2346 |
+
|
2347 |
+
}
|
2348 |
+
|
2349 |
$GetData = $this->get_flit_data( 'sidemenu' );
|
2350 |
$General = $this->get_flit_data( 'admin_general' );
|
2351 |
|
2432 |
$SetMain_menu[] = $separator_menu;
|
2433 |
} else {
|
2434 |
$gm_search = false;
|
2435 |
+
$mm_slug_decode = htmlspecialchars_decode( $mm["slug"] );
|
2436 |
foreach($menu as $gm_pos => $gm) {
|
2437 |
+
if($mm["slug"] == $gm[2] or $mm_slug_decode == $gm[2]) {
|
2438 |
$menu[$gm_pos][0] = $this->val_replace( $mm["title"] );
|
2439 |
$SetMain_menu[] = $menu[$gm_pos];
|
2440 |
$gm_search = true;
|
2444 |
if( empty( $gm_search ) ) {
|
2445 |
foreach($submenu as $gsm_parent_slug => $v) {
|
2446 |
foreach($v as $gsm_pos => $gsm) {
|
2447 |
+
if($mm["slug"] == $gsm[2] or $mm_slug_decode == $gsm[2]) {
|
|
|
2448 |
foreach($menu as $tmp_m) {
|
2449 |
if( $tmp_m[2] == $gsm_parent_slug) {
|
2450 |
$submenu[$gsm_parent_slug][$gsm_pos][4] = $tmp_m[4];
|
2463 |
|
2464 |
if( !empty( $GetData["sub"] ) ) {
|
2465 |
foreach($GetData["sub"] as $sm_pos => $sm) {
|
2466 |
+
$sm_slug_decode = htmlspecialchars_decode( $sm["slug"] );
|
2467 |
if($sm["slug"] == 'separator') {
|
2468 |
$SetMain_submenu[$sm["parent_slug"]][] = $separator_menu;
|
2469 |
} else {
|
2470 |
$gm_search = false;
|
2471 |
foreach($menu as $gm_pos => $gm) {
|
2472 |
+
if($sm["slug"] == $gm[2] or $sm_slug_decode == $gm[2]) {
|
2473 |
$menu[$gm_pos][0] = $this->val_replace( $sm["title"] );
|
2474 |
$SetMain_submenu[$sm["parent_slug"]][] = $menu[$gm_pos];
|
2475 |
$gm_search = true;
|
2479 |
if( empty( $gm_search ) ) {
|
2480 |
foreach($submenu as $gsm_parent_slug => $v) {
|
2481 |
foreach($v as $gsm_pos => $gsm) {
|
2482 |
+
if($sm["slug"] == $gsm[2] or $sm_slug_decode == $gsm[2]) {
|
2483 |
$submenu[$gsm_parent_slug][$gsm_pos][0] = $this->val_replace( $sm["title"] );
|
2484 |
$SetMain_submenu[$sm["parent_slug"]][] = $submenu[$gsm_parent_slug][$gsm_pos];
|
2485 |
}
|