Last active
August 30, 2019 11:09
-
-
Save eto4detak/77b40e3b24e3a22b913081a6a7a81209 to your computer and use it in GitHub Desktop.
php field
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// checkbox | |
$val = get_option('compare_cars_templ'); | |
$hide_comp_icon = !empty($val['no_comp_icon']) ? $val['no_comp_icon'] : false; | |
?> | |
<label><input type="checkbox" name="compare_cars_templ[no_comp_icon]" value="1" <?php checked( 1, $hide_comp_icon ) ?> /></label> | |
<!-- checkbox select --> | |
<div class="pixad-form-group"> | |
<label class="col-lg-2 pixad-control-label"> | |
<?php esc_html_e( 'Register User when creating a car', 'pixad' ); ?> | |
<i class="fa fa-question-circle" title="<?php esc_html_e( '........', 'pixad' ); ?>" data-toggle="tooltip" data-placement="top"></i> | |
</label> | |
<div class="col-lg-9"> | |
<?php $autos_reg_user = isset($options['autos_reg_user']) ? $options['autos_reg_user'] : 0; ?> | |
<select name="autos_reg_user" class="pixad-form-control"> | |
<option value="0" <?php selected( $autos_reg_user, '0', true ); ?>><?php esc_html_e( 'No', 'pixad' ); ?></option> | |
<option value="1" <?php selected( $autos_reg_user, '1', true ); ?>><?php esc_html_e( 'Yes', 'pixad' ); ?></option> | |
</select> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment