Current Path : /var/www/html/soar-backup/wp-content/themes/NativeChurch/ |
Current File : /var/www/html/soar-backup/wp-content/themes/NativeChurch/footer.php |
<?php global $imic_options; $show_on_front = get_option('show_on_front'); if ((!is_front_page()) || $show_on_front == 'posts'||(!is_page_template('template-home.php')&&!is_page_template('template-h-second.php')&&!is_page_template('template-h-third.php')&&!is_page_template('template-home-pb.php'))) { echo '</div></div>'; } ?> <?php $options = get_option('imic_options'); ?> <!-- Start Footer --> <?php if ( is_active_sidebar( 'footer-sidebar' ) ) : ?> <footer class="site-footer"> <div class="container"> <div class="row"> <?php dynamic_sidebar('footer-sidebar'); ?> </div> </div> </footer> <?php endif; ?> <footer class="site-footer-bottom"> <div class="container"> <div class="row"> <?php if (!empty($options['footer_copyright_text'])) { echo '<div class="copyrights-col-left col-md-6 col-sm-6">'; ?> <p><?php _e('© ','framework'); echo date('Y '); bloginfo('name'); _e('. ','framework'); echo $options['footer_copyright_text']; ?></p> <?php echo '</div>'; } ?> <div class="copyrights-col-right col-md-6 col-sm-6"> <div class="social-icons"> <?php $socialSites = $imic_options['footer_social_links']; foreach($socialSites as $key => $value) { if (filter_var($value, FILTER_VALIDATE_EMAIL)) { echo '<a href="mailto:' . $value . '"><i class="fa ' . $key . '"></i></a>'; } elseif (filter_var($value, FILTER_VALIDATE_URL)) { echo '<a href="' . $value . '" target="_blank"><i class="fa ' . $key . '"></i></a>'; } elseif($key == 'fa-skype' && $value != '' && $value != 'Enter Skype ID') { echo '<a href="skype:' . $value . '?call"><i class="fa ' . $key . '"></i></a>'; } } ?> </div> </div> </div> </div> </footer> <?php if ($options['enable_backtotop'] == 1) { echo'<a id="back-to-top"><i class="fa fa-angle-double-up"></i></a>'; } ?> </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: <?php if(isset($imic_options['prettyphoto_opt_resize']) && $imic_options['prettyphoto_opt_resize']!= ""){ echo $imic_options['prettyphoto_opt_resize']; } else { echo 'true'; } ?>, 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']; } ?>', }); /*jQuery('.sort-source a').click(function(){ var sortval = jQuery(this).parent().attr('data-option-value'); jQuery(".sort-destination li a").removeAttr('data-rel'); jQuery(".sort-destination li a").attr('data-rel', "prettyPhoto["+sortval+"]"); });*/ }); </script> <?php }elseif(isset($imic_options['switch_lightbox']) && $imic_options['switch_lightbox']== 1){ ?> <script> jQuery(document).ready(function() { jQuery('.format-gallery').each(function(){ jQuery(this).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 } // Google events link target $event_google_open_link = isset($imic_options['event_google_open_link'])?$imic_options['event_google_open_link']:0; if($event_google_open_link == 1) { ?> <script> jQuery(document).ready(function(){ jQuery('a[href^="https://www.google.com/calendar"]').attr('target','_blank'); }); </script> <?php } ?> <?php wp_footer(); ?> <?php $SpaceBeforeBody = $imic_options['space-before-body']; echo $SpaceBeforeBody; ?> </body> <?php $event_id = get_the_ID(); $post_type = get_post_type($event_id); if($post_type=='event') { $event_registration_fee = get_post_meta(get_the_ID(),'imic_event_registration_fee',true); $address1 = get_post_meta($id,'imic_event_address',true); //$address2 = get_post_meta($id,'imic_event_address2',true); $date = get_query_var('event_date'); if(empty($date)){ $date= get_post_meta(get_the_ID(),'imic_event_start_dt',true); } $event_time=get_post_meta(get_the_ID(),'imic_event_start_tm',true); $event_guest_switch = get_post_meta(get_the_ID(),'imic_event_registration_required',true); $event_time = strtotime($event_time); $date = strtotime($date); if(is_user_logged_in()||$event_guest_switch==1) { global $current_user; wp_get_current_user(); $this_email = $current_user->user_email; $this_fname = $current_user->user_firstname; $this_lname = $current_user->user_lastname; $this_username = $current_user->display_name; $this_actualname = ($this_fname=='')?$this_username:$this_fname; ?> <div class="modal fade" id="ticketModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static"> <div class="modal-dialog modal-lg"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title" id="myModalLabel"><?php _e('Your ticket for the ','framework'); echo get_the_title(); ?></h4> </div> <div class="modal-body"> <!-- Event Register Tickets --> <div class="ticket-booking-wrapper"> <div class="ticket-booking"> <div class="event-ticket ticket-form"> <div class="event-ticket-left"> <div class="ticket-id"><?php $event_reg = isset($_REQUEST['item_number'])?$_REQUEST['item_number']:''; if(!empty($event_reg)) { $event_reg = explode('-',$event_reg); echo $event_reg[1]; } ?></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="registerant-info"> <?php echo $this_actualname.' '.$this_lname; ?><br><?php echo $this_email; ?> </span> <span class="meta-data"><?php _e('Event','framework'); ?></span> <h4 id="dy-event-title"><?php echo get_the_title(); ?></h4> </div> <div class="col-md-3 col-sm-3"> <span class="ticket-cost"><?php if($event_registration_fee!=0||$event_registration_fee!='') { echo imic_get_currency_symbol(get_option('paypal_currency_options')).$event_registration_fee; } else { _e('Free','framework'); } ?></span> </div> </div> <div class="event-ticket-info"> <div class="row"> <div class="col"> <p class="ticket-col" id="dy-event-date"><?php echo esc_attr(date_i18n(get_option('date_format'),$date)); ?></p> </div> <div class="col"> <p class="ticket-col event-location" id="dy-event-location"><?php echo $address1; ?></p> </div> <div class="col"> <p id="dy-event-time"><?php _e('Starts ','framework'); echo esc_attr(date_i18n(get_option('time_format'),$event_time)); ?></p> </div> </div> </div> <span class="event-area"><?php //echo $address2; ?></span> <div class="row"> <div class="col-md-12"> </div> </div> </div> </div> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default inverted" data-dismiss="modal">Close</button> <button type="button" class="btn btn-primary" onClick="window.print()">Print</button> </div> </div> </div> </div> <?php } } ?> </html>