<!-- Start site footer -->
<footer class="site-footer">
<?php
$menu_locations = get_nav_menu_locations();
global $imic_options;
 ?>
       	<div class="container">
    		<div class="site-footer-top">
            <?php if ( is_active_sidebar( 'footer-sidebar' ) ) : ?>
            	<div class="row">
                	<?php dynamic_sidebar('footer-sidebar'); ?>
            		</div>
           	<?php endif;
			$social_switch = $imic_options['footer_social_switch'];
			if($social_switch==1) { $foot_class = 9; } else { $foot_class = 12; }
            $infobar_switch = $imic_options['footer_infobar'];
			if($infobar_switch==1) { ?>
        		<!-- Quick Info -->
        		<div class="quick-info">
                    <div class="row">
                    <div class="col-md-<?php echo $foot_class; ?>">
                        <?php echo do_shortcode($imic_options['website_info']); ?>
                        </div>
                        <?php if($social_switch==1) {
							$socialSites = $imic_options['footer_social_links'];
                                                        if(!empty($socialSites)){
                                                        ?>
                        <div class="col-md-3">
                            <h4><i class="fa fa-clock-o"></i><?php _e(' Socialize with us','framework'); ?></h4>
                            <ul class="social-icons-colored inversed">
                                <?php
								foreach ($socialSites as $key => $value) {
									if (filter_var($value, FILTER_VALIDATE_URL)) {
										$string = substr($key, 3);
										echo '<li class="'.$string.'"><a href="' . esc_url($value) . '" target="_blank"><i class="fa ' . $key . '"></i></a></li>';
									}
								} ?>
                            </ul>
                        </div>
                        <?php }} ?>
                    </div>
            	</div>
                <?php } ?>
                </div>
        		<div class="site-footer-bottom">
            		<div class="row">
                    <?php
            if (!empty($imic_options['footer_copyright_text'])) { ?>
                		<div class="col-md-6 col-sm-6 copyrights-coll">
        					<?php echo $imic_options['footer_copyright_text']; ?>
            			</div>
                        <?php } if (!empty($menu_locations['footer-menu'])) { ?>
                		<div class="col-md-6 col-sm-6 copyrights-colr">
        					<nav class="footer-nav" role="navigation">
                        		<?php wp_nav_menu(array('theme_location' => 'footer-menu', 'container' => '','items_wrap' => '<ul id="%1$s" class="">%3$s</ul>')); ?>
                        	</nav>
            			</div>
                        <?php } ?>
                   	</div>
               	</div>
           	</div>
        </div>
    </footer>
    <!-- End site footer -->
    <?php if ($imic_options['enable_backtotop'] == 1) { 
echo'<a id="back-to-top"><i class="fa fa-angle-double-up"></i></a> ';
 }
$business_email = $imic_options['paypal_email'];
$paypal_currency = $imic_options['paypal_currency'];
$paypal_site = $imic_options['paypal_site'];
$paypal_site = ($paypal_site==1)?"https://www.paypal.com/cgi-bin/webscr":"https://www.sandbox.paypal.com/cgi-bin/webscr";
$event_title = (is_single())?get_the_title():'';
$event_date = get_query_var('event_date');
$event_date_str = strtotime($event_date);
$event_ticket_time = '';
$event_ticket_date = date_i18n(get_option('date_format'), $event_date_str);
$event_time = get_post_meta(get_the_ID(), 'imic_event_start_dt', true);
$event_time_str = strtotime($event_time);
if(is_single())
{
	$event_ticket_time = date_i18n(get_option('time_format'), $event_time_str);
} ?> 
</div>
<!-- Event Directions Popup -->
<div class="quick-info-overlay">
	<div class="quick-info-overlay-left accent-bg">
        <a href="#" class="btn-close"><i class="icon-delete"></i></a>
    	<div class="event-info">
    		<h3 class="event-title"> </h3>
      		<div class="event-address"></div>
            <a href="" class="btn btn-default btn-transparent btn-permalink"><?php _e('Full details','framework'); ?></a>
            <a href="" class="btn btn-default btn-transparent btn-permalink event-directions-link" target="_blank"><?php _e('Get Directions','framework'); ?></a>
        </div>
    </div>
	<div class="quick-info-overlay-right">
      	<div id="event-directions"></div>
    </div>
</div>
<!-- Event Contact Modal Window -->
<div class="modal fade" id="Econtact" tabindex="-1" data-backdrop="static" role="dialog" aria-labelledby="Econtact" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel"><?php _e('Contact Event Manager','framework'); ?> <span class="accent-color"></span></h4>
      </div>
      <div class="modal-body">
        <form id="contact-manager-form" class="paypal-submit-form" method="post">
            <div class="row">
                <div class="col-md-6">
                    <input id="username1" type="text" name="username1" class="form-control" placeholder="<?php _e('First name (Required)','framework'); ?>">
                </div>
                <div class="col-md-6">
                    <input id="lastname1" type="text" name="lastname1" class="form-control" placeholder="<?php _e('Last name','framework'); ?>">
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <input id="email1" type="text" name="email1" class="form-control" placeholder="<?php _e('Your email (Required)','framework'); ?>">
                </div>
                <div class="col-md-6">
                    <input id="phone1" type="text" name="phone1" class="form-control" placeholder="<?php _e('Your phone','framework'); ?>">
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <textarea id="notes1" name="notes1" rows="3" cols="5" class="form-control" placeholder="<?php _e('Additional notes','framework'); ?>"></textarea>
                </div>
            </div>
            <input id="contact-manager" type="button" name="donate" class="btn btn-primary btn-lg btn-block" value="<?php _e('Contact Now','framework'); ?>">
            <div class="message"></div>
        </form>
      </div>
      <div class="modal-footer">
        <p class="small short"><?php echo $imic_options['event_contact_msg']; ?></p>
      </div>
    </div>
  </div>
</div>
<!-- Event Register Tickets -->
<div class="ticket-booking-wrapper">
    <a href="#" class="ticket-booking-close label-danger"><i class="icon icon-delete"></i></a>
    <div class="ticket-booking">
        <div class="container">
            <div class="row">
                <div class="col-md-3">
                    <h3 id="ticket-msg">
                    <?php if(is_single())
										{
										?>
										<strong><?php _e('Print your','framework'); ?></strong> 
                    <span><?php echo __('tickets','framework'); ?></span>
										<?php
                    }
										else
										{
											?>
                    <strong><?php _e('Book your','framework'); ?></strong> 
                    <span><?php echo __('tickets','framework'); ?></span>
                    <?php
										}
										?>
                    </h3>
                    <div id="multi-info-btn"><a style="display:none;" class="btn btn-sm btn-default" href="javascript:void(0);" id="edit-details"><i class="fa fa-arrow-left"></i> <?php _e('Update Personal Details','framework'); ?></a>
                    <?php
										if(is_single()&&get_query_var('ticket'))
										{
											echo '<a class="btn btn-sm btn-default" onclick="window.print()"><i class="fa fa-print"></i> '.esc_html__('Print', 'framework').'</a>';
										}
										?>
                    </div>
                </div>
                <div class="col-md-9">
                    <div class="event-ticket ticket-form">
                    <div class="user-details">
                <form id="user-event-info" class="register-info-event" method="post">
            <div class="row">
                <div class="col-md-6">
                    <input id="username" type="text" name="fname" class="form-control" placeholder="<?php _e('First name (Required)','framework'); ?>">
                </div>
                <div class="col-md-6">
                    <input id="lastname" type="text" name="lname" class="form-control" placeholder="<?php _e('Last name','framework'); ?>">
                    <span style="display:none;" class="ticket-col" id="form-event-date"></span>
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <input id="email" type="text" name="email" class="form-control" placeholder="<?php _e('Your email (Required)','framework'); ?>">
                </div>
                <div class="col-md-6">
                    <input id="phone" type="text" name="phone" class="form-control" placeholder="<?php _e('Your phone','framework'); ?>">
                </div>
            </div>
            <input id="user-info" type="button" name="donate" class="btn btn-primary btn-lg btn-block" value="<?php _e('Next','framework'); ?>">
            <div class="message"></div>
        </form>
        </div>
        <!--Paid Registration-->
        <div class="ticket-details" style="display:none;">
        	<div class="table-responsive">
  				<table class="table tickets-table">
					<thead>
                        <th class="ticket-type"><?php esc_html_e('Ticket', 'framework'); ?></th>
                        <th class="ticket-seat"><?php esc_html_e('Seats Available', 'framework'); ?></th>
                        <th class="ticket-amount"><?php esc_html_e('Amount', 'framework'); echo ' '.$imic_options['paypal_currency']; ?></th>
                        <th class="ticket-select"><?php esc_html_e('Select', 'framework'); ?></th>
                        <th class="ticket-select"><?php esc_html_e('Ticket Amount', 'framework'); echo ' '.$imic_options['paypal_currency']; ?></th>
                    	<th class="ticket-select"><?php esc_html_e('Total Amount', 'framework'); echo ' '.$imic_options['paypal_currency']; ?></th>
               		</thead>
                    <tbody>
                    	<tr>
                        	<td><h4 id="dy-event-ticket-type1"></h4></td>
                            <td><p id="dy-event-ticket-seats1"></p></td>
                            <td><p id="dy-event-ticket-amount1"></p></td>
                            <td><p id="dy-event-ticket-platinum"></p></td>
                            <td><p id="dy-event-platinum-totalamount">0</p></td>
                            <td rowspan="3"><h4 class="tickets-total" id="dy-event-totalamount">0</h4></td>
                      	</tr>
                    	<tr>
                        	<td><h4 id="dy-event-ticket-type2"></h4></td>
                            <td><p id="dy-event-ticket-seats2"></p></td>
                            <td><p id="dy-event-ticket-amount2"></p></td>
                            <td><p id="dy-event-ticket-gold"></p></td>
                            <td><p id="dy-event-gold-totalamount">0</p></td>
                      	</tr>
                    	<tr>
                        	<td><h4 id="dy-event-ticket-type3"></h4></td>
                            <td><p id="dy-event-ticket-seats3"></p></td>
                            <td><p id="dy-event-ticket-amount3"></p></td>
                            <td><p id="dy-event-ticket-silver"></p></td>
                            <td><p id="dy-event-silver-totalamount">0</p></td>
                      	</tr>
                  	</tbody>
                </table>
            </div>
                	<div class="clearfix"></div>
                    <form id="event_registration_form" class="pull-right" action="<?php echo $paypal_site; ?>" method="post">
                        <input type="hidden" name="rm" value="2">
                        <input type="hidden" name="amount" value="">
                        <input type="hidden" name="cmd" value="_xclick">
                        <input type="hidden" name="business" value="<?php echo $business_email; ?>">
                        <input type="hidden" name="currency_code" value="<?php echo $paypal_currency; ?>">
                        <input type="hidden" name="item_name" value="">
                        <input type="hidden" name="item_number" value="">
                        <input type="hidden" name="return" value="'.esc_url($event_url).'" />
                        <input type="submit" class="btn btn-primary" value="<?php esc_html_e('Register'); ?>" id="register-paid-event">
                        <small style="float:left; margin-right:15px; line-height:2.5em; color:#ccc;">
                        <?php echo $imic_options['paypal_message']; ?>
                        </small>
                    </form>
            </div>
            <div class="row">
            </div>
            <div class="message"></div>
        </div>
        <!--Paid Registration Close-->
        <div class="book-ticket" style="display:none;"><div id="event_payment_status" style="display:none;">
        <span id="event_multi_status" class="event_multi_status"></span>
        <span id="adore_event_id"></span>
        <span id="adore_event_title"></span>
        <span id="adore_event_url"></span>
        <span id="adore_event_paypal"></span>
        <span id="adore_event_cdate"></span>
        </div>
                        <div class="event-ticket-left">
                        	<div class="ticket-id"><?php echo get_query_var('ticket'); ?></div>
                            <div class="ticket-handle"></div>
                            <div class="ticket-cuts ticket-cuts-top"></div>
                            <div class="ticket-cuts ticket-cuts-bottom"></div>
                        </div>
                        <div class="event-ticket-right">
                            <div class="event-ticket-right-inner">
                                <div class="row">
                                    <div class="col-md-9 col-sm-9">
                                        <span class="meta-data"><?php _e('Your ticket for','framework'); ?></span>
                                        <h4 id="dy-event-title"><?php echo $event_title; ?> </h4>
                                    </div>
                                    <div class="col-md-3 col-sm-3">
                                        
                                    </div>
                                </div>
                                <div class="event-ticket-info">
                                    <div class="row">
                                        <div class="col">
                                            <p class="ticket-col" id="dy-event-date"><?php echo $event_ticket_date; ?></p>
                                        </div>
                                        <div class="col" id="booking-btn">
                                        <?php if(!is_single()) { ?>
                                            <a id="booking-ticket" href="#" class="btn btn-warning btn btn-block ticket-col book-event-reg"><?php _e('Book','framework'); ?></a>
                                            <?php } else { ?>
                                            <span class="btn btn-success btn btn-block ticket-col"><?php esc_html_e('Booked', 'framework'); ?></span>
                                            <?php } ?>
                                        </div>
                                        <div class="col">
                                            <p id="dy-event-time"><?php _e('Starts','framework'); echo ' '.$event_ticket_time; ?> </p>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-12">
                                        <div class="event-location" id="dy-event-location"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    </div>
                </div>
            </div>
        </div>
   	</div>
</div>
<!-- End Boxed Body -->
<!-- LIGHTBOX INIT -->
<?php			
	if(isset($imic_options['switch_lightbox']) && $imic_options['switch_lightbox']== 0){?>
		<script>
			jQuery(document).ready(function() {
               jQuery("a[data-rel^='prettyPhoto']").prettyPhoto({
				  opacity: <?php if(isset($imic_options['prettyphoto_opacity']) && $imic_options['prettyphoto_opacity']!= ""){ echo $imic_options['prettyphoto_opacity']; } ?>,
				  social_tools: "",
				  deeplinking: false,
				  allow_resize:false,
				  show_title: <?php if(isset($imic_options['prettyphoto_title']) && $imic_options['prettyphoto_title']== 0){ echo 'true'; } else echo 'false'; ?>,
				  theme: '<?php if(isset($imic_options['prettyphoto_theme']) && $imic_options['prettyphoto_theme']!= ""){ echo $imic_options['prettyphoto_theme']; } ?>',
				});
            });
		</script>
	<?php }elseif(isset($imic_options['switch_lightbox']) && $imic_options['switch_lightbox']== 1){ ?>
    	<script>
			jQuery(document).ready(function() {
				jQuery('.format-gallery').magnificPopup({
  					delegate: 'a.magnific-gallery-image', // child items selector, by clicking on it popup will open
  					type: 'image',
					gallery:{enabled:true}
  				// other options
				});
				jQuery('.magnific-image').magnificPopup({ 
  					type: 'image'
					// other options
				});
				jQuery('.magnific-video').magnificPopup({ 
  					type: 'iframe'
					// other options
				});
				jQuery('.title-subtitle-holder-inner').magnificPopup({
  					delegate: 'a.magnific-video', // child items selector, by clicking on it popup will open
  					type: 'iframe',
					gallery:{enabled:true}
  				// other options
				});
			});
		</script>
	<?php }
?>
<?php wp_footer(); ?>
<?php wp_footer(); ?>
 <?php $SpaceBeforeBody = $imic_options['space-before-body'];
    echo $SpaceBeforeBody;
 ?>
</body>
</html>