Current File : /home/kelaby89/sixpacksecurity.services/wp-content/themes/poket/footer.php
<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
 *
 * @package poket
 */

?>


		<?php global $poket_opt; ?>

			<?php if (!empty($poket_opt['witr_show_hide_shortcode']) && $poket_opt['witr_show_hide_shortcode']==true): ?>		
				<div class="witr_shortcode_area">
					<div class="container ">
						<div class="row witr_shortcode_inner">
							<div class="col-lg-4 col-md-12 col-sm-12">
								<div class="shortcode_content">
									<!-- title -->
									<?php if (!empty($poket_opt['witr_title_shortcode'])): ?>					
										<h2>													
											<?php 
												echo wp_kses($poket_opt['witr_title_shortcode'], array(
													'span' => array(),
													'br' => array(),
													'a' => array(
														'href' => array(),
														'title' => array()										
													),							
												));
											?>														
										</h2>
									<?php endif ?>			
									<!-- content TEXT -->
									<?php if (!empty($poket_opt['witr_content_shortcode'])): ?>
										<p>
											<?php						
												echo wp_kses($poket_opt['witr_content_shortcode'], array(
													'span' => array(),
													'a' => array(
														'href' => array(),
														'title' => array()										
													),
													'b' => array(),
													'p' => array(),
													'strong' => array(),
													'em' => array(),
													'br' => array(),
												));	
											?>
										</p>
									<?php endif ?>					
								</div>
							</div>
								
							<?php if (!empty($poket_opt['witr_footre_shortcode'])): ?>
								<div class="col-lg-8 col-md-12 col-sm-12">
									<div class="witr_shortcode_form">		
										<?php echo do_shortcode($poket_opt['witr_footre_shortcode']); ?>
									</div>
								</div>
							<?php endif ?>
											
						</div>		
					</div>	
				</div>
				</div>
			<?php endif; ?>
		
		
		<?php if (!empty($poket_opt['poket_address_hide']) && $poket_opt['poket_address_hide']==true): ?>				
			
			
			<!-- FOOTER TOP ADDRESS AREA -->
				<div class="top-address-area">
					<div class="<?php if(!empty($poket_opt['poket_footer_box_layout']) && $poket_opt['poket_footer_box_layout']=="footer_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
						<div class="row">
							<div class="col-md-12">
							
								<div class="footer-top-address">
								<?php if(!empty($poket_opt['poket_address_logo_style']) && $poket_opt['poket_address_logo_style']=="s_logo_s2"){?>
									<!-- ADDRESS IMAGE LOGO -->
									<?php if (!empty($poket_opt['poket_address_logo'])): ?>
										<div class="top_address_logo text-center">
											<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url($poket_opt['poket_address_logo']['url']); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /></a>
										</div>					
									<?php endif ?>
								<?php }else{?>
									<!-- SOCIAL TEXT LOGO -->
									<?php if (!empty($poket_opt['poket_address_title_text'])): ?>					
										<h2 class="text-center">													
											<?php 
												echo wp_kses($poket_opt['poket_address_title_text'], array(
													'span' => array(),
												));
											?>														
										</h2>
									<?php endif ?>	
								<?php } ?>					
								</div>
									
								<div class="top_address_content">
									<?php if (!empty($poket_opt['poket_address_road'])): ?>
										<span><i class="icofont-google-map"></i><?php echo esc_html($poket_opt['poket_address_road']); ?></span>
									<?php endif; ?>	
									<?php if (!empty($poket_opt['poket_address_email'])): ?>
										<a href="<?php esc_attr_e('mailto:','poket')?><?php echo esc_html($poket_opt['poket_address_email']); ?>"><i class="icofont-envelope"></i><?php echo esc_html($poket_opt['poket_address_email']); ?></a>
									<?php endif; ?>	
									<?php if (!empty($poket_opt['poket_address_mobile'])): ?>						
										<a href="<?php esc_attr_e('tel:','poket')?><?php echo esc_html($poket_opt['poket_address_mobile']); ?>"><i class="icofont-ui-call"></i><?php echo esc_html($poket_opt['poket_address_mobile']); ?></a>
									<?php endif; ?>							
								</div>
							</div>
						</div>
					</div>
				</div>
			<!-- END FOOTER TOP ADDRESS AREA -->
			<?php endif; ?>

		<?php if (!empty($poket_opt['poket_social_hide']) && $poket_opt['poket_social_hide']==true): ?>	
			
			<!-- FOOTER TOP AREA -->
				<div class="footer-top">
					<div class="<?php if(!empty($poket_opt['poket_footer_box_layout']) && $poket_opt['poket_footer_box_layout']=="footer_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
						<div class="row">
							<div class="col-md-12">
								<div class="footer-top-inner">
								
								<?php if(!empty($poket_opt['poket_social_logo_style']) && $poket_opt['poket_social_logo_style']=="s_logo_s2"){?>
								<!-- SOCIAL IMAGE LOGO -->
								<?php if (!empty($poket_opt['poket_social_logo'])): ?>
									<div class="social_logo text-center">
										<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url($poket_opt['poket_social_logo']['url']); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name' ) ); ?>" /></a>
									</div>					
								<?php endif ?>
								<?php }else{?>
								<!-- SOCIAL TEXT LOGO -->
								<?php if (!empty($poket_opt['poket_social_title_text'])): ?>					
									<h2 class="text-center">													
										<?php 
											echo wp_kses($poket_opt['poket_social_title_text'], array(
												'span' => array(),
											));
										?>														
									</h2>
								<?php endif ?>	
								<?php } ?>	
									
									
								<!-- FOOTER COPYRIGHT TEXT -->
								<?php if (!empty($poket_opt['poket_social_text'])): ?>
									<p class="text-center">
										<?php						
											echo wp_kses($poket_opt['poket_social_text'], array(
												'span' => array(),
												'a' => array(
													'href' => array(),
													'title' => array()										
												),
												'b' => array(),
												'p' => array(),
												'strong' => array(),
												'em' => array(),
												'br' => array(),
											));	
										?>						
									</p>
								<?php endif ?>							
				
									<div class="footer-social-icon">					
										<?php 
											foreach($poket_opt['poket_social_icons'] as $key=>$value ) { 
											
												if($value != ''){						
													 echo '<a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="icofont-'.esc_attr($key).'"></i></a>';
												}
											}
										?>							
					
									</div>
								</div>
							</div>
						</div>		
					</div>
				</div>
			<!-- END FOOTER TOP AREA -->
			<?php endif; ?>
			
	
		<!-- middle and bottom AREA -->
		<div class="witrfm_area">		
		<?php if (!empty($poket_opt['poket_widget_hide']) && $poket_opt['poket_widget_hide']==true): ?>				
		
			<!-- FOOTER MIDDLE AREA -->
				<?php 
				$footer_widget_1 = !empty($poket_opt['poket_widget_column_count1'])? $poket_opt['poket_widget_column_count1'] : 3; 
				$footer_widget_2 = !empty($poket_opt['poket_widget_column_count2'])? $poket_opt['poket_widget_column_count2'] : 3; 
				$footer_widget_3 = !empty($poket_opt['poket_widget_column_count3'])? $poket_opt['poket_widget_column_count3'] : 3; 
				$footer_widget_4 = !empty($poket_opt['poket_widget_column_count4'])? $poket_opt['poket_widget_column_count4'] : 3;
				?>
						<div class="footer-middle"> 
							<div class="<?php if(!empty($poket_opt['poket_footer_box_layout']) && $poket_opt['poket_footer_box_layout']=="footer_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
								<div class="row">
								<?php if ( is_active_sidebar( 'twr-footer-1') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_1 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-1' ); ?>
									</div>									
								<?php }  if ( is_active_sidebar( 'twr-footer-2') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_2 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-2' ); ?>
									</div>									
								<?php }  if ( is_active_sidebar( 'twr-footer-3') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_3 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-3' ); ?>
									</div>									
								<?php }  if ( is_active_sidebar( 'twr-footer-4') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_4 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-4' ); ?>
									</div>									
								<?php } ?>								
								</div>
							</div>
						</div>
						
			
			<!-- END FOOTER MIDDLE AREA -->
				<?php endif;

			if (!empty($poket_opt['poket_copyright_hide']) && $poket_opt['poket_copyright_hide']==true): ?>				
			
			<!-- FOOTER BOTTOM AREA -->
			<div class="footer-bottom">
				<div class="<?php if(!empty($poket_opt['poket_footer_box_layout']) && $poket_opt['poket_footer_box_layout']=="footer_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
					<div class="row">
					
						<!-- FOOTER COPYRIGHT STYLE 1 -->		
						<?php			
						if(!empty($poket_opt['poket_footer_copyright_style']) && $poket_opt['poket_footer_copyright_style']=="copy_s1"){?>
						
							<div class="col-md-12 footer_style_1">			
								<div class="copy-right-text text-center">
									<!-- FOOTER COPYRIGHT TEXT -->
									<?php if (!empty($poket_opt['poket_copyright_text'])): ?>
										<p>
											<?php						
												echo wp_kses($poket_opt['poket_copyright_text'], array(
													'span' => array(),
													'a' => array(
														'href' => array(),
														'title' => array()										
													),
													'b' => array(),
													'p' => array(),
													'strong' => array(),
													'em' => array(),
													'br' => array(),
												));	
											?>
										</p>
									<?php endif ?>					
								</div>
							</div>
						<!-- FOOTER COPYRIGHT STYLE 2 -->		
						<?php }elseif(!empty($poket_opt['poket_footer_copyright_style']) && $poket_opt['poket_footer_copyright_style']=="copy_s2"){?>
						
							<div class="col-lg-6 col-md-6  col-sm-12">
								<div class="copy-right-text">
									<!-- FOOTER COPYRIGHT TEXT -->
									<?php if (!empty($poket_opt['poket_copyright_text'])): ?>
										<p>
											<?php						
												echo wp_kses($poket_opt['poket_copyright_text'], array(
													'span' => array(),
													'a' => array(
														'href' => array(),
														'title' => array()										
													),
													'b' => array(),
													'p' => array(),
													'strong' => array(),
													'em' => array(),
													'br' => array(),
												));	
											?>
										</p>
									<?php endif ?>	
								</div>
							</div>
							<div class="col-lg-6 col-md-6  col-sm-12">				
								<div class="footer-menu">
									<!-- FOOTER COPYRIGHT MENU -->
									 <?php if ( has_nav_menu( 'menu-2' ) ) {
											wp_nav_menu( array(
											'theme_location' => 'menu-2',
											'menu_class' => 'text-right',
											'fallback_cb' => false,
											'container' => '',
											) );
									 } ?> 				
								</div>
							</div>
						<!-- FOOTER COPYRIGHT STYLE 3 -->		
						<?php }elseif(!empty($poket_opt['poket_footer_copyright_style']) && $poket_opt['poket_footer_copyright_style']=="copy_s3"){?>
						
							<div class="col-lg-6 col-md-6  col-sm-12 footer_style_3">
								<div class="footer-menu">
									<!-- FOOTER COPYRIGHT MENU -->				
									 <?php if ( has_nav_menu( 'menu-2' ) ) {
											wp_nav_menu( array(
											'theme_location' => 'menu-2',
											'menu_class' => 'text-left',
											'fallback_cb' => false,
											'container' => '',
											) );
									 } ?> 
								</div>
							</div>		
						
							<div class="col-lg-6 col-md-6  col-sm-12 footer_style_3">
								<div class="copy-right-text text-right">
									<!-- FOOTER COPYRIGHT TEXT -->
									<?php if (!empty($poket_opt['poket_copyright_text'])): ?>
										<p>
											<?php						
												echo wp_kses($poket_opt['poket_copyright_text'], array(
													'span' => array(),
													'a' => array(
														'href' => array(),
														'title' => array()										
													),
													'b' => array(),
													'p' => array(),
													'strong' => array(),
													'em' => array(),
													'br' => array(),
												));	
											?>
										</p>
									<?php endif ?>	
								</div>
							</div>
							
						<!-- FOOTER COPYRIGHT STYLE 4 -->		
						<?php }elseif(!empty($poket_opt['poket_footer_copyright_style']) && $poket_opt['poket_footer_copyright_style']=="copy_s4"){?>
						
							<div class="col-lg-6 col-md-6  col-sm-12">
								<div class="copy-right-text">
									<!-- FOOTER COPYRIGHT TEXT -->
									<?php if (!empty($poket_opt['poket_copyright_text'])): ?>
										<p>
											<?php						
												echo wp_kses($poket_opt['poket_copyright_text'], array(
													'span' => array(),
													'a' => array(
														'href' => array(),
														'title' => array()										
													),
													'b' => array(),
													'p' => array(),
													'strong' => array(),
													'em' => array(),
													'br' => array(),
												));	
											?>
										</p>
									<?php endif ?>	
								</div>
							</div>
							<div class="col-lg-6 col-md-6  col-sm-12">				
								<div class="footer-menu">
									<!-- FOOTER COPYRIGHT SOCIAL MENU -->
									<ul class="text-right">
										<?php 
											foreach($poket_opt['poket_social_icons'] as $key=>$value ) { 
											
												if($value != ''){						
													 echo '<li><a class="'.esc_attr($key).' social-icon" href="'.esc_url($value).'" title="'.ucwords(esc_attr($key)).'" ><i class="icofont-'.esc_attr($key).'"></i></a></li>';
												}
											}
										?>							
									
									</ul>				
								</div>
							</div>
						<?php } // end copyright style ?>			
					</div>
				</div>
			</div>
			<!-- END FOOTER BOTTOM AREA -->
			
			<?php else:
			
			/* -- Defult Footer  */
			if (!empty($poket_opt['poket_dfaultwidget_hide']) && $poket_opt['poket_dfaultwidget_hide']==true): 
			else: ?>
			<!-- FOOTER MIDDLE AREA -->
				<?php 
				$footer_widget_1 = !empty($poket_opt['poket_widget_column_count1'])? $poket_opt['poket_widget_column_count1'] : 3; 
				$footer_widget_2 = !empty($poket_opt['poket_widget_column_count2'])? $poket_opt['poket_widget_column_count2'] : 3; 
				$footer_widget_3 = !empty($poket_opt['poket_widget_column_count3'])? $poket_opt['poket_widget_column_count3'] : 3; 
				$footer_widget_4 = !empty($poket_opt['poket_widget_column_count4'])? $poket_opt['poket_widget_column_count4'] : 3;
				if ( is_active_sidebar( 'twr-footer-1') || is_active_sidebar( 'twr-footer-2') || is_active_sidebar( 'twr-footer-3') || is_active_sidebar( 'twr-footer-4') ) {
				?>
						<div class="footer-middle"> 
							<div class="<?php if(!empty($poket_opt['poket_footer_box_layout']) && $poket_opt['poket_footer_box_layout']=="footer_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
								<div class="row">
								<?php if ( is_active_sidebar( 'twr-footer-1') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_1 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-1' ); ?>
									</div>									
								<?php }  if ( is_active_sidebar( 'twr-footer-2') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_2 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-2' ); ?>
									</div>									
								<?php }  if ( is_active_sidebar( 'twr-footer-3') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_3 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-3' ); ?>
									</div>									
								<?php }  if ( is_active_sidebar( 'twr-footer-4') ) { ?>
									<div class="col-sm-12 col-md-6  col-lg-<?php echo esc_attr( $footer_widget_4 ); ?>">
										<?php dynamic_sidebar( 'twr-footer-4' ); ?>
									</div>									
								<?php } ?>								
								</div>
							</div>
						</div>
						
				<?php } ?>
			<!-- END FOOTER MIDDLE AREA -->		
			

			<!-- FOOTER BOTTOM AREA -->
			<div class="footer-bottom">
				<div class="<?php if(!empty($poket_opt['poket_footer_box_layout']) && $poket_opt['poket_footer_box_layout']=="footer_full"){echo esc_attr('container-fluid');}else{ echo esc_attr('container'); }?>">
					<div class="row">			
						<div class="col-md-12">
							<div class="copy-right-text text-center">
								<!-- FOOTER COPYRIGHT TEXT -->
									<p>
										<?php						
											echo esc_html_e("Copyright &copy; poket all right reserved.","poket"); 
										?>
									</p>
							</div>
						</div>
					</div>
				</div>
			</div>
			<!-- END FOOTER BOTTOM AREA -->
			<?php
			endif; 
			endif; 
			 
			?>


        </div>
        <!-- middle and bottom END --

        </div>
        <!-- MAIN WRAPPER END -->
		
<?php wp_footer(); ?>

</body>
</html>
Page not found – Hello World !