• Resolved hastibe

    (@hastibe)


    Right now, we’re listing events using the Grid View with the Minimal skin, which displays beautifully. The only thing we’d like is for it to also display the organizer of the event on the Grid View calendar (or any of the calendars, for that matter), just like how it displays the city below the event name.

    Is there any simple way of achieving this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hastibe

    (@hastibe)

    So, I’ve discovered that I can add the organizer to the calendar view by modifying this file in the plugin (for the view and skin that I’m using): modern-events-calendar-lite > app > skins > grid > render.php, by replacing lines 170 to 185 (for version 4.5.1):

    <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
    <div class="mec-organizer"><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></div>
                </div>
            <?php elseif($this->style == 'clean'): ?>
                <div class="event-grid-t2-head mec-bg-color clearfix">
                    <?php if(isset($settings['multiple_day_show_method']) && $settings['multiple_day_show_method'] == 'all_days') : ?>
                        <div class="mec-event-date"><?php echo date_i18n($this->date_format_clean_1, strtotime($event->date['start']['date'])); ?></div>
                        <div class="mec-event-month"><?php echo date_i18n($this->date_format_clean_2, strtotime($event->date['start']['date'])); ?></div>
                        <?php do_action('display_mec_tad' , $event ); ?>
                    <?php else: ?>
                        <div class="mec-event-month"><?php echo $this->main->date_label($event->date['start'], $event->date['end'], $this->date_format_clean_1.' '.$this->date_format_clean_2); ?></div>
                        <?php do_action('display_mec_tad' , $event ); ?>
                    <?php endif; ?>
                    <div class="mec-event-detail"><?php echo (isset($location['name']) ? $location['name'] : ''); ?></div>
                    <div class="mec-organizer"><?php echo (isset($organizer['name']) ? $organizer['name'] : ''); ?></div>
                </div>

    Obviously, this is less than ideal, though, since it will be overwritten when the plugin is updated. Is there a way to accomplish this using a filter or template, instead?

    Plugin Contributor webnus

    (@webnus)

    Hi,

    What you want to do is customization and we have prepared a developer documentation for your customization. Use this link: https://webnus.net/dox/modern-events-calendar/category/developer-document/

    We explaining to you what you do

    Regards

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show Organizer on Calendar View?’ is closed to new replies.