Version Description
(2021-12-24) = - Updated sanitizing and escaping. - Added stable tag.
Download this release
Release Info
Developer | Rustaurius |
Plugin | Ultimate FAQ |
Version | 2.1.3 |
Comparing to | |
See all releases |
Code changes from version 2.1.2 to 2.1.3
- includes/Dashboard.class.php +22 -1
- includes/Settings.class.php +4 -4
- includes/Widgets.class.php +5 -5
- includes/WooCommerce.class.php +8 -8
- lib/simple-admin-pages/classes/AdminPage.Menu.class.php +1 -1
- lib/simple-admin-pages/classes/AdminPage.Submenu.class.php +1 -1
- lib/simple-admin-pages/classes/AdminPage.Themes.class.php +1 -1
- lib/simple-admin-pages/classes/AdminPage.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSection.class.php +3 -3
- lib/simple-admin-pages/classes/AdminPageSetting.Address.class.php +10 -10
- lib/simple-admin-pages/classes/AdminPageSetting.Checkbox.class.php +4 -4
- lib/simple-admin-pages/classes/AdminPageSetting.ColorPicker.class.php +3 -3
- lib/simple-admin-pages/classes/AdminPageSetting.Count.class.php +7 -7
- lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php +1 -1
- lib/simple-admin-pages/classes/AdminPageSetting.FileUpload.class.php +10 -10
- lib/simple-admin-pages/classes/AdminPageSetting.HTML.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.Image.class.php +6 -6
- lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php +31 -27
- lib/simple-admin-pages/classes/AdminPageSetting.McApiKey.class.php +6 -6
- lib/simple-admin-pages/classes/AdminPageSetting.McListMerge.class.php +4 -4
- lib/simple-admin-pages/classes/AdminPageSetting.Number.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.OpeningHours.class.php +6 -6
- lib/simple-admin-pages/classes/AdminPageSetting.Ordering.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.Radio.class.php +8 -8
- lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php +34 -34
- lib/simple-admin-pages/classes/AdminPageSetting.Select.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.SelectMenu.class.php +6 -6
- lib/simple-admin-pages/classes/AdminPageSetting.SelectPost.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.Text.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.Textarea.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.Time.class.php +2 -2
- lib/simple-admin-pages/classes/AdminPageSetting.Toggle.class.php +5 -5
- lib/simple-admin-pages/classes/AdminPageSetting.WarningTip.class.php +6 -6
- lib/simple-admin-pages/classes/AdminPageSetting.class.php +4 -4
- lib/simple-admin-pages/classes/Library.class.php +4 -4
- readme.txt +5 -0
- ultimate-faqs.php +2 -2
includes/Dashboard.class.php
CHANGED
@@ -81,7 +81,28 @@ class ewdufaqDashboard {
|
|
81 |
|
82 |
$premium_info = apply_filters( 'ewd_dashboard_top', $premium_info, 'UFAQ', 'https://www.etoilewebdesign.com/license-payment/?Selected=UFAQ&Quantity=1' );
|
83 |
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
} ?>
|
86 |
|
87 |
<div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full" id="ewd-ufaq-dashboard-support-widget-box">
|
81 |
|
82 |
$premium_info = apply_filters( 'ewd_dashboard_top', $premium_info, 'UFAQ', 'https://www.etoilewebdesign.com/license-payment/?Selected=UFAQ&Quantity=1' );
|
83 |
|
84 |
+
// This will allow us to disaply the form
|
85 |
+
$tmp_fun = function( $tags ) {
|
86 |
+
$tags = array_merge(
|
87 |
+
$tags,
|
88 |
+
[
|
89 |
+
'input' => [
|
90 |
+
'class' => true,
|
91 |
+
'name' => true,
|
92 |
+
'type' => true,
|
93 |
+
'value' => true,
|
94 |
+
'placeholder' => true
|
95 |
+
]
|
96 |
+
]
|
97 |
+
);
|
98 |
+
if(isset($tags['form'])) {
|
99 |
+
$tags['form'] = array_merge($tags['form'], ['class' => true]);
|
100 |
+
}
|
101 |
+
return $tags;
|
102 |
+
};
|
103 |
+
add_filter( 'wp_kses_allowed_html', $tmp_fun, 10, 1);
|
104 |
+
echo wp_kses_post( $premium_info );
|
105 |
+
remove_filter( 'wp_kses_allowed_html', $tmp_fun, 10 );
|
106 |
} ?>
|
107 |
|
108 |
<div class="ewd-ufaq-dashboard-new-widget-box ewd-widget-box-full" id="ewd-ufaq-dashboard-support-widget-box">
|
includes/Settings.class.php
CHANGED
@@ -130,9 +130,9 @@ class ewdufaqSettings {
|
|
130 |
require_once( EWD_UFAQ_PLUGIN_DIR . '/lib/simple-admin-pages/simple-admin-pages.php' );
|
131 |
$sap = sap_initialize_library(
|
132 |
$args = array(
|
133 |
-
'version'
|
134 |
-
'lib_url'
|
135 |
-
'theme'
|
136 |
)
|
137 |
);
|
138 |
|
@@ -712,7 +712,7 @@ class ewdufaqSettings {
|
|
712 |
}
|
713 |
|
714 |
return function() use( $content ) {
|
715 |
-
echo $content;
|
716 |
};
|
717 |
}
|
718 |
}
|
130 |
require_once( EWD_UFAQ_PLUGIN_DIR . '/lib/simple-admin-pages/simple-admin-pages.php' );
|
131 |
$sap = sap_initialize_library(
|
132 |
$args = array(
|
133 |
+
'version' => '2.6.3',
|
134 |
+
'lib_url' => EWD_UFAQ_PLUGIN_URL . '/lib/simple-admin-pages/',
|
135 |
+
'theme' => 'purple',
|
136 |
)
|
137 |
);
|
138 |
|
712 |
}
|
713 |
|
714 |
return function() use( $content ) {
|
715 |
+
echo wp_kses_post( $content );
|
716 |
};
|
717 |
}
|
718 |
}
|
includes/Widgets.class.php
CHANGED
@@ -64,7 +64,7 @@ class ewdufaqFAQPostListWidget extends WP_Widget {
|
|
64 |
if ( $instance['faq_title'] != '' ) {
|
65 |
echo ( $args['before_title'] != '' ? esc_html( $args['before_title'] ) : '<h3>' ) . esc_html( $instance['faq_title'] ) . ( $args['after_title'] != '' ? esc_html( $args['after_title'] ) : '</h3>' );
|
66 |
}
|
67 |
-
echo do_shortcode( "[select-faq faq_id='". $instance['faq_id'] . "' no_comments='Yes']" );
|
68 |
echo esc_html( $args['after_widget'] );
|
69 |
}
|
70 |
|
@@ -138,7 +138,7 @@ class ewdufaqRecentFAQsWidget extends WP_Widget {
|
|
138 |
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ) . $instance['faq_title'] . ( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
139 |
);
|
140 |
}
|
141 |
-
echo do_shortcode( "[recent-faqs post_count='". $instance['post_count'] . "' no_comments='Yes']" );
|
142 |
echo esc_html( $args['after_widget'] );
|
143 |
}
|
144 |
|
@@ -210,7 +210,7 @@ class ewdufaqPopularFAQsWidget extends WP_Widget {
|
|
210 |
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ) . $instance['faq_title'] . ( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
211 |
);
|
212 |
}
|
213 |
-
echo do_shortcode( "[popular-faqs post_count='". $instance['post_count'] . "' no_comments='Yes']" );
|
214 |
echo esc_html( $args['after_widget'] );
|
215 |
}
|
216 |
|
@@ -291,7 +291,7 @@ class ewdufaqRandomFAQsWidget extends WP_Widget {
|
|
291 |
($args['before_title'] != '' ? $args['before_title'] : "<h3>") . $instance['faq_title'] . ($args['after_title'] != '' ? $args['after_title'] : "</h3>")
|
292 |
);
|
293 |
}
|
294 |
-
echo do_shortcode( "[select-faq faq_id='". $faq->ID . "' no_comments='Yes']" );
|
295 |
echo esc_html( $args['after_widget'] );
|
296 |
}
|
297 |
|
@@ -357,7 +357,7 @@ class ewdufaqFAQCategoriesWidget extends WP_Widget {
|
|
357 |
($args['before_title'] != '' ? $args['before_title'] : "<h3>") . $instance['faq_title'] . ($args['after_title'] != '' ? $args['after_title'] : "</h3>")
|
358 |
);
|
359 |
}
|
360 |
-
echo do_shortcode( "[ultimate-faqs include_category='". $instance['include_category'] . "' no_comments='Yes']" );
|
361 |
echo esc_html( $args['after_widget'] );
|
362 |
}
|
363 |
|
64 |
if ( $instance['faq_title'] != '' ) {
|
65 |
echo ( $args['before_title'] != '' ? esc_html( $args['before_title'] ) : '<h3>' ) . esc_html( $instance['faq_title'] ) . ( $args['after_title'] != '' ? esc_html( $args['after_title'] ) : '</h3>' );
|
66 |
}
|
67 |
+
echo do_shortcode( "[select-faq faq_id='". sanitize_text_field( $instance['faq_id'] ) . "' no_comments='Yes']" );
|
68 |
echo esc_html( $args['after_widget'] );
|
69 |
}
|
70 |
|
138 |
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ) . $instance['faq_title'] . ( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
139 |
);
|
140 |
}
|
141 |
+
echo do_shortcode( "[recent-faqs post_count='". sanitize_text_field( $instance['post_count'] ) . "' no_comments='Yes']" );
|
142 |
echo esc_html( $args['after_widget'] );
|
143 |
}
|
144 |
|
210 |
( $args['before_title'] != '' ? $args['before_title'] : '<h3>' ) . $instance['faq_title'] . ( $args['after_title'] != '' ? $args['after_title'] : '</h3>' )
|
211 |
);
|
212 |
}
|
213 |
+
echo do_shortcode( "[popular-faqs post_count='". sanitize_text_field( $instance['post_count'] ) . "' no_comments='Yes']" );
|
214 |
echo esc_html( $args['after_widget'] );
|
215 |
}
|
216 |
|
291 |
($args['before_title'] != '' ? $args['before_title'] : "<h3>") . $instance['faq_title'] . ($args['after_title'] != '' ? $args['after_title'] : "</h3>")
|
292 |
);
|
293 |
}
|
294 |
+
echo do_shortcode( "[select-faq faq_id='". sanitize_text_field( $faq->ID ) . "' no_comments='Yes']" );
|
295 |
echo esc_html( $args['after_widget'] );
|
296 |
}
|
297 |
|
357 |
($args['before_title'] != '' ? $args['before_title'] : "<h3>") . $instance['faq_title'] . ($args['after_title'] != '' ? $args['after_title'] : "</h3>")
|
358 |
);
|
359 |
}
|
360 |
+
echo do_shortcode( "[ultimate-faqs include_category='". sanitize_text_field( $instance['include_category'] ) . "' no_comments='Yes']" );
|
361 |
echo esc_html( $args['after_widget'] );
|
362 |
}
|
363 |
|
includes/WooCommerce.class.php
CHANGED
@@ -236,7 +236,7 @@ if ( !class_exists( 'ewdufaqWooCommerce' ) ) {
|
|
236 |
|
237 |
$current_faqs = (array) get_post_meta( $post_id, 'EWD_UFAQ_WC_Selected_FAQs', true );
|
238 |
|
239 |
-
$faqs = array_map('
|
240 |
if ( ! is_array( $faqs ) ) { $faqs = array(); }
|
241 |
|
242 |
$added_faqs = array();
|
@@ -269,17 +269,17 @@ if ( !class_exists( 'ewdufaqWooCommerce' ) ) {
|
|
269 |
}
|
270 |
|
271 |
$post_id = intval( $_POST['Post_ID'] );
|
272 |
-
|
273 |
-
$current_faqs = (array) get_post_meta( $post_id, 'EWD_UFAQ_WC_Selected_FAQs', true );
|
274 |
|
275 |
-
|
276 |
-
if ( ! is_array( $faqs ) ) { $faqs = array(); }
|
277 |
|
278 |
-
|
|
|
279 |
|
280 |
-
|
281 |
|
282 |
-
|
|
|
|
|
283 |
}
|
284 |
|
285 |
public function wc_faq_category() {
|
236 |
|
237 |
$current_faqs = (array) get_post_meta( $post_id, 'EWD_UFAQ_WC_Selected_FAQs', true );
|
238 |
|
239 |
+
$faqs = array_map( 'absint', json_decode( stripslashes_deep( $_POST['FAQs'] ) ) );
|
240 |
if ( ! is_array( $faqs ) ) { $faqs = array(); }
|
241 |
|
242 |
$added_faqs = array();
|
269 |
}
|
270 |
|
271 |
$post_id = intval( $_POST['Post_ID'] );
|
|
|
|
|
272 |
|
273 |
+
$current_faqs = (array) get_post_meta( $post_id, 'EWD_UFAQ_WC_Selected_FAQs', true );
|
|
|
274 |
|
275 |
+
$faqs = array_map( 'absint', json_decode( stripslashes_deep( $_POST['FAQs'] ) ) );
|
276 |
+
if ( ! is_array( $faqs ) ) { $faqs = array(); }
|
277 |
|
278 |
+
$remaining_faqs = array_diff( $current_faqs, $faqs );
|
279 |
|
280 |
+
update_post_meta( $post_id, 'EWD_UFAQ_WC_Selected_FAQs', $remaining_faqs );
|
281 |
+
|
282 |
+
die();
|
283 |
}
|
284 |
|
285 |
public function wc_faq_category() {
|
lib/simple-admin-pages/classes/AdminPage.Menu.class.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
|
11 |
-
class
|
12 |
|
13 |
public $setup_function = 'add_menu_page'; // WP function to register the page
|
14 |
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
|
11 |
+
class sapAdminPageMenu_2_6_3 extends sapAdminPage_2_6_3 {
|
12 |
|
13 |
public $setup_function = 'add_menu_page'; // WP function to register the page
|
14 |
|
lib/simple-admin-pages/classes/AdminPage.Submenu.class.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
|
11 |
-
class
|
12 |
|
13 |
public $setup_function = 'add_submenu_page'; // WP function to register the page
|
14 |
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
|
11 |
+
class sapAdminPageSubmenu_2_6_3 extends sapAdminPage_2_6_3 {
|
12 |
|
13 |
public $setup_function = 'add_submenu_page'; // WP function to register the page
|
14 |
|
lib/simple-admin-pages/classes/AdminPage.Themes.class.php
CHANGED
@@ -8,7 +8,7 @@
|
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
|
11 |
-
class
|
12 |
|
13 |
public $setup_function = 'add_theme_page'; // WP function to register the page
|
14 |
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
|
11 |
+
class sapAdminPageThemes_2_6_3 extends sapAdminPage_2_6_3 {
|
12 |
|
13 |
public $setup_function = 'add_theme_page'; // WP function to register the page
|
14 |
|
lib/simple-admin-pages/classes/AdminPage.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $title;
|
13 |
public $menu_title;
|
@@ -232,7 +232,7 @@ class sapAdminPage_2_6_2 {
|
|
232 |
return;
|
233 |
}
|
234 |
?>
|
235 |
-
<h1><?php echo $this->title; ?></h1>
|
236 |
<?php
|
237 |
}
|
238 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPage_2_6_3 {
|
11 |
|
12 |
public $title;
|
13 |
public $menu_title;
|
232 |
return;
|
233 |
}
|
234 |
?>
|
235 |
+
<h1><?php echo esc_html( $this->title ); ?></h1>
|
236 |
<?php
|
237 |
}
|
238 |
|
lib/simple-admin-pages/classes/AdminPageSection.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
// Page defaults
|
13 |
public $id; // unique id for this section
|
@@ -123,7 +123,7 @@ class sapAdminPageSection_2_6_2 {
|
|
123 |
if ( !empty( $this->description ) ) :
|
124 |
?>
|
125 |
|
126 |
-
<p class="description"><?php echo $this->description; ?></p>
|
127 |
|
128 |
<?php
|
129 |
endif;
|
@@ -136,7 +136,7 @@ class sapAdminPageSection_2_6_2 {
|
|
136 |
<div class="section-disabled">
|
137 |
<img src="<?php echo plugins_url( '../img/options-asset-lock.png', __FILE__ ); ?>" alt="Upgrade to Premium">
|
138 |
<p>Access this section by upgrading to premium</p>
|
139 |
-
<a href="<?php echo $this->purchase_link; ?>" class="sap-dashboard-get-premium-widget-button" target="_blank">UPGRADE NOW</a>
|
140 |
</div>
|
141 |
<?php echo ( isset( $this->purchase_link ) ? "</div>" : '' ); ?>
|
142 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSection_2_6_3 {
|
11 |
|
12 |
// Page defaults
|
13 |
public $id; // unique id for this section
|
123 |
if ( !empty( $this->description ) ) :
|
124 |
?>
|
125 |
|
126 |
+
<p class="description"><?php echo esc_html( $this->description ); ?></p>
|
127 |
|
128 |
<?php
|
129 |
endif;
|
136 |
<div class="section-disabled">
|
137 |
<img src="<?php echo plugins_url( '../img/options-asset-lock.png', __FILE__ ); ?>" alt="Upgrade to Premium">
|
138 |
<p>Access this section by upgrading to premium</p>
|
139 |
+
<a href="<?php echo esc_url( $this->purchase_link ); ?>" class="sap-dashboard-get-premium-widget-button" target="_blank">UPGRADE NOW</a>
|
140 |
</div>
|
141 |
<?php echo ( isset( $this->purchase_link ) ? "</div>" : '' ); ?>
|
142 |
|
lib/simple-admin-pages/classes/AdminPageSetting.Address.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
/*
|
13 |
* Size of this textarea
|
@@ -125,30 +125,30 @@ class sapAdminPageSettingAddress_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
125 |
?>
|
126 |
|
127 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
128 |
-
<div class="sap-address" id="<?php echo $this->id; ?>">
|
129 |
-
<textarea name="<?php echo $this->get_input_name(); ?>[text]" id="<?php echo $this->get_input_name(); ?>" class="<?php echo $this->size; ?>-text"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?>><?php echo $this->value['text']; ?></textarea>
|
130 |
<p class="sap-map-coords-wrapper">
|
131 |
<span class="dashicons dashicons-location-alt"></span>
|
132 |
<span class="sap-map-coords">
|
133 |
<?php if ( empty( $this->value['lat'] ) || empty( $this->value['lon'] ) ) : ?>
|
134 |
-
<?php echo $this->strings['no-setting']; ?>
|
135 |
<?php else : ?>
|
136 |
-
<?php echo $this->value['lat'] . $this->strings['sep-lat-lon'] . $this->value['lon']; ?>
|
137 |
-
<a href="//maps.google.com/maps?q=<?php echo esc_attr( $this->value['lat'] ) . ',' . esc_attr( $this->value['lon'] ); ?>" class="sap-view-coords" target="_blank"><?php echo $this->strings['view']; ?></a>
|
138 |
<?php endif; ?>
|
139 |
</span>
|
140 |
</p>
|
141 |
<p class="sap-coords-action-wrapper">
|
142 |
<a href="#" class="sap-get-coords">
|
143 |
-
<?php echo $this->strings['retrieve']; ?>
|
144 |
</a>
|
145 |
<?php echo $this->strings['sep-action-links']; ?>
|
146 |
<a href="#" class="sap-remove-coords">
|
147 |
-
<?php echo $this->strings['remove']; ?>
|
148 |
</a>
|
149 |
</p>
|
150 |
-
<input type="hidden" class="lat" name="<?php echo $this->get_input_name(); ?>[lat]" value="<?php echo $this->value['lat']; ?>">
|
151 |
-
<input type="hidden" class="lon" name="<?php echo $this->get_input_name(); ?>[lon]" value="<?php echo $this->value['lon']; ?>">
|
152 |
</div>
|
153 |
</fieldset>
|
154 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingAddress_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
/*
|
13 |
* Size of this textarea
|
125 |
?>
|
126 |
|
127 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
128 |
+
<div class="sap-address" id="<?php echo esc_attr( $this->id ); ?>">
|
129 |
+
<textarea name="<?php echo esc_attr( $this->get_input_name() ); ?>[text]" id="<?php echo esc_attr( $this->get_input_name() ); ?>" class="<?php echo esc_attr( $this->size ); ?>-text"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?>><?php echo esc_textarea( $this->value['text'] ); ?></textarea>
|
130 |
<p class="sap-map-coords-wrapper">
|
131 |
<span class="dashicons dashicons-location-alt"></span>
|
132 |
<span class="sap-map-coords">
|
133 |
<?php if ( empty( $this->value['lat'] ) || empty( $this->value['lon'] ) ) : ?>
|
134 |
+
<?php echo esc_html( $this->strings['no-setting'] ); ?>
|
135 |
<?php else : ?>
|
136 |
+
<?php echo esc_html( $this->value['lat'] . $this->strings['sep-lat-lon'] . $this->value['lon'] ); ?>
|
137 |
+
<a href="//maps.google.com/maps?q=<?php echo esc_attr( $this->value['lat'] ) . ',' . esc_attr( $this->value['lon'] ); ?>" class="sap-view-coords" target="_blank"><?php echo esc_html( $this->strings['view'] ); ?></a>
|
138 |
<?php endif; ?>
|
139 |
</span>
|
140 |
</p>
|
141 |
<p class="sap-coords-action-wrapper">
|
142 |
<a href="#" class="sap-get-coords">
|
143 |
+
<?php echo esc_html( $this->strings['retrieve'] ); ?>
|
144 |
</a>
|
145 |
<?php echo $this->strings['sep-action-links']; ?>
|
146 |
<a href="#" class="sap-remove-coords">
|
147 |
+
<?php echo esc_html( $this->strings['remove'] ); ?>
|
148 |
</a>
|
149 |
</p>
|
150 |
+
<input type="hidden" class="lat" name="<?php echo esc_attr( $this->get_input_name() ); ?>[lat]" value="<?php echo esc_attr( $this->value['lat'] ); ?>">
|
151 |
+
<input type="hidden" class="lon" name="<?php echo esc_attr( $this->get_input_name() ); ?>[lon]" value="<?php echo esc_attr( $this->value['lon'] ); ?>">
|
152 |
</div>
|
153 |
</fieldset>
|
154 |
|
lib/simple-admin-pages/classes/AdminPageSetting.Checkbox.class.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
* @package Simple Admin Pages
|
20 |
*/
|
21 |
|
22 |
-
class
|
23 |
|
24 |
//public $sanitize_callback = 'sanitize_text_field';
|
25 |
|
@@ -35,9 +35,9 @@ class sapAdminPageSettingCheckbox_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
35 |
?>
|
36 |
<fieldset <?php echo ( isset( $this->columns ) ? 'class="sap-setting-columns-' . $this->columns . '"' : '' ); ?> <?php $this->print_conditional_data(); ?>>
|
37 |
<?php foreach ( $this->options as $id => $title ) : ?>
|
38 |
-
<label title="<?php echo ( strpos( $title, '<' ) === false ? $title : ''); ?>" class="sap-admin-input-container">
|
39 |
-
<input type="checkbox" name="<?php echo $input_name; ?>[]" id="<?php echo $input_name . "-" . $id; ?>" value="<?php echo $id; ?>" <?php echo ( in_array($id, $values) ? 'checked="checked"' : '' ) ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
40 |
-
<span class='sap-admin-checkbox'></span> <span><?php echo $title; ?></span>
|
41 |
</label>
|
42 |
<?php endforeach; ?>
|
43 |
<?php $this->display_disabled(); ?>
|
19 |
* @package Simple Admin Pages
|
20 |
*/
|
21 |
|
22 |
+
class sapAdminPageSettingCheckbox_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
23 |
|
24 |
//public $sanitize_callback = 'sanitize_text_field';
|
25 |
|
35 |
?>
|
36 |
<fieldset <?php echo ( isset( $this->columns ) ? 'class="sap-setting-columns-' . $this->columns . '"' : '' ); ?> <?php $this->print_conditional_data(); ?>>
|
37 |
<?php foreach ( $this->options as $id => $title ) : ?>
|
38 |
+
<label title="<?php echo ( strpos( $title, '<' ) === false ? esc_attr( $title ) : ''); ?>" class="sap-admin-input-container">
|
39 |
+
<input type="checkbox" name="<?php echo esc_attr( $input_name ); ?>[]" id="<?php echo esc_attr( $input_name . "-" . $id ); ?>" value="<?php echo esc_attr( $id ); ?>" <?php echo ( in_array($id, $values) ? 'checked="checked"' : '' ) ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
40 |
+
<span class='sap-admin-checkbox'></span> <span><?php echo esc_html( $title ); ?></span>
|
41 |
</label>
|
42 |
<?php endforeach; ?>
|
43 |
<?php $this->display_disabled(); ?>
|
lib/simple-admin-pages/classes/AdminPageSetting.ColorPicker.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
@@ -25,9 +25,9 @@ class sapAdminPageSettingColorPicker_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
25 |
?>
|
26 |
|
27 |
<fieldset class="sap-colorpicker" <?php $this->print_conditional_data(); ?>>
|
28 |
-
<input class="sap-spectrum" name="<?php echo $this->get_input_name(); ?>" type="text" id="<?php echo $this->get_input_name(); ?>" value="<?php echo $this->value; ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
29 |
|
30 |
-
<?php $this->display_disabled(); ?>
|
31 |
</fieldset>
|
32 |
|
33 |
<?php
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingColorPicker_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
25 |
?>
|
26 |
|
27 |
<fieldset class="sap-colorpicker" <?php $this->print_conditional_data(); ?>>
|
28 |
+
<input class="sap-spectrum" name="<?php echo esc_attr( $this->get_input_name() ); ?>" type="text" id="<?php echo esc_attr( $this->get_input_name() ); ?>" value="<?php echo esc_attr( $this->value ); ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
29 |
|
30 |
+
<?php $this->display_disabled(); ?>
|
31 |
</fieldset>
|
32 |
|
33 |
<?php
|
lib/simple-admin-pages/classes/AdminPageSetting.Count.class.php
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
* @package Simple Admin Pages
|
25 |
*/
|
26 |
|
27 |
-
class
|
28 |
|
29 |
public $sanitize_callback = 'sanitize_text_field';
|
30 |
|
@@ -73,15 +73,15 @@ class sapAdminPageSettingCount_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
73 |
?>
|
74 |
|
75 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
76 |
-
<input id='<?php echo $this->id; ?>' type='hidden' name='<?php echo $this->get_input_name(); ?>' value='<?php echo $this->value; ?>' />
|
77 |
-
<select id="<?php echo $this->id; ?>_count" <?php echo ( $this->disabled ? 'disabled' : ''); ?> class='sap-count-count' data-id='<?php echo $this->id; ?>'>
|
78 |
|
79 |
<?php if ( $this->blank_option === true ) : ?>
|
80 |
<option></option>
|
81 |
<?php endif; ?>
|
82 |
|
83 |
<?php for ( $i = $this->min_value; $i <= $this->max_value; $i = $i + $this->increment ) : ?>
|
84 |
-
<option value="<?php echo $i; ?>"<?php if( $count == $i ) : ?> selected="selected"<?php endif; ?>><?php echo $i; ?></option>
|
85 |
<?php endfor; ?>
|
86 |
|
87 |
</select>
|
@@ -89,9 +89,9 @@ class sapAdminPageSettingCount_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
89 |
<?php if ( ! empty($this->units) ) { ?>
|
90 |
|
91 |
<?php if ( sizeof( $this->units ) == 1 ) { ?>
|
92 |
-
<input type='hidden' id='<?php echo $this->id; ?>_unit' data-id='<?php echo $this->id; ?>' /><span><?php echo esc_html( reset( $this->units ) ); ?></span>
|
93 |
<?php } else { ?>
|
94 |
-
<select id='<?php echo $this->id; ?>_unit' <?php echo ( $this->disabled ? 'disabled' : ''); ?> class='sap-count-unit' data-id='<?php echo $this->id; ?>'>
|
95 |
|
96 |
<?php if ( $this->blank_option === true ) : ?>
|
97 |
<option></option>
|
@@ -105,7 +105,7 @@ class sapAdminPageSettingCount_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
105 |
<?php } ?>
|
106 |
|
107 |
<?php } ?>
|
108 |
-
<?php $this->display_disabled(); ?>
|
109 |
</fieldset>
|
110 |
|
111 |
<?php
|
24 |
* @package Simple Admin Pages
|
25 |
*/
|
26 |
|
27 |
+
class sapAdminPageSettingCount_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
28 |
|
29 |
public $sanitize_callback = 'sanitize_text_field';
|
30 |
|
73 |
?>
|
74 |
|
75 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
76 |
+
<input id='<?php echo esc_attr( $this->id ); ?>' type='hidden' name='<?php echo esc_attr( $this->get_input_name() ); ?>' value='<?php echo esc_attr( $this->value ); ?>' />
|
77 |
+
<select id="<?php echo esc_attr( $this->id ); ?>_count" <?php echo ( $this->disabled ? 'disabled' : ''); ?> class='sap-count-count' data-id='<?php echo esc_attr( $this->id ); ?>'>
|
78 |
|
79 |
<?php if ( $this->blank_option === true ) : ?>
|
80 |
<option></option>
|
81 |
<?php endif; ?>
|
82 |
|
83 |
<?php for ( $i = $this->min_value; $i <= $this->max_value; $i = $i + $this->increment ) : ?>
|
84 |
+
<option value="<?php echo esc_attr( $i ); ?>"<?php if( $count == $i ) : ?> selected="selected"<?php endif; ?>><?php echo esc_html( $i ); ?></option>
|
85 |
<?php endfor; ?>
|
86 |
|
87 |
</select>
|
89 |
<?php if ( ! empty($this->units) ) { ?>
|
90 |
|
91 |
<?php if ( sizeof( $this->units ) == 1 ) { ?>
|
92 |
+
<input type='hidden' id='<?php echo esc_attr( $this->id ); ?>_unit' data-id='<?php echo esc_attr( $this->id ); ?>' /><span><?php echo esc_html( reset( $this->units ) ); ?></span>
|
93 |
<?php } else { ?>
|
94 |
+
<select id='<?php echo esc_attr( $this->id ); ?>_unit' <?php echo ( $this->disabled ? 'disabled' : ''); ?> class='sap-count-unit' data-id='<?php echo esc_attr( $this->id ); ?>'>
|
95 |
|
96 |
<?php if ( $this->blank_option === true ) : ?>
|
97 |
<option></option>
|
105 |
<?php } ?>
|
106 |
|
107 |
<?php } ?>
|
108 |
+
<?php $this->display_disabled(); ?>
|
109 |
</fieldset>
|
110 |
|
111 |
<?php
|
lib/simple-admin-pages/classes/AdminPageSetting.Editor.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'wp_kses_post';
|
13 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingEditor_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'wp_kses_post';
|
13 |
|
lib/simple-admin-pages/classes/AdminPageSetting.FileUpload.class.php
CHANGED
@@ -15,7 +15,7 @@
|
|
15 |
* @package Simple Admin Pages
|
16 |
*/
|
17 |
|
18 |
-
class
|
19 |
|
20 |
public $sanitize_callback = 'esc_url_raw';
|
21 |
|
@@ -43,21 +43,21 @@ class sapAdminPageSettingFileUpload_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
43 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
44 |
|
45 |
<span class="sap-file-upload-preview">
|
46 |
-
|
47 |
<span class="sap-file-upload-preview-label">
|
48 |
<?php _e( 'Current image:', 'simple-admin-pages' ); ?>
|
49 |
</span>
|
50 |
-
|
51 |
<span class="sap-file-upload-preview-value">
|
52 |
-
<?php echo $this->value; ?>
|
53 |
</span>
|
54 |
-
|
55 |
</span>
|
56 |
-
|
57 |
<?php echo ( $this->value != '' ? '<br /><br />' : '' ); ?>
|
58 |
-
|
59 |
-
<input name="<?php echo $this->get_input_name(); ?>" type="hidden" id="<?php echo $this->get_input_name(); ?>" class="file-upload" value="<?php echo $this->value; ?>" />
|
60 |
-
|
61 |
<input class="button sap-file-upload-button" type="button" value="<?php _e( 'Upload Image', 'simple-admin-pages' ); ?>" />
|
62 |
|
63 |
</fieldset>
|
@@ -65,7 +65,7 @@ class sapAdminPageSettingFileUpload_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
65 |
<br /><br />
|
66 |
|
67 |
<?php $this->display_disabled(); ?>
|
68 |
-
|
69 |
<?php
|
70 |
|
71 |
$this->display_description();
|
15 |
* @package Simple Admin Pages
|
16 |
*/
|
17 |
|
18 |
+
class sapAdminPageSettingFileUpload_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
19 |
|
20 |
public $sanitize_callback = 'esc_url_raw';
|
21 |
|
43 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
44 |
|
45 |
<span class="sap-file-upload-preview">
|
46 |
+
|
47 |
<span class="sap-file-upload-preview-label">
|
48 |
<?php _e( 'Current image:', 'simple-admin-pages' ); ?>
|
49 |
</span>
|
50 |
+
|
51 |
<span class="sap-file-upload-preview-value">
|
52 |
+
<?php echo esc_html( $this->value ); ?>
|
53 |
</span>
|
54 |
+
|
55 |
</span>
|
56 |
+
|
57 |
<?php echo ( $this->value != '' ? '<br /><br />' : '' ); ?>
|
58 |
+
|
59 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>" type="hidden" id="<?php echo esc_attr( $this->get_input_name() ); ?>" class="file-upload" value="<?php echo esc_attr( $this->value ); ?>" />
|
60 |
+
|
61 |
<input class="button sap-file-upload-button" type="button" value="<?php _e( 'Upload Image', 'simple-admin-pages' ); ?>" />
|
62 |
|
63 |
</fieldset>
|
65 |
<br /><br />
|
66 |
|
67 |
<?php $this->display_disabled(); ?>
|
68 |
+
|
69 |
<?php
|
70 |
|
71 |
$this->display_description();
|
lib/simple-admin-pages/classes/AdminPageSetting.HTML.class.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
* @package Simple Admin Pages
|
15 |
*/
|
16 |
|
17 |
-
class
|
18 |
|
19 |
public $sanitize_callback = 'sanitize_text_field';
|
20 |
|
@@ -27,7 +27,7 @@ class sapAdminPageSettingHTML_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
27 |
?>
|
28 |
|
29 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
30 |
-
<?php echo $this->html; ?>
|
31 |
</fieldset>
|
32 |
|
33 |
<?php
|
14 |
* @package Simple Admin Pages
|
15 |
*/
|
16 |
|
17 |
+
class sapAdminPageSettingHTML_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
18 |
|
19 |
public $sanitize_callback = 'sanitize_text_field';
|
20 |
|
27 |
?>
|
28 |
|
29 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
30 |
+
<?php echo wp_kses_post( $this->html ); ?>
|
31 |
</fieldset>
|
32 |
|
33 |
<?php
|
lib/simple-admin-pages/classes/AdminPageSetting.Image.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'absint';
|
13 |
|
@@ -43,12 +43,12 @@ class sapAdminPageSettingImage_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
43 |
?>
|
44 |
|
45 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
46 |
-
<div class="sap-image-wrapper <?php echo $this->value ? 'sap-image-wrapper-has-image' : 'sap-image-wrapper-no-image'; ?>" data-id="sap-<?php echo $this->id; ?>">
|
47 |
-
<input name="<?php echo $this->get_input_name(); ?>" type="hidden" id="sap-<?php echo $this->id; ?>" value="<?php echo $this->value; ?>">
|
48 |
<img src="<?php echo esc_attr( $image_url ); ?>">
|
49 |
-
<button class="button sap-image-btn-add" id="sap-<?php echo $this->id; ?>-add"><?php echo esc_html( $this->strings['add_image'] ); ?></button>
|
50 |
-
<button class="button sap-image-btn-change" id="sap-<?php echo $this->id; ?>-change"><?php echo esc_html( $this->strings['change_image'] ); ?></button>
|
51 |
-
<button class="button sap-image-btn-remove" id="sap-<?php echo $this->id; ?>-remove"><?php echo esc_html( $this->strings['remove_image'] ); ?></button>
|
52 |
</div>
|
53 |
</fieldset>
|
54 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingImage_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'absint';
|
13 |
|
43 |
?>
|
44 |
|
45 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
46 |
+
<div class="sap-image-wrapper <?php echo $this->value ? 'sap-image-wrapper-has-image' : 'sap-image-wrapper-no-image'; ?>" data-id="sap-<?php echo esc_attr( $this->id ); ?>">
|
47 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>" type="hidden" id="sap-<?php echo esc_attr( $this->id ); ?>" value="<?php echo esc_attr( $this->value ); ?>">
|
48 |
<img src="<?php echo esc_attr( $image_url ); ?>">
|
49 |
+
<button class="button sap-image-btn-add" id="sap-<?php echo esc_attr( $this->id ); ?>-add"><?php echo esc_html( $this->strings['add_image'] ); ?></button>
|
50 |
+
<button class="button sap-image-btn-change" id="sap-<?php echo esc_attr( $this->id ); ?>-change"><?php echo esc_html( $this->strings['change_image'] ); ?></button>
|
51 |
+
<button class="button sap-image-btn-remove" id="sap-<?php echo esc_attr( $this->id ); ?>-remove"><?php echo esc_html( $this->strings['remove_image'] ); ?></button>
|
52 |
</div>
|
53 |
</fieldset>
|
54 |
|
lib/simple-admin-pages/classes/AdminPageSetting.InfiniteTable.class.php
CHANGED
@@ -24,7 +24,7 @@
|
|
24 |
* @package Simple Admin Pages
|
25 |
*/
|
26 |
|
27 |
-
class
|
28 |
|
29 |
public $sanitize_callback = 'sanitize_textarea_field';
|
30 |
|
@@ -75,13 +75,13 @@ class sapAdminPageSettingInfiniteTable_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
75 |
?>
|
76 |
|
77 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
78 |
-
<div class='sap-infinite-table <?php echo ( $this->disabled ? 'disabled' : ''); ?>' data-fieldids='<?php echo $fields; ?>'>
|
79 |
-
<input type='hidden' id="sap-infinite-table-main-input" name='<?php echo $input_name; ?>' value='<?php echo $this->value; ?>' />
|
80 |
<table>
|
81 |
<thead>
|
82 |
<tr>
|
83 |
<?php foreach ($this->fields as $field) { ?>
|
84 |
-
<th><?php echo
|
85 |
<?php } ?>
|
86 |
<th></th>
|
87 |
</tr>
|
@@ -90,82 +90,86 @@ class sapAdminPageSettingInfiniteTable_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
90 |
<?php foreach ($values as $row) { ?>
|
91 |
<tr class='sap-infinite-table-row'>
|
92 |
<?php foreach ($this->fields as $field_id => $field) { ?>
|
93 |
-
<td data-field-type="<?php echo $field['type']; ?>" >
|
94 |
<?php if ($field['type'] == 'id') : ?>
|
95 |
-
<span class='sap-infinite-table-id-html'><?php echo $row->$field_id; ?></span>
|
96 |
-
<input type='hidden' data-name='<?php echo $field_id; ?>' value='<?php echo $row->$field_id; ?>' />
|
97 |
<?php endif; ?>
|
98 |
<?php if ($field['type'] == 'text') : ?>
|
99 |
-
<input type='text' data-name='<?php echo $field_id; ?>' value='<?php echo $row->$field_id; ?>' />
|
100 |
<?php endif; ?>
|
101 |
<?php if ($field['type'] == 'textarea') : ?>
|
102 |
-
<textarea data-name='<?php echo $field_id; ?>'><?php echo $row->$field_id; ?></textarea>
|
103 |
<?php endif; ?>
|
104 |
<?php if ($field['type'] == 'number') : ?>
|
105 |
-
<input type='number' data-name='<?php echo $field_id; ?>' value='<?php echo $row->$field_id; ?>' />
|
106 |
<?php endif; ?>
|
107 |
<?php if ($field['type'] == 'hidden') : ?>
|
108 |
-
<span class='sap-infinite-table-hidden-value'><?php echo $row->$field_id; ?></span>
|
109 |
-
<input type='hidden' data-name='<?php echo $field_id; ?>' value='<?php echo $row->$field_id; ?>' />
|
110 |
<?php endif; ?>
|
111 |
<?php if ($field['type'] == 'select') : ?>
|
112 |
-
<select data-name='<?php echo $field_id; ?>'>
|
113 |
<?php if ( ! empty( $field['blank_option'] ) ) { ?><option></option><?php } ?>
|
114 |
<?php $this->print_options( $field['options'], $row, $field_id ); ?>
|
115 |
</select>
|
116 |
<?php endif; ?>
|
117 |
<?php if ($field['type'] == 'toggle') : ?>
|
118 |
<label class="sap-admin-switch">
|
119 |
-
<input type="checkbox" class="sap-admin-option-toggle" data-name="<?php echo $field_id; ?>" <?php if( $row->$field_id == '1' ) {echo "checked='checked'";} ?> >
|
120 |
<span class="sap-admin-switch-slider round"></span>
|
121 |
</label>
|
122 |
<?php endif; ?>
|
123 |
</td>
|
124 |
<?php } ?>
|
125 |
-
<td class='sap-infinite-table-row-delete'><?php echo $this->del_label; ?></td>
|
126 |
</tr>
|
127 |
<?php } ?>
|
128 |
</tbody>
|
129 |
<tfoot>
|
130 |
<tr class='sap-infinite-table-row-template sap-hidden'>
|
131 |
<?php foreach ($this->fields as $field_id => $field) { ?>
|
132 |
-
<td data-field-type="<?php echo $field['type']; ?>" >
|
133 |
<?php if ($field['type'] == 'id') : ?>
|
134 |
<span class='sap-infinite-table-id-html'></span>
|
135 |
-
<input type='hidden' data-name='<?php echo $field_id; ?>' value='' />
|
136 |
<?php endif; ?>
|
137 |
<?php if ($field['type'] == 'text') : ?>
|
138 |
-
<input type='text' data-name='<?php echo $field_id; ?>' value='' />
|
139 |
<?php endif; ?>
|
140 |
<?php if ($field['type'] == 'textarea') : ?>
|
141 |
-
<textarea data-name='<?php echo $field_id; ?>'></textarea>
|
142 |
<?php endif; ?>
|
143 |
<?php if ($field['type'] == 'number') : ?>
|
144 |
-
<input type='number' data-name='<?php echo $field_id; ?>' value='' />
|
145 |
<?php endif; ?>
|
146 |
<?php if ($field['type'] == 'hidden') : ?>
|
147 |
<span class='sap-infinite-table-hidden-value'></span>
|
148 |
-
<input type='hidden' data-name='<?php echo $field_id; ?>' value='' />
|
149 |
<?php endif; ?>
|
150 |
<?php if ($field['type'] == 'select') : ?>
|
151 |
-
<select data-name='<?php echo $field_id; ?>'>
|
152 |
<?php if ( ! empty( $field['blank_option'] ) ) { ?><option></option><?php } ?>
|
153 |
<?php $this->print_options( $field['options'] ); ?>
|
154 |
</select>
|
155 |
<?php endif; ?>
|
156 |
<?php if ($field['type'] == 'toggle') : ?>
|
157 |
<label class="sap-admin-switch">
|
158 |
-
<input type="checkbox" class="sap-admin-option-toggle" data-name="<?php echo $field_id; ?>" checked >
|
159 |
<span class="sap-admin-switch-slider round"></span>
|
160 |
</label>
|
161 |
<?php endif; ?>
|
162 |
</td>
|
163 |
<?php } ?>
|
164 |
-
<td class='sap-infinite-table-row-delete'
|
|
|
|
|
165 |
</tr>
|
166 |
<tr class='sap-infinite-table-add-row'>
|
167 |
<td colspan="<?php echo count( $this->fields ) ?>">
|
168 |
-
<a class="sap-new-admin-add-button"
|
|
|
|
|
169 |
</td>
|
170 |
</tr>
|
171 |
</tfoot>
|
@@ -204,8 +208,8 @@ class sapAdminPageSettingInfiniteTable_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
204 |
|
205 |
?>
|
206 |
|
207 |
-
<option value='<?php echo $option_value; ?>' <?php echo ($selected_value == $option_value ? 'selected="selected"' : ''); ?>>
|
208 |
-
<?php echo $option_name; ?>
|
209 |
</option>
|
210 |
|
211 |
<?php
|
24 |
* @package Simple Admin Pages
|
25 |
*/
|
26 |
|
27 |
+
class sapAdminPageSettingInfiniteTable_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
28 |
|
29 |
public $sanitize_callback = 'sanitize_textarea_field';
|
30 |
|
75 |
?>
|
76 |
|
77 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
78 |
+
<div class='sap-infinite-table <?php echo ( $this->disabled ? 'disabled' : ''); ?>' data-fieldids='<?php echo esc_attr( $fields ); ?>'>
|
79 |
+
<input type='hidden' id="sap-infinite-table-main-input" name='<?php echo esc_attr( $input_name ); ?>' value='<?php echo esc_attr( $this->value ); ?>' />
|
80 |
<table>
|
81 |
<thead>
|
82 |
<tr>
|
83 |
<?php foreach ($this->fields as $field) { ?>
|
84 |
+
<th><?php echo esc_html( $field['label'] ); ?></th>
|
85 |
<?php } ?>
|
86 |
<th></th>
|
87 |
</tr>
|
90 |
<?php foreach ($values as $row) { ?>
|
91 |
<tr class='sap-infinite-table-row'>
|
92 |
<?php foreach ($this->fields as $field_id => $field) { ?>
|
93 |
+
<td data-field-type="<?php echo esc_attr( $field['type'] ); ?>" >
|
94 |
<?php if ($field['type'] == 'id') : ?>
|
95 |
+
<span class='sap-infinite-table-id-html'><?php echo esc_html( $row->$field_id ); ?></span>
|
96 |
+
<input type='hidden' data-name='<?php echo esc_attr( $field_id ); ?>' value='<?php echo esc_attr( $row->$field_id ); ?>' />
|
97 |
<?php endif; ?>
|
98 |
<?php if ($field['type'] == 'text') : ?>
|
99 |
+
<input type='text' data-name='<?php echo esc_attr( $field_id ); ?>' value='<?php echo esc_attr( $row->$field_id ); ?>' />
|
100 |
<?php endif; ?>
|
101 |
<?php if ($field['type'] == 'textarea') : ?>
|
102 |
+
<textarea data-name='<?php echo esc_attr( $field_id ); ?>'><?php echo esc_textarea( $row->$field_id ); ?></textarea>
|
103 |
<?php endif; ?>
|
104 |
<?php if ($field['type'] == 'number') : ?>
|
105 |
+
<input type='number' data-name='<?php echo esc_attr( $field_id ); ?>' value='<?php echo esc_attr( $row->$field_id ); ?>' />
|
106 |
<?php endif; ?>
|
107 |
<?php if ($field['type'] == 'hidden') : ?>
|
108 |
+
<span class='sap-infinite-table-hidden-value'><?php echo esc_html( $row->$field_id ); ?></span>
|
109 |
+
<input type='hidden' data-name='<?php echo esc_attr( $field_id ); ?>' value='<?php echo $row->$field_id; ?>' />
|
110 |
<?php endif; ?>
|
111 |
<?php if ($field['type'] == 'select') : ?>
|
112 |
+
<select data-name='<?php echo esc_attr( $field_id ); ?>'>
|
113 |
<?php if ( ! empty( $field['blank_option'] ) ) { ?><option></option><?php } ?>
|
114 |
<?php $this->print_options( $field['options'], $row, $field_id ); ?>
|
115 |
</select>
|
116 |
<?php endif; ?>
|
117 |
<?php if ($field['type'] == 'toggle') : ?>
|
118 |
<label class="sap-admin-switch">
|
119 |
+
<input type="checkbox" class="sap-admin-option-toggle" data-name="<?php echo esc_attr( $field_id ); ?>" <?php if( $row->$field_id == '1' ) {echo "checked='checked'";} ?> >
|
120 |
<span class="sap-admin-switch-slider round"></span>
|
121 |
</label>
|
122 |
<?php endif; ?>
|
123 |
</td>
|
124 |
<?php } ?>
|
125 |
+
<td class='sap-infinite-table-row-delete'><?php echo esc_html( $this->del_label ); ?></td>
|
126 |
</tr>
|
127 |
<?php } ?>
|
128 |
</tbody>
|
129 |
<tfoot>
|
130 |
<tr class='sap-infinite-table-row-template sap-hidden'>
|
131 |
<?php foreach ($this->fields as $field_id => $field) { ?>
|
132 |
+
<td data-field-type="<?php echo esc_attr( $field['type'] ); ?>" >
|
133 |
<?php if ($field['type'] == 'id') : ?>
|
134 |
<span class='sap-infinite-table-id-html'></span>
|
135 |
+
<input type='hidden' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
136 |
<?php endif; ?>
|
137 |
<?php if ($field['type'] == 'text') : ?>
|
138 |
+
<input type='text' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
139 |
<?php endif; ?>
|
140 |
<?php if ($field['type'] == 'textarea') : ?>
|
141 |
+
<textarea data-name='<?php echo $esc_attr( $field_id ); ?>'></textarea>
|
142 |
<?php endif; ?>
|
143 |
<?php if ($field['type'] == 'number') : ?>
|
144 |
+
<input type='number' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
145 |
<?php endif; ?>
|
146 |
<?php if ($field['type'] == 'hidden') : ?>
|
147 |
<span class='sap-infinite-table-hidden-value'></span>
|
148 |
+
<input type='hidden' data-name='<?php echo esc_attr( $field_id ); ?>' value='' />
|
149 |
<?php endif; ?>
|
150 |
<?php if ($field['type'] == 'select') : ?>
|
151 |
+
<select data-name='<?php echo esc_attr( $field_id ); ?>'>
|
152 |
<?php if ( ! empty( $field['blank_option'] ) ) { ?><option></option><?php } ?>
|
153 |
<?php $this->print_options( $field['options'] ); ?>
|
154 |
</select>
|
155 |
<?php endif; ?>
|
156 |
<?php if ($field['type'] == 'toggle') : ?>
|
157 |
<label class="sap-admin-switch">
|
158 |
+
<input type="checkbox" class="sap-admin-option-toggle" data-name="<?php echo esc_attr( $field_id ); ?>" checked >
|
159 |
<span class="sap-admin-switch-slider round"></span>
|
160 |
</label>
|
161 |
<?php endif; ?>
|
162 |
</td>
|
163 |
<?php } ?>
|
164 |
+
<td class='sap-infinite-table-row-delete'>
|
165 |
+
<?php echo wp_kses_post( $this->del_label ); ?>
|
166 |
+
</td>
|
167 |
</tr>
|
168 |
<tr class='sap-infinite-table-add-row'>
|
169 |
<td colspan="<?php echo count( $this->fields ) ?>">
|
170 |
+
<a class="sap-new-admin-add-button">
|
171 |
+
<?php echo wp_kses_post( $this->add_label ); ?>
|
172 |
+
</a>
|
173 |
</td>
|
174 |
</tr>
|
175 |
</tfoot>
|
208 |
|
209 |
?>
|
210 |
|
211 |
+
<option value='<?php echo esc_attr( $option_value ); ?>' <?php echo ($selected_value == $option_value ? 'selected="selected"' : ''); ?>>
|
212 |
+
<?php echo esc_html( $option_name ); ?>
|
213 |
</option>
|
214 |
|
215 |
<?php
|
lib/simple-admin-pages/classes/AdminPageSetting.McApiKey.class.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
*/
|
16 |
|
17 |
-
class
|
18 |
|
19 |
/**
|
20 |
* Scripts and styles to load for this component
|
@@ -126,15 +126,15 @@ class mcfrtbAdminPageSettingMcApiKey_2_6_2 {
|
|
126 |
|
127 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
128 |
|
129 |
-
<input name="<?php echo $this->get_input_name(); ?>[api_key]" type="text" id="<?php echo $this->get_input_name(); ?>[api_key]" value="<?php echo $this->value['api_key']; ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text">
|
130 |
|
131 |
<?php if ( !empty( $this->value['api_key'] ) && $this->value['status'] === true ) : ?>
|
132 |
-
<span class="mcfrtb-status mcfrtb-status-connected"><?php echo $this->string_status_connected; ?></span>
|
133 |
<?php elseif( !empty( $this->value['api_key'] ) ) : ?>
|
134 |
-
<span class="mcfrtb-status mcfrtb-status-error"><?php echo $this->string_status_error; ?></span>
|
135 |
<?php endif; ?>
|
136 |
|
137 |
-
<input name="<?php echo $this->get_input_name(); ?>[status]" type="hidden" id="<?php echo $this->get_input_name(); ?>[status]" value="<?php echo $this->value['status']; ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?>>
|
138 |
|
139 |
</fieldset>
|
140 |
|
@@ -150,7 +150,7 @@ class mcfrtbAdminPageSettingMcApiKey_2_6_2 {
|
|
150 |
|
151 |
if ( !empty( $this->description ) ) : ?>
|
152 |
|
153 |
-
<p class="description"><?php echo $this->description; ?></p>
|
154 |
|
155 |
<?php endif;
|
156 |
}
|
14 |
*
|
15 |
*/
|
16 |
|
17 |
+
class mcfrtbAdminPageSettingMcApiKey_2_6_3 {
|
18 |
|
19 |
/**
|
20 |
* Scripts and styles to load for this component
|
126 |
|
127 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
128 |
|
129 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>[api_key]" type="text" id="<?php echo esc_attr( $this->get_input_name() ); ?>[api_key]" value="<?php echo esc_attr( $this->value['api_key'] ); ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text">
|
130 |
|
131 |
<?php if ( !empty( $this->value['api_key'] ) && $this->value['status'] === true ) : ?>
|
132 |
+
<span class="mcfrtb-status mcfrtb-status-connected"><?php echo esc_html( $this->string_status_connected ); ?></span>
|
133 |
<?php elseif( !empty( $this->value['api_key'] ) ) : ?>
|
134 |
+
<span class="mcfrtb-status mcfrtb-status-error"><?php echo esc_html( $this->string_status_error ); ?></span>
|
135 |
<?php endif; ?>
|
136 |
|
137 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>[status]" type="hidden" id="<?php echo esc_attr( $this->get_input_name() ); ?>[status]" value="<?php echo esc_attr( $this->value['status'] ); ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?>>
|
138 |
|
139 |
</fieldset>
|
140 |
|
150 |
|
151 |
if ( !empty( $this->description ) ) : ?>
|
152 |
|
153 |
+
<p class="description"><?php echo wp_kses_post( $this->description ); ?></p>
|
154 |
|
155 |
<?php endif;
|
156 |
}
|
lib/simple-admin-pages/classes/AdminPageSetting.McListMerge.class.php
CHANGED
@@ -14,7 +14,7 @@
|
|
14 |
*
|
15 |
*/
|
16 |
|
17 |
-
class
|
18 |
|
19 |
/**
|
20 |
* Scripts and styles to load for this component
|
@@ -159,12 +159,12 @@ class mcfrtbAdminPageSettingMcListMerge_2_6_2 {
|
|
159 |
|
160 |
<span class="mcf-sap_loading">
|
161 |
<span class="spinner"></span>
|
162 |
-
<span><?php echo $this->string_loading; ?></span>
|
163 |
</span>
|
164 |
|
165 |
<?php $this->display_description(); ?>
|
166 |
|
167 |
-
<div id="mcfrtb-merge-controls" data-input-name="<?php echo $this->get_input_name(); ?>"></div>
|
168 |
|
169 |
</fieldset>
|
170 |
|
@@ -178,7 +178,7 @@ class mcfrtbAdminPageSettingMcListMerge_2_6_2 {
|
|
178 |
|
179 |
if ( !empty( $this->description ) ) : ?>
|
180 |
|
181 |
-
<p class="description"><?php echo $this->description; ?></p>
|
182 |
|
183 |
<?php endif;
|
184 |
}
|
14 |
*
|
15 |
*/
|
16 |
|
17 |
+
class mcfrtbAdminPageSettingMcListMerge_2_6_3 {
|
18 |
|
19 |
/**
|
20 |
* Scripts and styles to load for this component
|
159 |
|
160 |
<span class="mcf-sap_loading">
|
161 |
<span class="spinner"></span>
|
162 |
+
<span><?php echo esc_html( $this->string_loading ); ?></span>
|
163 |
</span>
|
164 |
|
165 |
<?php $this->display_description(); ?>
|
166 |
|
167 |
+
<div id="mcfrtb-merge-controls" data-input-name="<?php echo esc_attr( $this->get_input_name() ); ?>"></div>
|
168 |
|
169 |
</fieldset>
|
170 |
|
178 |
|
179 |
if ( !empty( $this->description ) ) : ?>
|
180 |
|
181 |
+
<p class="description"><?php echo wp_kses_post( $this->description ); ?></p>
|
182 |
|
183 |
<?php endif;
|
184 |
}
|
lib/simple-admin-pages/classes/AdminPageSetting.Number.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
@@ -26,7 +26,7 @@ class sapAdminPageSettingNumber_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
26 |
|
27 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
28 |
|
29 |
-
<input name="<?php echo $this->get_input_name(); ?>" type="number" id="<?php echo $this->get_input_name(); ?>" value="<?php echo $this->value; ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
30 |
|
31 |
<?php $this->display_disabled(); ?>
|
32 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingNumber_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
26 |
|
27 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
28 |
|
29 |
+
<input name="<?php echo $this->get_input_name(); ?>" type="number" id="<?php echo esc_attr( $this->get_input_name() ); ?>" value="<?php echo esc_attr( $this->value ); ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
30 |
|
31 |
<?php $this->display_disabled(); ?>
|
32 |
|
lib/simple-admin-pages/classes/AdminPageSetting.OpeningHours.class.php
CHANGED
@@ -25,7 +25,7 @@
|
|
25 |
* @package Simple Admin Pages
|
26 |
*/
|
27 |
|
28 |
-
class
|
29 |
|
30 |
public $sanitize_callback = 'sanitize_text_field';
|
31 |
|
@@ -126,14 +126,14 @@ class sapAdminPageSettingOpeningHours_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
126 |
<table class="sap-opening-hours <?php echo ( $this->disabled ? 'disabled' : ''); ?>">
|
127 |
<tr>
|
128 |
<td>
|
129 |
-
<input type="hidden" id="sap-opening-hours-day-<?php echo $i; ?>-name" name="<?php echo $this->get_input_name(); ?>[<?php echo $i; ?>][day_name]" value="<?php echo esc_attr( $this->get_day_name( $this->value[$i]['day'] ) ); ?>">
|
130 |
-
<select name="<?php echo $this->get_input_name(); ?>[<?php echo $i; ?>][day]" id="<?php echo $this->id . '-' . $i; ?>-day" class="sap-opening-hours-day" data-target="#sap-opening-hours-day-<?php echo $i; ?>-name">
|
131 |
<option value=""></option>
|
132 |
|
133 |
<?php foreach ( $this->weekdays as $id => $name ) : ?>
|
134 |
|
135 |
-
<option value="<?php echo $id; ?>" data-name="<?php echo esc_attr( $name ); ?>"<?php if ( $this->value[$i]['day'] == $id ) : ?> selected<?php endif; ?>>
|
136 |
-
<?php echo $name; ?>
|
137 |
</option>
|
138 |
|
139 |
<?php endforeach; ?>
|
@@ -141,7 +141,7 @@ class sapAdminPageSettingOpeningHours_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
141 |
</select>
|
142 |
</td>
|
143 |
<td>
|
144 |
-
<input name="<?php echo $this->get_input_name(); ?>[<?php echo $i; ?>][hours]" type="text" id="<?php echo $this->id . '-' . $i; ?>-hours" value="<?php echo $this->value[$i]['hours']; ?>" class="regular-text sap-opening-hours-hours" />
|
145 |
</td>
|
146 |
</tr>
|
147 |
</table>
|
25 |
* @package Simple Admin Pages
|
26 |
*/
|
27 |
|
28 |
+
class sapAdminPageSettingOpeningHours_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
29 |
|
30 |
public $sanitize_callback = 'sanitize_text_field';
|
31 |
|
126 |
<table class="sap-opening-hours <?php echo ( $this->disabled ? 'disabled' : ''); ?>">
|
127 |
<tr>
|
128 |
<td>
|
129 |
+
<input type="hidden" id="sap-opening-hours-day-<?php echo esc_attr( $i ); ?>-name" name="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $i ); ?>][day_name]" value="<?php echo esc_attr( $this->get_day_name( $this->value[$i]['day'] ) ); ?>">
|
130 |
+
<select name="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $i ); ?>][day]" id="<?php echo esc_attr( $this->id . '-' . $i ); ?>-day" class="sap-opening-hours-day" data-target="#sap-opening-hours-day-<?php echo esc_attr( $i ); ?>-name">
|
131 |
<option value=""></option>
|
132 |
|
133 |
<?php foreach ( $this->weekdays as $id => $name ) : ?>
|
134 |
|
135 |
+
<option value="<?php echo esc_attr( $id ); ?>" data-name="<?php echo esc_attr( $name ); ?>"<?php if ( $this->value[$i]['day'] == $id ) : ?> selected<?php endif; ?>>
|
136 |
+
<?php echo esc_html( $name ); ?>
|
137 |
</option>
|
138 |
|
139 |
<?php endforeach; ?>
|
141 |
</select>
|
142 |
</td>
|
143 |
<td>
|
144 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $i ); ?>][hours]" type="text" id="<?php echo esc_attr( $this->id . '-' . $i ); ?>-hours" value="<?php echo esc_attr( $this->value[$i]['hours'] ); ?>" class="regular-text sap-opening-hours-hours" />
|
145 |
</td>
|
146 |
</tr>
|
147 |
</table>
|
lib/simple-admin-pages/classes/AdminPageSetting.Ordering.class.php
CHANGED
@@ -18,7 +18,7 @@
|
|
18 |
* @package Simple Admin Pages
|
19 |
*/
|
20 |
|
21 |
-
class
|
22 |
|
23 |
public $sanitize_callback = 'sanitize_text_field';
|
24 |
|
@@ -67,7 +67,7 @@ class sapAdminPageSettingOrdering_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
67 |
|
68 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
69 |
<div class='sap-ordering-table <?php echo ( $this->disabled ? 'disabled' : ''); ?>'>
|
70 |
-
<input type='hidden' id="sap-ordering-table-main-input" name='<?php echo $input_name; ?>' value='<?php echo esc_attr( json_encode( $values ) ); ?>' />
|
71 |
<table>
|
72 |
<tbody>
|
73 |
<?php foreach ( $values as $value => $label ) { ?>
|
18 |
* @package Simple Admin Pages
|
19 |
*/
|
20 |
|
21 |
+
class sapAdminPageSettingOrdering_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
22 |
|
23 |
public $sanitize_callback = 'sanitize_text_field';
|
24 |
|
67 |
|
68 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
69 |
<div class='sap-ordering-table <?php echo ( $this->disabled ? 'disabled' : ''); ?>'>
|
70 |
+
<input type='hidden' id="sap-ordering-table-main-input" name='<?php echo esc_attr( $input_name ); ?>' value='<?php echo esc_attr( json_encode( $values ) ); ?>' />
|
71 |
<table>
|
72 |
<tbody>
|
73 |
<?php foreach ( $values as $value => $label ) { ?>
|
lib/simple-admin-pages/classes/AdminPageSetting.Radio.class.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
* @package Simple Admin Pages
|
20 |
*/
|
21 |
|
22 |
-
class
|
23 |
|
24 |
public $sanitize_callback = 'sanitize_text_field';
|
25 |
|
@@ -28,21 +28,21 @@ class sapAdminPageSettingRadio_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
28 |
* @since 2.0
|
29 |
*/
|
30 |
public function display_setting() {
|
31 |
-
|
32 |
$input_name = $this->get_input_name();
|
33 |
|
34 |
if ( empty( $this->value ) ) { $this->value = $this->get_default_setting(); }
|
35 |
|
36 |
?>
|
37 |
-
<fieldset <?php echo ( isset( $this->columns ) ? 'class="sap-setting-columns-' . $this->columns . '"' : '' ); ?> <?php $this->print_conditional_data(); ?>>
|
38 |
<?php foreach ( $this->options as $id => $title ) : ?>
|
39 |
-
<label title="<?php echo ( strpos( $title, '<' ) === false ? $title : ''); ?>" class="sap-admin-input-container">
|
40 |
-
<input type="radio" name="<?php echo $input_name; ?>" id="<?php echo $input_name . "-" . $id; ?>" value="<?php echo $id; ?>" <?php echo ( $id == $this->value ? 'checked="checked"' : '' ) ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
41 |
-
<span class='sap-admin-radio-button'></span> <span><?php echo $title; ?></span>
|
42 |
</label>
|
43 |
<?php endforeach; ?>
|
44 |
-
|
45 |
-
<?php $this->display_disabled(); ?>
|
46 |
</fieldset>
|
47 |
<?php
|
48 |
|
19 |
* @package Simple Admin Pages
|
20 |
*/
|
21 |
|
22 |
+
class sapAdminPageSettingRadio_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
23 |
|
24 |
public $sanitize_callback = 'sanitize_text_field';
|
25 |
|
28 |
* @since 2.0
|
29 |
*/
|
30 |
public function display_setting() {
|
31 |
+
|
32 |
$input_name = $this->get_input_name();
|
33 |
|
34 |
if ( empty( $this->value ) ) { $this->value = $this->get_default_setting(); }
|
35 |
|
36 |
?>
|
37 |
+
<fieldset <?php echo ( isset( $this->columns ) ? 'class="sap-setting-columns-' . esc_attr( $this->columns ) . '"' : '' ); ?> <?php $this->print_conditional_data(); ?>>
|
38 |
<?php foreach ( $this->options as $id => $title ) : ?>
|
39 |
+
<label title="<?php echo ( strpos( $title, '<' ) === false ? esc_attr( $title ) : ''); ?>" class="sap-admin-input-container">
|
40 |
+
<input type="radio" name="<?php echo esc_attr( $input_name ); ?>" id="<?php echo esc_attr( $input_name . "-" . $id ); ?>" value="<?php echo esc_attr( $id ); ?>" <?php echo ( $id == $this->value ? 'checked="checked"' : '' ) ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
41 |
+
<span class='sap-admin-radio-button'></span> <span><?php echo wp_kses_post( $title ); ?></span>
|
42 |
</label>
|
43 |
<?php endforeach; ?>
|
44 |
+
|
45 |
+
<?php $this->display_disabled(); ?>
|
46 |
</fieldset>
|
47 |
<?php
|
48 |
|
lib/simple-admin-pages/classes/AdminPageSetting.Scheduler.class.php
CHANGED
@@ -10,7 +10,7 @@
|
|
10 |
* @package Simple Admin Pages
|
11 |
*/
|
12 |
|
13 |
-
class
|
14 |
|
15 |
public $sanitize_callback = 'sanitize_text_field';
|
16 |
|
@@ -291,7 +291,7 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
291 |
|
292 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
293 |
|
294 |
-
<div class="sap-scheduler <?php echo ( $this->disabled ? 'disabled' : ''); ?>" id="<?php echo $this->id; ?>">
|
295 |
<?php
|
296 |
foreach ( $this->value as $id => $rule ) {
|
297 |
echo $this->get_template( $id, $rule, true );
|
@@ -301,7 +301,7 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
301 |
|
302 |
<div class="sap-add-scheduler<?php if ( $this->disable_multiple && count( $this->value ) ) : ?> disabled<?php endif; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?>">
|
303 |
<a href="#" class="button">
|
304 |
-
<?php echo $this->strings['add_rule']; ?>
|
305 |
</a>
|
306 |
</div>
|
307 |
|
@@ -325,18 +325,18 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
325 |
?>
|
326 |
|
327 |
<div class="sap-scheduler-rule clearfix<?php echo $list ? ' list' : ''; ?>">
|
328 |
-
<div class="sap-scheduler-date <?php echo $date_format; echo $this->disable_time === true ? ' full-width' : ''; ?>">
|
329 |
<ul class="sap-selector">
|
330 |
|
331 |
<?php if ( !$this->has_multiple_date_formats() ) : ?>
|
332 |
<li>
|
333 |
<div class="dashicons dashicons-calendar"></div>
|
334 |
<?php if ( $date_format == 'weekly' ) : ?>
|
335 |
-
<?php echo $this->strings['weekly']; ?>
|
336 |
<?php elseif ( $date_format == 'monthly' ) : ?>
|
337 |
-
<?php echo $this->strings['monthly']; ?>
|
338 |
<?php elseif ( $date_format == 'date' ) : ?>
|
339 |
-
<?php echo $this->strings['date']; ?>
|
340 |
<?php endif; ?>
|
341 |
</li>
|
342 |
<?php else : ?>
|
@@ -345,7 +345,7 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
345 |
<li>
|
346 |
<div class="dashicons dashicons-calendar"></div>
|
347 |
<a href="#" data-format="weekly"<?php echo $date_format == 'weekly' ? ' class="selected"' : ''; ?>>
|
348 |
-
<?php echo $this->strings['weekly']; ?>
|
349 |
</a>
|
350 |
</li>
|
351 |
<?php endif; ?>
|
@@ -353,7 +353,7 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
353 |
<?php if ( $this->disable_weeks === false ) : ?>
|
354 |
<li>
|
355 |
<a href="#" data-format="monthly"<?php echo $date_format == 'monthly' ? ' class="selected"' : ''; ?>>
|
356 |
-
<?php echo $this->strings['monthly']; ?>
|
357 |
</a>
|
358 |
</li>
|
359 |
<?php endif; ?>
|
@@ -361,7 +361,7 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
361 |
<?php if ( $this->disable_date === false ) : ?>
|
362 |
<li>
|
363 |
<a href="#" data-format="date"<?php echo $date_format == 'date' ? ' class="selected"' : ''; ?>>
|
364 |
-
<?php echo $this->strings['date']; ?>
|
365 |
</a>
|
366 |
</li>
|
367 |
<?php endif; ?>
|
@@ -372,14 +372,14 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
372 |
<?php if ( $this->disable_weekdays === false ) : ?>
|
373 |
<ul class="sap-scheduler-weekdays">
|
374 |
<li class="label">
|
375 |
-
<?php echo $this->strings['weekdays']; ?>
|
376 |
</li>
|
377 |
<?php
|
378 |
foreach ( $this->weekdays as $slug => $label ) :
|
379 |
-
$input_name = $this->get_input_name() . '[' . $id . '][weekdays][' .
|
380 |
?>
|
381 |
<li>
|
382 |
-
<input type="checkbox" name="<?php echo $input_name; ?>" id="<?php echo $input_name; ?>" value="1"<?php echo empty( $values['weekdays'][$slug] ) ? '' : ' checked="checked"'; ?> data-day="<?php echo esc_attr( $slug ); ?>"><label for="<?php echo $input_name; ?>"><?php echo ucfirst( $label ); ?></label>
|
383 |
</li>
|
384 |
<?php endforeach; ?>
|
385 |
</ul>
|
@@ -388,14 +388,14 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
388 |
<?php if ( $this->disable_weeks === false ) : ?>
|
389 |
<ul class="sap-scheduler-weeks">
|
390 |
<li class="label">
|
391 |
-
<?php echo $this->strings['month_weeks']; ?>
|
392 |
</li>
|
393 |
<?php
|
394 |
foreach ( $this->weeks as $slug => $label ) :
|
395 |
-
$input_name = $this->get_input_name() . '[' . $id . '][weeks][' .
|
396 |
?>
|
397 |
<li>
|
398 |
-
<input type="checkbox" name="<?php echo $input_name; ?>" id="<?php echo $input_name; ?>" value="1"<?php echo empty( $values['weeks'][$slug] ) ? '' : ' checked="checked"'; ?> data-week="<?php echo esc_attr( $slug ); ?>"><label for="<?php echo $input_name; ?>"><?php echo ucfirst( $label ); ?></label>
|
399 |
</li>
|
400 |
<?php endforeach; ?>
|
401 |
</ul>
|
@@ -403,28 +403,28 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
403 |
|
404 |
<?php if ( $this->disable_date === false ) : ?>
|
405 |
<div class="sap-scheduler-date-input">
|
406 |
-
<label for="<?php echo $this->get_input_name(); ?>[<?php echo $id; ?>][date]">
|
407 |
-
<?php echo $this->strings['date_label']; ?>
|
408 |
</label>
|
409 |
-
<input type="text" name="<?php echo $this->get_input_name(); ?>[<?php echo $id; ?>][date]" id="<?php echo $this->get_input_name(); ?>[<?php echo $id; ?>][date]" value="<?php echo empty( $values['date'] ) ? '' : $values['date']; ?>">
|
410 |
</div>
|
411 |
<?php endif; ?>
|
412 |
|
413 |
</div>
|
414 |
|
415 |
<?php if ( $this->disable_time === false ) : ?>
|
416 |
-
<div class="sap-scheduler-time <?php echo $time_format; ?>">
|
417 |
|
418 |
<ul class="sap-selector">
|
419 |
<li>
|
420 |
<div class="dashicons dashicons-clock"></div>
|
421 |
<a href="#" data-format="time-slot"<?php echo $time_format == 'time-slot' ? ' class="selected"' : ''; ?>>
|
422 |
-
<?php echo $this->strings['time_label']; ?>
|
423 |
</a>
|
424 |
</li>
|
425 |
<li>
|
426 |
<a href="#" data-format="all-day"<?php echo $time_format == 'all-day' ? ' class="selected"' : ''; ?>>
|
427 |
-
<?php echo $this->strings['allday']; ?>
|
428 |
</a>
|
429 |
</li>
|
430 |
</ul>
|
@@ -432,18 +432,18 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
432 |
<div class="sap-scheduler-time-input clearfix">
|
433 |
|
434 |
<div class="start">
|
435 |
-
<label for="<?php echo $this->get_input_name(); ?>[<?php echo $id; ?>][time][start]">
|
436 |
-
<?php echo $this->strings['start']; ?>
|
437 |
</label>
|
438 |
-
<input type="text" name="<?php echo $this->get_input_name() . '[' . $id . '][time][start]'; ?>" id="<?php echo $this->get_input_name() . '[' . $id . '][time][start]'; ?>" value="<?php echo empty( $values['time']['start'] ) ? '' : $values['time']['start']; ?>">
|
439 |
</div>
|
440 |
|
441 |
<?php if ( $this->disable_end_time === false ) : ?>
|
442 |
<div class="end">
|
443 |
-
<label for="<?php echo $this->get_input_name(); ?>[<?php echo $id; ?>][time][end]">
|
444 |
-
<?php echo $this->strings['end']; ?>
|
445 |
</label>
|
446 |
-
<input type="text" name="<?php echo $this->get_input_name() . '[' . $id . '][time][end]'; ?>" id="<?php echo $this->get_input_name() . '[' . $id . '][time][end]'; ?>" value="<?php echo empty( $values['time']['end'] ) ? '' : $values['time']['end']; ?>">
|
447 |
</div>
|
448 |
<?php endif; ?>
|
449 |
|
@@ -459,26 +459,26 @@ class sapAdminPageSettingScheduler_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
459 |
<div class="sap-scheduler-brief">
|
460 |
<div class="date">
|
461 |
<div class="dashicons dashicons-calendar"></div>
|
462 |
-
<span class="value"><?php echo $this->get_date_summary( $values ); ?></span>
|
463 |
</div>
|
464 |
<?php if ( $this->disable_time === false ) : ?>
|
465 |
<div class="time">
|
466 |
<div class="dashicons dashicons-clock"></div>
|
467 |
-
<span class="value"><?php echo $this->get_time_summary( $values ); ?></span>
|
468 |
</div>
|
469 |
<?php endif; ?>
|
470 |
</div>
|
471 |
<div class="sap-scheduler-control">
|
472 |
-
<a href="#" class="toggle" title="<?php echo $this->strings['toggle']; ?>">
|
473 |
<div class="dashicons dashicons-<?php echo $list ? 'edit' : 'arrow-up-alt2'; ?>"></div>
|
474 |
<span class="screen-reader-text">
|
475 |
-
<?php echo $this->strings['toggle']; ?>
|
476 |
</span>
|
477 |
</a>
|
478 |
-
<a href="#" class="delete" title="<?php echo $this->strings['delete']; ?>">
|
479 |
<div class="dashicons dashicons-dismiss"></div>
|
480 |
<span class="screen-reader-text">
|
481 |
-
<?php echo $this->strings['delete_schedule']; ?>
|
482 |
</span>
|
483 |
</a>
|
484 |
</div>
|
10 |
* @package Simple Admin Pages
|
11 |
*/
|
12 |
|
13 |
+
class sapAdminPageSettingScheduler_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
14 |
|
15 |
public $sanitize_callback = 'sanitize_text_field';
|
16 |
|
291 |
|
292 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
293 |
|
294 |
+
<div class="sap-scheduler <?php echo ( $this->disabled ? 'disabled' : ''); ?>" id="<?php echo esc_attr( $this->id ); ?>">
|
295 |
<?php
|
296 |
foreach ( $this->value as $id => $rule ) {
|
297 |
echo $this->get_template( $id, $rule, true );
|
301 |
|
302 |
<div class="sap-add-scheduler<?php if ( $this->disable_multiple && count( $this->value ) ) : ?> disabled<?php endif; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?>">
|
303 |
<a href="#" class="button">
|
304 |
+
<?php echo esc_html( $this->strings['add_rule'] ); ?>
|
305 |
</a>
|
306 |
</div>
|
307 |
|
325 |
?>
|
326 |
|
327 |
<div class="sap-scheduler-rule clearfix<?php echo $list ? ' list' : ''; ?>">
|
328 |
+
<div class="sap-scheduler-date <?php echo esc_attr( $date_format ); echo $this->disable_time === true ? ' full-width' : ''; ?>">
|
329 |
<ul class="sap-selector">
|
330 |
|
331 |
<?php if ( !$this->has_multiple_date_formats() ) : ?>
|
332 |
<li>
|
333 |
<div class="dashicons dashicons-calendar"></div>
|
334 |
<?php if ( $date_format == 'weekly' ) : ?>
|
335 |
+
<?php echo esc_html( $this->strings['weekly'] ); ?>
|
336 |
<?php elseif ( $date_format == 'monthly' ) : ?>
|
337 |
+
<?php echo esc_html( $this->strings['monthly'] ); ?>
|
338 |
<?php elseif ( $date_format == 'date' ) : ?>
|
339 |
+
<?php echo esc_html( $this->strings['date'] ); ?>
|
340 |
<?php endif; ?>
|
341 |
</li>
|
342 |
<?php else : ?>
|
345 |
<li>
|
346 |
<div class="dashicons dashicons-calendar"></div>
|
347 |
<a href="#" data-format="weekly"<?php echo $date_format == 'weekly' ? ' class="selected"' : ''; ?>>
|
348 |
+
<?php echo esc_html( $this->strings['weekly'] ); ?>
|
349 |
</a>
|
350 |
</li>
|
351 |
<?php endif; ?>
|
353 |
<?php if ( $this->disable_weeks === false ) : ?>
|
354 |
<li>
|
355 |
<a href="#" data-format="monthly"<?php echo $date_format == 'monthly' ? ' class="selected"' : ''; ?>>
|
356 |
+
<?php echo esc_html( $this->strings['monthly'] ); ?>
|
357 |
</a>
|
358 |
</li>
|
359 |
<?php endif; ?>
|
361 |
<?php if ( $this->disable_date === false ) : ?>
|
362 |
<li>
|
363 |
<a href="#" data-format="date"<?php echo $date_format == 'date' ? ' class="selected"' : ''; ?>>
|
364 |
+
<?php echo esc_html( $this->strings['date'] ); ?>
|
365 |
</a>
|
366 |
</li>
|
367 |
<?php endif; ?>
|
372 |
<?php if ( $this->disable_weekdays === false ) : ?>
|
373 |
<ul class="sap-scheduler-weekdays">
|
374 |
<li class="label">
|
375 |
+
<?php echo esc_html( $this->strings['weekdays'] ); ?>
|
376 |
</li>
|
377 |
<?php
|
378 |
foreach ( $this->weekdays as $slug => $label ) :
|
379 |
+
$input_name = $this->get_input_name() . '[' . $id . '][weekdays][' . $slug . ']';
|
380 |
?>
|
381 |
<li>
|
382 |
+
<input type="checkbox" name="<?php echo esc_attr( $input_name ); ?>" id="<?php echo esc_attr( $input_name ); ?>" value="1"<?php echo empty( $values['weekdays'][$slug] ) ? '' : ' checked="checked"'; ?> data-day="<?php echo esc_attr( $slug ); ?>"><label for="<?php echo esc_attr( $input_name ); ?>"><?php echo ucfirst( $label ); ?></label>
|
383 |
</li>
|
384 |
<?php endforeach; ?>
|
385 |
</ul>
|
388 |
<?php if ( $this->disable_weeks === false ) : ?>
|
389 |
<ul class="sap-scheduler-weeks">
|
390 |
<li class="label">
|
391 |
+
<?php echo esc_html( $this->strings['month_weeks'] ); ?>
|
392 |
</li>
|
393 |
<?php
|
394 |
foreach ( $this->weeks as $slug => $label ) :
|
395 |
+
$input_name = $this->get_input_name() . '[' . $id . '][weeks][' . $slug . ']';
|
396 |
?>
|
397 |
<li>
|
398 |
+
<input type="checkbox" name="<?php echo esc_attr( $input_name ); ?>" id="<?php echo esc_attr( $input_name ); ?>" value="1"<?php echo empty( $values['weeks'][$slug] ) ? '' : ' checked="checked"'; ?> data-week="<?php echo esc_attr( $slug ); ?>"><label for="<?php echo esc_attr( $input_name ); ?>"><?php echo ucfirst( $label ); ?></label>
|
399 |
</li>
|
400 |
<?php endforeach; ?>
|
401 |
</ul>
|
403 |
|
404 |
<?php if ( $this->disable_date === false ) : ?>
|
405 |
<div class="sap-scheduler-date-input">
|
406 |
+
<label for="<?php echo $this->get_input_name(); ?>[<?php echo esc_attr( $id ); ?>][date]">
|
407 |
+
<?php echo esc_html( $this->strings['date_label'] ); ?>
|
408 |
</label>
|
409 |
+
<input type="text" name="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $id ); ?>][date]" id="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $id ); ?>][date]" value="<?php echo empty( $values['date'] ) ? '' : esc_attr( $values['date'] ); ?>">
|
410 |
</div>
|
411 |
<?php endif; ?>
|
412 |
|
413 |
</div>
|
414 |
|
415 |
<?php if ( $this->disable_time === false ) : ?>
|
416 |
+
<div class="sap-scheduler-time <?php echo esc_attr( $time_format ); ?>">
|
417 |
|
418 |
<ul class="sap-selector">
|
419 |
<li>
|
420 |
<div class="dashicons dashicons-clock"></div>
|
421 |
<a href="#" data-format="time-slot"<?php echo $time_format == 'time-slot' ? ' class="selected"' : ''; ?>>
|
422 |
+
<?php echo esc_html( $this->strings['time_label'] ); ?>
|
423 |
</a>
|
424 |
</li>
|
425 |
<li>
|
426 |
<a href="#" data-format="all-day"<?php echo $time_format == 'all-day' ? ' class="selected"' : ''; ?>>
|
427 |
+
<?php echo esc_html( $this->strings['allday'] ); ?>
|
428 |
</a>
|
429 |
</li>
|
430 |
</ul>
|
432 |
<div class="sap-scheduler-time-input clearfix">
|
433 |
|
434 |
<div class="start">
|
435 |
+
<label for="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $id ); ?>][time][start]">
|
436 |
+
<?php echo esc_html( $this->strings['start'] ); ?>
|
437 |
</label>
|
438 |
+
<input type="text" name="<?php echo esc_attr( $this->get_input_name() ) . '[' . esc_attr( $id ) . '][time][start]'; ?>" id="<?php echo esc_attr( $this->get_input_name() ) . '[' . esc_attr( $id ) . '][time][start]'; ?>" value="<?php echo empty( $values['time']['start'] ) ? '' : esc_attr( $values['time']['start'] ); ?>">
|
439 |
</div>
|
440 |
|
441 |
<?php if ( $this->disable_end_time === false ) : ?>
|
442 |
<div class="end">
|
443 |
+
<label for="<?php echo esc_attr( $this->get_input_name() ); ?>[<?php echo esc_attr( $id ); ?>][time][end]">
|
444 |
+
<?php echo esc_html( $this->strings['end'] ); ?>
|
445 |
</label>
|
446 |
+
<input type="text" name="<?php echo esc_attr( $this->get_input_name() ) . '[' . esc_attr( $id ) . '][time][end]'; ?>" id="<?php echo esc_attr( $this->get_input_name() ) . '[' . esc_attr( $id ) . '][time][end]'; ?>" value="<?php echo empty( $values['time']['end'] ) ? '' : esc_attr( $values['time']['end'] ); ?>">
|
447 |
</div>
|
448 |
<?php endif; ?>
|
449 |
|
459 |
<div class="sap-scheduler-brief">
|
460 |
<div class="date">
|
461 |
<div class="dashicons dashicons-calendar"></div>
|
462 |
+
<span class="value"><?php echo esc_html( $this->get_date_summary( $values ) ); ?></span>
|
463 |
</div>
|
464 |
<?php if ( $this->disable_time === false ) : ?>
|
465 |
<div class="time">
|
466 |
<div class="dashicons dashicons-clock"></div>
|
467 |
+
<span class="value"><?php echo esc_html( $this->get_time_summary( $values ) ); ?></span>
|
468 |
</div>
|
469 |
<?php endif; ?>
|
470 |
</div>
|
471 |
<div class="sap-scheduler-control">
|
472 |
+
<a href="#" class="toggle" title="<?php echo esc_attr( $this->strings['toggle'] ); ?>">
|
473 |
<div class="dashicons dashicons-<?php echo $list ? 'edit' : 'arrow-up-alt2'; ?>"></div>
|
474 |
<span class="screen-reader-text">
|
475 |
+
<?php echo esc_html( $this->strings['toggle'] ); ?>
|
476 |
</span>
|
477 |
</a>
|
478 |
+
<a href="#" class="delete" title="<?php echo esc_attr( $this->strings['delete'] ); ?>">
|
479 |
<div class="dashicons dashicons-dismiss"></div>
|
480 |
<span class="screen-reader-text">
|
481 |
+
<?php echo esc_html( $this->strings['delete_schedule'] ); ?>
|
482 |
</span>
|
483 |
</a>
|
484 |
</div>
|
lib/simple-admin-pages/classes/AdminPageSetting.Select.class.php
CHANGED
@@ -21,7 +21,7 @@
|
|
21 |
* @package Simple Admin Pages
|
22 |
*/
|
23 |
|
24 |
-
class
|
25 |
|
26 |
public $sanitize_callback = 'sanitize_text_field';
|
27 |
|
@@ -41,7 +41,7 @@ class sapAdminPageSettingSelect_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
41 |
|
42 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
43 |
|
44 |
-
<select name="<?php echo $this->get_input_name(); ?>" id="<?php echo $this->id; ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
45 |
|
46 |
<?php if ( $this->blank_option === true ) : ?>
|
47 |
<option></option>
|
21 |
* @package Simple Admin Pages
|
22 |
*/
|
23 |
|
24 |
+
class sapAdminPageSettingSelect_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
25 |
|
26 |
public $sanitize_callback = 'sanitize_text_field';
|
27 |
|
41 |
|
42 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
43 |
|
44 |
+
<select name="<?php echo esc_attr( $this->get_input_name() ); ?>" id="<?php echo esc_attr( $this->id ); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
45 |
|
46 |
<?php if ( $this->blank_option === true ) : ?>
|
47 |
<option></option>
|
lib/simple-admin-pages/classes/AdminPageSetting.SelectMenu.class.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @package Simple Admin Pages
|
18 |
*/
|
19 |
|
20 |
-
class
|
21 |
|
22 |
public $sanitize_callback = 'intval';
|
23 |
|
@@ -41,20 +41,20 @@ class sapAdminPageSettingSelectMenu_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
41 |
|
42 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
43 |
|
44 |
-
<select name="<?php echo $this->get_input_name(); ?>" id="<?php echo $this->get_input_name(); ?>">
|
45 |
-
|
46 |
<?php if ( $this->blank_option === true ) : ?>
|
47 |
<option></option>
|
48 |
<?php endif; ?>
|
49 |
-
|
50 |
<?php foreach($menus as $menu){ ?>
|
51 |
<option value="<?php echo absint( $menu->term_id ); ?>" <?php selected( $this->value, $menu->term_id ); ?>><?php echo esc_attr( $menu->name ); ?></option>
|
52 |
<?php } ?>
|
53 |
-
|
54 |
</select>
|
55 |
|
56 |
</fieldset>
|
57 |
-
|
58 |
<?php
|
59 |
$this->display_description();
|
60 |
|
17 |
* @package Simple Admin Pages
|
18 |
*/
|
19 |
|
20 |
+
class sapAdminPageSettingSelectMenu_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
21 |
|
22 |
public $sanitize_callback = 'intval';
|
23 |
|
41 |
|
42 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
43 |
|
44 |
+
<select name="<?php echo esc_attr( $this->get_input_name() ); ?>" id="<?php echo esc_attr( $this->get_input_name() ); ?>">
|
45 |
+
|
46 |
<?php if ( $this->blank_option === true ) : ?>
|
47 |
<option></option>
|
48 |
<?php endif; ?>
|
49 |
+
|
50 |
<?php foreach($menus as $menu){ ?>
|
51 |
<option value="<?php echo absint( $menu->term_id ); ?>" <?php selected( $this->value, $menu->term_id ); ?>><?php echo esc_attr( $menu->name ); ?></option>
|
52 |
<?php } ?>
|
53 |
+
|
54 |
</select>
|
55 |
|
56 |
</fieldset>
|
57 |
+
|
58 |
<?php
|
59 |
$this->display_description();
|
60 |
|
lib/simple-admin-pages/classes/AdminPageSetting.SelectPost.class.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @package Simple Admin Pages
|
18 |
*/
|
19 |
|
20 |
-
class
|
21 |
|
22 |
public $sanitize_callback = 'intval';
|
23 |
|
@@ -42,7 +42,7 @@ class sapAdminPageSettingSelectPost_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
42 |
|
43 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
44 |
|
45 |
-
<select name="<?php echo $this->get_input_name(); ?>" id="<?php echo $this->get_input_name(); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
46 |
|
47 |
<?php if ( $this->blank_option === true ) : ?>
|
48 |
<option></option>
|
17 |
* @package Simple Admin Pages
|
18 |
*/
|
19 |
|
20 |
+
class sapAdminPageSettingSelectPost_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
21 |
|
22 |
public $sanitize_callback = 'intval';
|
23 |
|
42 |
|
43 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
44 |
|
45 |
+
<select name="<?php echo esc_attr( $this->get_input_name() ); ?>" id="<?php echo esc_attr( $this->get_input_name() ); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
46 |
|
47 |
<?php if ( $this->blank_option === true ) : ?>
|
48 |
<option></option>
|
lib/simple-admin-pages/classes/AdminPageSetting.SelectTaxonomy.class.php
CHANGED
@@ -19,7 +19,7 @@
|
|
19 |
* @package Simple Admin Pages
|
20 |
*/
|
21 |
|
22 |
-
class
|
23 |
|
24 |
public $sanitize_callback = 'intval';
|
25 |
|
@@ -47,7 +47,7 @@ class sapAdminPageSettingSelectTaxonomy_2_6_2 extends sapAdminPageSetting_2_6_2
|
|
47 |
|
48 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
49 |
|
50 |
-
<select name="<?php echo $this->get_input_name(); ?>" id="<?php echo $this->get_input_name(); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
51 |
|
52 |
<?php if ( $this->blank_option === true ) : ?>
|
53 |
<option></option>
|
19 |
* @package Simple Admin Pages
|
20 |
*/
|
21 |
|
22 |
+
class sapAdminPageSettingSelectTaxonomy_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
23 |
|
24 |
public $sanitize_callback = 'intval';
|
25 |
|
47 |
|
48 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
49 |
|
50 |
+
<select name="<?php echo esc_attr( $this->get_input_name() ); ?>" id="<?php echo esc_attr( $this->get_input_name() ); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
51 |
|
52 |
<?php if ( $this->blank_option === true ) : ?>
|
53 |
<option></option>
|
lib/simple-admin-pages/classes/AdminPageSetting.Text.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
@@ -25,7 +25,7 @@ class sapAdminPageSettingText_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
25 |
?>
|
26 |
|
27 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
28 |
-
<input name="<?php echo $this->get_input_name(); ?>" type="text" id="<?php echo $this->get_input_name(); ?>" value="<?php echo $this->value; ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text <?php echo ( $this->small ? 'sap-small-text-input' : '' ); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
29 |
|
30 |
<?php $this->display_disabled(); ?>
|
31 |
</fieldset>
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingText_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
25 |
?>
|
26 |
|
27 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
28 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>" type="text" id="<?php echo esc_attr( $this->get_input_name() ); ?>" value="<?php echo esc_attr( $this->value ); ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text <?php echo ( $this->small ? 'sap-small-text-input' : '' ); ?>" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
29 |
|
30 |
<?php $this->display_disabled(); ?>
|
31 |
</fieldset>
|
lib/simple-admin-pages/classes/AdminPageSetting.Textarea.class.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
* @todo textareas should have an option to swap new lines for <br>s
|
10 |
*/
|
11 |
|
12 |
-
class
|
13 |
|
14 |
/*
|
15 |
* Size of this textarea
|
@@ -46,7 +46,7 @@ class sapAdminPageSettingTextarea_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
46 |
?>
|
47 |
|
48 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
49 |
-
<textarea name="<?php echo $this->get_input_name(); ?>" id="<?php echo $this->get_input_name(); ?>" class="<?php echo $this->size; ?>-text"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> <?php $this->print_conditional_data(); ?>><?php echo $this->value; ?></textarea>
|
50 |
|
51 |
<?php $this->display_disabled(); ?>
|
52 |
</fieldset>
|
9 |
* @todo textareas should have an option to swap new lines for <br>s
|
10 |
*/
|
11 |
|
12 |
+
class sapAdminPageSettingTextarea_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
13 |
|
14 |
/*
|
15 |
* Size of this textarea
|
46 |
?>
|
47 |
|
48 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
49 |
+
<textarea name="<?php echo esc_attr( $this->get_input_name() ); ?>" id="<?php echo esc_attr( $this->get_input_name() ); ?>" class="<?php echo esc_attr( $this->size ); ?>-text"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> <?php $this->print_conditional_data(); ?>><?php echo esc_textarea( $this->value ); ?></textarea>
|
50 |
|
51 |
<?php $this->display_disabled(); ?>
|
52 |
</fieldset>
|
lib/simple-admin-pages/classes/AdminPageSetting.Time.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
@@ -24,7 +24,7 @@ class sapAdminPageSettingTime_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
24 |
public function display_setting() {
|
25 |
?>
|
26 |
|
27 |
-
<input name="<?php echo $this->get_input_name(); ?>" type="time" id="<?php echo $this->get_input_name(); ?>" value="<?php echo $this->value; ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
28 |
|
29 |
<?php $this->display_disabled(); ?>
|
30 |
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingTime_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
24 |
public function display_setting() {
|
25 |
?>
|
26 |
|
27 |
+
<input name="<?php echo esc_attr( $this->get_input_name() ); ?>" type="time" id="<?php echo esc_attr( $this->get_input_name() ); ?>" value="<?php echo esc_attr( $this->value ); ?>"<?php echo !empty( $this->placeholder ) ? ' placeholder="' . esc_attr( $this->placeholder ) . '"' : ''; ?> class="regular-text" <?php echo ( $this->disabled ? 'disabled' : ''); ?> />
|
28 |
|
29 |
<?php $this->display_disabled(); ?>
|
30 |
|
lib/simple-admin-pages/classes/AdminPageSetting.Toggle.class.php
CHANGED
@@ -17,7 +17,7 @@
|
|
17 |
* @package Simple Admin Pages
|
18 |
*/
|
19 |
|
20 |
-
class
|
21 |
|
22 |
public $sanitize_callback = 'sanitize_text_field';
|
23 |
|
@@ -35,14 +35,14 @@ class sapAdminPageSettingToggle_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
35 |
|
36 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
37 |
<div class="sap-admin-hide-radios">
|
38 |
-
<input type="checkbox" name="<?php echo $input_name; ?>" id="<?php echo $input_name; ?>" value="1"<?php if( $this->value == '1' ) : ?> checked="checked"<?php endif; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> <?php $this->print_conditional_data(); ?>>
|
39 |
-
<label for="<?php echo $input_name; ?>"><?php echo $this->title; ?></label>
|
40 |
</div>
|
41 |
<label class="sap-admin-switch">
|
42 |
-
<input type="checkbox" class="sap-admin-option-toggle" data-inputname="<?php echo $input_name; ?>" <?php if($this->value == '1') {echo "checked='checked'";} ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
43 |
<span class="sap-admin-switch-slider round"></span>
|
44 |
</label>
|
45 |
-
<?php $this->display_disabled(); ?>
|
46 |
</fieldset>
|
47 |
|
48 |
<?php
|
17 |
* @package Simple Admin Pages
|
18 |
*/
|
19 |
|
20 |
+
class sapAdminPageSettingToggle_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
21 |
|
22 |
public $sanitize_callback = 'sanitize_text_field';
|
23 |
|
35 |
|
36 |
<fieldset <?php $this->print_conditional_data(); ?>>
|
37 |
<div class="sap-admin-hide-radios">
|
38 |
+
<input type="checkbox" name="<?php echo esc_attr( $input_name ); ?>" id="<?php echo esc_attr( $input_name ); ?>" value="1"<?php if( $this->value == '1' ) : ?> checked="checked"<?php endif; ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?> <?php $this->print_conditional_data(); ?>>
|
39 |
+
<label for="<?php echo esc_attr( $input_name ); ?>"><?php echo esc_html( $this->title ); ?></label>
|
40 |
</div>
|
41 |
<label class="sap-admin-switch">
|
42 |
+
<input type="checkbox" class="sap-admin-option-toggle" data-inputname="<?php echo esc_attr( $input_name ); ?>" <?php if($this->value == '1') {echo "checked='checked'";} ?> <?php echo ( $this->disabled ? 'disabled' : ''); ?>>
|
43 |
<span class="sap-admin-switch-slider round"></span>
|
44 |
</label>
|
45 |
+
<?php $this->display_disabled(); ?>
|
46 |
</fieldset>
|
47 |
|
48 |
<?php
|
lib/simple-admin-pages/classes/AdminPageSetting.WarningTip.class.php
CHANGED
@@ -7,7 +7,7 @@
|
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
-
class
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
@@ -26,16 +26,16 @@ class sapAdminPageSettingWarningTip_2_6_2 extends sapAdminPageSetting_2_6_2 {
|
|
26 |
|
27 |
<fieldset class="fdm-warning-tip" <?php $this->print_conditional_data(); ?>>
|
28 |
<div class="fdm-shortcode-reminder">
|
29 |
-
<?php echo '<strong>' . $this->title . '</strong> ' . $this->placeholder; ?>
|
30 |
</div>
|
31 |
|
32 |
-
<?php $this->display_disabled(); ?>
|
33 |
</fieldset>
|
34 |
-
|
35 |
<?php
|
36 |
-
|
37 |
$this->display_description();
|
38 |
-
|
39 |
}
|
40 |
|
41 |
}
|
7 |
* @package Simple Admin Pages
|
8 |
*/
|
9 |
|
10 |
+
class sapAdminPageSettingWarningTip_2_6_3 extends sapAdminPageSetting_2_6_3 {
|
11 |
|
12 |
public $sanitize_callback = 'sanitize_text_field';
|
13 |
|
26 |
|
27 |
<fieldset class="fdm-warning-tip" <?php $this->print_conditional_data(); ?>>
|
28 |
<div class="fdm-shortcode-reminder">
|
29 |
+
<?php echo '<strong>' . wp_kses_post( $this->title ) . '</strong> ' . wp_kses_post( $this->placeholder ); ?>
|
30 |
</div>
|
31 |
|
32 |
+
<?php $this->display_disabled(); ?>
|
33 |
</fieldset>
|
34 |
+
|
35 |
<?php
|
36 |
+
|
37 |
$this->display_description();
|
38 |
+
|
39 |
}
|
40 |
|
41 |
}
|
lib/simple-admin-pages/classes/AdminPageSetting.class.php
CHANGED
@@ -16,7 +16,7 @@
|
|
16 |
* @package Simple Admin Pages
|
17 |
*/
|
18 |
|
19 |
-
abstract class
|
20 |
|
21 |
// Page defaults
|
22 |
public $id; // used in form fields and database to track and store setting
|
@@ -309,7 +309,7 @@ abstract class sapAdminPageSetting_2_6_2 {
|
|
309 |
|
310 |
?>
|
311 |
|
312 |
-
<p class="description<?php echo ( $this->disabled ? ' disabled' : ''); ?>"><?php echo $this->description; ?></p>
|
313 |
|
314 |
<?php
|
315 |
}
|
@@ -324,8 +324,8 @@ abstract class sapAdminPageSetting_2_6_2 {
|
|
324 |
|
325 |
?>
|
326 |
|
327 |
-
<?php echo ( isset($this->purchase_link ) ? "<a href='" . $this->purchase_link . "'>" : '' ); ?>
|
328 |
-
<div class="disabled"><img src='<?php echo $this->disabled_image; ?>;' /></div>
|
329 |
<?php echo ( isset($this->purchase_link ) ? "</a>" : '' ); ?>
|
330 |
|
331 |
<?php
|
16 |
* @package Simple Admin Pages
|
17 |
*/
|
18 |
|
19 |
+
abstract class sapAdminPageSetting_2_6_3 {
|
20 |
|
21 |
// Page defaults
|
22 |
public $id; // used in form fields and database to track and store setting
|
309 |
|
310 |
?>
|
311 |
|
312 |
+
<p class="description<?php echo ( $this->disabled ? ' disabled' : ''); ?>"><?php echo wp_kses_post( $this->description ); ?></p>
|
313 |
|
314 |
<?php
|
315 |
}
|
324 |
|
325 |
?>
|
326 |
|
327 |
+
<?php echo ( isset($this->purchase_link ) ? "<a href='" . esc_url( $this->purchase_link ) . "'>" : '' ); ?>
|
328 |
+
<div class="disabled"><img src='<?php echo esc_url( $this->disabled_image ); ?>;' /></div>
|
329 |
<?php echo ( isset($this->purchase_link ) ? "</a>" : '' ); ?>
|
330 |
|
331 |
<?php
|
lib/simple-admin-pages/classes/Library.class.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<?php
|
2 |
-
if ( !class_exists( '
|
3 |
/**
|
4 |
* This library class loads and provides access to the correct version of the
|
5 |
* Simple Admin Pages library.
|
@@ -7,10 +7,10 @@ if ( !class_exists( 'sapLibrary_2_6_2' ) ) {
|
|
7 |
* @since 1.0
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
-
class
|
11 |
|
12 |
// Version of the library
|
13 |
-
private $version = '2.6.
|
14 |
|
15 |
// A full URL to the library which is used to correctly link scripts and
|
16 |
// stylesheets.
|
@@ -49,7 +49,7 @@ class sapLibrary_2_6_2 {
|
|
49 |
public function __construct( $args ) {
|
50 |
|
51 |
if ( ! defined( 'SAP_VERSION' ) ) {
|
52 |
-
define( 'SAP_VERSION', '2.6.
|
53 |
}
|
54 |
|
55 |
// If no URL path to the library is passed, we won't be able to add the
|
1 |
<?php
|
2 |
+
if ( !class_exists( 'sapLibrary_2_6_3' ) ) {
|
3 |
/**
|
4 |
* This library class loads and provides access to the correct version of the
|
5 |
* Simple Admin Pages library.
|
7 |
* @since 1.0
|
8 |
* @package Simple Admin Pages
|
9 |
*/
|
10 |
+
class sapLibrary_2_6_3 {
|
11 |
|
12 |
// Version of the library
|
13 |
+
private $version = '2.6.3';
|
14 |
|
15 |
// A full URL to the library which is used to correctly link scripts and
|
16 |
// stylesheets.
|
49 |
public function __construct( $args ) {
|
50 |
|
51 |
if ( ! defined( 'SAP_VERSION' ) ) {
|
52 |
+
define( 'SAP_VERSION', '2.6.3' );
|
53 |
}
|
54 |
|
55 |
// If no URL path to the library is passed, we won't be able to add the
|
readme.txt
CHANGED
@@ -3,6 +3,7 @@ Contributors: Rustaurius, EtoileWebDesign
|
|
3 |
Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
|
|
6 |
License: GPLv3
|
7 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
8 |
|
@@ -266,6 +267,10 @@ Video 3 - FAQs Ordering
|
|
266 |
|
267 |
== Changelog ==
|
268 |
|
|
|
|
|
|
|
|
|
269 |
= 2.1.2 (2021-12-23) =
|
270 |
- Updating nonce and capability checks for AJAX calls.
|
271 |
- Updating sanitization and escaping.
|
3 |
Tags: faq, faqs, accordion, woocommerce faq, gutenberg faq, faq block
|
4 |
Requires at least: 5.0
|
5 |
Tested up to: 5.8
|
6 |
+
Stable tag: 2.1.3
|
7 |
License: GPLv3
|
8 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
9 |
|
267 |
|
268 |
== Changelog ==
|
269 |
|
270 |
+
= 2.1.3 (2021-12-24) =
|
271 |
+
- Updated sanitizing and escaping.
|
272 |
+
- Added stable tag.
|
273 |
+
|
274 |
= 2.1.2 (2021-12-23) =
|
275 |
- Updating nonce and capability checks for AJAX calls.
|
276 |
- Updating sanitization and escaping.
|
ultimate-faqs.php
CHANGED
@@ -6,7 +6,7 @@ Description: FAQ and accordion plugin with easy to use Gutenberg blocks, shortco
|
|
6 |
Author URI: https://www.etoilewebdesign.com/
|
7 |
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
8 |
Text Domain: ultimate-faqs
|
9 |
-
Version: 2.1.
|
10 |
WC requires at least: 3.0
|
11 |
WC tested up to: 6.0
|
12 |
*/
|
@@ -43,7 +43,7 @@ class ewdufaqInit {
|
|
43 |
define( 'EWD_UFAQ_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
44 |
define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
|
46 |
-
define( 'EWD_UFAQ_VERSION', '2.1.
|
47 |
|
48 |
define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
|
49 |
define( 'EWD_UFAQ_FAQ_CATEGORY_TAXONOMY', 'ufaq-category' );
|
6 |
Author URI: https://www.etoilewebdesign.com/
|
7 |
Terms and Conditions: https://www.etoilewebdesign.com/plugin-terms-and-conditions/
|
8 |
Text Domain: ultimate-faqs
|
9 |
+
Version: 2.1.3
|
10 |
WC requires at least: 3.0
|
11 |
WC tested up to: 6.0
|
12 |
*/
|
43 |
define( 'EWD_UFAQ_PLUGIN_URL', untrailingslashit( plugin_dir_url( __FILE__ ) ) );
|
44 |
define( 'EWD_UFAQ_PLUGIN_FNAME', plugin_basename( __FILE__ ) );
|
45 |
define( 'EWD_UFAQ_TEMPLATE_DIR', 'ewd-ufaq-templates' );
|
46 |
+
define( 'EWD_UFAQ_VERSION', '2.1.3' );
|
47 |
|
48 |
define( 'EWD_UFAQ_FAQ_POST_TYPE', 'ufaq' );
|
49 |
define( 'EWD_UFAQ_FAQ_CATEGORY_TAXONOMY', 'ufaq-category' );
|