Accidentally wrecked a plugin template

I accidentally overwrote the content of the single-incsub_event.php template from the plugin. Can you please send another one? Or the code for it? Thanks!

  • Nithin

    Hey JessycaFrederick,

    Can you please send another one? Or the code for it?

    I'm attaching the file, and also the code for it. However, you can always download the plugin from the plugin Homepage, and replace the files too. :slight_smile:
    https://premium.wpmudev.org/project/events-plus/

    The code is as follows:

    <?php
    global $blog_id, $wp_query, $booking, $post, $current_user;
    $event = new Eab_EventModel($post);
    
    get_header( );
    ?>
    	<div id=&quot;primary&quot;>
    		<div id=&quot;content&quot; role=&quot;main&quot;>
                <div class=&quot;event <?php echo Eab_Template::get_status_class($post); ?>&quot; id=&quot;wpmudevevents-wrapper&quot;>
    		<div id=&quot;wpmudevents-single&quot;>
    
                        <?php
                        the_post();
    
                        $start_day = date_i18n('m', strtotime(get_post_meta($post->ID, 'incsub_event_start', true)));
                        ?>
    
                        <div class=&quot;wpmudevevents-header&quot;>
                            <h2><?php echo $event->get_title(); ?></h2>
                            <div class=&quot;eab-needtomove&quot;><div id=&quot;event-bread-crumbs&quot; ><?php echo Eab_Template::get_breadcrumbs($event); ?></div></div>
                            <?php
                            echo Eab_Template::get_rsvp_form($post);
    						echo Eab_Template::get_inline_rsvps($post);
                            ?>
                        </div>
    
                        <hr />
                        <?php
    
                        if ($event->is_premium() && $event->user_is_coming() && !$event->user_paid()) { ?>
    		    <div id=&quot;wpmudevevents-payment&quot;>
    			<?php _e('You haven\'t paid for this event', Eab_EventsHub::TEXT_DOMAIN); ?>
                            <?php echo Eab_Template::get_payment_forms($post); ?>
    		    </div>
                        <?php } ?>
    
                        <?php echo Eab_Template::get_error_notice(); ?>
    
                        <div class=&quot;wpmudevevents-content&quot;>
    			<div id=&quot;wpmudevevents-contentheader&quot;>
                                <h3><?php _e('About this event:', Eab_EventsHub::TEXT_DOMAIN); ?></h3>
    
    			    <div id=&quot;wpmudevevents-user&quot;><?php _e('Created by ', Eab_EventsHub::TEXT_DOMAIN); ?><?php the_author_link();?></div>
    			</div>
    
                            <hr />
    			<div class=&quot;wpmudevevents-contentmeta&quot;>
                                <?php echo Eab_Template::get_event_details($post); //event_details(); ?>
    			</div>
    			<div id=&quot;wpmudevevents-contentbody&quot;>
    			    <?php
    			    	add_filter('agm_google_maps-options', 'eab_autoshow_map_off', 99);
    			    	the_content();
    					remove_filter('agm_google_maps-options', 'eab_autoshow_map_off');
    			    ?>
    			    <?php if ($event->has_venue_map()) { ?>
    			    	<div class=&quot;wpmudevevents-map&quot;><?php echo $event->get_venue_location(Eab_EventModel::VENUE_AS_MAP); ?></div>
    			    <?php } ?>
                            </div>
                            <?php comments_template( '', true ); ?>
                        </div>
                    </div>
            </div>
    	</div>
    </div>
    <?php get_footer('event'); ?>

    I hope this helps. Please let us know if you still need any further assistance. Have a nice day. :slight_smile:

    Kind Regards,
    Nithin