Osclass Support Forums
Osclass theme support => Ideas, improvements and tips => Topic started by: Ivanko on April 30, 2017, 08:15:12 PM
-
It will be great to insert a condition if the field is required during posting an ad, then asterisks will be (true) after the world of required field.
Location * , Name * ...etc
-
@Ivanko
Thanks for suggestion, we will try to implement it in next release.
-
may be in this way, example for Phone in item-post.php
instead of :
<label for="phone"><?php _e('Mobile Phone', 'veronika'); ?></label>
use:
<label for="phone"><?php _e('Mobile Phone', 'veronika'); ?>
<?php if(strpos($required_fields, 'phone') !== false) { ?>
<span class="req">*</span>
<?php } ?>
</label>
$required_fields has to be declared early and inserted above the form.
<?php $required_fields = strtolower(osc_get_preference('post_required', 'veronika_theme')); ?>