HEX
Server: LiteSpeed
System: Linux s12873.lon1.stableserver.net 5.14.0-611.11.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Dec 3 09:47:37 EST 2025 x86_64
User: jairicem (1242)
PHP: 8.2.31
Disabled: NONE
Upload Files
File: /home/jairicem/basicconceptenergy.com/wp-content/themes/greenly/footer.php
<?php
/**
 * The template for displaying the footer
 *
 * Contains the closing of the #content div and all content after.
 *
 * @package WordPress
 * @subpackage Greenly
 * @since 1.0
 * @version 1.2
 */
$footer_show_social		= cspt_get_base_option('footer-show-social');
$footer_show_menu		= cspt_get_base_option('footer-show-menu');
$footer_style		    = cspt_get_base_option ('footer-style');
$footer_column			= cspt_get_base_option('footer-column');
$footer_column			= ( empty($footer_column) ) ? '3-3-3-3' : $footer_column ;

// Footer social 
$footer_column_class = '';
$social_html = '';
if( $footer_show_social==true ){
	$social_html = do_shortcode('[cspt-social-links]');
}
$menu_html = '';
if( $footer_show_menu==true && has_nav_menu('creativesplanet-footer') ){
	ob_start();
	wp_nav_menu( array(
		'theme_location' => 'creativesplanet-footer',
		'menu_id'        => 'cspt-footer-menu',
		'menu_class'     => 'cspt-footer-menu',
	) );
	$menu_html = ob_get_contents();
	ob_end_clean();
}
if( $footer_column=='custom' ){
	$footer_column_1	= cspt_get_base_option('footer-1-col-width');
	$footer_column_2	= cspt_get_base_option('footer-2-col-width');
	$footer_column_3	= cspt_get_base_option('footer-3-col-width');
	$footer_column_4	= cspt_get_base_option('footer-4-col-width');

	$footer_column_array = array();
	if( !empty($footer_column_1) && $footer_column_1!='hide' ){ $footer_column_array[] = 'yes'; }
	if( !empty($footer_column_2) && $footer_column_2!='hide' ){ $footer_column_array[] = 'yes'; }
	if( !empty($footer_column_3) && $footer_column_3!='hide' ){ $footer_column_array[] = 'yes'; }
	if( !empty($footer_column_4) && $footer_column_4!='hide' ){ $footer_column_array[] = 'yes'; }

	if( count($footer_column_array)=='1' ){
		$footer_column = '12';
	} else if( count($footer_column_array)=='2' ){
		$footer_column = '6-6';
	} else if( count($footer_column_array)=='3' ){
		$footer_column = '4-4-4';
	} else if( count($footer_column_array)=='4' ){
		$footer_column = '3-3-3-3';
	}
}

$footer_columns	= explode('-', $footer_column );
$widget_exists	= false;
// Checking if widget exists
$col = 1;
foreach( $footer_columns as $column ){
	if ( is_active_sidebar( 'cspt-footer-'.$col ) ){
		$widget_exists = true;
	}
	$col++;
} // end foreach
?>
	<?php if( cspt_check_sidebar() == true ){ ?>
		</div><!-- .row -->
	<?php } ?>
	</div><!-- #content -->
		<footer id="colophon" class="site-footer <?php cspt_footer_classes(); ?>">
			<?php cspt_footer_big_text_area(); ?>
			<?php if( $widget_exists==true ) : ?>
			<div class="footer-wrap cspt-footer-widget-area <?php cspt_footer_widget_classes(); ?>">
				<div class="container">
					<div class="row">
						<?php
						$col = 1;
						foreach( $footer_columns as $column ){
							$class = ( $footer_column == '3-3-3-3' ) ? 'col-md-6 col-lg-3' : 'col-md-'.$column ;
							if ( is_active_sidebar( 'cspt-footer-'.$col ) ) { ?>
								<div class="cspt-footer-widget cspt-footer-widget-col-<?php echo esc_attr($col); ?> <?php echo esc_attr($class); ?>">
									<?php dynamic_sidebar( 'cspt-footer-'.$col ); ?>
								</div><!-- .cspt-footer-widget -->
							<?php };
							$col++;
						} // end foreach
						?>
					</div><!-- .row -->
				</div>
			</div>
			<?php endif; ?>
			<?php if ( ( cspt_get_base_option('footer-copyright-enable') != '0' && cspt_get_base_option('footer-style') == '4' ) || cspt_get_base_option('footer-style') == '1' || cspt_get_base_option('footer-style') == '2' || cspt_get_base_option('footer-style') == '3' ) { ?>
			<div class="cspt-footer-text-area <?php cspt_footer_copyright_classes(); ?>">
				<div class="container">
					<div class="cspt-footer-text-inner">
						<div class="row">
							<?php if( !empty($social_html) && !empty($menu_html) ) : ?>
								<?php $footer_column_class = 'col-md-4'; ?>
								<div class="cspt-footer-copyright col-md-4">
							<?php elseif( !empty($social_html) || !empty($menu_html) ) : ?>
								<?php $footer_column_class = 'col-md-6'; ?>
								<div class="cspt-footer-copyright col-md-6">			
							<?php else : ?>
								<div class="cspt-footer-copyright col-md-12 text-center">
							<?php endif; ?>
							<div class="cspt-footer-copyright-text-area">
								<?php
								$footer_column  = cspt_get_base_option('copyright-text');
								echo cspt_esc_kses( do_shortcode($footer_column) );
								?>
							</div>
						</div>									
						<?php if( !empty($social_html) ) : ?>
							<div class="cspt-footer-social-area <?php echo esc_attr($footer_column_class); ?>">
								<?php echo cspt_esc_kses($social_html); ?>
							</div>
							<?php endif; ?>
							<?php if( !empty($menu_html) ) : ?>
							<div class="cspt-footer-menu-area <?php echo esc_attr($footer_column_class); ?>">
								<?php echo cspt_esc_kses($menu_html); ?>
							</div>
							<?php endif; ?>
						</div>
					</div>
				</div>
			</div>
			<?php } ?>
		</footer><!-- #colophon -->
	</div><!-- .site-content-contain -->
</div><!-- #page -->
<?php 
// Hide Totop Button
$hide_totop_button  = cspt_get_base_option('hide_totop_button');
if($hide_totop_button != 1 ){ ?>
<a href="#" class="scroll-to-top" title="<?php echo esc_html_e( 'Back to Top', 'greenly' ); ?>"><i class="cspt-base-icon-up-open-big"></i></a>
<?php } ?>
<?php wp_footer(); ?>
</body>
</html>