HEX
Server: LiteSpeed
System: Linux melbournecleaninggroup 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www-data (33)
PHP: 7.3.33-1+focal
Disabled: 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_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,
Upload Files
File: /var/www/html/wp-content/themes/page-builder-framework/inc/template-parts/footer.php
<?php
/**
 * Footer.
 *
 * Construct the theme footer.
 *
 * @package Page Builder Framework
 * @subpackage Template Parts
 */

defined( 'ABSPATH' ) || die( "Can't access directly" );

$theme_author = apply_filters(
	'wpbf_theme_author',
	array(
		'name' => __( 'Page Builder Framework', 'page-builder-framework' ),
		'url'  => 'https://wp-pagebuilderframework.com/',
	)
);

$footer_layout            = get_theme_mod( 'footer_layout', 'two' );
$layout                   = 'one' === $footer_layout ? ' wpbf-footer-one-column' : ' wpbf-footer-two-columns';
$inner_layout             = 'one' === $footer_layout ? 'wpbf-inner-footer-content' : 'wpbf-inner-footer-left';
$footer_column_one        = get_theme_mod( 'footer_column_one', '&copy; [year] - [blogname] | All rights reserved' );
$footer_column_two        = get_theme_mod( 'footer_column_two', 'Powered by [theme_author]' );
$search_for               = array( '[year]', '[blogname]', '[theme_author]' );
$replace_with             = array( date( 'Y' ), get_option( 'blogname' ), '<a href="' . esc_url( $theme_author['url'] ) . '">' . $theme_author['name'] . '</a>' );
$footer_column_one        = str_replace( $search_for, $replace_with, $footer_column_one );
$footer_column_two        = str_replace( $search_for, $replace_with, $footer_column_two );
$footer_column_one_layout = get_theme_mod( 'footer_column_one_layout', 'text' );
$footer_column_two_layout = get_theme_mod( 'footer_column_two_layout', 'text' );

?>

<footer id="footer" class="wpbf-page-footer" itemscope="itemscope" itemtype="https://schema.org/WPFooter">

	<?php do_action( 'wpbf_footer_open' ); ?>

	<div class="wpbf-inner-footer wpbf-container wpbf-container-center<?php echo esc_attr( $layout ); ?>">

		<div class="<?php echo esc_attr( $inner_layout ); ?>">

			<?php

			if ( 'text' === $footer_column_one_layout ) {

				wp_nav_menu( array(
					'theme_location' => 'footer_menu',
					'container'      => false,
					'menu_class'     => 'wpbf-menu',
					'depth'          => '1',
					'fallback_cb'    => false,
				) );

				echo do_shortcode( apply_filters( 'footer-column-left', $footer_column_one ) );

			} elseif ( 'menu' === $footer_column_one_layout ) {

				wp_nav_menu( array(
					'theme_location' => 'footer_menu',
					'container'      => false,
					'menu_class'     => 'wpbf-menu',
					'depth'          => '1',
					'fallback_cb'    => 'wpbf_menu_fallback',
				) );

			}

			?>

		</div>

		<?php if ( 'two' === $footer_layout ) { ?>

		<div class="wpbf-inner-footer-right">

			<?php

			if ( 'text' === $footer_column_two_layout ) {

				echo do_shortcode( apply_filters( 'footer-column-right', $footer_column_two ) );

				wp_nav_menu( array(
					'theme_location' => 'footer_menu_right',
					'container'      => false,
					'menu_class'     => 'wpbf-menu',
					'depth'          => '1',
					'fallback_cb'    => false,
				) );

			} elseif ( 'menu' === $footer_column_two_layout ) {

				wp_nav_menu( array(
					'theme_location' => 'footer_menu_right',
					'container'      => false,
					'menu_class'     => 'wpbf-menu',
					'depth'          => '1',
					'fallback_cb'    => 'wpbf_menu_fallback',
				) );

			}

			?>

		</div>

		<?php } ?>

	</div>

	<?php do_action( 'wpbf_footer_close' ); ?>

</footer>