Exemple #1
0
		
								<div class="column column-wide" style="width:30%;">
									<div class="h4"><?php 
        echo CarRental::t('Working Hours');
        ?>
:</div>
									
									<?php 
        if (!empty($val->hours)) {
            ?>
										<?php 
            foreach ($val->hours as $kD => $vD) {
                ?>
											<dl class="dl-boxed">
												<dt><?php 
                echo CarRental::get_day_name($vD->day, array(CarRental::t('Monday'), CarRental::t('Tuesday'), CarRental::t('Wednesday'), CarRental::t('Thursday'), CarRental::t('Friday'), CarRental::t('Saturday'), CarRental::t('Sunday')));
                ?>
</dt>
												<dd><?php 
                echo carrental_time_format(substr($vD->hours_from, 0, 5), isset($theme_options) && isset($theme_options['time_format']) ? $theme_options['time_format'] : 24);
                ?>
 - <?php 
                echo carrental_time_format(substr($vD->hours_to, 0, 5), isset($theme_options) && isset($theme_options['time_format']) ? $theme_options['time_format'] : 24);
                ?>
												<?php 
                if (isset($vD->hours_from_2) && $vD->hours_from_2 != '' && $vD->hours_from_2 != '00:00:00') {
                    ?>
													<?php 
                    if (isset($vD->hours_to_2) && $vD->hours_to_2 != '' && $vD->hours_to_2 != '00:00:00') {
                        ?>
													 | <?php 
 public static function get_day_name($day)
 {
     return CarRental::get_day_name($day);
 }