Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter('em_event_output_placeholder','my_em_placeholder_mod',1,3);
- function my_em_placeholder_mod($replace, $EM_Event, $result){
- if ( $result == '#_EVENTTIMES' ) {
- if( !$EM_Event->event_all_day ){
- $time_format = ( get_option('dbem_time_format') ) ? get_option('dbem_time_format'):get_option('time_format');
- if($EM_Event->event_start_time != $EM_Event->event_end_time ){
- $replace = date_i18n($time_format, $EM_Event->start). get_option('dbem_times_Separator') . date_i18n($time_format, $EM_Event->end);
- }else{
- $replace = date_i18n($time_format, $this->start);
- }
- }else{
- $replace = get_option('dbem_event_all_day_message');
- }
- }
- return $replace;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement