• Hi,

    I am trying to change the content that is shown on the calendar-full.php. I am using this function to print it:

    echo EM_Events::output($cell_events,array('scope'=>'future', 'format'=>"<li><a href=\"#_EVENTURL?cid={$post->ID}\">#_24HSTARTTIME</a></li>"));

    The problem is, I want to implement timezones for each user, so if the user has configured a timezone, the start time should be showed changed accordingly. How can I do that? The idea is instead of #_24HSTARTTIME I want to print that value but with the time difference added.

    I thought maybe modifying the variable $cell_events that gets passed to output. The problem is, this is not an array with the info to print, I think it is an array of objects. I don’t know the consequences of changing the time of the events objects (maybe the time gets changed for other parts of the plugin that use these objects? maybe that change gets saved to the database?).

    So, any idea to achieve what I want?

    Thanks.

    http://wordpress.org/plugins/events-manager/

Viewing 1 replies (of 1 total)
  • Hiya,

    You’d probably need to get the output for use in PHP instead and then modify the time from there, changing the date that way.

    Otherwise, you’d need to create your own placeholder to use instead of #_24HRSTARTTIME.

    Thanks,
    Phil

Viewing 1 replies (of 1 total)
  • The topic ‘Modifying the content shown by the calendar’ is closed to new replies.