Changeset 46426

Show
Ignore:
Timestamp:
05/17/08 04:36:00 (2 months ago)
Author:
snumb130
Message:

Fixed major bug pointed out by Ron. When month was changing, calendar was disappearing. This is fixed.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • events-calendar/trunk/ec_calendar.class.php

    r46359 r46426  
    3636   */ 
    3737       function displayWidget($year, $month, $days = array(), $day_name_length = 1) { 
    38        $ecFile = TEMPLATEPATH . "/style.css"; 
     38    $ecFile = get_bloginfo('stylesheet_directory') . "/style.css"; 
    3939    $ecData = file_get_contents($ecFile, 0, null); 
    40     if(strpos($ecData, "#today") === false) 
     40    if(strpos($ecData, "#today") === false) { 
    4141      $todaySet = false; 
    42     else 
     42      echo "false"; 
     43    } else { 
    4344      $todaySet = true; 
     45      echo "true"; 
     46    } 
    4447    $js = new EC_JS(); 
    4548    $first_day = get_option('start_of_week'); 
  • events-calendar/trunk/events-calendar.php

    r46359 r46426  
    44Plugin URI: http://www.lukehowell.com/events-calendar/ 
    55Description: There are options under the widget options to specify the view of the calendar in the sidebar.  The widget can be a list for upcoming events or a calendar.  If you do not have a widget ready theme then you can place '<?php sidebarEventsCalendar();?>' in the sidebar file.  If you want to display a large calendar in a post or a page, simply place "[[EventsCalendarLarge]]" in the html of the post or page.  Make sure to leave off the quotes. 
    6 Version: 6.2 
     6Version: 6.3 
    77Author: Luke Howell 
    88Author URI: http://www.lukehowell.com/ 
  • events-calendar/trunk/readme.txt

    r46359 r46426  
    11=== Events Calendar === 
    22 
    3 Contributors: snumb130, bbodine1 
     3Contributors: snumb130, bbodine1, ronbme 
    44Donate link: http://www.lukehowell.com/donate 
    5 Version: 6.2 
     5Version: 6.3 
    66Tags: widget, admin, sidebar, plugin, javascript, date, time, calendar, thickbox, jquery, tooltip, ajax 
    77Requires at least: 2.5 
    88Tested up to: 2.5.1 
    9 Stable tag: 6.2 
     9Stable tag: 6.3 
    1010 
    1111== Description == 
     
    2828 
    2929<pre><code> 
     30Verison 6.3 
     31  Fixed major bug pointed out by Ron.  When month was changing, calendar was disappearing.  This is fixed. 
    3032Version 6.2 
    3133  Ron added css for high lighting the current day in large calendar.  This can be edited in the events-calendar.css file.  Id is #todayLarge