Changeset 3190680
- Timestamp:
- 11/17/2024 02:57:00 PM (17 months ago)
- Location:
- occupancy-plan/trunk
- Files:
-
- 5 edited
-
admin/class-occupancy-plan-admin.php (modified) (1 diff)
-
occupancy-plan.php (modified) (2 diffs)
-
public/js/occupancy-plan-public.js (modified) (1 diff)
-
public/partials/occupancy-plan-public-display.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
occupancy-plan/trunk/admin/class-occupancy-plan-admin.php
r3103960 r3190680 1446 1446 * @since 1.4 1447 1447 * 1448 * 1.4.6 - Fix: Check if PHP session is active 1448 1449 */ 1449 1450 public function end_session() 1450 { 1451 session_destroy(); 1451 { 1452 if (session_status() === PHP_SESSION_ACTIVE) 1453 { 1454 session_destroy(); 1455 } 1452 1456 } 1453 1457 } -
occupancy-plan/trunk/occupancy-plan.php
r3143722 r3190680 16 16 * Plugin URI: https://www.software-kunze.de/plugins/occupancy-plan/ 17 17 * Description: Management of Occupancy Plans 18 * Version: 1.4. 518 * Version: 1.4.6 19 19 * Author: Alexander Kunze Software Consulting 20 20 * Author URI: https://www.software-kunze.de … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define('Occupancy_Plan', '1.4. 5');38 define('Occupancy_Plan', '1.4.6'); 39 39 40 40 /** -
occupancy-plan/trunk/public/js/occupancy-plan-public.js
r3103274 r3190680 496 496 } 497 497 }); 498 499 if ($(".weekselect").prop("type") == "text") 500 { 501 $(".weekselectnative").hide(); 502 $(".weekselectfallback").show(); 503 } 498 504 }); 499 505 -
occupancy-plan/trunk/public/partials/occupancy-plan-public-display.php
r3143722 r3190680 718 718 break; 719 719 case 'weekly': 720 echo '<input class="weekselect" id="week" type="week" name="week" value="' . esc_attr($context->week) . '" />'; 720 echo '<input class="weekselect weekselectnative" id="week" type="week" name="week" value="' . esc_attr($context->week) . '" />'; 721 echo '<select class="weekselect weekselectfallback" id="fallbackWeek" name="week" style="display:none">'; 722 $weekdate = new DateTime(); 723 $weekdate->setISODate(substr($context->week,0,4), substr($context->week,6,2)); 724 $weekdate->sub(new DateInterval('P7W')); 725 for ($w = 0; ($w < 21); $w++) 726 { 727 echo '<option value="' . $weekdate->format("Y") . "-W". $weekdate->format("W") . '"' . (($w == 7)? " selected":"") . '>'; 728 if ($weekdate->format("W") == "01") 729 { 730 $weekdate->add(new DateInterval('P7D')); 731 echo __("Week",'occupancy-plan') . ' 01. ' . $weekdate->format("Y") . '</option>'; 732 } 733 else 734 { 735 echo __("Week",'occupancy-plan') . ' ' . $weekdate->format("W") . '. ' . $weekdate->format("Y") . '</option>'; 736 $weekdate->add(new DateInterval('P7D')); 737 } 738 } 739 echo '</select>'; 721 740 break; 722 741 case 'daily': … … 784 803 <tr> 785 804 <td> 786 <?php switch ($context->mode) {787 case 'yearly':788 echo esc_attr($context->year);789 break;790 case 'monthly':791 echo esc_attr($context->month);792 break;793 case 'weekly':794 echo esc_attr($context->week);795 break;796 case 'daily':797 echo mysql2date('Y-m-d', $context->singledate );798 break;799 }?>805 <?php switch ($context->mode) { 806 case 'yearly': 807 echo esc_attr($context->year); 808 break; 809 case 'monthly': 810 echo esc_attr($context->month); 811 break; 812 case 'weekly': 813 echo esc_attr($context->week); 814 break; 815 case 'daily': 816 echo mysql2date('Y-m-d', $context->singledate ); 817 break; 818 }?> 800 819 </td> 801 820 <td></td> -
occupancy-plan/trunk/readme.txt
r3143722 r3190680 4 4 Tags: Occupancy Plan, Belegungsplan, Booking, Buchungen, Hallenbelegung, Reservierung 5 5 Requires at least: 4.9 6 Tested up to: 6. 6.16 Tested up to: 6.7 7 7 Stable tag: 1.4.5 8 8 Requires PHP: 5.2.4 … … 50 50 == Changelog == 51 51 52 = 1.4.6 = 53 * Fallback for not support inpute type=week (Firefox & Safari) 54 * Fix: Check if PHP session is active before destroy 55 * Test with WordPress version 6.7 56 52 57 = 1.4.5 = 53 -Add shortcut attribute to show short weekdays58 * Add shortcut attribute to show short weekdays 54 59 55 60 = 1.4.4 =
Note: See TracChangeset
for help on using the changeset viewer.