Version Description
Download this release
Release Info
Developer | danieliser |
Plugin | Popup Maker – Popup Forms, Optins & More |
Version | 1.5.2 |
Comparing to | |
See all releases |
Code changes from version 1.5.1 to 1.5.2
- includes/admin/settings/register-settings.php +6 -0
- includes/class-pum-extension-updater.php +1 -3
- includes/class-pum.php +1 -1
- includes/modules/admin-bar.php +1 -1
- includes/modules/menus.php +15 -7
- includes/modules/menus/class-pum-walker-nav-menu-edit-deprecated.php +72 -0
- includes/modules/menus/class-pum-walker-nav-menu-edit.php +73 -0
- includes/modules/menus/walker/nav-menu-edit-deprecated.php +0 -218
- includes/modules/menus/walker/nav-menu-edit.php +0 -222
- languages/popup-maker.pot +46 -38
- popup-maker.php +2 -2
- readme.txt +6 -1
includes/admin/settings/register-settings.php
CHANGED
@@ -150,6 +150,12 @@ function popmake_get_registered_settings() {
|
|
150 |
'extensions' => apply_filters( 'popmake_settings_extensions', array() ),
|
151 |
'licenses' => apply_filters( 'popmake_settings_licenses', array() ),
|
152 |
'misc' => apply_filters( 'popmake_settings_misc', array(
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
'debug_mode' => array(
|
154 |
'id' => 'debug_mode',
|
155 |
'name' => __( 'Enable Debug Mode', 'popup-maker' ),
|
150 |
'extensions' => apply_filters( 'popmake_settings_extensions', array() ),
|
151 |
'licenses' => apply_filters( 'popmake_settings_licenses', array() ),
|
152 |
'misc' => apply_filters( 'popmake_settings_misc', array(
|
153 |
+
'disabled_admin_bar' => array(
|
154 |
+
'id' => 'disabled_admin_bar',
|
155 |
+
'name' => __( 'Disable Popups Admin Bar', 'popup-maker' ),
|
156 |
+
'desc' => __( 'This will disable the admin Popups menu item.', 'popup-maker' ),
|
157 |
+
'type' => 'checkbox',
|
158 |
+
),
|
159 |
'debug_mode' => array(
|
160 |
'id' => 'debug_mode',
|
161 |
'name' => __( 'Enable Debug Mode', 'popup-maker' ),
|
includes/class-pum-extension-updater.php
CHANGED
@@ -359,15 +359,13 @@ class PUM_Extension_Updater {
|
|
359 |
|
360 |
if ( $request && isset( $request->sections ) ) {
|
361 |
$request->sections = maybe_unserialize( $request->sections );
|
362 |
-
} else {
|
363 |
-
$request = false;
|
364 |
}
|
365 |
|
366 |
if ( $request && isset( $request->banners ) ) {
|
367 |
$request->banners = maybe_unserialize( $request->banners );
|
368 |
}
|
369 |
|
370 |
-
if( ! empty( $request ) ) {
|
371 |
foreach( $request->sections as $key => $section ) {
|
372 |
$request->$key = (array) $section;
|
373 |
}
|
359 |
|
360 |
if ( $request && isset( $request->sections ) ) {
|
361 |
$request->sections = maybe_unserialize( $request->sections );
|
|
|
|
|
362 |
}
|
363 |
|
364 |
if ( $request && isset( $request->banners ) ) {
|
365 |
$request->banners = maybe_unserialize( $request->banners );
|
366 |
}
|
367 |
|
368 |
+
if ( ! empty( $request->sections ) && is_array( $request->sections ) ) {
|
369 |
foreach( $request->sections as $key => $section ) {
|
370 |
$request->$key = (array) $section;
|
371 |
}
|
includes/class-pum.php
CHANGED
@@ -7,7 +7,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
7 |
|
8 |
class PUM {
|
9 |
|
10 |
-
const VER = '1.5.
|
11 |
|
12 |
const DB_VER = 6;
|
13 |
|
7 |
|
8 |
class PUM {
|
9 |
|
10 |
+
const VER = '1.5.2';
|
11 |
|
12 |
const DB_VER = 6;
|
13 |
|
includes/modules/admin-bar.php
CHANGED
@@ -63,7 +63,7 @@ class PUM_Modules_Admin_Bar {
|
|
63 |
*/
|
64 |
public static function toolbar_links( $wp_admin_bar ) {
|
65 |
|
66 |
-
if ( is_admin() ) {
|
67 |
return;
|
68 |
}
|
69 |
/*
|
63 |
*/
|
64 |
public static function toolbar_links( $wp_admin_bar ) {
|
65 |
|
66 |
+
if ( is_admin() || PUM_Options::get( 'disabled_admin_bar', false ) ) {
|
67 |
return;
|
68 |
}
|
69 |
/*
|
includes/modules/menus.php
CHANGED
@@ -4,6 +4,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
4 |
exit;
|
5 |
}
|
6 |
|
|
|
7 |
/**
|
8 |
* Class PUM_Modules_Menu
|
9 |
*
|
@@ -32,15 +33,21 @@ class PUM_Modules_Menu {
|
|
32 |
public static function nav_menu_walker() {
|
33 |
global $wp_version;
|
34 |
|
35 |
-
if (
|
36 |
-
require_once 'menus/walker/nav-menu-edit.php';
|
37 |
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
41 |
|
42 |
-
|
|
|
|
|
|
|
|
|
43 |
}
|
|
|
|
|
44 |
}
|
45 |
|
46 |
/**
|
@@ -181,6 +188,7 @@ class PUM_Modules_Menu {
|
|
181 |
|
182 |
if ( empty( $_POST['pum_nav_item_options'][ $item_id ] ) ) {
|
183 |
delete_post_meta( $item_id, '_pum_nav_item_options' );
|
|
|
184 |
return;
|
185 |
}
|
186 |
|
@@ -188,7 +196,7 @@ class PUM_Modules_Menu {
|
|
188 |
|
189 |
$item_options['popup_id'] = ! empty( $item_options['popup_id'] ) ? absint( $item_options['popup_id'] ) : 0;
|
190 |
|
191 |
-
if (
|
192 |
unset( $item_options['popup_id'] );
|
193 |
}
|
194 |
|
4 |
exit;
|
5 |
}
|
6 |
|
7 |
+
|
8 |
/**
|
9 |
* Class PUM_Modules_Menu
|
10 |
*
|
33 |
public static function nav_menu_walker() {
|
34 |
global $wp_version;
|
35 |
|
36 |
+
if ( ! class_exists( 'PUM_Walker_Nav_Menu_Edit' ) ) {
|
|
|
37 |
|
38 |
+
if ( ! class_exists( 'Walker_Nav_Menu_Edit' ) ) {
|
39 |
+
/** Walker_Nav_Menu_Edit class */
|
40 |
+
require_once ABSPATH . 'wp-admin/includes/class-walker-nav-menu-edit.php';
|
41 |
+
}
|
42 |
|
43 |
+
if ( version_compare( $wp_version, '3.6', '>=' ) ) {
|
44 |
+
require_once POPMAKE_DIR . '/includes/modules/menus/class-pum-walker-nav-menu-edit.php';
|
45 |
+
} else {
|
46 |
+
require_once POPMAKE_DIR . '/includes/modules/menus/class-pum-walker-nav-menu-edit-deprecated.php';
|
47 |
+
}
|
48 |
}
|
49 |
+
|
50 |
+
return 'PUM_Walker_Nav_Menu_Edit';
|
51 |
}
|
52 |
|
53 |
/**
|
188 |
|
189 |
if ( empty( $_POST['pum_nav_item_options'][ $item_id ] ) ) {
|
190 |
delete_post_meta( $item_id, '_pum_nav_item_options' );
|
191 |
+
|
192 |
return;
|
193 |
}
|
194 |
|
196 |
|
197 |
$item_options['popup_id'] = ! empty( $item_options['popup_id'] ) ? absint( $item_options['popup_id'] ) : 0;
|
198 |
|
199 |
+
if ( ! in_array( $item_options['popup_id'], $allowed_popups ) || $item_options['popup_id'] <= 0 ) {
|
200 |
unset( $item_options['popup_id'] );
|
201 |
}
|
202 |
|
includes/modules/menus/class-pum-walker-nav-menu-edit-deprecated.php
ADDED
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright (c) 2017, WP Popup Maker
|
5 |
+
******************************************************************************/
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Custom Walker for Nav Menu Editor
|
9 |
+
*
|
10 |
+
* Add wp_nav_menu_item_custom_fields hook to the nav menu editor.
|
11 |
+
*
|
12 |
+
* Credits:
|
13 |
+
* @helgatheviking - Initial concept which has made adding settings in the menu editor in a compatible way.
|
14 |
+
* @kucrut - preg_replace() method so that we no longer have to translate core strings
|
15 |
+
* @danieliser - refactor for less complexity between WP versions & updating versioned classes for proper backward compatibility with the new methods.
|
16 |
+
*
|
17 |
+
* @since 1.5.2
|
18 |
+
* @since WordPress 3.0.0
|
19 |
+
* @uses Walker_Nav_Menu_Edit
|
20 |
+
*/
|
21 |
+
class PUM_Walker_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Start the element output.
|
25 |
+
*
|
26 |
+
* @see Walker_Nav_Menu::start_el()
|
27 |
+
*
|
28 |
+
* @param string $output Passed by reference. Used to append additional content.
|
29 |
+
* @param object $item Menu item data object.
|
30 |
+
* @param int $depth Depth of menu item.
|
31 |
+
* @param array $args
|
32 |
+
*/
|
33 |
+
public function start_el( &$output, $item, $depth = 0, $args = array() ) {
|
34 |
+
parent::start_el( $output, $item, $depth, $args );
|
35 |
+
|
36 |
+
$output = preg_replace( '/(<p[^>]+class="[^"]*field-description(.|\n)*?<\/p>)/', "$1 \n" . $this->get_custom_fields( $item, $depth, $args ), $output );
|
37 |
+
}
|
38 |
+
|
39 |
+
/**
|
40 |
+
* Get custom fields
|
41 |
+
*
|
42 |
+
* @access protected
|
43 |
+
* @since 1.0.0
|
44 |
+
* @uses do_action() Calls 'menu_item_custom_fields' hook
|
45 |
+
*
|
46 |
+
* @param object $item Menu item data object.
|
47 |
+
* @param int $depth Depth of menu item. Used for padding.
|
48 |
+
* @param array $args Menu item args.
|
49 |
+
* @param int $id Nav menu ID.
|
50 |
+
*
|
51 |
+
* @return string Additional fields or html for the nav menu editor.
|
52 |
+
*/
|
53 |
+
protected function get_custom_fields( $item, $depth, $args = array() ) {
|
54 |
+
ob_start();
|
55 |
+
$item_id = intval( $item->ID );
|
56 |
+
/**
|
57 |
+
* Get menu item custom fields from plugins/themes
|
58 |
+
*
|
59 |
+
* @since 0.1.0
|
60 |
+
*
|
61 |
+
* @param int $item_id post ID of menu
|
62 |
+
* @param object $item Menu item data object.
|
63 |
+
* @param int $depth Depth of menu item. Used for padding.
|
64 |
+
* @param array $args Menu item args.
|
65 |
+
*
|
66 |
+
* @return string Custom fields
|
67 |
+
*/
|
68 |
+
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
|
69 |
+
|
70 |
+
return ob_get_clean();
|
71 |
+
}
|
72 |
+
}
|
includes/modules/menus/class-pum-walker-nav-menu-edit.php
ADDED
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
/*******************************************************************************
|
4 |
+
* Copyright (c) 2017, WP Popup Maker
|
5 |
+
******************************************************************************/
|
6 |
+
|
7 |
+
/**
|
8 |
+
* Custom Walker for Nav Menu Editor
|
9 |
+
*
|
10 |
+
* Add wp_nav_menu_item_custom_fields hook to the nav menu editor.
|
11 |
+
*
|
12 |
+
* Credits:
|
13 |
+
* @helgatheviking - Initial concept which has made adding settings in the menu editor in a compatible way.
|
14 |
+
* @kucrut - preg_replace() method so that we no longer have to translate core strings
|
15 |
+
* @danieliser - refactor for less complexity between WP versions & updating versioned classes for proper backward compatibility with the new methods.
|
16 |
+
*
|
17 |
+
* @since 1.5.2
|
18 |
+
* @since WordPress 3.6.0
|
19 |
+
* @uses Walker_Nav_Menu_Edit
|
20 |
+
*/
|
21 |
+
class PUM_Walker_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {
|
22 |
+
|
23 |
+
/**
|
24 |
+
* Start the element output.
|
25 |
+
*
|
26 |
+
* @see Walker_Nav_Menu::start_el()
|
27 |
+
*
|
28 |
+
* @param string $output Passed by reference. Used to append additional content.
|
29 |
+
* @param object $item Menu item data object.
|
30 |
+
* @param int $depth Depth of menu item.
|
31 |
+
* @param array $args
|
32 |
+
* @param int $id
|
33 |
+
*/
|
34 |
+
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
35 |
+
parent::start_el( $output, $item, $depth, $args, $id = 0 );
|
36 |
+
|
37 |
+
$output = preg_replace( '/(<p[^>]+class="[^"]*field-description(.|\n)*?<\/p>)/', "$1 \n" . $this->get_custom_fields( $item, $depth, $args ), $output );
|
38 |
+
}
|
39 |
+
|
40 |
+
|
41 |
+
/**
|
42 |
+
* Get custom fields
|
43 |
+
*
|
44 |
+
* @access protected
|
45 |
+
* @since 1.0.0
|
46 |
+
* @uses do_action() Calls 'menu_item_custom_fields' hook
|
47 |
+
*
|
48 |
+
* @param object $item Menu item data object.
|
49 |
+
* @param int $depth Depth of menu item. Used for padding.
|
50 |
+
* @param array $args Menu item args.
|
51 |
+
*
|
52 |
+
* @return string Additional fields or html for the nav menu editor.
|
53 |
+
*/
|
54 |
+
protected function get_custom_fields( $item, $depth, $args = array() ) {
|
55 |
+
ob_start();
|
56 |
+
$item_id = intval( $item->ID );
|
57 |
+
/**
|
58 |
+
* Get menu item custom fields from plugins/themes
|
59 |
+
*
|
60 |
+
* @since 0.1.0
|
61 |
+
*
|
62 |
+
* @param int $item_id post ID of menu
|
63 |
+
* @param object $item Menu item data object.
|
64 |
+
* @param int $depth Depth of menu item. Used for padding.
|
65 |
+
* @param array $args Menu item args.
|
66 |
+
*
|
67 |
+
* @return string Custom fields
|
68 |
+
*/
|
69 |
+
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args );
|
70 |
+
|
71 |
+
return ob_get_clean();
|
72 |
+
}
|
73 |
+
}
|
includes/modules/menus/walker/nav-menu-edit-deprecated.php
DELETED
@@ -1,218 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Navigation Menu API: (Modifed) Walker_Nav_Menu_Edit class
|
9 |
-
*
|
10 |
-
* Copied from Walker_Nav_Menu_Edit class in core /wp-admin/includes/nav-menu.php
|
11 |
-
*
|
12 |
-
* @since WordPress 3.0.0
|
13 |
-
*/
|
14 |
-
class PUM_Nav_Menu_Edit_Deprecated extends Walker_Nav_Menu {
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Start the element output.
|
18 |
-
*
|
19 |
-
* @see Walker_Nav_Menu::start_el()
|
20 |
-
* @since 3.0.0
|
21 |
-
*
|
22 |
-
* @global int $_wp_nav_menu_max_depth
|
23 |
-
*
|
24 |
-
* @param string $output Passed by reference. Used to append additional content.
|
25 |
-
* @param object $item Menu item data object.
|
26 |
-
* @param int $depth Depth of menu item. Used for padding.
|
27 |
-
* @param array $args Not used.
|
28 |
-
* @param int $id Not used.
|
29 |
-
*/
|
30 |
-
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
31 |
-
global $_wp_nav_menu_max_depth;
|
32 |
-
$_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
|
33 |
-
|
34 |
-
ob_start();
|
35 |
-
$item_id = esc_attr( $item->ID );
|
36 |
-
$removed_args = array(
|
37 |
-
'action',
|
38 |
-
'customlink-tab',
|
39 |
-
'edit-menu-item',
|
40 |
-
'menu-item',
|
41 |
-
'page-tab',
|
42 |
-
'_wpnonce',
|
43 |
-
);
|
44 |
-
|
45 |
-
$original_title = '';
|
46 |
-
if ( 'taxonomy' == $item->type ) {
|
47 |
-
$original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
|
48 |
-
if ( is_wp_error( $original_title ) )
|
49 |
-
$original_title = false;
|
50 |
-
} elseif ( 'post_type' == $item->type ) {
|
51 |
-
$original_object = get_post( $item->object_id );
|
52 |
-
$original_title = get_the_title( $original_object->ID );
|
53 |
-
} elseif ( 'post_type_archive' == $item->type ) {
|
54 |
-
$original_object = get_post_type_object( $item->object );
|
55 |
-
$original_title = $original_object->labels->archives;
|
56 |
-
}
|
57 |
-
|
58 |
-
$classes = array(
|
59 |
-
'menu-item menu-item-depth-' . $depth,
|
60 |
-
'menu-item-' . esc_attr( $item->object ),
|
61 |
-
'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive'),
|
62 |
-
);
|
63 |
-
|
64 |
-
$title = $item->title;
|
65 |
-
|
66 |
-
if ( ! empty( $item->_invalid ) ) {
|
67 |
-
$classes[] = 'menu-item-invalid';
|
68 |
-
/* translators: %s: title of menu item which is invalid */
|
69 |
-
$title = sprintf( __( '%s (Invalid)' , 'nav-menu-roles' ), $item->title );
|
70 |
-
} elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) {
|
71 |
-
$classes[] = 'pending';
|
72 |
-
/* translators: %s: title of menu item in draft status */
|
73 |
-
$title = sprintf( __('%s (Pending)', 'nav-menu-roles' ), $item->title );
|
74 |
-
}
|
75 |
-
|
76 |
-
$title = ( ! isset( $item->label ) || '' == $item->label ) ? $title : $item->label;
|
77 |
-
|
78 |
-
$submenu_text = '';
|
79 |
-
if ( 0 == $depth )
|
80 |
-
$submenu_text = 'style="display: none;"';
|
81 |
-
|
82 |
-
?>
|
83 |
-
<li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>">
|
84 |
-
<div class="menu-item-bar">
|
85 |
-
<div class="menu-item-handle">
|
86 |
-
<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' , 'nav-menu-roles' ); ?></span></span>
|
87 |
-
<span class="item-controls">
|
88 |
-
<span class="item-type"><?php echo esc_html( $item->type_label ); ?></span>
|
89 |
-
<span class="item-order hide-if-js">
|
90 |
-
<a href="<?php
|
91 |
-
echo wp_nonce_url(
|
92 |
-
add_query_arg(
|
93 |
-
array(
|
94 |
-
'action' => 'move-up-menu-item',
|
95 |
-
'menu-item' => $item_id,
|
96 |
-
),
|
97 |
-
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
98 |
-
),
|
99 |
-
'move-menu_item'
|
100 |
-
);
|
101 |
-
?>" class="item-move-up"><abbr title="<?php esc_attr_e('Move up', 'nav-menu-roles' ); ?>">↑</abbr></a>
|
102 |
-
|
|
103 |
-
<a href="<?php
|
104 |
-
echo wp_nonce_url(
|
105 |
-
add_query_arg(
|
106 |
-
array(
|
107 |
-
'action' => 'move-down-menu-item',
|
108 |
-
'menu-item' => $item_id,
|
109 |
-
),
|
110 |
-
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
111 |
-
),
|
112 |
-
'move-menu_item'
|
113 |
-
);
|
114 |
-
?>" class="item-move-down"><abbr title="<?php esc_attr_e('Move down', 'nav-menu-roles' ); ?>">↓</abbr></a>
|
115 |
-
</span>
|
116 |
-
<a class="item-edit" id="edit-<?php echo $item_id; ?>" title="<?php esc_attr_e('Edit Menu Item', 'nav-menu-roles' ); ?>" href="<?php
|
117 |
-
echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) );
|
118 |
-
?>"><?php _e( 'Edit Menu Item' , 'nav-menu-roles' ); ?></a>
|
119 |
-
</span>
|
120 |
-
</div>
|
121 |
-
</div>
|
122 |
-
|
123 |
-
<div class="menu-item-settings" id="menu-item-settings-<?php echo $item_id; ?>">
|
124 |
-
<?php if ( 'custom' == $item->type ) : ?>
|
125 |
-
<p class="field-url description description-wide">
|
126 |
-
<label for="edit-menu-item-url-<?php echo $item_id; ?>">
|
127 |
-
<?php _e( 'URL' , 'nav-menu-roles' ); ?><br />
|
128 |
-
<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
|
129 |
-
</label>
|
130 |
-
</p>
|
131 |
-
<?php endif; ?>
|
132 |
-
<p class="description description-wide">
|
133 |
-
<label for="edit-menu-item-title-<?php echo $item_id; ?>">
|
134 |
-
<?php _e( 'Navigation Label' , 'nav-menu-roles' ); ?><br />
|
135 |
-
<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
|
136 |
-
</label>
|
137 |
-
</p>
|
138 |
-
<p class="field-title-attribute description description-wide">
|
139 |
-
<label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
|
140 |
-
<?php _e( 'Title Attribute' , 'nav-menu-roles' ); ?><br />
|
141 |
-
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
|
142 |
-
</label>
|
143 |
-
</p>
|
144 |
-
<p class="field-link-target description">
|
145 |
-
<label for="edit-menu-item-target-<?php echo $item_id; ?>">
|
146 |
-
<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $item->target, '_blank' ); ?> />
|
147 |
-
<?php _e( 'Open link in a new tab' , 'nav-menu-roles' ); ?>
|
148 |
-
</label>
|
149 |
-
</p>
|
150 |
-
<p class="field-css-classes description description-thin">
|
151 |
-
<label for="edit-menu-item-classes-<?php echo $item_id; ?>">
|
152 |
-
<?php _e( 'CSS Classes (optional)' , 'nav-menu-roles' ); ?><br />
|
153 |
-
<input type="text" id="edit-menu-item-classes-<?php echo $item_id; ?>" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo $item_id; ?>]" value="<?php echo esc_attr( implode(' ', $item->classes ) ); ?>" />
|
154 |
-
</label>
|
155 |
-
</p>
|
156 |
-
<p class="field-xfn description description-thin">
|
157 |
-
<label for="edit-menu-item-xfn-<?php echo $item_id; ?>">
|
158 |
-
<?php _e( 'Link Relationship (XFN)' , 'nav-menu-roles' ); ?><br />
|
159 |
-
<input type="text" id="edit-menu-item-xfn-<?php echo $item_id; ?>" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->xfn ); ?>" />
|
160 |
-
</label>
|
161 |
-
</p>
|
162 |
-
<p class="field-description description description-wide">
|
163 |
-
<label for="edit-menu-item-description-<?php echo $item_id; ?>">
|
164 |
-
<?php _e( 'Description' , 'nav-menu-roles' ); ?><br />
|
165 |
-
<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
|
166 |
-
<span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.', 'nav-menu-roles' ); ?></span>
|
167 |
-
</label>
|
168 |
-
</p>
|
169 |
-
|
170 |
-
<?php
|
171 |
-
/**
|
172 |
-
* This action allows easily extending the admin menu walker class in a useful manner without conflicting with others.
|
173 |
-
*/
|
174 |
-
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args ); ?>
|
175 |
-
|
176 |
-
<p class="field-move hide-if-no-js description description-wide">
|
177 |
-
<label>
|
178 |
-
<span><?php _e( 'Move' , 'nav-menu-roles' ); ?></span>
|
179 |
-
<a href="#" class="menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' , 'nav-menu-roles' ); ?></a>
|
180 |
-
<a href="#" class="menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' , 'nav-menu-roles' ); ?></a>
|
181 |
-
<a href="#" class="menus-move menus-move-left" data-dir="left"></a>
|
182 |
-
<a href="#" class="menus-move menus-move-right" data-dir="right"></a>
|
183 |
-
<a href="#" class="menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' , 'nav-menu-roles' ); ?></a>
|
184 |
-
</label>
|
185 |
-
</p>
|
186 |
-
|
187 |
-
<div class="menu-item-actions description-wide submitbox">
|
188 |
-
<?php if ( 'custom' != $item->type && $original_title !== false ) : ?>
|
189 |
-
<p class="link-to-original">
|
190 |
-
<?php printf( __('Original: %s', 'nav-menu-roles' ), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?>
|
191 |
-
</p>
|
192 |
-
<?php endif; ?>
|
193 |
-
<a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href="<?php
|
194 |
-
echo wp_nonce_url(
|
195 |
-
add_query_arg(
|
196 |
-
array(
|
197 |
-
'action' => 'delete-menu-item',
|
198 |
-
'menu-item' => $item_id,
|
199 |
-
),
|
200 |
-
admin_url( 'nav-menus.php' )
|
201 |
-
),
|
202 |
-
'delete-menu_item_' . $item_id
|
203 |
-
); ?>"><?php _e( 'Remove' , 'nav-menu-roles' ); ?></a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-<?php echo $item_id; ?>" href="<?php echo esc_url( add_query_arg( array( 'edit-menu-item' => $item_id, 'cancel' => time() ), admin_url( 'nav-menus.php' ) ) );
|
204 |
-
?>#menu-item-settings-<?php echo $item_id; ?>"><?php _e('Cancel', 'nav-menu-roles' ); ?></a>
|
205 |
-
</div>
|
206 |
-
|
207 |
-
<input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo $item_id; ?>]" value="<?php echo $item_id; ?>" />
|
208 |
-
<input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object_id ); ?>" />
|
209 |
-
<input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object ); ?>" />
|
210 |
-
<input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_item_parent ); ?>" />
|
211 |
-
<input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_order ); ?>" />
|
212 |
-
<input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->type ); ?>" />
|
213 |
-
</div><!-- .menu-item-settings-->
|
214 |
-
<ul class="menu-item-transport"></ul>
|
215 |
-
<?php
|
216 |
-
$output .= ob_get_clean();
|
217 |
-
}
|
218 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
includes/modules/menus/walker/nav-menu-edit.php
DELETED
@@ -1,222 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
exit;
|
5 |
-
}
|
6 |
-
|
7 |
-
/**
|
8 |
-
* Navigation Menu API: (Modifed) Walker_Nav_Menu_Edit class
|
9 |
-
*
|
10 |
-
* Copied from Walker_Nav_Menu_Edit class in core /wp-admin/includes/class-walker-nav-menu-edit.php
|
11 |
-
*
|
12 |
-
* @since WordPress 4.4.0
|
13 |
-
*/
|
14 |
-
class PUM_Nav_Menu_Edit extends Walker_Nav_Menu_Edit {
|
15 |
-
|
16 |
-
/**
|
17 |
-
* Start the element output.
|
18 |
-
*
|
19 |
-
* @see Walker_Nav_Menu::start_el()
|
20 |
-
* @since 3.0.0
|
21 |
-
*
|
22 |
-
* @global int $_wp_nav_menu_max_depth
|
23 |
-
*
|
24 |
-
* @param string $output Passed by reference. Used to append additional content.
|
25 |
-
* @param object $item Menu item data object.
|
26 |
-
* @param int $depth Depth of menu item. Used for padding.
|
27 |
-
* @param array $args Not used.
|
28 |
-
* @param int $id Not used.
|
29 |
-
*/
|
30 |
-
public function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
|
31 |
-
global $_wp_nav_menu_max_depth;
|
32 |
-
$_wp_nav_menu_max_depth = $depth > $_wp_nav_menu_max_depth ? $depth : $_wp_nav_menu_max_depth;
|
33 |
-
|
34 |
-
ob_start();
|
35 |
-
$item_id = esc_attr( $item->ID );
|
36 |
-
$removed_args = array(
|
37 |
-
'action',
|
38 |
-
'customlink-tab',
|
39 |
-
'edit-menu-item',
|
40 |
-
'menu-item',
|
41 |
-
'page-tab',
|
42 |
-
'_wpnonce',
|
43 |
-
);
|
44 |
-
|
45 |
-
$original_title = '';
|
46 |
-
if ( 'taxonomy' == $item->type ) {
|
47 |
-
$original_title = get_term_field( 'name', $item->object_id, $item->object, 'raw' );
|
48 |
-
if ( is_wp_error( $original_title ) )
|
49 |
-
$original_title = false;
|
50 |
-
} elseif ( 'post_type' == $item->type ) {
|
51 |
-
$original_object = get_post( $item->object_id );
|
52 |
-
$original_title = get_the_title( $original_object->ID );
|
53 |
-
} elseif ( 'post_type_archive' == $item->type ) {
|
54 |
-
$original_object = get_post_type_object( $item->object );
|
55 |
-
if ( $original_object ) {
|
56 |
-
$original_title = $original_object->labels->archives;
|
57 |
-
}
|
58 |
-
}
|
59 |
-
|
60 |
-
$classes = array(
|
61 |
-
'menu-item menu-item-depth-' . $depth,
|
62 |
-
'menu-item-' . esc_attr( $item->object ),
|
63 |
-
'menu-item-edit-' . ( ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? 'active' : 'inactive'),
|
64 |
-
);
|
65 |
-
|
66 |
-
$title = $item->title;
|
67 |
-
|
68 |
-
if ( ! empty( $item->_invalid ) ) {
|
69 |
-
$classes[] = 'menu-item-invalid';
|
70 |
-
/* translators: %s: title of menu item which is invalid */
|
71 |
-
$title = sprintf( __( '%s (Invalid)' ), $item->title );
|
72 |
-
} elseif ( isset( $item->post_status ) && 'draft' == $item->post_status ) {
|
73 |
-
$classes[] = 'pending';
|
74 |
-
/* translators: %s: title of menu item in draft status */
|
75 |
-
$title = sprintf( __('%s (Pending)'), $item->title );
|
76 |
-
}
|
77 |
-
|
78 |
-
$title = ( ! isset( $item->label ) || '' == $item->label ) ? $title : $item->label;
|
79 |
-
|
80 |
-
$submenu_text = '';
|
81 |
-
if ( 0 == $depth )
|
82 |
-
$submenu_text = 'style="display: none;"';
|
83 |
-
|
84 |
-
?>
|
85 |
-
<li id="menu-item-<?php echo $item_id; ?>" class="<?php echo implode(' ', $classes ); ?>">
|
86 |
-
<div class="menu-item-bar">
|
87 |
-
<div class="menu-item-handle">
|
88 |
-
<span class="item-title"><span class="menu-item-title"><?php echo esc_html( $title ); ?></span> <span class="is-submenu" <?php echo $submenu_text; ?>><?php _e( 'sub item' ); ?></span></span>
|
89 |
-
<span class="item-controls">
|
90 |
-
<span class="item-type"><?php echo esc_html( $item->type_label ); ?></span>
|
91 |
-
<span class="item-order hide-if-js">
|
92 |
-
<a href="<?php
|
93 |
-
echo wp_nonce_url(
|
94 |
-
add_query_arg(
|
95 |
-
array(
|
96 |
-
'action' => 'move-up-menu-item',
|
97 |
-
'menu-item' => $item_id,
|
98 |
-
),
|
99 |
-
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
100 |
-
),
|
101 |
-
'move-menu_item'
|
102 |
-
);
|
103 |
-
?>" class="item-move-up" aria-label="<?php esc_attr_e( 'Move up' ) ?>">↑</a>
|
104 |
-
|
|
105 |
-
<a href="<?php
|
106 |
-
echo wp_nonce_url(
|
107 |
-
add_query_arg(
|
108 |
-
array(
|
109 |
-
'action' => 'move-down-menu-item',
|
110 |
-
'menu-item' => $item_id,
|
111 |
-
),
|
112 |
-
remove_query_arg($removed_args, admin_url( 'nav-menus.php' ) )
|
113 |
-
),
|
114 |
-
'move-menu_item'
|
115 |
-
);
|
116 |
-
?>" class="item-move-down" aria-label="<?php esc_attr_e( 'Move down' ) ?>">↓</a>
|
117 |
-
</span>
|
118 |
-
<a class="item-edit" id="edit-<?php echo $item_id; ?>" href="<?php
|
119 |
-
echo ( isset( $_GET['edit-menu-item'] ) && $item_id == $_GET['edit-menu-item'] ) ? admin_url( 'nav-menus.php' ) : add_query_arg( 'edit-menu-item', $item_id, remove_query_arg( $removed_args, admin_url( 'nav-menus.php#menu-item-settings-' . $item_id ) ) );
|
120 |
-
?>" aria-label="<?php esc_attr_e( 'Edit menu item' ); ?>"><?php _e( 'Edit' ); ?></a>
|
121 |
-
</span>
|
122 |
-
</div>
|
123 |
-
</div>
|
124 |
-
|
125 |
-
<div class="menu-item-settings wp-clearfix" id="menu-item-settings-<?php echo $item_id; ?>">
|
126 |
-
<?php if ( 'custom' == $item->type ) : ?>
|
127 |
-
<p class="field-url description description-wide">
|
128 |
-
<label for="edit-menu-item-url-<?php echo $item_id; ?>">
|
129 |
-
<?php _e( 'URL' ); ?><br />
|
130 |
-
<input type="text" id="edit-menu-item-url-<?php echo $item_id; ?>" class="widefat code edit-menu-item-url" name="menu-item-url[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->url ); ?>" />
|
131 |
-
</label>
|
132 |
-
</p>
|
133 |
-
<?php endif; ?>
|
134 |
-
<p class="description description-wide">
|
135 |
-
<label for="edit-menu-item-title-<?php echo $item_id; ?>">
|
136 |
-
<?php _e( 'Navigation Label' ); ?><br />
|
137 |
-
<input type="text" id="edit-menu-item-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-title" name="menu-item-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->title ); ?>" />
|
138 |
-
</label>
|
139 |
-
</p>
|
140 |
-
|
141 |
-
<?php
|
142 |
-
/**
|
143 |
-
* This action allows easily extending the admin menu walker class in a useful manner without conflicting with others.
|
144 |
-
*/
|
145 |
-
do_action( 'wp_nav_menu_item_custom_fields', $item_id, $item, $depth, $args ); ?>
|
146 |
-
|
147 |
-
<p class="field-title-attribute field-attr-title description description-wide">
|
148 |
-
<label for="edit-menu-item-attr-title-<?php echo $item_id; ?>">
|
149 |
-
<?php _e( 'Title Attribute' ); ?><br />
|
150 |
-
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
|
151 |
-
</label>
|
152 |
-
</p>
|
153 |
-
<p class="field-link-target description">
|
154 |
-
<label for="edit-menu-item-target-<?php echo $item_id; ?>">
|
155 |
-
<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $item->target, '_blank' ); ?> />
|
156 |
-
<?php _e( 'Open link in a new tab' ); ?>
|
157 |
-
</label>
|
158 |
-
</p>
|
159 |
-
<p class="field-css-classes description description-thin">
|
160 |
-
<label for="edit-menu-item-classes-<?php echo $item_id; ?>">
|
161 |
-
<?php _e( 'CSS Classes (optional)' ); ?><br />
|
162 |
-
<input type="text" id="edit-menu-item-classes-<?php echo $item_id; ?>" class="widefat code edit-menu-item-classes" name="menu-item-classes[<?php echo $item_id; ?>]" value="<?php echo esc_attr( implode(' ', $item->classes ) ); ?>" />
|
163 |
-
</label>
|
164 |
-
</p>
|
165 |
-
<p class="field-xfn description description-thin">
|
166 |
-
<label for="edit-menu-item-xfn-<?php echo $item_id; ?>">
|
167 |
-
<?php _e( 'Link Relationship (XFN)' ); ?><br />
|
168 |
-
<input type="text" id="edit-menu-item-xfn-<?php echo $item_id; ?>" class="widefat code edit-menu-item-xfn" name="menu-item-xfn[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->xfn ); ?>" />
|
169 |
-
</label>
|
170 |
-
</p>
|
171 |
-
<p class="field-description description description-wide">
|
172 |
-
<label for="edit-menu-item-description-<?php echo $item_id; ?>">
|
173 |
-
<?php _e( 'Description' ); ?><br />
|
174 |
-
<textarea id="edit-menu-item-description-<?php echo $item_id; ?>" class="widefat edit-menu-item-description" rows="3" cols="20" name="menu-item-description[<?php echo $item_id; ?>]"><?php echo esc_html( $item->description ); // textarea_escaped ?></textarea>
|
175 |
-
<span class="description"><?php _e('The description will be displayed in the menu if the current theme supports it.'); ?></span>
|
176 |
-
</label>
|
177 |
-
</p>
|
178 |
-
|
179 |
-
<p class="field-move hide-if-no-js description description-wide">
|
180 |
-
<label>
|
181 |
-
<span><?php _e( 'Move' ); ?></span>
|
182 |
-
<a href="#" class="menus-move menus-move-up" data-dir="up"><?php _e( 'Up one' ); ?></a>
|
183 |
-
<a href="#" class="menus-move menus-move-down" data-dir="down"><?php _e( 'Down one' ); ?></a>
|
184 |
-
<a href="#" class="menus-move menus-move-left" data-dir="left"></a>
|
185 |
-
<a href="#" class="menus-move menus-move-right" data-dir="right"></a>
|
186 |
-
<a href="#" class="menus-move menus-move-top" data-dir="top"><?php _e( 'To the top' ); ?></a>
|
187 |
-
</label>
|
188 |
-
</p>
|
189 |
-
|
190 |
-
<div class="menu-item-actions description-wide submitbox">
|
191 |
-
<?php if ( 'custom' != $item->type && $original_title !== false ) : ?>
|
192 |
-
<p class="link-to-original">
|
193 |
-
<?php printf( __('Original: %s'), '<a href="' . esc_attr( $item->url ) . '">' . esc_html( $original_title ) . '</a>' ); ?>
|
194 |
-
</p>
|
195 |
-
<?php endif; ?>
|
196 |
-
<a class="item-delete submitdelete deletion" id="delete-<?php echo $item_id; ?>" href="<?php
|
197 |
-
echo wp_nonce_url(
|
198 |
-
add_query_arg(
|
199 |
-
array(
|
200 |
-
'action' => 'delete-menu-item',
|
201 |
-
'menu-item' => $item_id,
|
202 |
-
),
|
203 |
-
admin_url( 'nav-menus.php' )
|
204 |
-
),
|
205 |
-
'delete-menu_item_' . $item_id
|
206 |
-
); ?>"><?php _e( 'Remove' ); ?></a> <span class="meta-sep hide-if-no-js"> | </span> <a class="item-cancel submitcancel hide-if-no-js" id="cancel-<?php echo $item_id; ?>" href="<?php echo esc_url( add_query_arg( array( 'edit-menu-item' => $item_id, 'cancel' => time() ), admin_url( 'nav-menus.php' ) ) );
|
207 |
-
?>#menu-item-settings-<?php echo $item_id; ?>"><?php _e('Cancel'); ?></a>
|
208 |
-
</div>
|
209 |
-
|
210 |
-
<input class="menu-item-data-db-id" type="hidden" name="menu-item-db-id[<?php echo $item_id; ?>]" value="<?php echo $item_id; ?>" />
|
211 |
-
<input class="menu-item-data-object-id" type="hidden" name="menu-item-object-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object_id ); ?>" />
|
212 |
-
<input class="menu-item-data-object" type="hidden" name="menu-item-object[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->object ); ?>" />
|
213 |
-
<input class="menu-item-data-parent-id" type="hidden" name="menu-item-parent-id[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_item_parent ); ?>" />
|
214 |
-
<input class="menu-item-data-position" type="hidden" name="menu-item-position[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->menu_order ); ?>" />
|
215 |
-
<input class="menu-item-data-type" type="hidden" name="menu-item-type[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->type ); ?>" />
|
216 |
-
</div><!-- .menu-item-settings-->
|
217 |
-
<ul class="menu-item-transport"></ul>
|
218 |
-
<?php
|
219 |
-
$output .= ob_get_clean();
|
220 |
-
}
|
221 |
-
|
222 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/popup-maker.pot
CHANGED
@@ -56,7 +56,7 @@ msgstr ""
|
|
56 |
msgid "Tags"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: includes/admin/admin-setup.php:23, includes/admin/extensions/extensions-page.php:26, includes/admin/settings/register-settings.php:
|
60 |
msgid "Extensions"
|
61 |
msgstr ""
|
62 |
|
@@ -104,7 +104,7 @@ msgstr ""
|
|
104 |
msgid "You do not have permission to do upgrades"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: includes/admin/class-pum-admin-upgrades.php:280, includes/admin/upgrades/class-pum-admin-upgrade-routine-2.php:32, includes/admin/upgrades/class-pum-admin-upgrade-routine-3.php:43, includes/admin/upgrades/class-pum-admin-upgrade-routine-4.php:43, includes/admin/upgrades/class-pum-admin-upgrade-routine-5.php:38, includes/admin/upgrades/class-pum-admin-upgrade-routine-6.php:50, includes/class-pum-extension-updater.php:
|
108 |
msgid "Error"
|
109 |
msgstr ""
|
110 |
|
@@ -685,138 +685,146 @@ msgid "Check this if you have copied the popup theme styles to your own styleshe
|
|
685 |
msgstr ""
|
686 |
|
687 |
#: includes/admin/settings/register-settings.php:155
|
688 |
-
msgid "
|
689 |
msgstr ""
|
690 |
|
691 |
#: includes/admin/settings/register-settings.php:156
|
692 |
-
msgid "This will
|
693 |
msgstr ""
|
694 |
|
695 |
#: includes/admin/settings/register-settings.php:161
|
696 |
-
msgid "Enable
|
697 |
msgstr ""
|
698 |
|
699 |
#: includes/admin/settings/register-settings.php:162
|
700 |
-
msgid "This will
|
701 |
msgstr ""
|
702 |
|
703 |
#: includes/admin/settings/register-settings.php:167
|
704 |
-
msgid "
|
705 |
msgstr ""
|
706 |
|
707 |
#: includes/admin/settings/register-settings.php:168
|
708 |
-
msgid "This will
|
709 |
msgstr ""
|
710 |
|
711 |
#: includes/admin/settings/register-settings.php:173
|
712 |
-
msgid "
|
713 |
msgstr ""
|
714 |
|
715 |
#: includes/admin/settings/register-settings.php:174
|
716 |
-
msgid "This will
|
717 |
msgstr ""
|
718 |
|
719 |
#: includes/admin/settings/register-settings.php:179
|
720 |
-
msgid "
|
721 |
msgstr ""
|
722 |
|
723 |
#: includes/admin/settings/register-settings.php:180
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
724 |
msgid "This will disable the popup tags & categories."
|
725 |
msgstr ""
|
726 |
|
727 |
-
#: includes/admin/settings/register-settings.php:
|
728 |
msgid "Settings updated."
|
729 |
msgstr ""
|
730 |
|
731 |
-
#: includes/admin/settings/register-settings.php:
|
732 |
msgid "General"
|
733 |
msgstr ""
|
734 |
|
735 |
-
#: includes/admin/settings/register-settings.php:
|
736 |
msgid "Assets"
|
737 |
msgstr ""
|
738 |
|
739 |
-
#: includes/admin/settings/register-settings.php:
|
740 |
msgid "Licenses"
|
741 |
msgstr ""
|
742 |
|
743 |
-
#: includes/admin/settings/register-settings.php:
|
744 |
msgid "Misc"
|
745 |
msgstr ""
|
746 |
|
747 |
-
#: includes/admin/settings/register-settings.php:
|
748 |
msgid "The callback function used for the <strong>%s</strong> setting is missing."
|
749 |
msgstr ""
|
750 |
|
751 |
-
#: includes/admin/settings/register-settings.php:
|
752 |
msgid "Upload File"
|
753 |
msgstr ""
|
754 |
|
755 |
-
#: includes/admin/settings/register-settings.php:
|
756 |
msgid "Your license key expired on %s. Please %srenew your license key%s."
|
757 |
msgstr ""
|
758 |
|
759 |
-
#: includes/admin/settings/register-settings.php:
|
760 |
msgid "Your license key has been disabled. Please %scontact support%s for more information."
|
761 |
msgstr ""
|
762 |
|
763 |
-
#: includes/admin/settings/register-settings.php:
|
764 |
msgid "Invalid license. Please %svisit your account page%s and verify it."
|
765 |
msgstr ""
|
766 |
|
767 |
-
#: includes/admin/settings/register-settings.php:
|
768 |
msgid "Your %s is not active for this URL. Please %svisit your account page%s to manage your license key URLs."
|
769 |
msgstr ""
|
770 |
|
771 |
-
#: includes/admin/settings/register-settings.php:
|
772 |
msgid "This appears to be an invalid license key for %s."
|
773 |
msgstr ""
|
774 |
|
775 |
-
#: includes/admin/settings/register-settings.php:
|
776 |
msgid "Your license key has reached its activation limit. %View possible upgrades% now."
|
777 |
msgstr ""
|
778 |
|
779 |
-
#: includes/admin/settings/register-settings.php:
|
780 |
msgid "The key you entered belongs to a bundle, please use the product specific license key."
|
781 |
msgstr ""
|
782 |
|
783 |
-
#: includes/admin/settings/register-settings.php:
|
784 |
msgid "unknown_error"
|
785 |
msgstr ""
|
786 |
|
787 |
-
#: includes/admin/settings/register-settings.php:
|
788 |
msgid "There was an error with this license key: %s. Please %scontact our support team%s."
|
789 |
msgstr ""
|
790 |
|
791 |
-
#: includes/admin/settings/register-settings.php:
|
792 |
msgid "License key never expires."
|
793 |
msgstr ""
|
794 |
|
795 |
-
#: includes/admin/settings/register-settings.php:
|
796 |
msgid "Your license key expires soon! It expires on %s. %sRenew your license key%s."
|
797 |
msgstr ""
|
798 |
|
799 |
-
#: includes/admin/settings/register-settings.php:
|
800 |
msgid "Your license key expires on %s."
|
801 |
msgstr ""
|
802 |
|
803 |
-
#: includes/admin/settings/register-settings.php:
|
804 |
msgid "To receive updates, please enter your valid %s license key."
|
805 |
msgstr ""
|
806 |
|
807 |
-
#: includes/admin/settings/register-settings.php:
|
808 |
msgid "Deactivate License"
|
809 |
msgstr ""
|
810 |
|
811 |
-
#: includes/admin/settings/register-settings.php:
|
812 |
msgid "Show Popup Maker CSS"
|
813 |
msgstr ""
|
814 |
|
815 |
-
#: includes/admin/settings/register-settings.php:
|
816 |
msgid "Core Styles"
|
817 |
msgstr ""
|
818 |
|
819 |
-
#: includes/admin/settings/register-settings.php:
|
820 |
msgid "User Theme Styles"
|
821 |
msgstr ""
|
822 |
|
@@ -1140,7 +1148,7 @@ msgstr ""
|
|
1140 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s."
|
1141 |
msgstr ""
|
1142 |
|
1143 |
-
#: includes/class-pum-extension-updater.php:
|
1144 |
msgid "You do not have permission to install plugin updates"
|
1145 |
msgstr ""
|
1146 |
|
@@ -1620,11 +1628,11 @@ msgstr ""
|
|
1620 |
msgid "Popup ID"
|
1621 |
msgstr ""
|
1622 |
|
1623 |
-
#: includes/modules/menus.php:
|
1624 |
msgid "Trigger a Popup"
|
1625 |
msgstr ""
|
1626 |
|
1627 |
-
#: includes/modules/menus.php:
|
1628 |
msgid "Choose a popup to trigger when this item is clicked."
|
1629 |
msgstr ""
|
1630 |
|
56 |
msgid "Tags"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: includes/admin/admin-setup.php:23, includes/admin/extensions/extensions-page.php:26, includes/admin/settings/register-settings.php:325
|
60 |
msgid "Extensions"
|
61 |
msgstr ""
|
62 |
|
104 |
msgid "You do not have permission to do upgrades"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: includes/admin/class-pum-admin-upgrades.php:280, includes/admin/upgrades/class-pum-admin-upgrade-routine-2.php:32, includes/admin/upgrades/class-pum-admin-upgrade-routine-3.php:43, includes/admin/upgrades/class-pum-admin-upgrade-routine-4.php:43, includes/admin/upgrades/class-pum-admin-upgrade-routine-5.php:38, includes/admin/upgrades/class-pum-admin-upgrade-routine-6.php:50, includes/class-pum-extension-updater.php:394
|
108 |
msgid "Error"
|
109 |
msgstr ""
|
110 |
|
685 |
msgstr ""
|
686 |
|
687 |
#: includes/admin/settings/register-settings.php:155
|
688 |
+
msgid "Disable Popups Admin Bar"
|
689 |
msgstr ""
|
690 |
|
691 |
#: includes/admin/settings/register-settings.php:156
|
692 |
+
msgid "This will disable the admin Popups menu item."
|
693 |
msgstr ""
|
694 |
|
695 |
#: includes/admin/settings/register-settings.php:161
|
696 |
+
msgid "Enable Debug Mode"
|
697 |
msgstr ""
|
698 |
|
699 |
#: includes/admin/settings/register-settings.php:162
|
700 |
+
msgid "This will turn on multiple debug tools used to quickly find issues."
|
701 |
msgstr ""
|
702 |
|
703 |
#: includes/admin/settings/register-settings.php:167
|
704 |
+
msgid "Enable Easy Modal v2 Compatibility Mode"
|
705 |
msgstr ""
|
706 |
|
707 |
#: includes/admin/settings/register-settings.php:168
|
708 |
+
msgid "This will automatically make any eModal classes you have added to your site launch the appropriate Popup after import."
|
709 |
msgstr ""
|
710 |
|
711 |
#: includes/admin/settings/register-settings.php:173
|
712 |
+
msgid "Disables popup open tracking?"
|
713 |
msgstr ""
|
714 |
|
715 |
#: includes/admin/settings/register-settings.php:174
|
716 |
+
msgid "This will disable the built in analytics functionality."
|
717 |
msgstr ""
|
718 |
|
719 |
#: includes/admin/settings/register-settings.php:179
|
720 |
+
msgid "Hide Admin Support Widget"
|
721 |
msgstr ""
|
722 |
|
723 |
#: includes/admin/settings/register-settings.php:180
|
724 |
+
msgid "This will hide the support widget on all popup maker admin pages."
|
725 |
+
msgstr ""
|
726 |
+
|
727 |
+
#: includes/admin/settings/register-settings.php:185
|
728 |
+
msgid "Disable categories & tags?"
|
729 |
+
msgstr ""
|
730 |
+
|
731 |
+
#: includes/admin/settings/register-settings.php:186
|
732 |
msgid "This will disable the popup tags & categories."
|
733 |
msgstr ""
|
734 |
|
735 |
+
#: includes/admin/settings/register-settings.php:287
|
736 |
msgid "Settings updated."
|
737 |
msgstr ""
|
738 |
|
739 |
+
#: includes/admin/settings/register-settings.php:319, includes/class-popmake-fields.php:57, includes/class-pum-conditions.php:71, includes/class-pum-shortcode.php:144, includes/pum-condition-functions.php:33, includes/pum-trigger-functions.php:71, includes/shortcodes/class-pum-shortcode-popup.php:46
|
740 |
msgid "General"
|
741 |
msgstr ""
|
742 |
|
743 |
+
#: includes/admin/settings/register-settings.php:322
|
744 |
msgid "Assets"
|
745 |
msgstr ""
|
746 |
|
747 |
+
#: includes/admin/settings/register-settings.php:328
|
748 |
msgid "Licenses"
|
749 |
msgstr ""
|
750 |
|
751 |
+
#: includes/admin/settings/register-settings.php:331
|
752 |
msgid "Misc"
|
753 |
msgstr ""
|
754 |
|
755 |
+
#: includes/admin/settings/register-settings.php:581
|
756 |
msgid "The callback function used for the <strong>%s</strong> setting is missing."
|
757 |
msgstr ""
|
758 |
|
759 |
+
#: includes/admin/settings/register-settings.php:714
|
760 |
msgid "Upload File"
|
761 |
msgstr ""
|
762 |
|
763 |
+
#: includes/admin/settings/register-settings.php:801
|
764 |
msgid "Your license key expired on %s. Please %srenew your license key%s."
|
765 |
msgstr ""
|
766 |
|
767 |
+
#: includes/admin/settings/register-settings.php:811
|
768 |
msgid "Your license key has been disabled. Please %scontact support%s for more information."
|
769 |
msgstr ""
|
770 |
|
771 |
+
#: includes/admin/settings/register-settings.php:821
|
772 |
msgid "Invalid license. Please %svisit your account page%s and verify it."
|
773 |
msgstr ""
|
774 |
|
775 |
+
#: includes/admin/settings/register-settings.php:833
|
776 |
msgid "Your %s is not active for this URL. Please %svisit your account page%s to manage your license key URLs."
|
777 |
msgstr ""
|
778 |
|
779 |
+
#: includes/admin/settings/register-settings.php:843
|
780 |
msgid "This appears to be an invalid license key for %s."
|
781 |
msgstr ""
|
782 |
|
783 |
+
#: includes/admin/settings/register-settings.php:853
|
784 |
msgid "Your license key has reached its activation limit. %View possible upgrades% now."
|
785 |
msgstr ""
|
786 |
|
787 |
+
#: includes/admin/settings/register-settings.php:863
|
788 |
msgid "The key you entered belongs to a bundle, please use the product specific license key."
|
789 |
msgstr ""
|
790 |
|
791 |
+
#: includes/admin/settings/register-settings.php:871
|
792 |
msgid "unknown_error"
|
793 |
msgstr ""
|
794 |
|
795 |
+
#: includes/admin/settings/register-settings.php:872
|
796 |
msgid "There was an error with this license key: %s. Please %scontact our support team%s."
|
797 |
msgstr ""
|
798 |
|
799 |
+
#: includes/admin/settings/register-settings.php:892
|
800 |
msgid "License key never expires."
|
801 |
msgstr ""
|
802 |
|
803 |
+
#: includes/admin/settings/register-settings.php:898
|
804 |
msgid "Your license key expires soon! It expires on %s. %sRenew your license key%s."
|
805 |
msgstr ""
|
806 |
|
807 |
+
#: includes/admin/settings/register-settings.php:904
|
808 |
msgid "Your license key expires on %s."
|
809 |
msgstr ""
|
810 |
|
811 |
+
#: includes/admin/settings/register-settings.php:919
|
812 |
msgid "To receive updates, please enter your valid %s license key."
|
813 |
msgstr ""
|
814 |
|
815 |
+
#: includes/admin/settings/register-settings.php:932
|
816 |
msgid "Deactivate License"
|
817 |
msgstr ""
|
818 |
|
819 |
+
#: includes/admin/settings/register-settings.php:1025
|
820 |
msgid "Show Popup Maker CSS"
|
821 |
msgstr ""
|
822 |
|
823 |
+
#: includes/admin/settings/register-settings.php:1029
|
824 |
msgid "Core Styles"
|
825 |
msgstr ""
|
826 |
|
827 |
+
#: includes/admin/settings/register-settings.php:1035
|
828 |
msgid "User Theme Styles"
|
829 |
msgstr ""
|
830 |
|
1148 |
msgid "There is a new version of %1$s available. %2$sView version %3$s details%4$s or %5$supdate now%6$s."
|
1149 |
msgstr ""
|
1150 |
|
1151 |
+
#: includes/class-pum-extension-updater.php:394
|
1152 |
msgid "You do not have permission to install plugin updates"
|
1153 |
msgstr ""
|
1154 |
|
1628 |
msgid "Popup ID"
|
1629 |
msgstr ""
|
1630 |
|
1631 |
+
#: includes/modules/menus.php:123
|
1632 |
msgid "Trigger a Popup"
|
1633 |
msgstr ""
|
1634 |
|
1635 |
+
#: includes/modules/menus.php:134
|
1636 |
msgid "Choose a popup to trigger when this item is clicked."
|
1637 |
msgstr ""
|
1638 |
|
popup-maker.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: https://wppopupmaker.com/?utm_capmaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
|
5 |
* Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
|
6 |
* Author: WP Popup Maker
|
7 |
-
* Version: 1.5.
|
8 |
* Author URI: https://wppopupmaker.com/?utm_capmaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
@@ -147,7 +147,7 @@ if ( ! class_exists( 'Popup_Maker' ) ) :
|
|
147 |
}
|
148 |
|
149 |
if ( ! defined( 'POPMAKE_VERSION' ) ) {
|
150 |
-
define( 'POPMAKE_VERSION', '1.5.
|
151 |
}
|
152 |
|
153 |
if ( ! defined( 'POPMAKE_DB_VERSION' ) ) {
|
4 |
* Plugin URI: https://wppopupmaker.com/?utm_capmaign=PluginInfo&utm_source=plugin-header&utm_medium=plugin-uri
|
5 |
* Description: Easily create & style popups with any content. Theme editor to quickly style your popups. Add forms, social media boxes, videos & more.
|
6 |
* Author: WP Popup Maker
|
7 |
+
* Version: 1.5.2
|
8 |
* Author URI: https://wppopupmaker.com/?utm_capmaign=PluginInfo&utm_source=plugin-header&utm_medium=author-uri
|
9 |
* Text Domain: popup-maker
|
10 |
*
|
147 |
}
|
148 |
|
149 |
if ( ! defined( 'POPMAKE_VERSION' ) ) {
|
150 |
+
define( 'POPMAKE_VERSION', '1.5.2' );
|
151 |
}
|
152 |
|
153 |
if ( ! defined( 'POPMAKE_DB_VERSION' ) ) {
|
readme.txt
CHANGED
@@ -6,7 +6,7 @@ Donate link:
|
|
6 |
Tags: responsive popup, promotion, popover, pop-up, pop over, marketing, lightbox, advertising, conversion, modal, popup, popups
|
7 |
Requires at least: 3.6
|
8 |
Tested up to: 4.7.2
|
9 |
-
Stable tag: 1.5.
|
10 |
License: GNU Version 3 or Any Later Version
|
11 |
|
12 |
Create any popup imaginable! Customize your popups from head-to-toe and give your site more utility, usability, and conversions.
|
@@ -87,6 +87,11 @@ There are several common causes for this which include:
|
|
87 |
|
88 |
== Changelog ==
|
89 |
|
|
|
|
|
|
|
|
|
|
|
90 |
= v1.5.1 - 03/09/2017
|
91 |
* Fix: PHP 5.2 Compatibility issue.
|
92 |
|
6 |
Tags: responsive popup, promotion, popover, pop-up, pop over, marketing, lightbox, advertising, conversion, modal, popup, popups
|
7 |
Requires at least: 3.6
|
8 |
Tested up to: 4.7.2
|
9 |
+
Stable tag: 1.5.2
|
10 |
License: GNU Version 3 or Any Later Version
|
11 |
|
12 |
Create any popup imaginable! Customize your popups from head-to-toe and give your site more utility, usability, and conversions.
|
87 |
|
88 |
== Changelog ==
|
89 |
|
90 |
+
= v1.5.2 - 03/09/2017
|
91 |
+
* Improvement: Added option to disable the admin bar Popups helper menu item.
|
92 |
+
* Improvement: Simplified the nav menu editor modification class to reduce un-needed translation strings.
|
93 |
+
* Fix: Added check for missing class in the nav menu editor walker classes.
|
94 |
+
|
95 |
= v1.5.1 - 03/09/2017
|
96 |
* Fix: PHP 5.2 Compatibility issue.
|
97 |
|