403Webshell
Server IP : 66.29.132.124  /  Your IP : 18.117.72.244
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/template-parts/footer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/cynthiaadediran.com/wp-content/themes/gerold/template-parts/footer/footer-1.php
<?php

/**
 * Template part for displaying footer layout one
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package Gerold_Theme
 * @since Gerold 1.0.0
 * @author ThemeJunction 
 */

// from page
$enable_footer_settings = function_exists('get_field') ? get_field('enable_footer_settings') : false;
$page_footer_bg_img = function_exists('get_field') ? get_field('page_footer_bg_img') : '';
$page_footer_bg_color = function_exists('get_field') ? get_field('page_footer_bg_color') : '';
$page_footer_menu = function_exists('get_field') ? get_field('page_footer_menu') : false;

// multifunction
if (!empty($enable_footer_settings)) {
  $footerBgImage = !empty($page_footer_bg_img['url']) ? $page_footer_bg_img['url'] : "";
  $footerBgColor = !empty($page_footer_bg_color) ? $page_footer_bg_color : "";

  $footerMenu = $page_footer_menu;
} else {
  $footerBgImage = get_theme_mod('footer_bg_img');
  $footerBgColor = get_theme_mod('footer_bg_color', '');

  $footerMenu = get_theme_mod('footer_menu_switcher', false);
}

// footer_columns
$footer_column = 0;
$footer_column = get_theme_mod('footer_widget_column', 4);

switch ($footer_column) {
  case '1':
    $footer_class[1] = 'col-12';
    break;
  case '2':
    $footer_class[1] = 'col-md-6';
    $footer_class[2] = 'col-md-6';
    break;
  case '3':
    $footer_class[1] = 'col-lg-4 col-md-6';
    $footer_class[2] = 'col-lg-4 col-md-6';
    $footer_class[3] = 'col-lg-4 col-md-6';
    break;
  case '4':
    $footer_class[1] = 'col-lg-3 col-md-6';
    $footer_class[2] = 'col-lg-3 col-md-6';
    $footer_class[3] = 'col-lg-3 col-md-6';
    $footer_class[4] = 'col-lg-3 col-md-6';
    break;
  default:
    $footer_class = 'col-lg-3 col-md-6';
    break;
}

// footer bg color
if (!empty($footerBgColor)) {
  $bgColor = 'data-bg-color=' . $footerBgColor . '';
} else {
  $bgColor = "";
}

// footer bg image
if (!empty($footerBgImage)) {
  $bgImage = 'data-bg-image="' . $footerBgImage . '"';
} else {
  $bgImage = "";
}

?>

<footer class="tj-footer-area" <?php echo esc_attr($bgColor); ?> <?php echo esc_attr($bgImage); ?>>
  <div class="container">
    <div class="row">
      <div class="col text-center">
        <?php gerold_footer_logo(); ?>

        <?php if (is_active_sidebar('footer-1') or is_active_sidebar('footer-2') or is_active_sidebar('footer-3') or is_active_sidebar('footer-4')) : ?>
          <div class="footer_widgets">
            <div class="row justify-content-center">
              <?php
              for ($num = 1; $num <= $footer_column; $num++) {

                echo '<div class="' . esc_attr($footer_class[$num]) . '">';
                dynamic_sidebar('footer-' . $num);
                echo '</div>';
              }
              ?>
            </div>
          </div>
        <?php endif; ?>


        <?php if (!empty($footerMenu)) : ?>
          <div class="footer-menu">
            <?php if (has_nav_menu('footer-menu')) {
              gerold_footer_menu();
            } ?>
          </div>
        <?php endif; ?>

        <div class="copy-text">
          <p><?php echo gerold_copyright_text(); ?></p>
        </div>
      </div>
    </div>
  </div>
</footer>

Youez - 2016 - github.com/yon3zu
LinuXploit