• Resolved bugmealways

    (@bugmealways)


    The date block in the widget list vanishes for the first item only when clicked for event view.

    I checked, this doesn’t appear to be css related, as the html source is simply missing the data:

    <ul class="event-list-view">
    			 	<li class="event">
    					<div class="event-info single-day"><span class="event-title"><h3><a href="/event-list/?event_id_1=3">Some Event With</a></h3></span><span class="event-time">10:00 AM</span><span class="event-location">Here</span></div>
    				</li>
    			 	<li class="event">
    					<div class="event-date"><div class="start-date"><div class="event-weekday">Sat</div><div class="event-day">23</div><div class="event-month">Nov</div><div class="event-year">2013</div></div></div>
    					<div class="event-info single-day"><span class="event-title"><h3><a href="/event-list/?event_id_1=1">Test Event 1</a></h3></span><span class="event-time">3:00 PM</span><span class="event-location">Here</span></div>
    				</li>

    http://wordpress.org/plugins/event-list/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter bugmealways

    (@bugmealways)

    Modifying html_event() as shown corrects the behavior, I’m just not sure why:

    //if( '1' !== $this->options->get( 'el_date_once_per_day' ) || $last_event_startdate !== $event->start_date || $last_event_enddate !== $event->end_date ) {
                            $out .= $this->html_fulldate( $event->start_date, $event->end_date, $single_day_only );
                    //}
    Plugin Author mibuthu

    (@mibuthu)

    Strange, I do not have this behavior. But it must be a problem with the initial value of the static variables.

    Please test the following:

    change /includes/sc_event-list.php, Line 250 to:
    static $last_event_startdate=null, $last_event_enddate=null;

    or to
    static $last_event_startdate='test', $last_event_enddate='test';

    Please share your results.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Date info missing on single event widget click’ is closed to new replies.