Add terms and conditions page link.

This commit is contained in:
Hoang Huu 2019-09-28 16:20:24 +07:00
parent 913bec1fb2
commit 3998eaaa6d
2 changed files with 10 additions and 3 deletions

View File

@ -72,11 +72,18 @@ class Opalestate_Settings_General_Tab extends Opalestate_Settings_Base_Tab {
], ],
[ [
'name' => esc_html__( 'My Account Page', 'opalestate-pro' ), 'name' => esc_html__( 'My Account Page', 'opalestate-pro' ),
'desc' => esc_html__( 'This is page use User login and register an account, or reset password.', 'opalestate-pro' ), 'desc' => esc_html__( 'This is page used for login and register an account, or reset password.', 'opalestate-pro' ),
'id' => 'user_myaccount_page', 'id' => 'user_myaccount_page',
'type' => 'select', 'type' => 'select',
'options' => $pages, 'options' => $pages,
], ],
[
'name' => esc_html__( 'Terms and Conditions Page', 'opalestate-pro' ),
'desc' => esc_html__( 'This is page used for terms and conditions.', 'opalestate-pro' ),
'id' => 'user_terms_page',
'type' => 'select',
'options' => $pages,
],
[ [
'name' => esc_html__( 'Enable Message Database', 'opalestate-pro' ), 'name' => esc_html__( 'Enable Message Database', 'opalestate-pro' ),
'desc' => esc_html__( 'Allow User send message Contact/Equire via email and saved into database to exchange theirs message direct in User Message Management', 'desc' => esc_html__( 'Allow User send message Contact/Equire via email and saved into database to exchange theirs message direct in User Message Management',

View File

@ -75,10 +75,10 @@ $types = OpalEstate_User::get_user_types();
</p> </p>
<?php endif; ?> <?php endif; ?>
<?php $terms_page = get_permalink( opalestate_get_option( 'user_terms_page', '/' ) ); ?>
<p class="opalestate-form-field i-agree validate-required"> <p class="opalestate-form-field i-agree validate-required">
<label><?php esc_html_e( 'I agree with', 'opalestate-pro' ); ?> <span class="required">*</span></label> <label><?php esc_html_e( 'I agree with', 'opalestate-pro' ); ?> <span class="required">*</span></label>
<a href="#"><?php esc_html_e( 'terms & conditions', 'opalestate-pro' ); ?></a> <a href="<?php echo esc_url( $terms_page ? $terms_page : '#' ); ?>" title="<?php esc_attr_e( 'terms & conditions', 'opalestate-pro' ); ?>" target="_blank"><?php esc_html_e( 'terms & conditions', 'opalestate-pro' ); ?></a>
<input type="checkbox" name="confirmed_register" id="confirmed_register" required="required" class="comfirmed-box"/> <input type="checkbox" name="confirmed_register" id="confirmed_register" required="required" class="comfirmed-box"/>
</p> </p>