Changeset 3257595
- Timestamp:
- 03/18/2025 08:38:34 AM (10 months ago)
- Location:
- casa-courses
- Files:
-
- 8 edited
- 1 copied
-
tags/1.0.3 (copied) (copied from casa-courses/trunk)
-
tags/1.0.3/README.txt (modified) (2 diffs)
-
tags/1.0.3/casa-courses.php (modified) (2 diffs)
-
tags/1.0.3/includes/helpers/helper.php (modified) (1 diff)
-
tags/1.0.3/public/class-casa_courses-public.php (modified) (1 diff)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/casa-courses.php (modified) (2 diffs)
-
trunk/includes/helpers/helper.php (modified) (1 diff)
-
trunk/public/class-casa_courses-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
casa-courses/tags/1.0.3/README.txt
r3185535 r3257595 4 4 Tags: courses, administration, booking, participants, events 5 5 Requires at least: 6.4 6 Tested up to: 6.7 6 Tested up to: 6.7.2 7 7 Requires PHP: 8.1 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 = 1.0.3 = 58 * Fix bug in date handling 59 57 60 = 1.0.2 = 58 61 * Fix translation loading for WordPress 6.7 -
casa-courses/tags/1.0.3/casa-courses.php
r3185535 r3257595 5 5 * Plugin URI: https://github.com/Foretagsakademin/casa-wordpress-plugin.git 6 6 * 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. 27 * Version: 1.0.3 8 8 * Requires at least: 6.4 9 9 * Requires PHP: 8.1 … … 26 26 * Current plugin version. 27 27 */ 28 define( 'CASA_COURSES_VERSION', '1.0. 2' );28 define( 'CASA_COURSES_VERSION', '1.0.3' ); 29 29 30 30 define( 'CASA_COURSES_API', '/api/v1/public/' ); -
casa-courses/tags/1.0.3/includes/helpers/helper.php
r3165860 r3257595 19 19 function casa_date_formatter( Carbon $start_date, Carbon $end_date ): string 20 20 { 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 22 23 $data = $start_date->isoFormat( 'D MMM HH:mm' ) . ' - '; 23 24 $data .= $end_date->isoFormat( 'HH:mm' ); 24 25 } else { 26 // Dates span across multiple days 25 27 $data = $start_date->isoFormat( 'D MMM' ) . ' - '; 26 28 $data .= $end_date->isoFormat( 'D MMM' ); -
casa-courses/tags/1.0.3/public/class-casa_courses-public.php
r3165860 r3257595 614 614 $time_now = Carbon::now()->timezone( $session->timezone ); ?> 615 615 <?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; ?> 624 624 <?php endforeach; ?> 625 625 <?php if ( $venue_name ) : ?> -
casa-courses/trunk/README.txt
r3185535 r3257595 4 4 Tags: courses, administration, booking, participants, events 5 5 Requires at least: 6.4 6 Tested up to: 6.7 6 Tested up to: 6.7.2 7 7 Requires PHP: 8.1 8 Stable tag: 1.0. 28 Stable tag: 1.0.3 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 55 55 == Changelog == 56 56 57 = 1.0.3 = 58 * Fix bug in date handling 59 57 60 = 1.0.2 = 58 61 * Fix translation loading for WordPress 6.7 -
casa-courses/trunk/casa-courses.php
r3185535 r3257595 5 5 * Plugin URI: https://github.com/Foretagsakademin/casa-wordpress-plugin.git 6 6 * 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. 27 * Version: 1.0.3 8 8 * Requires at least: 6.4 9 9 * Requires PHP: 8.1 … … 26 26 * Current plugin version. 27 27 */ 28 define( 'CASA_COURSES_VERSION', '1.0. 2' );28 define( 'CASA_COURSES_VERSION', '1.0.3' ); 29 29 30 30 define( 'CASA_COURSES_API', '/api/v1/public/' ); -
casa-courses/trunk/includes/helpers/helper.php
r3165860 r3257595 19 19 function casa_date_formatter( Carbon $start_date, Carbon $end_date ): string 20 20 { 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 22 23 $data = $start_date->isoFormat( 'D MMM HH:mm' ) . ' - '; 23 24 $data .= $end_date->isoFormat( 'HH:mm' ); 24 25 } else { 26 // Dates span across multiple days 25 27 $data = $start_date->isoFormat( 'D MMM' ) . ' - '; 26 28 $data .= $end_date->isoFormat( 'D MMM' ); -
casa-courses/trunk/public/class-casa_courses-public.php
r3165860 r3257595 614 614 $time_now = Carbon::now()->timezone( $session->timezone ); ?> 615 615 <?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; ?> 624 624 <?php endforeach; ?> 625 625 <?php if ( $venue_name ) : ?>
Note: See TracChangeset
for help on using the changeset viewer.