![]() Server : Apache/2.4.52 (Ubuntu) System : Linux webserver 6.8.0-49-generic #49~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Nov 6 17:42:15 UTC 2 x86_64 User : www-data ( 33) PHP Version : 8.1.2-1ubuntu2.21 Disable Function : NONE Directory : /var/www/theprintave/wp-content/plugins/dokan-lite/templates/settings/ |
<label class="dokan-w3 control-label"></label> <div class="dokan-w6" style="width: auto"> <?php foreach ( $dokan_days as $day_key => $day ) { $status = isset( $store_info[ $day_key ]['status'] ) ? $store_info[ $day_key ]['status'] : ''; $status = isset( $store_info[ $day_key ]['open'] ) ? $store_info[ $day_key ]['open'] : $status; $opening_time = dokan_get_store_times( $day_key, 'opening_time' ); $closing_time = dokan_get_store_times( $day_key, 'closing_time' ); ?> <div class="dokan-store-times"> <div class="dokan-form-group"> <label class="day control-label" for="opening-time[<?php echo esc_attr( $day_key ); ?>][working_status]"> <?php echo esc_html( dokan_get_translated_days( $day_key ) ); ?> </label> <label> <select name="<?php echo esc_attr( $day_key ); ?>[working_status]" class="dokan-on-off dokan-form-control"> <?php foreach ( $dokan_status as $status_key => $status_value ) : ?> <option value="<?php echo esc_attr( $status_key ); ?>" <?php echo ! empty( $status ) ? selected( $status, $status_key, false ) : ''; ?> > <?php echo esc_html( $status_value ); ?> </option> <?php endforeach; ?> </select> </label> <label for="opening-time[<?php echo esc_attr( $day_key ); ?>]" class="time" style="visibility: <?php echo isset( $status ) && $status === 'open' ? 'visible' : 'hidden'; ?>" > <input type="text" class="dokan-form-control opening-time" name="opening_time[<?php echo esc_attr( $day_key ); ?>]" id="opening-time[<?php echo esc_attr( $day_key ); ?>]" placeholder="00:00" value="<?php echo esc_attr( $opening_time ); ?>"/> </label> <label for="closing-time[<?php echo esc_attr( $day_key ); ?>]" class="time" style="visibility: <?php echo isset( $status ) && $status === 'open' ? 'visible' : 'hidden'; ?>" > <input type="text" class="dokan-form-control closing-time" name="closing_time[<?php echo esc_attr( $day_key ); ?>]" id="closing-time[<?php echo esc_attr( $day_key ); ?>]" placeholder="00:00" value="<?php echo esc_attr( $closing_time === '11:59 pm' ? '11:30 pm' : $closing_time ); ?>"/> </label> </div> </div> <?php } ?> </div>