Plugin Directory

Changeset 3257595


Ignore:
Timestamp:
03/18/2025 08:38:34 AM (10 months ago)
Author:
foretagsakademincasa
Message:

Update to version 1.0.3 from GitHub

Location:
casa-courses
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • casa-courses/tags/1.0.3/README.txt

    r3185535 r3257595  
    44Tags: courses, administration, booking, participants, events
    55Requires at least: 6.4
    6 Tested up to: 6.7
     6Tested up to: 6.7.2
    77Requires PHP: 8.1
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57= 1.0.3 =
     58* Fix bug in date handling
     59
    5760= 1.0.2 =
    5861* Fix translation loading for WordPress 6.7
  • casa-courses/tags/1.0.3/casa-courses.php

    r3185535 r3257595  
    55 * Plugin URI: https://github.com/Foretagsakademin/casa-wordpress-plugin.git
    66 * Description: Connect your Casa installation to your WordPress installation. With the plugin you will be able to list all of your templates and events. Your visitors will be able to book themselves on events with available seats.
    7  * Version: 1.0.2
     7 * Version: 1.0.3
    88 * Requires at least: 6.4
    99 * Requires PHP: 8.1
     
    2626 * Current plugin version.
    2727 */
    28 define( 'CASA_COURSES_VERSION', '1.0.2' );
     28define( 'CASA_COURSES_VERSION', '1.0.3' );
    2929
    3030define( 'CASA_COURSES_API', '/api/v1/public/' );
  • casa-courses/tags/1.0.3/includes/helpers/helper.php

    r3165860 r3257595  
    1919    function casa_date_formatter( Carbon $start_date, Carbon $end_date ): string
    2020    {
    21         if ( $start_date->diffInDays( $end_date, false ) === 0 ) {
     21        if ( $start_date->isSameDay( $end_date ) ) {
     22            // Both dates are on the same calendar day
    2223            $data = $start_date->isoFormat( 'D MMM HH:mm' ) . ' - ';
    2324            $data .= $end_date->isoFormat( 'HH:mm' );
    2425        } else {
     26            // Dates span across multiple days
    2527            $data = $start_date->isoFormat( 'D MMM' ) . ' - ';
    2628            $data .= $end_date->isoFormat( 'D MMM' );
  • casa-courses/tags/1.0.3/public/class-casa_courses-public.php

    r3165860 r3257595  
    614614                                $time_now = Carbon::now()->timezone( $session->timezone ); ?>
    615615                                <?php if ( $time_now->diffInSeconds( $session->days[ 0 ]->start_date, false ) >= 0 ) : ?>
    616                                 <?php foreach ( $session->days as $days ) :
    617                                     $start_date = Carbon::parse( $days->start_date )->timezone( $session->timezone );
    618                                     $end_date = Carbon::parse( $days->end_date )->timezone( $session->timezone );
    619                                     ?>
    620                                     <?php echo esc_attr( casa_date_formatter( $start_date, $end_date ) ); ?>
    621                                     <br/>
    622                                 <?php endforeach; ?>
    623                             <?php endif; ?>
     616                                    <?php foreach ( $session->days as $days ) :
     617                                        $start_date = Carbon::parse( $days->start_date )->timezone( $session->timezone );
     618                                        $end_date = Carbon::parse( $days->end_date )->timezone( $session->timezone );
     619                                        ?>
     620                                        <?php echo esc_attr( casa_date_formatter( $start_date, $end_date ) ); ?>
     621                                        <br/>
     622                                    <?php endforeach; ?>
     623                                <?php endif; ?>
    624624                            <?php endforeach; ?>
    625625                            <?php if ( $venue_name ) : ?>
  • casa-courses/trunk/README.txt

    r3185535 r3257595  
    44Tags: courses, administration, booking, participants, events
    55Requires at least: 6.4
    6 Tested up to: 6.7
     6Tested up to: 6.7.2
    77Requires PHP: 8.1
    8 Stable tag: 1.0.2
     8Stable tag: 1.0.3
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5555== Changelog ==
    5656
     57= 1.0.3 =
     58* Fix bug in date handling
     59
    5760= 1.0.2 =
    5861* Fix translation loading for WordPress 6.7
  • casa-courses/trunk/casa-courses.php

    r3185535 r3257595  
    55 * Plugin URI: https://github.com/Foretagsakademin/casa-wordpress-plugin.git
    66 * Description: Connect your Casa installation to your WordPress installation. With the plugin you will be able to list all of your templates and events. Your visitors will be able to book themselves on events with available seats.
    7  * Version: 1.0.2
     7 * Version: 1.0.3
    88 * Requires at least: 6.4
    99 * Requires PHP: 8.1
     
    2626 * Current plugin version.
    2727 */
    28 define( 'CASA_COURSES_VERSION', '1.0.2' );
     28define( 'CASA_COURSES_VERSION', '1.0.3' );
    2929
    3030define( 'CASA_COURSES_API', '/api/v1/public/' );
  • casa-courses/trunk/includes/helpers/helper.php

    r3165860 r3257595  
    1919    function casa_date_formatter( Carbon $start_date, Carbon $end_date ): string
    2020    {
    21         if ( $start_date->diffInDays( $end_date, false ) === 0 ) {
     21        if ( $start_date->isSameDay( $end_date ) ) {
     22            // Both dates are on the same calendar day
    2223            $data = $start_date->isoFormat( 'D MMM HH:mm' ) . ' - ';
    2324            $data .= $end_date->isoFormat( 'HH:mm' );
    2425        } else {
     26            // Dates span across multiple days
    2527            $data = $start_date->isoFormat( 'D MMM' ) . ' - ';
    2628            $data .= $end_date->isoFormat( 'D MMM' );
  • casa-courses/trunk/public/class-casa_courses-public.php

    r3165860 r3257595  
    614614                                $time_now = Carbon::now()->timezone( $session->timezone ); ?>
    615615                                <?php if ( $time_now->diffInSeconds( $session->days[ 0 ]->start_date, false ) >= 0 ) : ?>
    616                                 <?php foreach ( $session->days as $days ) :
    617                                     $start_date = Carbon::parse( $days->start_date )->timezone( $session->timezone );
    618                                     $end_date = Carbon::parse( $days->end_date )->timezone( $session->timezone );
    619                                     ?>
    620                                     <?php echo esc_attr( casa_date_formatter( $start_date, $end_date ) ); ?>
    621                                     <br/>
    622                                 <?php endforeach; ?>
    623                             <?php endif; ?>
     616                                    <?php foreach ( $session->days as $days ) :
     617                                        $start_date = Carbon::parse( $days->start_date )->timezone( $session->timezone );
     618                                        $end_date = Carbon::parse( $days->end_date )->timezone( $session->timezone );
     619                                        ?>
     620                                        <?php echo esc_attr( casa_date_formatter( $start_date, $end_date ) ); ?>
     621                                        <br/>
     622                                    <?php endforeach; ?>
     623                                <?php endif; ?>
    624624                            <?php endforeach; ?>
    625625                            <?php if ( $venue_name ) : ?>
Note: See TracChangeset for help on using the changeset viewer.