Plugin Directory

Changeset 3143722


Ignore:
Timestamp:
08/29/2024 11:59:49 AM (19 months ago)
Author:
tharkun69
Message:

1.4.5

  • Add shortcut attribute to show short weekdays
Location:
occupancy-plan/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • occupancy-plan/trunk/occupancy-plan.php

    r3103960 r3143722  
    1616 * Plugin URI:        https://www.software-kunze.de/plugins/occupancy-plan/
    1717 * Description:       Management of Occupancy Plans
    18  * Version:           1.4.4
     18 * Version:           1.4.5
    1919 * Author:            Alexander Kunze Software Consulting
    2020 * Author URI:        https://www.software-kunze.de
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('Occupancy_Plan', '1.4.4');
     38define('Occupancy_Plan', '1.4.5');
    3939
    4040/**
  • occupancy-plan/trunk/public/class-occupancy-plan-public.php

    r3103274 r3143722  
    176176     * 1.0.9 - Change to court names
    177177     * 1.3.19 - Add of 'visible' element
     178     * 1.4.5 - Add shortcut attribute to show short weekdays
    178179     */
    179180    private function get_headers($context)
     
    195196                     'visible' => (str_contains($context->weekdays, "6"))),
    196197              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'),
    197219                     'visible' => (str_contains($context->weekdays, "7")))
    198220            );
  • occupancy-plan/trunk/public/partials/occupancy-plan-public-display.php

    r3103274 r3143722  
    4747    $context->showheader = (isset($atts['showheader']))? $atts['showheader'] : 'true';
    4848    $context->layout = (isset($atts['layout']))? $atts['layout'] : 'table';
     49    $context->shortweekdays = (isset($atts['shortweekdays']))? $atts['shortweekdays'] : 'false';
    4950
    5051    if ((isset($_POST['previous'])) && (isset($_POST['week'])))
     
    7980            $context->week = (date("Y") - 1) . "-W". $context->weeknumber;
    8081        }
    81 
    8282    }
    8383
  • occupancy-plan/trunk/readme.txt

    r3103960 r3143722  
    44Tags: Occupancy Plan, Belegungsplan, Booking, Buchungen, Hallenbelegung, Reservierung
    55Requires at least: 4.9
    6 Tested up to: 6.5.4
    7 Stable tag: 1.4.4
     6Tested up to: 6.6.1
     7Stable tag: 1.4.5
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    5050== Changelog ==
    5151
     52= 1.4.5 =
     53- Add shortcut attribute to show short weekdays
     54
    5255= 1.4.4 =
    5356* Bugfix: Correct CSV export for court name objects
Note: See TracChangeset for help on using the changeset viewer.