mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 07:04:06 +09:00
- added escape functions, security fix for XSS;
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
<?php global $wpdb;
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
|
||||
global $wpdb;
|
||||
|
||||
$count = $wpdb->get_var(
|
||||
"SELECT COUNT( option_id )
|
||||
@@ -8,7 +11,7 @@ $count = $wpdb->get_var(
|
||||
|
||||
<p><?php _e( 'Run this task from time to time to keep your DB clean.', 'ultimate-member' ) ?></p>
|
||||
<p>
|
||||
<a href="<?php echo add_query_arg( 'um_adm_action', 'user_cache' ); ?>" class="button">
|
||||
<a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'user_cache' ) ); ?>" class="button">
|
||||
<?php printf( __( 'Clear cache of %s users', 'ultimate-member' ), $count ) ?>
|
||||
</a>
|
||||
</p>
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="rss-widget">
|
||||
<?php wp_widget_rss_output(array(
|
||||
'url' => 'https://ultimatemember.com/blog/feed/',
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
<?php if ( $this->dir_size( 'temp' ) > 0.1 ) { ?>
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
|
||||
if ( $this->dir_size( 'temp' ) > 0.1 ) { ?>
|
||||
|
||||
<p>
|
||||
<?php printf( __( 'You can free up <span class="red">%s MB</span> by purging your temp upload directory.', 'ultimate-member' ), $this->dir_size( 'temp' ) ); ?>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a href="<?php echo add_query_arg( 'um_adm_action', 'purge_temp' ); ?>" class="button">
|
||||
<a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'purge_temp' ) ); ?>" class="button">
|
||||
<?php _e( 'Purge Temp', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<p><?php _e( 'Run this task from time to time if you have issues with WP Cron and need to get UM extension updates.', 'ultimate-member' ) ?></p>
|
||||
<p>
|
||||
<a href="<?php echo add_query_arg( 'um_adm_action', 'manual_upgrades_request' ); ?>" class="button">
|
||||
<a href="<?php echo esc_url( add_query_arg( 'um_adm_action', 'manual_upgrades_request' ) ); ?>" class="button">
|
||||
<?php _e( 'Get latest versions', 'ultimate-member' ) ?>
|
||||
</a>
|
||||
</p>
|
||||
@@ -1,19 +1,46 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="table">
|
||||
|
||||
<table>
|
||||
<tr class="first">
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php'); ?>"><?php echo UM()->query()->count_users(); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php'); ?>"><?php _e('Users','ultimate-member'); ?></a></td>
|
||||
<td class="first b">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php' ) ); ?>">
|
||||
<?php echo UM()->query()->count_users(); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="t">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php' ) ); ?>">
|
||||
<?php _e( 'Users', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php echo UM()->query()->count_users_by_status('approved'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=approved'); ?>"><?php _e('Approved','ultimate-member'); ?></a></td>
|
||||
<td class="first b">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=approved' ) ); ?>">
|
||||
<?php echo UM()->query()->count_users_by_status( 'approved' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="t">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=approved' ) ); ?>">
|
||||
<?php _e( 'Approved', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php echo UM()->query()->count_users_by_status('rejected'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=rejected'); ?>"><?php _e('Rejected','ultimate-member'); ?></a></td>
|
||||
<td class="first b">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=rejected' ) ); ?>">
|
||||
<?php echo UM()->query()->count_users_by_status( 'rejected' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="t">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=rejected' ) ); ?>">
|
||||
<?php _e( 'Rejected', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@@ -23,18 +50,42 @@
|
||||
|
||||
<table>
|
||||
<tr class="first">
|
||||
<td class="b"><a href="<?php echo admin_url('users.php?status=awaiting_admin_review'); ?>"><?php echo UM()->query()->count_users_by_status('awaiting_admin_review'); ?></a></td>
|
||||
<td class="last t"><a href="<?php echo admin_url('users.php?status=awaiting_admin_review'); ?>" class="warning"><?php _e('Pending Review','ultimate-member'); ?></a></td>
|
||||
<td class="b">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=awaiting_admin_review' ) ); ?>">
|
||||
<?php echo UM()->query()->count_users_by_status( 'awaiting_admin_review' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="last t">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=awaiting_admin_review' ) ); ?>" class="warning">
|
||||
<?php _e( 'Pending Review', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="b"><a href="<?php echo admin_url('users.php?status=awaiting_email_confirmation'); ?>"><?php echo UM()->query()->count_users_by_status('awaiting_email_confirmation'); ?></a></td>
|
||||
<td class="last t"><a href="<?php echo admin_url('users.php?status=awaiting_email_confirmation'); ?>" class="warning"><?php _e('Awaiting E-mail Confirmation','ultimate-member'); ?></a></td>
|
||||
<td class="b">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=awaiting_email_confirmation' ) ); ?>">
|
||||
<?php echo UM()->query()->count_users_by_status( 'awaiting_email_confirmation' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="last t">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=awaiting_email_confirmation' ) ); ?>" class="warning">
|
||||
<?php _e( 'Awaiting E-mail Confirmation', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td class="first b"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php echo UM()->query()->count_users_by_status('inactive'); ?></a></td>
|
||||
<td class="t"><a href="<?php echo admin_url('users.php?status=inactive'); ?>"><?php _e('Inactive','ultimate-member'); ?></a></td>
|
||||
<td class="first b">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=inactive' ) ); ?>">
|
||||
<?php echo UM()->query()->count_users_by_status( 'inactive' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td class="t">
|
||||
<a href="<?php echo esc_url( admin_url( 'users.php?status=inactive' ) ); ?>">
|
||||
<?php _e( 'Inactive', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php UM()->admin_forms( array(
|
||||
'class' => 'um-member-directory-appearance um-top-label',
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
|
||||
$meta = get_post_custom( get_the_ID() );
|
||||
foreach( $meta as $k => $v ) {
|
||||
if ( strstr( $k, '_um_' ) && !is_array( $v[0] ) ) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php UM()->admin_forms( array(
|
||||
'class' => 'um-member-directory-pagination um-half-column',
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php $user_fields = array();
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php
|
||||
$can_search_array = array();
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php /*UM()->admin_forms( array(
|
||||
'class' => 'um-member-directory-shortcode um-top-label',
|
||||
|
||||
@@ -188,11 +188,11 @@ $free['terms-conditions'] = array(
|
||||
foreach ( $premium as $key => $info ) { ?>
|
||||
|
||||
<div class="plugin-card">
|
||||
<a href="<?php echo esc_attr( $info['url'] ); ?>" class="plugin-image">
|
||||
<img src="<?php echo esc_attr( um_url . 'assets/img/extensions/' . $key . '.png' ); ?>" alt="<?php echo esc_attr( $info['name'] ) ?>" />
|
||||
<a href="<?php echo esc_url( $info['url'] ); ?>" class="plugin-image">
|
||||
<img src="<?php echo esc_url( um_url . 'assets/img/extensions/' . $key . '.png' ); ?>" alt="<?php echo esc_attr( $info['name'] ) ?>" />
|
||||
</a>
|
||||
<div class="plugin-card-top">
|
||||
<h3><a href="<?php echo esc_attr( $info['url'] ); ?>"><?php echo $info['name']; ?></a></h3>
|
||||
<h3><a href="<?php echo esc_url( $info['url'] ); ?>"><?php echo $info['name']; ?></a></h3>
|
||||
|
||||
<div class="desc column-description">
|
||||
<?php echo $info['desc']; ?>
|
||||
@@ -201,12 +201,12 @@ $free['terms-conditions'] = array(
|
||||
<div class="action-links">
|
||||
<ul class="plugin-action-buttons">
|
||||
<li>
|
||||
<a class="install-now button" href="<?php echo $info['url']; ?>">
|
||||
<a class="install-now button" href="<?php echo esc_url( $info['url'] ); ?>">
|
||||
<?php _e( 'Get this Add on', 'ultimate-member' ) ?>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="<?php echo $info['url']; ?>">
|
||||
<a href="<?php echo esc_url( $info['url'] ); ?>">
|
||||
<?php _e( 'More Details', 'ultimate-member' ) ?>
|
||||
</a>
|
||||
</li>
|
||||
@@ -222,11 +222,11 @@ $free['terms-conditions'] = array(
|
||||
foreach ( $free as $key => $info ) { ?>
|
||||
|
||||
<div class="plugin-card">
|
||||
<a href="<?php echo $info['url']; ?>" class="plugin-image">
|
||||
<img src="<?php echo esc_attr( um_url . 'assets/img/extensions/' . $key . '.png' ); ?>" alt="<?php echo esc_attr( $info['name'] ) ?>" />
|
||||
<a href="<?php echo esc_url( $info['url'] ); ?>" class="plugin-image">
|
||||
<img src="<?php echo esc_url( um_url . 'assets/img/extensions/' . $key . '.png' ); ?>" alt="<?php echo esc_attr( $info['name'] ) ?>" />
|
||||
</a>
|
||||
<div class="plugin-card-top">
|
||||
<h3><a href="<?php echo $info['url']; ?>"><?php echo $info['name']; ?></a></h3>
|
||||
<h3><a href="<?php echo esc_url( $info['url'] ); ?>"><?php echo $info['name']; ?></a></h3>
|
||||
|
||||
<div class="desc column-description">
|
||||
<?php echo $info['desc']; ?>
|
||||
@@ -235,7 +235,7 @@ $free['terms-conditions'] = array(
|
||||
<div class="action-links">
|
||||
<ul class="plugin-action-buttons">
|
||||
<li>
|
||||
<a class="install-now button" href="<?php echo $info['url']; ?>">
|
||||
<a class="install-now button" href="<?php echo esc_url( $info['url'] ); ?>">
|
||||
<?php _e( 'Get this Add on', 'ultimate-member' ) ?>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
@@ -1,27 +1,34 @@
|
||||
<?php if ( empty( UM()->builder()->form_id ) ) {
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
|
||||
if ( empty( UM()->builder()->form_id ) ) {
|
||||
UM()->builder()->form_id = $this->form_id;
|
||||
} ?>
|
||||
|
||||
<div class="um-admin-builder" data-form_id="<?php echo UM()->builder()->form_id; ?>">
|
||||
<div class="um-admin-builder" data-form_id="<?php echo esc_attr( UM()->builder()->form_id ); ?>">
|
||||
|
||||
<div class="um-admin-drag-ctrls-demo um-admin-drag-ctrls">
|
||||
|
||||
<a href="#" class="active" data-modal="UM_preview_form" data-modal-size="smaller" data-dynamic-content="um_admin_preview_form" data-arg1="<?php the_ID(); ?>" data-arg2=""><?php _e('Live Preview','ultimate-member'); ?></a>
|
||||
|
||||
|
||||
<a href="javascript:void(0);" class="active" data-modal="UM_preview_form" data-modal-size="smaller" data-dynamic-content="um_admin_preview_form"
|
||||
data-arg1="<?php esc_attr( the_ID() ); ?>" data-arg2=""><?php _e('Live Preview','ultimate-member'); ?></a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="um-admin-clear"></div>
|
||||
|
||||
|
||||
<div class="um-admin-drag">
|
||||
|
||||
<div class="um-admin-drag-ajax" data-form_id="<?php echo UM()->builder()->form_id; ?>">
|
||||
|
||||
|
||||
<div class="um-admin-drag-ajax" data-form_id="<?php echo esc_attr( UM()->builder()->form_id ); ?>">
|
||||
|
||||
<?php UM()->builder()->show_builder(); ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-admin-drag-addrow um-admin-tipsy-n" title="<?php _e('Add Master Row','ultimate-member'); ?>" data-row_action="add_row"><i class="um-icon-plus"></i></div>
|
||||
|
||||
|
||||
<div class="um-admin-drag-addrow um-admin-tipsy-n" title="<?php esc_attr_e( 'Add Master Row', 'ultimate-member' ); ?>"
|
||||
data-row_action="add_row">
|
||||
<i class="um-icon-plus"></i>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php UM()->admin_forms( array(
|
||||
'class' => 'um-form-login-customize um-top-label',
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php UM()->admin_forms( array(
|
||||
'class' => 'um-form-login-settings um-top-label',
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
<?php $is_core = get_post_meta( get_the_ID(), '_um_core', true ); ?>
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
|
||||
$is_core = get_post_meta( get_the_ID(), '_um_core', true ); ?>
|
||||
|
||||
<div class="um-admin-boxed-links um-admin-ajaxlink <?php if ( $is_core ) echo 'is-core-form'; ?>">
|
||||
|
||||
<?php if ( $is_core ) { ?>
|
||||
<p><?php _e( '<strong>Note:</strong> Form type cannot be changed for the default forms.', 'ultimate-member' ); ?></p>
|
||||
<?php } ?>
|
||||
|
||||
<a href="#" data-role="register"><?php _e('Registration Form','ultimate-member'); ?></a>
|
||||
|
||||
<a href="#" data-role="profile"><?php _e('Profile Form','ultimate-member'); ?></a>
|
||||
|
||||
<a href="#" data-role="login"><?php _e('Login Form','ultimate-member'); ?></a>
|
||||
|
||||
<input type="hidden" name="form[_um_mode]" id="form__um_mode" value="<?php echo UM()->query()->get_meta_value( '_um_mode', null, 'register' ); ?>" />
|
||||
|
||||
</div><div class="um-admin-clear"></div>
|
||||
<a href="javascript:void(0);" data-role="register"><?php _e( 'Registration Form', 'ultimate-member' ); ?></a>
|
||||
|
||||
<a href="javascript:void(0);" data-role="profile"><?php _e('Profile Form', 'ultimate-member' ); ?></a>
|
||||
|
||||
<a href="javascript:void(0);" data-role="login"><?php _e( 'Login Form', 'ultimate-member' ); ?></a>
|
||||
|
||||
<input type="hidden" name="form[_um_mode]" id="form__um_mode" value="<?php echo esc_attr( UM()->query()->get_meta_value( '_um_mode', null, 'register' ) ); ?>" />
|
||||
|
||||
</div>
|
||||
<div class="um-admin-clear"></div>
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php $profile_role_array = array();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php $user_fields = array();
|
||||
foreach ( UM()->builtin()->all_user_fields() as $key => $arr ) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php foreach ( UM()->roles()->get_roles( __( 'Default', 'ultimate-member' ) ) as $key => $value ) {
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php /*UM()->admin_forms( array(
|
||||
'class' => 'um-form-shortcode um-top-label',
|
||||
|
||||
@@ -1,20 +1,23 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_edit_field" style="display:none">
|
||||
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Edit Field','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Edit Field', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox"></div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Update','ultimate-member'); ?>" class="button-primary" />
|
||||
<input type="submit" value="<?php esc_attr_e( 'Update', 'ultimate-member' ); ?>" class="button-primary" />
|
||||
<input type="hidden" name="action" value="um_update_field" />
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'um-admin-nonce' ) ?>" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
<input type="hidden" name="nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-admin-nonce' ) ) ?>" />
|
||||
<a href="javascript:void(0);" data-action="UM_remove_modal" class="button"><?php _e( 'Cancel', 'ultimate-member' ); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,20 +1,23 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_edit_row" style="display:none">
|
||||
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Edit Row Settings','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Edit Row Settings', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox"></div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Update','ultimate-member'); ?>" class="button-primary" />
|
||||
<input type="submit" value="<?php esc_attr_e( 'Update', 'ultimate-member' ); ?>" class="button-primary" />
|
||||
<input type="hidden" name="action" value="um_update_field" />
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'um-admin-nonce' ) ?>" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
<input type="hidden" name="nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-admin-nonce' ) ) ?>" />
|
||||
<a href="javascript:void(0);" data-action="UM_remove_modal" class="button"><?php _e( 'Cancel', 'ultimate-member' ); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,13 +1,16 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_preview_form" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Live Form Preview','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Live Form Preview', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="um-admin-modal-body"></div>
|
||||
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<a href="#" class="button-primary" data-action="UM_remove_modal"><?php _e('Continue editing','ultimate-member'); ?></a>
|
||||
<a href="javascript:void(0);" class="button-primary" data-action="UM_remove_modal"><?php _e( 'Continue editing', 'ultimate-member' ); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,20 +1,23 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_add_divider" style="display:none">
|
||||
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Add a New Divider','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Add a New Divider', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox"></div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
|
||||
<input type="submit" value="<?php esc_attr_e( 'Add', 'ultimate-member' ); ?>" class="button-primary" />
|
||||
<input type="hidden" name="action" value="um_update_field" />
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'um-admin-nonce' ) ?>" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
<input type="hidden" name="nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-admin-nonce' ) ) ?>" />
|
||||
<a href="javascript:void(0);" data-action="UM_remove_modal" class="button"><?php _e( 'Cancel', 'ultimate-member' ); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,20 +1,23 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_add_field" style="display:none">
|
||||
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Add a New Field','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Add a New Field', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox"></div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
|
||||
<input type="submit" value="<?php esc_attr_e( 'Add', 'ultimate-member' ); ?>" class="button-primary" />
|
||||
<input type="hidden" name="action" value="um_update_field" />
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'um-admin-nonce' ) ?>" />
|
||||
<a href="#" data-modal="UM_fields" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
<input type="hidden" name="nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-admin-nonce' ) ) ?>" />
|
||||
<a href="javascript:void(0);" data-modal="UM_fields" class="button"><?php _e( 'Cancel', 'ultimate-member' ); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,20 +1,23 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_add_group" style="display:none">
|
||||
|
||||
<form action="" method="post" class="um_add_field">
|
||||
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Add a New Field Group','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Add a New Field Group', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body um-admin-metabox"></div>
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<input type="submit" value="<?php _e('Add','ultimate-member'); ?>" class="button-primary" />
|
||||
<input type="submit" value="<?php esc_attr_e( 'Add', 'ultimate-member' ); ?>" class="button-primary" />
|
||||
<input type="hidden" name="action" value="um_update_field" />
|
||||
<input type="hidden" name="nonce" value="<?php echo wp_create_nonce( 'um-admin-nonce' ) ?>" />
|
||||
<a href="#" data-action="UM_remove_modal" class="button"><?php _e('Cancel','ultimate-member'); ?></a>
|
||||
<input type="hidden" name="nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-admin-nonce' ) ) ?>" />
|
||||
<a href="javascript:void(0);" data-action="UM_remove_modal" class="button"><?php _e( 'Cancel', 'ultimate-member' ); ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,11 +1,14 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_preview_registration" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Review Registration Details','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Review Registration Details', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="um-admin-modal-body"></div>
|
||||
|
||||
|
||||
<div class="um-admin-modal-foot"></div>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,9 +1,12 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_fields" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
<h3><?php _e('Fields Manager','ultimate-member'); ?></h3>
|
||||
<h3><?php _e( 'Fields Manager', 'ultimate-member' ); ?></h3>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="um-admin-modal-body"></div>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div id="UM_fonticons" style="display:none">
|
||||
|
||||
<div class="um-admin-modal-head">
|
||||
@@ -5,10 +8,10 @@
|
||||
</div>
|
||||
|
||||
<div class="um-admin-modal-body"></div>
|
||||
|
||||
|
||||
<div class="um-admin-modal-foot">
|
||||
<a href="#" class="button-primary um-admin-modal-back" data-code=""><?php _e( 'Finish', 'ultimate-member' ) ?></a>
|
||||
<a href="#" class="button um-admin-modal-back um-admin-modal-cancel"><?php _e( 'Cancel', 'ultimate-member' ) ?></a>
|
||||
<a href="javascript:void(0);" class="button-primary um-admin-modal-back" data-code=""><?php _e( 'Finish', 'ultimate-member' ) ?></a>
|
||||
<a href="javascript:void(0);" class="button um-admin-modal-back um-admin-modal-cancel"><?php _e( 'Cancel', 'ultimate-member' ) ?></a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php $role = $object['data'];
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php $role = $object['data'];
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php $role = $object['data'];
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php $role = $object['data'];
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php $role = $object['data'];
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php $role = $object['data'];
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php $role = $object['data'];
|
||||
|
||||
|
||||
@@ -1,27 +1,27 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
$role = $object['data']; ?>
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php UM()->admin_forms( array(
|
||||
'class' => 'um-role-publish um-top-label',
|
||||
'prefix_id' => 'role',
|
||||
'fields' => array(
|
||||
'class' => 'um-role-publish um-top-label',
|
||||
'prefix_id' => 'role',
|
||||
'fields' => array(
|
||||
array(
|
||||
'id' => '_um_priority',
|
||||
'type' => 'text',
|
||||
'label' => __( 'Role Priority', 'ultimate-member' ),
|
||||
'tooltip' => __( 'The higher the number, the higher the priority', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_priority'] ) ? $role['_um_priority'] : '',
|
||||
'id' => '_um_priority',
|
||||
'type' => 'text',
|
||||
'label' => __( 'Role Priority', 'ultimate-member' ),
|
||||
'tooltip' => __( 'The higher the number, the higher the priority', 'ultimate-member' ),
|
||||
'value' => ! empty( $role['_um_priority'] ) ? $role['_um_priority'] : '',
|
||||
),
|
||||
)
|
||||
) )->render_form(); ?>
|
||||
</div>
|
||||
|
||||
<div class="submitbox" id="submitpost">
|
||||
<div id="major-publishing-actions">
|
||||
<input type="submit" value="<?php echo ! empty( $_GET['id'] ) ? __( 'Update Role', 'ultimate-member' ) : __( 'Create Role', 'ultimate-member' ) ?>" class="button-primary" id="create_role" name="create_role">
|
||||
<input type="button" class="cancel_popup button" value="<?php _e( 'Cancel', 'ultimate-member' ) ?>" onclick="window.location = '<?php echo add_query_arg( array( 'page' => 'um_roles' ), admin_url( 'admin.php' ) ) ?>';" />
|
||||
<input type="submit" value="<?php echo ! empty( $_GET['id'] ) ? esc_attr__( 'Update Role', 'ultimate-member' ) : esc_attr__( 'Create Role', 'ultimate-member' ) ?>" class="button-primary" id="create_role" name="create_role">
|
||||
<input type="button" class="cancel_popup button" value="<?php esc_attr_e( 'Cancel', 'ultimate-member' ) ?>" onclick="window.location = '<?php echo add_query_arg( array( 'page' => 'um_roles' ), admin_url( 'admin.php' ) ) ?>';" />
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
<?php $role = $object['data'];
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<?php
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Exit if accessed directly
|
||||
}
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
wp_enqueue_script( 'postbox' );
|
||||
wp_enqueue_media();
|
||||
@@ -52,8 +49,9 @@ global $wp_roles;
|
||||
if ( ! empty( $_GET['id'] ) ) {
|
||||
$data = get_option( "um_role_{$_GET['id']}_meta" );
|
||||
|
||||
if ( empty( $data['_um_is_custom'] ) )
|
||||
if ( empty( $data['_um_is_custom'] ) ) {
|
||||
$data['name'] = $wp_roles->roles[ $_GET['id'] ]['name'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -144,7 +142,7 @@ $screen_id = $current_screen->id; ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery( document ).ready( function() {
|
||||
postboxes.add_postbox_toggles( '<?php echo $screen_id; ?>' );
|
||||
postboxes.add_postbox_toggles( '<?php echo esc_js( $screen_id ); ?>' );
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -152,7 +150,7 @@ $screen_id = $current_screen->id; ?>
|
||||
<h2>
|
||||
<?php echo ( 'add' == $_GET['tab'] ) ? __( 'Add New Role', 'ultimate-member' ) : __( 'Edit Role', 'ultimate-member' ) ?>
|
||||
<?php if ( 'edit' == $_GET['tab'] ) { ?>
|
||||
<a class="add-new-h2" href="<?php echo add_query_arg( array( 'page' => 'um_roles', 'tab' => 'add' ), admin_url( 'admin.php' ) ) ?>"><?php _e( 'Add New', 'ultimate-member' ) ?></a>
|
||||
<a class="add-new-h2" href="<?php echo esc_url( add_query_arg( array( 'page' => 'um_roles', 'tab' => 'add' ), admin_url( 'admin.php' ) ) ) ?>"><?php _e( 'Add New', 'ultimate-member' ) ?></a>
|
||||
<?php } ?>
|
||||
</h2>
|
||||
|
||||
@@ -177,10 +175,10 @@ $screen_id = $current_screen->id; ?>
|
||||
<input type="hidden" name="role[id]" value="<?php echo isset( $_GET['id'] ) ? esc_attr( $_GET['id'] ) : '' ?>" />
|
||||
<?php if ( 'add' == $_GET['tab'] ) { ?>
|
||||
<input type="hidden" name="role[_um_is_custom]" value="1" />
|
||||
<input type="hidden" name="um_nonce" value="<?php echo wp_create_nonce( 'um-add-role' ) ?>" />
|
||||
<input type="hidden" name="um_nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-add-role' ) ) ?>" />
|
||||
<?php } else { ?>
|
||||
<input type="hidden" name="role[_um_is_custom]" value="<?php echo ! empty( $data['_um_is_custom'] ) ? 1 : 0 ?>" />
|
||||
<input type="hidden" name="um_nonce" value="<?php echo wp_create_nonce( 'um-edit-role' ) ?>" />
|
||||
<input type="hidden" name="um_nonce" value="<?php echo esc_attr( wp_create_nonce( 'um-edit-role' ) ) ?>" />
|
||||
<?php } ?>
|
||||
<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
|
||||
<div id="poststuff">
|
||||
@@ -190,7 +188,7 @@ $screen_id = $current_screen->id; ?>
|
||||
<div id="titlewrap">
|
||||
<?php if ( 'add' == $_GET['tab'] ) { ?>
|
||||
<label for="title" class="screen-reader-text"><?php _e( 'Title', 'ultimate-member' ) ?></label>
|
||||
<input type="text" name="role[name]" placeholder="<?php _e( 'Enter Title Here', 'ultimate-member' ) ?>" id="title" value="<?php echo isset( $data['name'] ) ? $data['name'] : '' ?>" />
|
||||
<input type="text" name="role[name]" placeholder="<?php esc_attr_e( 'Enter Title Here', 'ultimate-member' ) ?>" id="title" value="<?php echo isset( $data['name'] ) ? $data['name'] : '' ?>" />
|
||||
<?php } else { ?>
|
||||
<span style="float: left;width:100%;"><?php echo isset( $data['name'] ) ? $data['name'] : '' ?></span>
|
||||
<?php } ?>
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
Reference in New Issue
Block a user