Changeset 1608221
- Timestamp:
- 03/05/2017 06:31:00 PM (9 years ago)
- Location:
- redi-restaurant-reservation/branches/discount
- Files:
-
- 3 edited
-
css/restaurant.css (modified) (1 diff)
-
redi-restaurant-reservation.php (modified) (2 diffs)
-
templates/frontend.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redi-restaurant-reservation/branches/discount/css/restaurant.css
r1454641 r1608221 304 304 background-color: #e6e6e6; 305 305 display: inline; 306 min-height: 58px; 306 307 } 307 308 -
redi-restaurant-reservation/branches/discount/redi-restaurant-reservation.php
r1605455 r1608221 1534 1534 $comment .= mb_substr( self::GetPost( 'UserComments', '' ), 0, 250 ); 1535 1535 $discounts = self::getDiscount(date('d.m.Y', $startTimeInt), date('l', $startTimeInt)); 1536 $discount = self::getMaxDiscount($discounts, $startTimeInt); 1536 1537 $discount = self::getMaxDiscount($discounts, date( 'H:i', $startTimeInt )); 1537 1538 1538 1539 if ($discount) { … … 1554 1555 ) 1555 1556 ); 1557 1556 1558 if ( isset( $this->options['EmailFrom'] ) && $this->options['EmailFrom'] == EmailFrom::Disabled || 1557 1559 isset( $this->options['EmailFrom'] ) && $this->options['EmailFrom'] == EmailFrom::WordPress -
redi-restaurant-reservation/branches/discount/templates/frontend.php
r1594181 r1608221 108 108 <div class="redi-restaurant-button-wrapper"> 109 109 <?php if($timeshiftmode != 'byshifts'):?> 110 <input class="redi-restaurant-button" id="step1button" style="display:none;" type="submit" value="<?php _e('Check available time', 'redi-restaurant-reservation');?>" name="submit">110 <input class="redi-restaurant-button" id="step1button" style="display:none;" type="submit" value="<?php _e('Check available time', 'redi-restaurant-reservation');?>" name="submit"> 111 111 <?php endif?> 112 112 </div> … … 159 159 <?php $all_busy = true; ?> 160 160 161 <?php foreach ( $available['Availability'] as $button ): ?><button title="<?php echo $button['Reason']?>" <?php if(!$button['Available']):?>disabled="disabled"<?php endif?> class="redi-restaurant-time-button button" value="<?php echo $button['StartTimeISO'] ?>"><?php echo $button['StartTime'] ?></button><?php if($button['Available']) $all_busy = false; ?><?php endforeach; ?> 161 <?php foreach ( $available['Availability'] as $button ): ?> 162 <button title="<?php echo $button['Reason']?>" <?php if(!$button['Available']):?>disabled="disabled"<?php endif?> class="redi-restaurant-time-button button" value="<?php echo $button['StartTimeISO'] ?>"> 163 <?php echo $button['Discount'] === null ? '' : $button['Discount'] . '% OFF <br/>' ?> 164 <?php echo $button['StartTime'] ?></button><?php if($button['Available']) $all_busy = false; ?> 165 166 <?php endforeach; ?> 162 167 163 168 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.