- added PHPDocs;

- small fixes and code optimization;
This commit is contained in:
nikitozzzzzzz
2018-03-19 16:31:49 +02:00
parent 70e33dcacf
commit 68a18b02e9
55 changed files with 8603 additions and 8097 deletions
+2 -5
View File
@@ -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',
+1 -1
View File
@@ -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>