![]() Server : LiteSpeed System : Linux premium84.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : claqxcrl ( 523) PHP Version : 8.1.32 Disable Function : NONE Directory : /home/claqxcrl/confenda.com/wp-content/themes/beevent/functions/ |
<?php /** * @package WordPress * @subpackage beevent * @since beevent 4.1 */ function beevent_footer(){ global $smof_data, $beevent_meta, $footer_layout; /* Footer Get */ if(isset($beevent_meta->_cms_footer) && $beevent_meta->_cms_footer) : if(isset($beevent_meta->_cms_footer_layout)) : $smof_data['footer_layout'] = $beevent_meta->_cms_footer_layout; $footer_layout = $smof_data['footer_layout']; endif; endif; $bevent_footer= beevent_get_option('footer_style'); if($footer_layout == '' && $bevent_footer=='footer_style_1'): echo beevent_footer1(); elseif($footer_layout == '' && $bevent_footer == 'footer_style_2' ): echo beevent_footer2(); elseif($footer_layout == '' && $bevent_footer == 'footer_style_3' ): echo beevent_footer3(); elseif( $footer_layout == '1' && $bevent_footer == 'footer_style_1'): echo beevent_footer1(); elseif( $footer_layout == '2' && $bevent_footer == 'footer_style_1'): echo beevent_footer2(); elseif( $footer_layout == '3' && $bevent_footer == 'footer_style_1'): echo beevent_footer3(); elseif( $footer_layout == '1' && $bevent_footer == 'footer_style_2'): echo beevent_footer1(); elseif( $footer_layout == '2' && $bevent_footer == 'footer_style_2'): echo beevent_footer2(); elseif( $footer_layout == '3' && $bevent_footer == 'footer_style_3'): echo beevent_footer3(); elseif( $footer_layout == '1' && $bevent_footer == ''): echo beevent_footer1(); elseif( $footer_layout == '2' && $bevent_footer == ''): echo beevent_footer2(); elseif( $footer_layout == '3' && $bevent_footer == ''): echo beevent_footer3(); else : echo beevent_footer1(); endif; } function beevent_footer1() { ?> <footer class="secondary-bg padding_none"> <div class="container"> <div class="row"> <div class="col-md-12"> <div class="footer-social-tab"> <ul> <?php $theme_social_facebook = beevent_get_option('footer_facebook'); if(!empty($theme_social_facebook)) : ?> <li><a href="<?php echo esc_url($theme_social_facebook); ?>" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_twitter = beevent_get_option('footer_twitter'); if(!empty($theme_social_twitter)) : ?> <li><a href="<?php echo esc_url($theme_social_twitter); ?>" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_linkedin = beevent_get_option('footer_linkedin'); if(!empty($theme_social_linkedin)) : ?> <li><a href="<?php echo esc_url($theme_social_linkedin); ?>" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_Instagram = beevent_get_option('footer_instagram'); if(!empty($theme_social_Instagram)) : ?> <li><a href="<?php echo esc_url($theme_social_Instagram); ?>" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_google = beevent_get_option('footer_google'); //if(!empty($theme_social_google)) : ?> <!-- <li><a href="<?php //echo esc_url($theme_social_google); ?>"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li> --> <?php //endif; ?> <?php $theme_social_pinterest = beevent_get_option('footer_pinterest'); if(!empty($theme_social_pinterest)) : ?> <li><a href="<?php echo esc_url($theme_social_pinterest); ?>" target="_blank"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_whatsapp = beevent_get_option('footer_whatsapp_link'); if(!empty($theme_social_whatsapp)) : ?> <li><a href="<?php echo esc_url($theme_social_whatsapp); ?>" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_youtube = beevent_get_option('footer_youtube'); if(!empty($theme_social_youtube)) : ?> <li><a href="<?php echo esc_url($theme_social_youtube); ?>" target="_blank"><i class="fa fa-youtube" aria-hidden="true"></i></a></li> <?php endif; ?> </ul> </div> </div> </div> </div> <div class="copyright fourth-bg"> <div class="container"> <div class="row"> <div class="col-md-12"> <?php $copyrights = beevent_get_option('footer_copyrights'); if(!empty($copyrights)) : echo wp_kses_post($copyrights); endif; ?> </div> </div> </div> </div> </footer> <?php } function beevent_footer2() { ?> <footer class="secondary-bg footer-pd"> <div class="container"> <div class="row"> <div class="col-md-4 col-md-push-4 text-center"> <div class="footer_logo logo"> <?php $beevent_header_logo = beevent_get_option( 'site_logo' ); if (!empty($beevent_header_logo['url'])){ echo '<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'beevent' ) ).'" rel="home" ><img src="'.esc_url($beevent_header_logo['url']).'"></a>'; } else{ $get_name = esc_html(get_bloginfo('name', 'beevent')); echo '<h3><a href="'.esc_url( home_url( '/' ) ).'">'.esc_html($get_name).'</a></h3>'; } ?> </div> </div> <div class="col-md-4 col-md-push-4"> <ul class="social_links"> <?php $theme_social_facebook = beevent_get_option('footer_facebook'); if(!empty($theme_social_facebook)) : ?> <li><a href="<?php echo esc_url($theme_social_facebook); ?>" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_twitter = beevent_get_option('footer_twitter'); if(!empty($theme_social_twitter)) : ?> <li><a href="<?php echo esc_url($theme_social_twitter); ?>" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_linkedin = beevent_get_option('footer_linkedin'); if(!empty($theme_social_linkedin)) : ?> <li><a href="<?php echo esc_url($theme_social_linkedin); ?>" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_Instagram = beevent_get_option('footer_instagram'); if(!empty($theme_social_Instagram)) : ?> <li><a href="<?php echo esc_url($theme_social_Instagram); ?>" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_pinterest = beevent_get_option('footer_pinterest'); if(!empty($theme_social_pinterest)) : ?> <li><a href="<?php echo esc_url($theme_social_pinterest); ?>" target="_blank"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_whatsapp = beevent_get_option('footer_whatsapp_link'); if(!empty($theme_social_whatsapp)) : ?> <li><a href="<?php echo esc_url($theme_social_whatsapp); ?>" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_youtube = beevent_get_option('footer_youtube'); if(!empty($theme_social_youtube)) : ?> <li><a href="<?php echo esc_url($theme_social_youtube); ?>" target="_blank"><i class="fa fa-youtube" aria-hidden="true"></i></a></li> <?php endif; ?> </ul> </div> <div class="col-md-4 col-md-pull-8"> <?php $copyrights = beevent_get_option('footer_copyrights'); if(!empty($copyrights)) : echo wp_kses_post($copyrights); endif; ?> </div> </div> </div> </footer> <?php } function beevent_footer3() { ?> <footer class="secondary-bg footer-td"> <div class="container"> <div class="row"> <div class="col-md-3 popular-link"> <h5><?php echo esc_html_e('Popular Links', 'beevent'); ?></h5> <?php wp_nav_menu( array('menu' =>'footer menu', 'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>') );?> </div> <div class="col-md-5 latest-newpost"> <h5><?php echo esc_html_e('Latest Post', 'beevent'); ?></h5> <ul class="latest-post"> <?php $loop = new WP_Query( array('post_type' => 'post', 'post_status' => 'publish','posts_per_page'=>3)); while ($loop->have_posts()) : $loop->the_post(); ?> <li class="post-wp"> <div class="post-img-wp"> <a href="<?php the_permalink(); ?>"> <?php echo '<div class="post_img">'; the_post_thumbnail('beevent-blog-grid', array('class' => 'img-responsive center-block')); echo '</div>'; ?> </a> </div> <div class="content"> <h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4> <p><i class="fa fa-calendar"></i><?php echo get_the_date(); ?> </p> </div> </li> <?php endwhile; wp_reset_postdata(); ?> </ul> </div> <div class="col-md-4 footer-news"> <?php $theme_social_facebook = beevent_get_option('footer_facebook'); $theme_social_twitter = beevent_get_option('footer_twitter'); $theme_social_linkedin = beevent_get_option('footer_linkedin'); $theme_social_Instagram = beevent_get_option('footer_instagram'); $theme_social_google = beevent_get_option('footer_google'); $theme_social_pinterest = beevent_get_option('footer_pinterest'); if(!empty($theme_social_facebook) || !empty($theme_social_twitter) || !empty($theme_social_linkedin) || !empty($theme_social_Instagram) || !empty($theme_social_google) || !empty($theme_social_pinterest)) { ?> <h5 class="social-title"><?php echo esc_html_e('Social Links', 'beevent'); ?></h5> <?php } ?> <ul class="social_links"> <?php $theme_social_facebook = beevent_get_option('footer_facebook'); if(!empty($theme_social_facebook)) : ?> <li><a href="<?php echo esc_url($theme_social_facebook); ?>" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_twitter = beevent_get_option('footer_twitter'); if(!empty($theme_social_twitter)) : ?> <li><a href="<?php echo esc_url($theme_social_twitter); ?>" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_linkedin = beevent_get_option('footer_linkedin'); if(!empty($theme_social_linkedin)) : ?> <li><a href="<?php echo esc_url($theme_social_linkedin); ?>" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_Instagram = beevent_get_option('footer_instagram'); if(!empty($theme_social_Instagram)) : ?> <li><a href="<?php echo esc_url($theme_social_Instagram); ?>" target="_blank"><i class="fa fa-instagram" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_google = beevent_get_option('footer_google'); if(!empty($theme_social_google)) : ?> <li><a href="<?php echo esc_url($theme_social_google); ?>" target="_blank"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_pinterest = beevent_get_option('footer_pinterest'); if(!empty($theme_social_pinterest)) : ?> <li><a href="<?php echo esc_url($theme_social_pinterest); ?>" target="_blank"><i class="fa fa-pinterest-p" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_whatsapp = beevent_get_option('footer_whatsapp_link'); if(!empty($theme_social_whatsapp)) : ?> <li><a href="<?php echo esc_url($theme_social_whatsapp); ?>" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i></a></li> <?php endif; ?> <?php $theme_social_youtube = beevent_get_option('footer_youtube'); if(!empty($theme_social_youtube)) : ?> <li><a href="<?php echo esc_url($theme_social_youtube); ?>" target="_blank"><i class="fa fa-youtube" aria-hidden="true"></i></a></li> <?php endif; ?> </ul> <div class="col-sm-12"> <h5><?php echo esc_html_e('Subscribe to newsletter','beevent'); ?></h5> <?php echo do_shortcode('[mc4wp_form id="1052"]'); ?> </div> </div> </div> </div> </footer> <footer class="secondary-bg footer-sd"> <div class="container"> <div class="row"> <div class="col-md-3"> <div class="footer_logo logo"> <?php $beevent_header_logo = beevent_get_option( 'site_logo' ); if (!empty($beevent_header_logo['url'])){ echo '<a href="'.esc_url( home_url( '/' ) ).'" title="'.esc_attr( get_bloginfo( 'name', 'beevent' ) ).'" rel="home" ><img src="'.esc_url($beevent_header_logo['url']).'"></a>'; } else{ $get_name = esc_html(get_bloginfo('name', 'beevent')); echo '<h3><a href="'.esc_url( home_url( '/' ) ).'">'.esc_html($get_name).'</a></h3>'; } ?> </div> </div> <div class="col-md-9 copyright-text"> <?php $copyrights = beevent_get_option('footer_copyrights'); if(!empty($copyrights)) : echo wp_kses_post($copyrights); endif; ?> </div> </div> </div> </footer> <?php }