Plugin Directory

Changeset 3757553


Ignore:
Timestamp:
10/20/2026 11:15:19 PM (2 weeks ago)
Author:
beaconevents
Message:

Release 0.28.3

Location:
beacon-events
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • beacon-events/tags/0.28.3/beacon-events.php

    r3755870 r3757553  
    44 * Plugin URI:        https://wordpress.org/plugins/beacon-events/
    55 * Description:       A light, honest events calendar. Recurring events, ICS and Google Calendar import that stays in sync, and calendar views that look like your site — all free. Uninstalls clean.
    6  * Version:           0.28.2
     6 * Version:           0.28.3
    77 * Requires at least: 6.4
    88 * Requires PHP:      7.4
    … …  
    1515        exit; }
    1616
    17 define( 'BEACON_VERSION', '0.28.2' );
     17define( 'BEACON_VERSION', '0.28.3' );
    1818define( 'BEACON_FILE', __FILE__ );
    1919define( 'BEACON_DIR', plugin_dir_path( __FILE__ ) );
  • beacon-events/tags/0.28.3/includes/class-views.php

    r3753407 r3757553  
    10241024                } catch ( \Exception $x ) {
    10251025                        $tz = self::tz(); }
    1026                 $s    = new \DateTimeImmutable( $e['start'], $tz );
    1027                 $en   = $e['end'] ? new \DateTimeImmutable( $e['end'], $tz ) : null;
     1026                $s  = new \DateTimeImmutable( $e['start'], $tz );
     1027                $en = $e['end'] ? new \DateTimeImmutable( $e['end'], $tz ) : null;
     1028                if ( $e['rrule'] ) {
     1029                        // A series shows its next date (someone looking in October wants the next class, not September's first one);
     1030                        // the Repeats row says how it goes on. A finished series keeps its first date.
     1031                        try {
     1032                                $otz = new \DateTimeZone( $e['tz'] );
     1033                        } catch ( \Exception $x ) {
     1034                                $otz = new \DateTimeZone( 'UTC' ); }
     1035                        foreach ( Events::occurrences_for_edit( $id, 20 ) as $o ) {
     1036                                if ( $o['status'] !== 'cancelled' ) {
     1037                                        $s  = ( new \DateTimeImmutable( $o['start'], $otz ) )->setTimezone( $tz );
     1038                                        $en = $en ? ( new \DateTimeImmutable( $o['end'], $otz ) )->setTimezone( $tz ) : null;
     1039                                        break; }
     1040                        }
     1041                }
    10281042                $when = $e['all_day'] ? wp_date( get_option( 'date_format' ), $s->getTimestamp(), $tz ) . ( $en && $en->format( 'Y-m-d' ) !== $s->format( 'Y-m-d' ) ? ' – ' . wp_date( get_option( 'date_format' ), $en->getTimestamp(), $tz ) : '' ) : wp_date( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), $s->getTimestamp(), $tz ) . ( $en ? ' – ' . wp_date( $en->format( 'Y-m-d' ) === $s->format( 'Y-m-d' ) ? get_option( 'time_format' ) : get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), $en->getTimestamp(), $tz ) : '' ) . self::zone_label( $s );
    10291043                $rows = '<div class="beacon-detail"><span class="beacon-detail-label">' . esc_html__( 'When', 'beacon-events' ) . '</span> <span class="beacon-detail-value">' . esc_html( $when ) . '</span></div>';
  • beacon-events/tags/0.28.3/readme.txt

    r3757518 r3757553  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 0.28.2
     7Stable tag: 0.28.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    204204== Changelog ==
    205205
     206= 0.28.3 =
     207* A repeating event's page now shows its next date under "When", not the date the series began. A weekly class that started in September shows next week's class, skipping cancelled dates and following moved ones. A finished series still shows its first date.
     208
    206209= 0.28.2 =
    207210* Pro can now be paid monthly ($7 a month for one site), as well as yearly. The Pro page and the import screen say so.
  • beacon-events/trunk/beacon-events.php

    r3755870 r3757553  
    44 * Plugin URI:        https://wordpress.org/plugins/beacon-events/
    55 * Description:       A light, honest events calendar. Recurring events, ICS and Google Calendar import that stays in sync, and calendar views that look like your site — all free. Uninstalls clean.
    6  * Version:           0.28.2
     6 * Version:           0.28.3
    77 * Requires at least: 6.4
    88 * Requires PHP:      7.4
    … …  
    1515        exit; }
    1616
    17 define( 'BEACON_VERSION', '0.28.2' );
     17define( 'BEACON_VERSION', '0.28.3' );
    1818define( 'BEACON_FILE', __FILE__ );
    1919define( 'BEACON_DIR', plugin_dir_path( __FILE__ ) );
  • beacon-events/trunk/includes/class-views.php

    r3753407 r3757553  
    10241024                } catch ( \Exception $x ) {
    10251025                        $tz = self::tz(); }
    1026                 $s    = new \DateTimeImmutable( $e['start'], $tz );
    1027                 $en   = $e['end'] ? new \DateTimeImmutable( $e['end'], $tz ) : null;
     1026                $s  = new \DateTimeImmutable( $e['start'], $tz );
     1027                $en = $e['end'] ? new \DateTimeImmutable( $e['end'], $tz ) : null;
     1028                if ( $e['rrule'] ) {
     1029                        // A series shows its next date (someone looking in October wants the next class, not September's first one);
     1030                        // the Repeats row says how it goes on. A finished series keeps its first date.
     1031                        try {
     1032                                $otz = new \DateTimeZone( $e['tz'] );
     1033                        } catch ( \Exception $x ) {
     1034                                $otz = new \DateTimeZone( 'UTC' ); }
     1035                        foreach ( Events::occurrences_for_edit( $id, 20 ) as $o ) {
     1036                                if ( $o['status'] !== 'cancelled' ) {
     1037                                        $s  = ( new \DateTimeImmutable( $o['start'], $otz ) )->setTimezone( $tz );
     1038                                        $en = $en ? ( new \DateTimeImmutable( $o['end'], $otz ) )->setTimezone( $tz ) : null;
     1039                                        break; }
     1040                        }
     1041                }
    10281042                $when = $e['all_day'] ? wp_date( get_option( 'date_format' ), $s->getTimestamp(), $tz ) . ( $en && $en->format( 'Y-m-d' ) !== $s->format( 'Y-m-d' ) ? ' – ' . wp_date( get_option( 'date_format' ), $en->getTimestamp(), $tz ) : '' ) : wp_date( get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), $s->getTimestamp(), $tz ) . ( $en ? ' – ' . wp_date( $en->format( 'Y-m-d' ) === $s->format( 'Y-m-d' ) ? get_option( 'time_format' ) : get_option( 'date_format' ) . ', ' . get_option( 'time_format' ), $en->getTimestamp(), $tz ) : '' ) . self::zone_label( $s );
    10291043                $rows = '<div class="beacon-detail"><span class="beacon-detail-label">' . esc_html__( 'When', 'beacon-events' ) . '</span> <span class="beacon-detail-value">' . esc_html( $when ) . '</span></div>';
  • beacon-events/trunk/readme.txt

    r3757518 r3757553  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 0.28.2
     7Stable tag: 0.28.3
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    204204== Changelog ==
    205205
     206= 0.28.3 =
     207* A repeating event's page now shows its next date under "When", not the date the series began. A weekly class that started in September shows next week's class, skipping cancelled dates and following moved ones. A finished series still shows its first date.
     208
    206209= 0.28.2 =
    207210* Pro can now be paid monthly ($7 a month for one site), as well as yearly. The Pro page and the import screen say so.
Note: See TracChangeset for help on using the changeset viewer.