[EventCalendar] Re: EventCalendar Digest, Vol 13, Issue 42

Joern Kretzschmar joern at diekretzschmars.de
Fri Dec 1 19:00:14 UTC 2006


This is my testloop. i know, that no event is shown. it is just for 
testing the start and end time.
why is the date not pulled of ec3_schedule?

Jörn

<!--start loop-->
    <?php query_posts('ec3_after=today&showposts=100');
    echo "<ul class='ec3_events'>";
    $current_month=false;
    $date_format=get_settings('date_format');
    $time_format=get_settings('time_format');


    if (have_posts()) : while (have_posts()) : the_post();

    // Month changed?
    $month=mysql2date('F Y',$post->ec3_schedule->start);
    if($current_month!=$month)
    {
      if($current_month)
          echo "</ul></li>\n";
      echo "<li class='ec3_list ec3_list_month'>$month:\n<ul>\n";
      $current_month=$month;
    }

    $start=mysql2date($date_format,$post->ec3_schedule->start);
    $end  =mysql2date($date_format,$post->ec3_schedule->end);
    if($post->ec3_schedule->allday)
        $time=__('all day','ec3');
    else
        $time=mysql2date($time_format,$entry->start);
    echo " <li>".$start;
    if($start!=$end) echo ' &ndash; '.$end;
    echo "start and end-time is not echoed.</li>\n";

  endwhile; endif;


  echo "</ul></li>\n"; ?>


  </ul>



More information about the EventCalendar mailing list