Plugin Directory

Changeset 3361972


Ignore:
Timestamp:
09/15/2025 05:48:26 PM (6 months ago)
Author:
ashanjay
Message:

2.4.9 (2025-9-15)

ADDED: ability to set how far ahead to search for happening next event
FIXED: live now events not showing current events in different timeones
FIXED: csv export not working
FIXED: cancelled events text color on event list

Location:
eventon-lite
Files:
299 added
9 edited

Legend:

Unmodified
Added
Removed
  • eventon-lite/trunk/assets/css/eventon_styles.css

    r3345262 r3361972  
    11/**
    22 * Primary Styles for EventON Calendar Front-end
    3  * @version 2.4
     3 * @version 2.4.9
    44 */
    55
     
    29372937        .ajde_evcal_calendar.cev.sev #evcal_list .sep_month_events.no_event,
    29382938        {border:none; }
    2939         .ajde_evcal_calendar.cev.sev #evcal_list a.cancel_event >*,
    2940         .ajde_evcal_calendar.cev.sev #evcal_list a.cancel_event em,
    2941         .ajde_evcal_calendar.cev.sev #evcal_list a.cancel_event span
    2942         {color:#808080;}
    29432939
    29442940    /* bubble events */
  • eventon-lite/trunk/eventon.php

    r3345262 r3361972  
    44 * Plugin URI: http://www.myeventon.com/lite
    55 * Description: A beautifully crafted minimal calendar experience - Lite Version
    6  * Version: 2.4.8
     6 * Version: 2.4.9
    77 * Author: Ashan Jay
    88 * Author URI: http://www.ashanjay.com
  • eventon-lite/trunk/includes/admin/class-admin-ajax.php

    r3301849 r3361972  
    22/**
    33 * Function ajax for backend
    4  * @version   2.4.6
     4 * @version   2.4.9
    55 */
    66class EVO_admin_ajax{
     
    974974        }
    975975
     976        function html_process_content($content, $process = true){
     977            //$content = iconv('UTF-8', 'Windows-1252', $content);
     978            if( is_array( $content )) return $content;
     979            return ($process)? htmlentities($content, ENT_QUOTES): $content;
     980        }
     981
    976982    // saving general settings -- @added 4.8 @updated 4.8.1     
    977983       
  • eventon-lite/trunk/includes/calendar/class-calendar-now.php

    r3269686 r3361972  
    33 *
    44 *  EventON Now Calendar Content
    5  *  @version 2.4
     5 *  @version 2.4.9
    66 */
    77
     
    4646        $plus = $delay? 1:0;
    4747
     48        //echo $DD->format('U');
     49
    4850        // in UTC0
    4951        $A['focus_start_date_range'] = $DD->format('U') + $plus;
    50         $A['focus_end_date_range'] = $DD->format('U') + $plus ;
     52        $A['focus_end_date_range'] = $DD->format('U') + $plus + 1;
    5153
    5254
     
    101103        </div>
    102104
    103         <?php if( !$hide_next):?>
    104         <div class='evo_eventon_now_next'>
     105        <?php
     106
     107        // Up next
     108        if( !$hide_next):
     109
     110            ob_start();
     111
     112            $A = $this->A;
    105113           
    106             <?php
     114            // get events for next 12 months   
     115            $A['focus_start_date_range'] = $DD->format('U');
     116            $ahead_range = !empty($A['next_range']) ? (int)$A['next_range']: 12;
     117            $DD->modify("+{$ahead_range} months");
     118            $A['focus_end_date_range'] = $DD->format('U');
    107119
    108             // up next
    109                 $A = $this->A;
    110                
    111                 // get events for next 12 months   
    112                 $A['focus_start_date_range'] = $DD->format('U');
    113                 $DD->modify('+12 months');
    114                 $A['focus_end_date_range'] = $DD->format('U');
    115 
    116                 $A = EVO()->calendar->process_arguments( $A);   
    117                 $event_list_array = EVO()->calendar->evo_get_wp_events_array( array( 'post__not_in'=> $now_event_ids) );
     120            $A = EVO()->calendar->process_arguments( $A);   
     121            $event_list_array = EVO()->calendar->evo_get_wp_events_array( array( 'post__not_in'=> $now_event_ids) );
    118122
    119123
    120                 // if there are events in the next 12 months
    121                 if( count($event_list_array) > 0){
     124            // if there are events in the next 12 months
     125            if( count($event_list_array) > 0){
    122126
    123                     $help = EVO()->helper;
     127                $help = EVO()->helper;
    124128
    125                     $next_event_start_unix = $event_list_array[0]['unix_start'];
    126                     $current_time = time();
     129                $next_event_start_unix = $event_list_array[0]['unix_start'];
     130                $current_time = time();
     131               
     132                if( $next_event_start_unix > $current_time ){ // make sure event is in the future
     133               
     134                    $next_events = array( $event_list_array[0]);
    127135                   
    128                     if( $next_event_start_unix > $current_time ){ // make sure event is in the future
    129                    
    130                         $next_events = array( $event_list_array[0]);
    131                        
    132                         $event_data = EVO()->calendar->generate_event_data(
    133                             $next_events,   
    134                             $A['focus_start_date_range']
    135                         );
     136                    $event_data = EVO()->calendar->generate_event_data(
     137                        $next_events,   
     138                        $A['focus_start_date_range']
     139                    );
    136140
    137141
    138                         $gap = $next_event_start_unix - EVO()->calendar->current_time;
    139                         $nonce = wp_create_nonce('evo_calendar_now');
     142                    $gap = $next_event_start_unix - EVO()->calendar->current_time;
     143                    $nonce = wp_create_nonce('evo_calendar_now');
    140144
    141                         $data_attr = array(
    142                             'gap'=> $gap,
    143                             'endutc'=> $next_event_start_unix,
    144                             'now'=> EVO()->calendar->current_time,
    145                             't'=>'',
    146                             'd'=>evo_lang('Day'),
    147                             'ds'=>evo_lang('Days'),
    148                             'exp_act'=> 'runajax_refresh_now_cal',
    149                             'n'=> $nonce,
    150                         );
     145                    $data_attr = array(
     146                        'gap'=> $gap,
     147                        'endutc'=> $next_event_start_unix,
     148                        'now'=> EVO()->calendar->current_time,
     149                        't'=>'',
     150                        'd'=>evo_lang('Day'),
     151                        'ds'=>evo_lang('Days'),
     152                        'exp_act'=> 'runajax_refresh_now_cal',
     153                        'n'=> $nonce,
     154                    );
    151155
    152                         echo "<h3 class='evogap10 evofxaic'><em class='fsn' >". evo_lang('Coming up Next in') ."</em> <span class='evo_countdowner' ". $help->array_to_html_data($data_attr) ."></span></h3>";
     156                    echo "<h3 class='evogap10 evofxaic'><em class='fsn' >". evo_lang('Coming up Next in') ."</em> <span class='evo_countdowner' ". $help->array_to_html_data($data_attr) ."></span></h3>";
    153157
    154                         $header_args = array(
    155                             'external'=> true,
    156                             '_classes_calendar'=> '',
    157                             'initial_ajax_loading_html'=> false,
    158                             'date_header'=> false,
    159                         );
     158                    $header_args = array(
     159                        'external'=> true,
     160                        '_classes_calendar'=> '',
     161                        'initial_ajax_loading_html'=> false,
     162                        'date_header'=> false,
     163                    );
    160164
    161                         echo EVO()->calendar->body->get_calendar_header($header_args);     
     165                    echo EVO()->calendar->body->get_calendar_header($header_args);     
    162166
    163                         foreach( $event_data as $ED){
    164                             $now_event_ids[] = $ED['event_id'];
    165                             echo  $ED['content'];
    166                         }
    167 
    168                         echo EVO()->calendar->body->get_calendar_footer( true);
     167                    foreach( $event_data as $ED){
     168                        $now_event_ids[] = $ED['event_id'];
     169                        echo  $ED['content'];
    169170                    }
    170171
     172                    echo EVO()->calendar->body->get_calendar_footer( true);
    171173                }
     174
     175            }
     176
     177            $next_content = ob_get_clean();
     178
     179        if( !empty($next_content)):
     180        ?>
     181        <div class='evo_eventon_now_next'>         
     182            <?php
     183            echo $next_content;
    172184            ?>
    173185        </div>
    174186        <?php endif;?>
    175 
     187        <?php endif;?>
    176188        <?php
    177189       
  • eventon-lite/trunk/includes/calendar/class-calendar_generator.php

    r3345262 r3361972  
    44 *
    55 * @class       EVO_generator
    6  * @version     2.4.8
     6 * @version     2.4.9
    77 * @package     EventON/Classes
    88 * @category    Class
     
    796796
    797797                $range_data = $this->cal_range_data;
     798
     799                //print_r($range_data);
    798800               
    799801                $count = 0;
     
    911913                        // using UTC0 time
    912914                        $_is_event_current = $EVENT->is_current_event( ($hide_past_by=='ee'?'end':'start'));
    913 
    914915                        $_is_event_inrange = $EVENT->is_event_in_date_range(
    915916                            $range_data['start'],$range_data['end'],'','', true );
    916917                        $_is_in_visible_range = $EVENT->is_in_visible_range( $_cal_visible_range );
     918
     919                       
    917920                                               
    918921                        // past event and range check
  • eventon-lite/trunk/includes/class-event.php

    r3345262 r3361972  
    22/**
    33 * Event Class for one event
    4  * @version 2.4.8
     4 * @version 2.4.9
    55 */
    66
     
    301301        function is_event_in_date_range($S=0, $E=0, $start='' ,$end='' , $utc = false){
    302302            if(empty($start) && empty($end) ){
    303                 $start = $this->get_start_time();
     303                $start = $this->get_start_time( $utc);
    304304                $end = $this->get_end_time( $utc );
    305305            }
  • eventon-lite/trunk/includes/class-eventon.php

    r3345262 r3361972  
    22/**
    33 * EventON Lite Setup
    4  * @version 2.4.8
     4 * @version 2.4.9
    55 *
    66 */
     
    1212
    1313    // defines
    14         public $version = '2.4.8';
     14        public $version = '2.4.9';
    1515               
    1616        public $template_url;
  • eventon-lite/trunk/includes/elements/class-shortcode-data.php

    r3129747 r3361972  
    357357                            'var'=>'hide_now',
    358358                            'default'=>'no'
     359                        ),
     360                        array(
     361                            'name'=>'Hide coming up next section',
     362                            'type'=>'YN',
     363                            'guide'=>'This will hide the coming up next section.',
     364                            'var'=>'hide_next',
     365                            'default'=>'no'
     366                        ),array(
     367                            'name'=>'How many months ahead to search for next event',
     368                            'type'=>'select',
     369                            'guide'=> __('Set many months ahead you want to search for the next event'),
     370                            'var'=>'next_range',
     371                            'default'=>'12',
     372                            'options'=> [
     373                                '12'=>12,
     374                                '10'=> 10,
     375                                '8'=> 8,
     376                                '6'=> 6,
     377                                '3'=>3,
     378                                '2'=>2,
     379                                '1'=>1
     380                            ]
    359381                        )
    360382                       
  • eventon-lite/trunk/readme.txt

    r3345262 r3361972  
    66Requires at least: 6.0
    77Tested up to: 6.8.2
    8 Stable tag: 2.4.7
     8Stable tag: 2.4.9
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    242242
    243243== Changelog ==
     244= 2.4.9 (2025-9-15) =
     245ADDED: ability to set how far ahead to search for happening next event
     246FIXED: live now events not showing current events in different timeones
     247FIXED: csv export not working
     248FIXED: cancelled events text color on event list
     249
    244250= 2.4.8 (2025-8-15) =
    245251ADDED: password protected events pages with get_the_password_form()
Note: See TracChangeset for help on using the changeset viewer.