Changeset 3143722
- Timestamp:
- 08/29/2024 11:59:49 AM (19 months ago)
- Location:
- occupancy-plan/trunk
- Files:
-
- 4 edited
-
occupancy-plan.php (modified) (2 diffs)
-
public/class-occupancy-plan-public.php (modified) (2 diffs)
-
public/partials/occupancy-plan-public-display.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
occupancy-plan/trunk/occupancy-plan.php
r3103960 r3143722 16 16 * Plugin URI: https://www.software-kunze.de/plugins/occupancy-plan/ 17 17 * Description: Management of Occupancy Plans 18 * Version: 1.4. 418 * Version: 1.4.5 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. 4');38 define('Occupancy_Plan', '1.4.5'); 39 39 40 40 /** -
occupancy-plan/trunk/public/class-occupancy-plan-public.php
r3103274 r3143722 176 176 * 1.0.9 - Change to court names 177 177 * 1.3.19 - Add of 'visible' element 178 * 1.4.5 - Add shortcut attribute to show short weekdays 178 179 */ 179 180 private function get_headers($context) … … 195 196 'visible' => (str_contains($context->weekdays, "6"))), 196 197 array ('courts' => $context->court->childcourts, 'name' => __('Su', 'occupancy-plan'), 198 'visible' => (str_contains($context->weekdays, "7"))) 199 ); 200 } 201 else if ((isset($context)) && ($context->shortweekdays == 'true')) 202 { 203 $courts = sizeof($context->court_names); 204 205 return array ( 206 array ('courts' => $courts, 'name' => __('Mo', 'occupancy-plan'), 207 'visible' => (str_contains($context->weekdays, "1"))), 208 array ('courts' => $courts, 'name' => __('Tu', 'occupancy-plan'), 209 'visible' => (str_contains($context->weekdays, "2"))), 210 array ('courts' => $courts, 'name' => __('We', 'occupancy-plan'), 211 'visible' => (str_contains($context->weekdays, "3"))), 212 array ('courts' => $courts, 'name' => __('Th', 'occupancy-plan'), 213 'visible' => (str_contains($context->weekdays, "4"))), 214 array ('courts' => $courts, 'name' => __('Fr', 'occupancy-plan'), 215 'visible' => (str_contains($context->weekdays, "5"))), 216 array ('courts' => $courts, 'name' => __('Sa', 'occupancy-plan'), 217 'visible' => (str_contains($context->weekdays, "6"))), 218 array ('courts' => $courts, 'name' => __('Su', 'occupancy-plan'), 197 219 'visible' => (str_contains($context->weekdays, "7"))) 198 220 ); -
occupancy-plan/trunk/public/partials/occupancy-plan-public-display.php
r3103274 r3143722 47 47 $context->showheader = (isset($atts['showheader']))? $atts['showheader'] : 'true'; 48 48 $context->layout = (isset($atts['layout']))? $atts['layout'] : 'table'; 49 $context->shortweekdays = (isset($atts['shortweekdays']))? $atts['shortweekdays'] : 'false'; 49 50 50 51 if ((isset($_POST['previous'])) && (isset($_POST['week']))) … … 79 80 $context->week = (date("Y") - 1) . "-W". $context->weeknumber; 80 81 } 81 82 82 } 83 83 -
occupancy-plan/trunk/readme.txt
r3103960 r3143722 4 4 Tags: Occupancy Plan, Belegungsplan, Booking, Buchungen, Hallenbelegung, Reservierung 5 5 Requires at least: 4.9 6 Tested up to: 6. 5.47 Stable tag: 1.4. 46 Tested up to: 6.6.1 7 Stable tag: 1.4.5 8 8 Requires PHP: 5.2.4 9 9 License: GPLv2 or later … … 50 50 == Changelog == 51 51 52 = 1.4.5 = 53 - Add shortcut attribute to show short weekdays 54 52 55 = 1.4.4 = 53 56 * Bugfix: Correct CSV export for court name objects
Note: See TracChangeset
for help on using the changeset viewer.