cer0c
Forum Replies Created
-
Hi all,
I’ve found version 5 of calendar-small.php, see code block below. Which gives me back the “old” small calendar, when placed in
../wp-content/themes/my-child-theme/plugins/events-manager/templates
<?php /* * This file contains the HTML generated for small calendars. You can copy this file to yourthemefolder/plugins/events-manager/templates and modify it in an upgrade-safe manner. * Note that leaving the class names for the previous/next links will keep the AJAX navigation working. * There are two variables made available to you: */ /* @var array $calendar - contains an array of information regarding the calendar and is used to generate the content */ /* @var array $args - the arguments passed to EM_Calendar::output() */ $EM_DateTime = new EM_DateTime($calendar['month_start'], 'UTC'); ?> <table class="em-calendar"> <thead> <tr> <td>" rel="nofollow"><<</td> <td class="month_name" colspan="5"><?php echo esc_html($EM_DateTime->i18n(get_option('dbem_small_calendar_month_format'))); ?></td> <td>" rel="nofollow">>></td> </tr> </thead> <tbody> <tr class="days-names"> <td><?php echo implode('</td><td>',$calendar['row_headers']); ?></td> </tr> <tr> <?php $cal_count = count($calendar['cells']); $col_count = $count = 1; //this counts collumns in the $calendar_array['cells'] array $col_max = count($calendar['row_headers']); //each time this collumn number is reached, we create a new collumn, the number of cells should divide evenly by the number of row_headers foreach($calendar['cells'] as $date => $cell_data ){ $class = ( !empty($cell_data['events']) && count($cell_data['events']) > 0 ) ? 'eventful':'eventless'; if(!empty($cell_data['type'])){ $class .= "-".$cell_data['type']; } ?> <td class="<?php echo esc_attr($class); ?>"> <?php if( !empty($cell_data['events']) && count($cell_data['events']) > 0 ): ?> " title="<?php echo esc_attr($cell_data['link_title']); ?>"><?php echo esc_html(date('j',$cell_data['date'])); ?> <?php else:?> <?php echo esc_html(date('j',$cell_data['date'])); ?> <?php endif; ?> </td> <?php //create a new row once we reach the end of a table collumn $col_count= ($col_count == $col_max ) ? 1 : $col_count+1; echo ($col_count == 1 && $count < $cal_count) ? '</tr><tr>':''; $count ++; } ?> </tr> </tbody> </table>
- This reply was modified 1 year, 10 months ago by cer0c.
Hi April,
Can you matbe copy the code into your reply?
Thanks in advance,
Bart
Hi TreeTrail,
I would be happy to give that a try, but where can I find calendar-small.php?
No difference with the latest version.
I’ve tried a simple page with just the shortcode [events_calendar] under the Twenty Twenty Two and the Astra theme. Both produce a rubbish page starting with two massive arrows pointing left and right. Totally useless…
Forum: Themes and Templates
In reply to: [Astra] mobile menu (hamburger) toggle not respondingThank you very much Herman.
I’ve been meaning to deactivate Autoptimize in favour of W3 Total Cache for some time and have just done this; it’s working fine now. Thank again.Hi Champ Camba,
Thank you for coming back to me. I’m new to this site and can’t see how to attach a screen shot.Hi Everyone,
I’m a first timer here and a new utimate member user. Like all of you I’ve been roaming for a solution to the ‘Invalid nonce’ and I think I’ve found it:
Go to the Ultimate Member Settings and under the ‘Misc’ tab, tick ‘Disable Cache User Profile’ and don’t forget to Save Changes.I’m running W3 Total Cache and suspect that the Ultimate Member caching is clashing with it.
I hope doing this will fix it for all of you. let me know how you get on.