WordPress.org

Plugin Directory

Changeset 600174


Ignore:
Timestamp:
09/17/12 17:23:23 (19 months ago)
Author:
joedolson
Message:

Bug fixes: mini calendar day links, todays events date range

Location:
my-calendar/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • my-calendar/trunk/my-calendar-categories.php

    r598560 r600174  
    105105            update_option( 'mc_default_category',$cat_ID ); 
    106106            $append = __('Default category changed.','my-calendar');             
    107         } 
     107        } else { $append = ''; } 
    108108        if ( $results ) { 
    109109            echo "<div class=\"updated\"><p><strong>".__('Category added successfully','my-calendar')." $append</strong></p></div>"; 
  • my-calendar/trunk/my-calendar-output.php

    r599053 r600174  
    22// Used to draw multiple events 
    33function my_calendar_draw_events($events, $type, $process_date, $time, $template='') { 
    4   if ( $type == 'mini' && ( get_option('mc_open_day_uri') == 'true' || get_option('mc_open_day_uri') == 'listanchor' || get_option('mc_open_day_uri') == 'calendaranchor' ) ) return; 
     4  if ( $type == 'mini' && ( get_option('mc_open_day_uri') == 'true' || get_option('mc_open_day_uri') == 'listanchor' || get_option('mc_open_day_uri') == 'calendaranchor' ) ) return true; 
    55  // We need to sort arrays of objects by time 
    66  if ( is_array($events) ) { 
     
    819819                        $events = @$event_array[$date]; 
    820820                            if ( !empty($events) ) { 
    821                                 $event_output = my_calendar_draw_events($events, $format, $date, $time, $template);                                  
     821                                $event_output = my_calendar_draw_events($events, $format, $date, $time, $template); 
     822                                if ( $event_output === true ) { $event_output = ' '; } 
    822823                                $events_class = ( $event_output != '' )?mc_events_class($events):'no-events'; 
    823                                 if ($format == 'mini' && $event_output != '') { 
     824                                if ($format == 'mini' && $event_output != '' ) { 
    824825                                    if ( get_option('mc_open_day_uri') == 'true' || get_option('mc_open_day_uri') == 'false' ) { 
    825826                                        $target = array('yr'=>$c_year,'month'=>$c_month,'dy'=>date( 'j',$start ) ); 
  • my-calendar/trunk/my-calendar-widgets.php

    r599338 r600174  
    489489    $no_event_text = ($substitute == '')?$defaults['today']['text']:$substitute; 
    490490 
    491     $from = $to = date('Y-m-d'); 
     491    $from = $to = date( 'Y-m-d',time()+$offset ); 
    492492    $events = my_calendar_grab_events($from, $to,$category,'','','upcoming',$author); 
    493493    $header = "<ul id='todays-events'>"; 
     
    509509                $event_details = event_as_array($event); 
    510510                $date = date_i18n(get_option('mc_date_format'),time()+$offset); 
    511          
    512                 // correct displayed time to today - necessary for recurring events, problematic with multi-day events 
    513                 if ( $event_details['event_span'] != 1 ) { 
    514                     $event_details['date'] = $date; 
    515                 } 
     511 
    516512                $this_event = ''; 
    517513                if ( $event->event_holiday == 0 ) { 
  • my-calendar/trunk/my-calendar.php

    r599338 r600174  
    66Author: Joseph C Dolson 
    77Author URI: http://www.joedolson.com 
    8 Version: 2.0.4 
     8Version: 2.0.5 
    99*/ 
    1010/*  Copyright 2009-2012  Joe Dolson (email : joe@joedolson.com) 
     
    2525*/ 
    2626global $mc_version, $wpdb; 
    27 $mc_version = '2.0.4'; 
     27$mc_version = '2.0.5'; 
    2828 
    2929// Define the tables used in My Calendar 
  • my-calendar/trunk/readme.txt

    r599338 r600174  
    8989 
    9090== Changelog == 
     91 
     92= 2.0.5 = 
     93 
     94* Bug fix: Date links were eliminated in mini calendar if option to link to day-view was enabled. 
     95* Bug fix: Today's events drew events based on UTC instead of current timezone. 
    9196 
    9297= 2.0.4 = 
Note: See TracChangeset for help on using the changeset viewer.