mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- escape functions in templates;
This commit is contained in:
+45
-15
@@ -1,3 +1,5 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-form">
|
||||
@@ -33,9 +35,13 @@
|
||||
</div>
|
||||
|
||||
<div class="um-account-name">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>"><?php esc_html_e( um_user( 'display_name' ) ); ?></a>
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>">
|
||||
<?php echo esc_html( um_user( 'display_name' ) ); ?>
|
||||
</a>
|
||||
<div class="um-account-profile-link">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>" class="um-link"><?php _e( 'View profile', 'ultimate-member' ); ?></a>
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>" class="um-link">
|
||||
<?php _e( 'View profile', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -45,21 +51,39 @@
|
||||
|
||||
<div class="um-account-meta radius-<?php echo esc_attr( UM()->options()->get('profile_photocorner') ); ?>">
|
||||
|
||||
<div class="um-account-meta-img uimob800-hide"><a href="<?php echo esc_url( um_user_profile_url() ); ?>"><?php echo get_avatar( um_user('ID'), 120 ); ?></a></div>
|
||||
<div class="um-account-meta-img uimob800-hide">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>">
|
||||
<?php echo get_avatar( um_user('ID'), 120 ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php if ( UM()->mobile()->isMobile() ) { ?>
|
||||
|
||||
<div class="um-account-meta-img-b uimob800-show" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>"><a href="<?php echo esc_url( um_user_profile_url() ); ?>"><?php echo get_avatar( um_user('ID'), 120 ); ?></a></div>
|
||||
<div class="um-account-meta-img-b uimob800-show" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>">
|
||||
<?php echo get_avatar( um_user('ID'), 120 ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="um-account-meta-img-b uimob800-show um-tip-w" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>"><a href="<?php echo um_user_profile_url(); ?>"><?php echo get_avatar( um_user('ID'), 120 ); ?></a></div>
|
||||
<div class="um-account-meta-img-b uimob800-show um-tip-w" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>">
|
||||
<?php echo get_avatar( um_user('ID'), 120 ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-account-name uimob800-hide">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>"><?php esc_html_e( um_user( 'display_name', 'html' ) ); ?></a>
|
||||
<div class="um-account-profile-link"><a href="<?php echo esc_url( um_user_profile_url() ); ?>" class="um-link"><?php _e( 'View profile', 'ultimate-member' ); ?></a></div>
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>">
|
||||
<?php echo esc_html( um_user( 'display_name', 'html' ) ); ?>
|
||||
</a>
|
||||
<div class="um-account-profile-link">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>" class="um-link">
|
||||
<?php _e( 'View profile', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -69,15 +93,21 @@
|
||||
if ( isset( $info['custom'] ) || UM()->options()->get( "account_tab_{$id}" ) == 1 || $id == 'general' ) { ?>
|
||||
|
||||
<li>
|
||||
<a data-tab="<?php echo esc_attr( $id )?>" href="<?php echo esc_url( UM()->account()->tab_link( $id ) ); ?>" class="um-account-link <?php if ( $id == UM()->account()->current_tab ) echo 'current'; ?>">
|
||||
<a data-tab="<?php echo esc_attr( $id )?>" href="<?php echo esc_url( UM()->account()->tab_link( $id ) ); ?>" class="um-account-link <?php if ( $id == UM()->account()->current_tab ) echo 'current'; ?>">
|
||||
<?php if ( UM()->mobile()->isMobile() ) { ?>
|
||||
<span class="um-account-icontip uimob800-show" title="<?php echo esc_attr( $info['title'] ); ?>"><i class="<?php echo esc_attr( $info['icon'] ); ?>"></i></span>
|
||||
<span class="um-account-icontip uimob800-show" title="<?php echo esc_attr( $info['title'] ); ?>">
|
||||
<i class="<?php echo esc_attr( $info['icon'] ); ?>"></i>
|
||||
</span>
|
||||
<?php } else { ?>
|
||||
<span class="um-account-icontip uimob800-show um-tip-w" title="<?php echo esc_attr( $info['title'] ); ?>"><i class="<?php echo esc_attr( $info['icon'] ); ?>"></i></span>
|
||||
<span class="um-account-icontip uimob800-show um-tip-w" title="<?php echo esc_attr( $info['title'] ); ?>">
|
||||
<i class="<?php echo esc_attr( $info['icon'] ); ?>"></i>
|
||||
</span>
|
||||
<?php } ?>
|
||||
|
||||
<span class="um-account-icon uimob800-hide"><i class="<?php echo esc_attr( $info['icon'] ); ?>"></i></span>
|
||||
<span class="um-account-title uimob800-hide"><?php esc_html_e( $info['title'] ); ?></span>
|
||||
<span class="um-account-icon uimob800-hide">
|
||||
<i class="<?php echo esc_attr( $info['icon'] ); ?>"></i>
|
||||
</span>
|
||||
<span class="um-account-title uimob800-hide"><?php echo esc_html( $info['title'] ); ?></span>
|
||||
<span class="um-account-arrow uimob800-hide">
|
||||
<i class="<?php if ( is_rtl() ) { ?>um-faicon-angle-left<?php } else { ?>um-faicon-angle-right<?php } ?>"></i>
|
||||
</span>
|
||||
@@ -112,7 +142,7 @@
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_before_form', $args );
|
||||
|
||||
|
||||
foreach ( UM()->account()->tabs as $id => $info ) {
|
||||
|
||||
$current_tab = UM()->account()->current_tab;
|
||||
@@ -121,7 +151,7 @@
|
||||
|
||||
<div class="um-account-nav uimob340-show uimob500-show">
|
||||
<a href="#" data-tab="<?php echo esc_attr( $id ); ?>" class="<?php if ( $id == $current_tab ) echo 'current'; ?>">
|
||||
<?php esc_html_e( $info['title'] ); ?>
|
||||
<?php echo esc_html( $info['title'] ); ?>
|
||||
<span class="ico"><i class="<?php echo esc_attr( $info['icon'] ); ?>"></i></span>
|
||||
<span class="arr"><i class="um-faicon-angle-down"></i></span>
|
||||
</a>
|
||||
@@ -158,7 +188,7 @@
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_after_account_page_load' ); ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
+21
-15
@@ -1,9 +1,9 @@
|
||||
<?php ?>
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<!-- This file should primarily consist of HTML with a little bit of PHP. -->
|
||||
<div class="um-field um-field-type_terms_conditions" data-key="use_terms_conditions_agreement" style="display:block;padding:0;">
|
||||
<div class="um-field-area">
|
||||
<div class='um-gdpr-content' style="display:none;">
|
||||
<div class="um-gdpr-content" style="display:none;">
|
||||
<?php if ( ! empty( $args['use_gdpr_content_id'] ) ) {
|
||||
$um_content_query = get_post( $args['use_gdpr_content_id'] );
|
||||
if ( isset( $um_content_query ) ) {
|
||||
@@ -11,22 +11,25 @@
|
||||
}
|
||||
} ?>
|
||||
</div>
|
||||
<a href="javascript:;" class="um-toggle-gdpr" data-toggle-state="hidden"
|
||||
data-toggle-show="<?php echo esc_attr( ! empty( $args['use_gdpr_toggle_show'] ) ? $args['use_gdpr_toggle_show'] : __( 'Show privacy policy', 'ultimate-member' ) ); ?>"
|
||||
data-toggle-hide="<?php echo esc_attr( ! empty( $args['use_gdpr_toggle_hide'] ) ? $args['use_gdpr_toggle_hide'] : __( 'Hide privacy policy', 'ultimate-member' ) ); ?>">
|
||||
<?php esc_html_e( ! empty( $args['use_gdpr_toggle_show'] ) ? $args['use_gdpr_toggle_show'] : __( 'Show privacy policy', 'ultimate-member' ) ); ?>
|
||||
|
||||
<?php $toggle_show = ! empty( $args['use_gdpr_toggle_show'] ) ? $args['use_gdpr_toggle_show'] : __( 'Show privacy policy', 'ultimate-member' );
|
||||
$toggle_hide = ! empty( $args['use_gdpr_toggle_hide'] ) ? $args['use_gdpr_toggle_hide'] : __( 'Hide privacy policy', 'ultimate-member' );
|
||||
$toggle_title = ! empty( $args['use_gdpr_toggle_show'] ) ? $args['use_gdpr_toggle_show'] : __( 'Show privacy policy', 'ultimate-member' ); ?>
|
||||
|
||||
<a href="javascript:void(0);" class="um-toggle-gdpr" data-toggle-state="hidden"
|
||||
data-toggle-show="<?php echo esc_attr( $toggle_show ); ?>"
|
||||
data-toggle-hide="<?php echo esc_attr( $toggle_hide ); ?>">
|
||||
<?php echo esc_html( $toggle_title ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="um-field-area">
|
||||
|
||||
<?php $confirm = ! empty( $args['use_gdpr_agreement'] ) ? $args['use_gdpr_agreement'] : __( 'Please confirm that you agree to our privacy policy', 'ultimate-member' ); ?>
|
||||
|
||||
<label class="um-field-checkbox">
|
||||
<input type="checkbox" name="use_gdpr_agreement" value="1">
|
||||
<span class="um-field-checkbox-state">
|
||||
<i class="um-icon-android-checkbox-outline-blank"></i>
|
||||
</span>
|
||||
<span class="um-field-checkbox-option">
|
||||
<?php esc_html_e( ! empty( $args['use_gdpr_agreement'] ) ? $args['use_gdpr_agreement'] : __( 'Please confirm that you agree to our privacy policy', 'ultimate-member' ) ); ?>
|
||||
</span>
|
||||
<span class="um-field-checkbox-state"><i class="um-icon-android-checkbox-outline-blank"></i></span>
|
||||
<span class="um-field-checkbox-option"><?php echo esc_html( $confirm ); ?></span>
|
||||
</label>
|
||||
<div class="um-clear"></div>
|
||||
|
||||
@@ -34,10 +37,13 @@
|
||||
|
||||
if ( isset( $errors['use_gdpr_agreement'] ) ) {
|
||||
|
||||
$error_message = ! empty( $args['use_gdpr_error_text'] ) ? $args['use_gdpr_error_text'] : __( 'Please confirm your acceptance of our privacy policy', 'ultimate-member' );
|
||||
$error_message = ! empty( $args['use_gdpr_error_text'] ) ? $args['use_gdpr_error_text'] : __( 'Please confirm your acceptance of our privacy policy', 'ultimate-member' ); ?>
|
||||
|
||||
echo '<p class="um-notice err"><i class="um-icon-ios-close-empty" onclick="jQuery(this).parent().fadeOut();"></i>' . $error_message . '</p><br/>';
|
||||
} ?>
|
||||
<p class="um-notice err">
|
||||
<i class="um-icon-ios-close-empty" onclick="jQuery(this).parent().fadeOut();"></i><?php echo esc_html( $error_message ) ?>
|
||||
</p>
|
||||
<br/>
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-clear"></div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um-locked-content">
|
||||
|
||||
<div class="um-locked-content-msg"><?php echo $lock_text; ?></div>
|
||||
<div class="um-locked-content-msg"><?php echo esc_html( $lock_text ); ?></div>
|
||||
|
||||
</div>
|
||||
+126
-124
@@ -1,136 +1,138 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-form">
|
||||
|
||||
|
||||
<form method="post" action="" autocomplete="off">
|
||||
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_form
|
||||
* @description Some actions before login form
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_form', 'my_before_form', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_form", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_{$mode}_fields
|
||||
* @description Some actions before login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_{$mode}_fields", $args );
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_form
|
||||
* @description Some actions before login form
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_form', 'my_before_form', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_form", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_main_{$mode}_fields
|
||||
* @description Some actions before login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_main_{$mode}_fields", $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_{$mode}_fields
|
||||
* @description Some actions before login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_{$mode}_fields", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form_fields
|
||||
* @description Some actions after login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_after_form_fields', $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_main_{$mode}_fields
|
||||
* @description Some actions before login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_main_{$mode}_fields", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_{$mode}_fields
|
||||
* @description Some actions after login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_{$mode}_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_{$mode}_fields", $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form_fields
|
||||
* @description Some actions after login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_after_form_fields', $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_{$mode}_fields
|
||||
* @description Some actions after login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_{$mode}_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_{$mode}_fields", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form
|
||||
* @description Some actions after login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form', 'my_after_form', 10, 1 );
|
||||
* function my_after_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_form", $args ); ?>
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form
|
||||
* @description Some actions after login form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Login form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form', 'my_after_form', 10, 1 );
|
||||
* function my_after_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_form", $args ); ?>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -1,14 +1,18 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode, $args ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-form">
|
||||
|
||||
|
||||
<div class="um-misc-with-img">
|
||||
|
||||
|
||||
<div class="um-misc-img">
|
||||
<a href="<?php echo esc_url( um_get_core_page( 'user' ) ); ?>"><?php echo um_user( 'profile_photo', 80 ); ?></a>
|
||||
<a href="<?php echo esc_url( um_get_core_page( 'user' ) ); ?>">
|
||||
<?php echo um_user( 'profile_photo', 80 ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div><strong><?php esc_html_e( um_user( 'display_name' ) ); ?></strong></div>
|
||||
<div><strong><?php echo esc_html( um_user( 'display_name' ) ); ?></strong></div>
|
||||
|
||||
<?php
|
||||
/**
|
||||
|
||||
+171
-155
@@ -1,163 +1,179 @@
|
||||
<div class="um-members">
|
||||
|
||||
<div class="um-gutter-sizer"></div>
|
||||
|
||||
<?php $i = 0; foreach( um_members('users_per_page') as $member) { $i++; um_fetch_user( $member ); ?>
|
||||
|
||||
<div class="um-member um-role-<?php echo esc_attr( um_user( 'role' ) ); ?> <?php esc_html_e( um_user('account_status') ); ?> <?php if ($cover_photos) { echo 'with-cover'; } ?>">
|
||||
|
||||
<span class="um-member-status <?php echo esc_attr( um_user('account_status') ); ?>"><?php esc_html_e( um_user('account_status_name') ); ?></span>
|
||||
|
||||
<?php
|
||||
if ($cover_photos) {
|
||||
$sizes = UM()->options()->get('cover_thumb_sizes');
|
||||
if ( UM()->mobile()->isTablet() ) {
|
||||
$cover_size = $sizes[1];
|
||||
} else {
|
||||
$cover_size = $sizes[0];
|
||||
}
|
||||
?>
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um-members">
|
||||
|
||||
<div class="um-gutter-sizer"></div>
|
||||
|
||||
<?php $i = 0;
|
||||
foreach ( um_members( 'users_per_page' ) as $member ) {
|
||||
$i++;
|
||||
um_fetch_user( $member ); ?>
|
||||
|
||||
<div class="um-member um-role-<?php echo esc_attr( um_user( 'role' ) ) . ' ' . esc_attr( um_user('account_status') ); ?> <?php if ( $cover_photos ) { echo 'with-cover'; } ?>">
|
||||
|
||||
<span class="um-member-status <?php echo esc_attr( um_user('account_status') ); ?>"><?php echo esc_html( um_user('account_status_name') ); ?></span>
|
||||
|
||||
<?php if ( $cover_photos ) {
|
||||
$sizes = UM()->options()->get( 'cover_thumb_sizes' );
|
||||
if ( UM()->mobile()->isTablet() ) {
|
||||
$cover_size = $sizes[1];
|
||||
} else {
|
||||
$cover_size = $sizes[0];
|
||||
} ?>
|
||||
|
||||
<div class="um-member-cover" data-ratio="<?php echo esc_attr( UM()->options()->get( 'profile_cover_ratio' ) ); ?>">
|
||||
<div class="um-member-cover-e">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>" title="<?php echo esc_attr( um_user('display_name') ); ?>">
|
||||
<?php echo um_user( 'cover_photo', $cover_size ); ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
|
||||
if ( $profile_photo ) {
|
||||
$corner = UM()->options()->get( 'profile_photocorner' );
|
||||
$default_size = str_replace( 'px', '', $corner ); ?>
|
||||
|
||||
<div class="um-member-photo radius-<?php echo esc_attr( $corner ); ?>">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>" title="<?php echo esc_attr( um_user('display_name') ); ?>">
|
||||
<?php echo get_avatar( um_user( 'ID' ), $default_size ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-member-card <?php if ( ! $profile_photo ) { echo 'no-photo'; } ?>">
|
||||
|
||||
<?php if ( $show_name ) { ?>
|
||||
<div class="um-member-name">
|
||||
<a href="<?php echo esc_url( um_user_profile_url() ); ?>" title="<?php echo esc_attr( um_user( 'display_name' ) ); ?>">
|
||||
<?php echo esc_html( um_user('display_name', 'html') ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_members_just_after_name
|
||||
* @description Show content just after user name
|
||||
* @input_vars
|
||||
* [{"var":"$user_id","type":"int","desc":"User ID"},
|
||||
* {"var":"$args","type":"array","desc":"Member directory shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_members_just_after_name', 'function_name', 10, 2 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_members_just_after_name', 'my_members_just_after_name', 10, 2 );
|
||||
* function my_members_just_after_name( $user_id, $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_members_just_after_name', um_user('ID'), $args );
|
||||
|
||||
if ( UM()->roles()->um_current_user_can( 'edit', um_user('ID') ) ) { ?>
|
||||
<div class="um-members-edit-btn">
|
||||
<a href="<?php echo esc_url( um_edit_profile_url() ); ?>" class="um-edit-profile-btn um-button um-alt">
|
||||
<?php _e( 'Edit profile','ultimate-member' ) ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_members_after_user_name
|
||||
* @description Show content just after user name
|
||||
* @input_vars
|
||||
* [{"var":"$user_id","type":"int","desc":"User ID"},
|
||||
* {"var":"$args","type":"array","desc":"Member directory shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_members_after_user_name', 'function_name', 10, 2 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_members_after_user_name', 'my_members_after_user_name', 10, 2 );
|
||||
* function my_members_after_user_name( $user_id, $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_members_after_user_name', um_user('ID'), $args );
|
||||
|
||||
if ( $show_tagline && ! empty( $tagline_fields ) && is_array( $tagline_fields ) ) {
|
||||
|
||||
um_fetch_user( $member );
|
||||
|
||||
foreach( $tagline_fields as $key ) {
|
||||
if ( $key ) {
|
||||
$value = um_filtered_value( $key );
|
||||
if ( ! $value ) {
|
||||
continue;
|
||||
} ?>
|
||||
|
||||
<div class="um-member-tagline um-member-tagline-<?php echo esc_attr( $key ); ?>">
|
||||
<?php _e( $value, 'ultimate-member'); ?>
|
||||
</div>
|
||||
|
||||
<?php } // end if
|
||||
} // end foreach
|
||||
} // end if $show_tagline
|
||||
|
||||
if ( ! empty( $show_userinfo ) ) { ?>
|
||||
|
||||
<div class="um-member-meta-main">
|
||||
|
||||
<?php if ( $userinfo_animate ) { ?>
|
||||
<div class="um-member-more"><a href="#"><i class="um-faicon-angle-down"></i></a></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-member-meta <?php if ( ! $userinfo_animate ) { echo 'no-animate'; } ?>">
|
||||
|
||||
<?php um_fetch_user( $member );
|
||||
if ( ! empty( $reveal_fields ) && is_array( $reveal_fields ) ) {
|
||||
foreach ( $reveal_fields as $key ) {
|
||||
if ( $key ) {
|
||||
$value = um_filtered_value( $key );
|
||||
if ( ! $value ) {
|
||||
continue;
|
||||
} ?>
|
||||
|
||||
<div class="um-member-metaline um-member-metaline-<?php echo esc_attr( $key ); ?>">
|
||||
<span><strong><?php echo esc_html( UM()->fields()->get_label( $key ) ); ?>:</strong> <?php _e( $value, 'ultimate-member' ); ?></span>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
}
|
||||
}
|
||||
|
||||
if ( $show_social ) { ?>
|
||||
<div class="um-member-connect">
|
||||
<?php UM()->fields()->show_social_urls(); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-member-less"><a href="#"><i class="um-faicon-angle-up"></i></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-member-cover" data-ratio="<?php echo esc_attr( UM()->options()->get('profile_cover_ratio') ); ?>">
|
||||
<div class="um-member-cover-e"><a href="<?php echo esc_url( um_user_profile_url() ); ?>" title="<?php echo esc_attr( um_user('display_name') ); ?>"><?php echo um_user('cover_photo', $cover_size); ?></a></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($profile_photo) {
|
||||
$default_size = str_replace( 'px', '', UM()->options()->get('profile_photosize') );
|
||||
$corner = UM()->options()->get('profile_photocorner');
|
||||
?>
|
||||
<div class="um-member-photo radius-<?php echo esc_attr( $corner ); ?>"><a href="<?php echo esc_url( um_user_profile_url() ); ?>" title="<?php echo esc_attr( um_user('display_name') ); ?>"><?php echo get_avatar( um_user('ID'), $default_size ); ?></a></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-member-card <?php if (!$profile_photo) { echo 'no-photo'; } ?>">
|
||||
|
||||
<?php if ( $show_name ) { ?>
|
||||
<div class="um-member-name"><a href="<?php echo esc_url( um_user_profile_url() ); ?>" title="<?php echo esc_attr( um_user('display_name') ); ?>"><?php esc_html_e( um_user('display_name', 'html') ); ?></a></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_members_just_after_name
|
||||
* @description Show content just after user name
|
||||
* @input_vars
|
||||
* [{"var":"$user_id","type":"int","desc":"User ID"},
|
||||
* {"var":"$args","type":"array","desc":"Member directory shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_members_just_after_name', 'function_name', 10, 2 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_members_just_after_name', 'my_members_just_after_name', 10, 2 );
|
||||
* function my_members_just_after_name( $user_id, $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_members_just_after_name', um_user('ID'), $args ); ?>
|
||||
|
||||
<?php if ( UM()->roles()->um_current_user_can( 'edit', um_user('ID') ) ) { ?>
|
||||
<div class="um-members-edit-btn">
|
||||
<a href="<?php echo esc_url( esc_attr( um_edit_profile_url() ) ); ?>" class="um-edit-profile-btn um-button um-alt">
|
||||
<?php _e( 'Edit profile','ultimate-member' ) ?>
|
||||
</a>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_members_after_user_name
|
||||
* @description Show content just after user name
|
||||
* @input_vars
|
||||
* [{"var":"$user_id","type":"int","desc":"User ID"},
|
||||
* {"var":"$args","type":"array","desc":"Member directory shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_members_after_user_name', 'function_name', 10, 2 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_members_after_user_name', 'my_members_after_user_name', 10, 2 );
|
||||
* function my_members_after_user_name( $user_id, $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_members_after_user_name', um_user('ID'), $args ); ?>
|
||||
|
||||
<?php
|
||||
if ( $show_tagline && ! empty( $tagline_fields ) && is_array( $tagline_fields ) ) {
|
||||
|
||||
um_fetch_user( $member );
|
||||
|
||||
foreach( $tagline_fields as $key ) {
|
||||
if ( $key /*&& um_filtered_value( $key )*/ ) {
|
||||
$value = um_filtered_value( $key );
|
||||
if ( ! $value )
|
||||
continue;
|
||||
?>
|
||||
|
||||
<div class="um-member-tagline um-member-tagline-<?php echo esc_attr( $key );?>"><?php _e( $value, 'ultimate-member'); ?></div>
|
||||
|
||||
<?php
|
||||
} // end if
|
||||
} // end foreach
|
||||
} // end if $show_tagline
|
||||
|
||||
if ( ! empty( $show_userinfo ) ) { ?>
|
||||
|
||||
<div class="um-member-meta-main">
|
||||
|
||||
<?php if ( $userinfo_animate ) { ?>
|
||||
<div class="um-member-more"><a href="#"><i class="um-faicon-angle-down"></i></a></div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="um-member-meta <?php if ( ! $userinfo_animate ) { echo 'no-animate'; } ?>">
|
||||
|
||||
<?php um_fetch_user( $member );
|
||||
if ( ! empty( $reveal_fields ) && is_array( $reveal_fields ) ) {
|
||||
foreach ( $reveal_fields as $key ) {
|
||||
if ( $key ) {
|
||||
$value = um_filtered_value( $key );
|
||||
if ( ! $value )
|
||||
continue; ?>
|
||||
|
||||
<div class="um-member-metaline um-member-metaline-<?php echo esc_attr( $key ); ?>"><span><strong><?php esc_html_e( UM()->fields()->get_label( $key ) ); ?>:</strong> <?php _e( $value, 'ultimate-member'); ?></span></div>
|
||||
|
||||
<?php }
|
||||
}
|
||||
}
|
||||
|
||||
if ( $show_social ) { ?>
|
||||
<div class="um-member-connect">
|
||||
<?php UM()->fields()->show_social_urls(); ?>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="um-member-less"><a href="#"><i class="um-faicon-angle-up"></i></a></div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php
|
||||
um_reset_user_clean();
|
||||
<?php um_reset_user_clean();
|
||||
} // end foreach
|
||||
|
||||
um_reset_user();
|
||||
?>
|
||||
um_reset_user(); ?>
|
||||
|
||||
<div class="um-clear"></div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,3 +1,5 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-form">
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-postmessage">
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-form">
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
<div class="um-form">
|
||||
<form method="post" action="">
|
||||
|
||||
+49
-45
@@ -1,3 +1,5 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?> um-role-<?php echo esc_attr( um_user( 'role' ) ); ?> ">
|
||||
|
||||
<div class="um-form">
|
||||
@@ -141,56 +143,58 @@
|
||||
do_action( 'um_profile_menu', $args );
|
||||
|
||||
$nav = UM()->profile()->active_tab;
|
||||
$subnav = ( get_query_var('subnav') ) ? get_query_var('subnav') : 'default';
|
||||
$subnav = ( get_query_var('subnav') ) ? get_query_var('subnav') : 'default'; ?>
|
||||
|
||||
print "<div class='um-profile-body $nav $nav-$subnav'>";
|
||||
<div class="um-profile-body <?php echo esc_attr( $nav . ' ' . $nav . '-' . $subnav ); ?>">
|
||||
|
||||
// Custom hook to display tabbed content
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_profile_content_{$nav}
|
||||
* @description Custom hook to display tabbed content
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Profile form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_profile_content_{$nav}', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_profile_content_{$nav}', 'my_profile_content', 10, 1 );
|
||||
* function my_profile_content( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action("um_profile_content_{$nav}", $args);
|
||||
<?php
|
||||
// Custom hook to display tabbed content
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_profile_content_{$nav}
|
||||
* @description Custom hook to display tabbed content
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Profile form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_profile_content_{$nav}', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_profile_content_{$nav}', 'my_profile_content', 10, 1 );
|
||||
* function my_profile_content( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action("um_profile_content_{$nav}", $args);
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_profile_content_{$nav}_{$subnav}
|
||||
* @description Custom hook to display tabbed content
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Profile form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_profile_content_{$nav}_{$subnav}', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_profile_content_{$nav}_{$subnav}', 'my_profile_content', 10, 1 );
|
||||
* function my_profile_content( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_profile_content_{$nav}_{$subnav}", $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_profile_content_{$nav}_{$subnav}
|
||||
* @description Custom hook to display tabbed content
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Profile form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_profile_content_{$nav}_{$subnav}', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_profile_content_{$nav}_{$subnav}', 'my_profile_content', 10, 1 );
|
||||
* function my_profile_content( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_profile_content_{$nav}_{$subnav}", $args ); ?>
|
||||
|
||||
print "<div class=\"clear\"></div></div>";
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
||||
if ( um_is_on_edit_profile() ) { ?>
|
||||
<?php if ( um_is_on_edit_profile() ) { ?>
|
||||
</form>
|
||||
<?php }
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ foreach ( UM()->shortcodes()->loop as $comment ) {
|
||||
<div class="um-item-link">
|
||||
<i class="um-icon-chatboxes"></i>
|
||||
<a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>">
|
||||
<?php echo get_comment_excerpt( $comment->comment_ID ); ?>
|
||||
<?php echo esc_html( get_comment_excerpt( $comment->comment_ID ) ); ?>
|
||||
</a>
|
||||
</div>
|
||||
<div class="um-item-meta">
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<?php UM()->shortcodes()->loop = UM()->query()->make('post_type=comment&number=10&offset=0&user_id=' . um_user('ID') ); ?>
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
<?php if ( UM()->shortcodes()->loop ) { ?>
|
||||
|
||||
<?php UM()->shortcodes()->load_template('profile/comments-single'); ?>
|
||||
UM()->shortcodes()->loop = UM()->query()->make('post_type=comment&number=10&offset=0&user_id=' . um_user('ID') );
|
||||
|
||||
if ( UM()->shortcodes()->loop ) {
|
||||
|
||||
UM()->shortcodes()->load_template('profile/comments-single'); ?>
|
||||
|
||||
<div class="um-ajax-items">
|
||||
|
||||
@@ -10,9 +12,11 @@
|
||||
|
||||
<?php if ( count( UM()->shortcodes()->loop) >= 10 ) { ?>
|
||||
|
||||
<div class="um-load-items">
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="comment,10,10,<?php echo esc_attr( um_user('ID') ); ?>"><?php _e('load more comments','ultimate-member'); ?></a>
|
||||
</div>
|
||||
<div class="um-load-items">
|
||||
<a href="#" class="um-ajax-paginate um-button" data-hook="um_load_comments" data-args="comment,10,10,<?php echo esc_attr( um_user('ID') ); ?>">
|
||||
<?php _e( 'load more comments', 'ultimate-member' ); ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
@@ -20,6 +24,8 @@
|
||||
|
||||
<?php } else { ?>
|
||||
|
||||
<div class="um-profile-note"><span><?php echo ( um_profile_id() == get_current_user_id() ) ? __('You have not made any comments.','ultimate-member') : __('This user has not made any comments.','ultimate-member'); ?></span></div>
|
||||
<div class="um-profile-note">
|
||||
<span><?php echo ( um_profile_id() == get_current_user_id() ) ? __( 'You have not made any comments.', 'ultimate-member' ) : __( 'This user has not made any comments.', 'ultimate-member' ); ?></span>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
@@ -1,7 +1,9 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um-item">
|
||||
<div class="um-item-link">
|
||||
<i class="um-icon-ios-paper"></i>
|
||||
<a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php esc_html_e( $post->post_title ); ?></a>
|
||||
<a href="<?php echo esc_url( get_permalink( $post ) ); ?>"><?php echo esc_html( $post->post_title ); ?></a>
|
||||
</div>
|
||||
|
||||
<?php if ( has_post_thumbnail( $post->ID ) ) {
|
||||
|
||||
@@ -1,4 +1,6 @@
|
||||
<?php if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
if ( defined( 'DOING_AJAX' ) && DOING_AJAX ) {
|
||||
//Only for AJAX loading posts
|
||||
if ( ! empty( $posts ) ) {
|
||||
foreach ( $posts as $post ) {
|
||||
|
||||
+127
-125
@@ -1,138 +1,140 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<div class="um <?php echo esc_attr( $this->get_class( $mode ) ); ?> um-<?php echo esc_attr( $form_id ); ?>">
|
||||
|
||||
<div class="um-form">
|
||||
|
||||
|
||||
<form method="post" action="">
|
||||
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_form
|
||||
* @description Some actions before register form
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_form', 'my_before_form', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_form", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_{$mode}_fields
|
||||
* @description Some actions before register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_{$mode}_fields", $args );
|
||||
<?php
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_form
|
||||
* @description Some actions before register form
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_form', 'my_before_form', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_form", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_{$mode}_fields
|
||||
* @description Some actions before register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_main_{$mode}_fields", $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_{$mode}_fields
|
||||
* @description Some actions before register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_before_{$mode}_fields", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form_fields
|
||||
* @description Some actions after register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_after_form_fields', $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_before_{$mode}_fields
|
||||
* @description Some actions before register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_before_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_before_{$mode}_fields', 'my_before_fields', 10, 1 );
|
||||
* function my_before_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_main_{$mode}_fields", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_{$mode}_fields
|
||||
* @description Some actions after register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_{$mode}_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_{$mode}_fields", $args );
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form_fields
|
||||
* @description Some actions after register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( 'um_after_form_fields', $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form
|
||||
* @description Some actions after register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form', 'my_after_form', 10, 1 );
|
||||
* function my_after_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_form", $args ); ?>
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_{$mode}_fields
|
||||
* @description Some actions after register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_{$mode}_fields', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_{$mode}_fields', 'my_after_form_fields', 10, 1 );
|
||||
* function my_after_form_fields( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_{$mode}_fields", $args );
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
*
|
||||
* @type action
|
||||
* @title um_after_form
|
||||
* @description Some actions after register form fields
|
||||
* @input_vars
|
||||
* [{"var":"$args","type":"array","desc":"Register form shortcode arguments"}]
|
||||
* @change_log
|
||||
* ["Since: 2.0"]
|
||||
* @usage add_action( 'um_after_form', 'function_name', 10, 1 );
|
||||
* @example
|
||||
* <?php
|
||||
* add_action( 'um_after_form', 'my_after_form', 10, 1 );
|
||||
* function my_after_form( $args ) {
|
||||
* // your code here
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
do_action( "um_after_form", $args ); ?>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
@@ -1,4 +1,4 @@
|
||||
<?php
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
get_header(); ?>
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
|
||||
<form role="search" method="get" class="search-form um-search-form" action="<?php echo esc_url( um_get_core_page( 'members' ) ); ?>">
|
||||
<input type="hidden" name="um_search" value="1">
|
||||
<div class="um-search-area">
|
||||
<span class="screen-reader-text"><?php echo _x( 'Search for:', 'label' ); ?></span>
|
||||
<input type="search" class="um-search-field search-field" placeholder="<?php echo esc_attr_x( 'Search …', 'placeholder' ); ?>" value="<?php echo esc_attr( um_get_search_query() ); ?>" name="search" title="<?php echo esc_attr_x( 'Search for:', 'label' ); ?>" />
|
||||
<a href="javascript: void(0);" id="um-search-button" class="um-search-icon um-faicon um-faicon-search"></a>
|
||||
<a href="javascript:void(0);" id="um-search-button" class="um-search-icon um-faicon um-faicon-search"></a>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user