[EventCalendar] issue with month

Rick Boatright rboatright at gmail.com
Sun Feb 8 20:56:10 UTC 2009


on the other hand, I wouldn't have done that.  Why didn't you just change
the css for caption to put it top and center rather than changing the
code??????
Rick

On Sun, Feb 8, 2009 at 2:54 PM, Rick Boatright <rboatright at gmail.com> wrote:

> The previous and next are in template-functions.php
> the javascript on the button calls a FUNCTION which is ajax-ed in instead
> of refreshing the entire page.
>
> If you view source after doing a previous or next, you will see BOTH months
> in the source, one visible, one not.
>
> It's actually quite clever.
>
>
> On Sun, Feb 8, 2009 at 1:04 PM, Mike Osterhout <mikeosterhout at gmail.com>wrote:
>
>> Alright I was able to hack the code to get it to work better with my
>> theme.
>>
>> I changed this section:
>> // Make a table for this month.
>>   $title = sprintf(
>>       __('View posts for %1$s %2$s'),
>>       $this->dateobj->month_name(),
>>       $this->dateobj->year_num
>>     );
>>   $result =  '<table
>> id="'.$this->id.'-'.$this->dateobj->month_id().'">'."\n"
>>     . '<caption>'
>>     . '<a href="' . $this->dateobj->month_link($this->show_only_events)
>>     . '" title="' . $title . '">'
>>     . $this->dateobj->month_name() . ' ' . $this->dateobj->year_num .
>> "</a>"
>>     . "</caption>\n"
>>     . $this->_thead
>>     . "<tbody>\n" . $monthstr . "</tbody>\n</table>\n";
>>   return $result;
>>  }
>>
>>
>> To This:--- Notice I moved the caption to the top and center aligned it.
>> However this breaks the php code and doesnt update the caption on previous
>> next.
>> You can check it out at http://www.aquaculturetalk.com. I am guessing it
>> is because I have <caption> by itself now, but my PHP skills are very
>> minimal to say the least.
>>
>> // Make a table for this month.
>>   $title = sprintf(
>>       __('View posts for %1$s %2$s'),
>>       $this->dateobj->month_name(),
>>       $this->dateobj->year_num
>>     );
>>   $result = '<caption>'
>>     . '<table id="'.$this->id.'-'.$this->dateobj->month_id().'">
>>       <div align="center">'."\n"
>>     . '<a href="' . $this->dateobj->month_link($this->show_only_events)
>>     . '" title="' . $title . '">'
>>     . $this->dateobj->month_name() . ' ' . $this->dateobj->year_num .
>> "</a>"
>>     . "</div>
>>       </caption>\n"
>>     . $this->_thead
>>     . "<tbody>\n" . $monthstr . "</tbody>\n</table>\n";
>>   return $result;
>>  }
>>
>>
>>
>> _______________________________________________
>> Blog: http://wpcal.firetree.net/
>> EventCalendar at firetree.net mailing list
>> Unsubscribe: http://penguin.firetree.net/eventcalendar
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20090208/86cdd7f6/attachment.htm


More information about the EventCalendar mailing list