mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- added PHPDocs;
- small fixes and code optimization;
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<?php
|
||||
|
||||
if ( empty( UM()->builder()->form_id ) ) {
|
||||
<?php 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; ?>">
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php UM()->admin_forms( array(
|
||||
'class' => 'um-form-login-settings um-top-label',
|
||||
'prefix_id' => 'form',
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<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>
|
||||
<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>
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<?php
|
||||
foreach ( UM()->roles()->get_roles( __( 'Default', 'ultimate-member' ) ) as $key => $value ) {
|
||||
<?php foreach ( UM()->roles()->get_roles( __( 'Default', 'ultimate-member' ) ) as $key => $value ) {
|
||||
$_um_register_role = UM()->query()->get_meta_value( '_um_register_role', $key );
|
||||
if ( ! empty( $_um_register_role ) )
|
||||
$register_role = $_um_register_role;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
<div class="um-admin-metabox">
|
||||
|
||||
<p><?php echo UM()->shortcodes()->get_shortcode( get_the_ID() ); ?></p>
|
||||
|
||||
</div>
|
||||
Reference in New Issue
Block a user