| Server IP : 68.183.124.220 / Your IP : 216.73.217.137 Web Server : Apache/2.4.18 (Ubuntu) System : Linux Sandbox-A 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : gavin ( 1000) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/wp-content/plugins/astra/template-parts/footer/ |
Upload File : |
<?php
/**
* Template for Small Footer Layout 2
*
* @package Astra
* @author Astra
* @copyright Copyright (c) 2019, Astra
* @link https://wpastra.com/
* @since Astra 1.0.0
*/
$section_1 = astra_get_small_footer( 'footer-sml-section-1' );
$section_2 = astra_get_small_footer( 'footer-sml-section-2' );
$sections = 0;
if ( '' != $section_1 ) {
$sections++;
}
if ( '' != $section_2 ) {
$sections++;
}
switch ( $sections ) {
case '2':
$section_class = 'ast-small-footer-section-equally ast-col-md-6 ast-col-xs-12';
break;
case '1':
default:
$section_class = 'ast-small-footer-section-equally ast-col-xs-12';
break;
}
?>
<div class="ast-small-footer footer-sml-layout-2">
<div class="ast-footer-overlay">
<div class="ast-container">
<div class="ast-small-footer-wrap" >
<div class="ast-row ast-flex">
<?php if ( $section_1 ) : ?>
<div class="ast-small-footer-section ast-small-footer-section-1 <?php echo esc_attr( $section_class ); ?>" >
<?php
echo $section_1; // WPCS: XSS OK.
?>
</div>
<?php endif; ?>
<?php if ( $section_2 ) : ?>
<div class="ast-small-footer-section ast-small-footer-section-2 <?php echo esc_attr( $section_class ); ?>" >
<?php
echo $section_2; // WPCS: XSS OK.
?>
</div>
<?php endif; ?>
</div> <!-- .ast-row.ast-flex -->
</div><!-- .ast-small-footer-wrap -->
</div><!-- .ast-container -->
</div><!-- .ast-footer-overlay -->
</div><!-- .ast-small-footer-->