Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. create folders plugins > events-manager > templates within your current theme directory.
- 2. go to wp-content > plugins > events-manager > templates > templates and copy php file calendar-small.php
- 3. paste calendar-small.php to your newly created EM folders within your theme then insert this snippet
- if ( !empty($cell_data['events']) ){
- foreach( $cell_data['events'] as $EM_Event ){
- $spaces = $EM_Event->output("#_BOOKEDSPACES/#_AVAILABLESPACES/#_SPACES");
- }
- $spaces = " - ".$spaces;
- }
- before
- $class = ( !empty($cell_data['events']) && count($cell_data['events']) > 0 ) ? 'eventful':'eventless';
- then
- replace
- <a href="<?php echo esc_url($cell_data['link']); ?>" title="<?php echo esc_attr($cell_data['link_title']); ?>"><?php echo date('j',$cell_data['date']); ?></a>
- with
- <a href="<?php echo esc_url($cell_data['link']); ?>" title="<?php echo esc_attr($cell_data['link_title'].$spaces); ?>"><?php echo date('j',$cell_data['date']); ?></a>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement