[EventCalendar] issue with month

Mike Osterhout mikeosterhout at gmail.com
Sun Feb 8 21:10:33 UTC 2009


I tried that, I am assuming this is the css to edit, I put everything 
back to normal and added the v-align, still a no go. Do you have any 
other suggestions?

Also do you know why it is showing up the way it is?

#wp-calendar table caption {
vertical-align:top;
  text-align:center;
}

Rick Boatright wrote:
> 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 
> <mailto: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 <mailto: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 <mailto:EventCalendar at firetree.net>
>         mailing list
>         Unsubscribe: http://penguin.firetree.net/eventcalendar
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Blog: http://wpcal.firetree.net/
> EventCalendar at firetree.net mailing list
> Unsubscribe: http://penguin.firetree.net/eventcalendar
>   



More information about the EventCalendar mailing list