<!-- col end END --> </div> <div class="col-md-5"> <div class="form-group"> <strong> <?php _e('to a maximum of', 'sln'); ?> <?php $field = "salon_settings[hours_before_to]"; ?> <?php echo SLN_Form::fieldSelect($field, SLN_Func::getIntervalItems(), $this->getOpt('hours_before_to'), array(), true); ?> <?php _e('in advance', 'sln'); ?> </strong> </strong> <!-- form-group END --> </div> <!-- col end END --> </div> <!-- row end END --> </div> <div class="row setting-interval"> <div class="col-md-8">
public function getHoursBeforeString() { $txt = SLN_Func::getIntervalItems(); $ret = $this->getHoursBefore(); if ($ret->from) { $ret->from = $txt[$ret->from]; } if ($ret->to) { $ret->to = $txt[$ret->to]; } return $ret; }