134 lines
6.0 KiB
PHP
134 lines
6.0 KiB
PHP
<?php
|
|
/**
|
|
* The template part for selected footer
|
|
*/
|
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
|
exit; // Exit if accessed directly
|
|
}
|
|
|
|
$social_icons = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'footer_social_icons' ) : '';
|
|
|
|
$first_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_icon' ) : '';
|
|
$first_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_text' ) : '';
|
|
$first_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'first_teaser_link' ) : '';
|
|
|
|
$second_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_icon' ) : '';
|
|
$second_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_text' ) : '';
|
|
$second_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'second_teaser_link' ) : '';
|
|
|
|
$third_teaser_icon = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_icon' ) : '';
|
|
$third_teaser_text = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_text' ) : '';
|
|
$third_teaser_link = function_exists( 'fw_get_db_customizer_option' ) ? fw_get_db_customizer_option( 'third_teaser_link' ) : '';
|
|
|
|
?>
|
|
|
|
<section class="ls ms page_contacts section_padding_top_40 section_padding_bottom_40 table_section table_section_md">
|
|
<div class="container">
|
|
<div class="row">
|
|
<?php if ( $first_teaser_text ) : ?>
|
|
<div class="col-md-3 col-sm-12 col-xs-12">
|
|
<div class="media small-media greylinks">
|
|
<?php if ( $first_teaser_icon['type'] ) : ?>
|
|
<div class="media-left media-middle">
|
|
<?php if ( $first_teaser_icon['type'] === 'icon-font') : ?>
|
|
<i class="<?php echo esc_attr( $first_teaser_icon['icon-class'] ); ?> highlight fontsize_24"></i>
|
|
<?php else:
|
|
echo wp_get_attachment_image( $first_teaser_icon['attachment-id'] );
|
|
endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="media-body media-middle">
|
|
<?php if ( $first_teaser_link ) : ?>
|
|
<a href="<?php echo esc_attr( $first_teaser_link ) ?>">
|
|
<?php endif; ?>
|
|
<?php echo esc_html( $first_teaser_text ); ?>
|
|
<?php if ( $first_teaser_link ) : ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ( $second_teaser_text ) : ?>
|
|
<div class="col-md-3 col-sm-4 col-xs-12">
|
|
<div class="media small-media greylinks">
|
|
<?php if ( $second_teaser_icon['type'] ) : ?>
|
|
<div class="media-left media-middle">
|
|
<?php if ( $second_teaser_icon['type'] === 'icon-font') : ?>
|
|
<i class="<?php echo esc_attr( $second_teaser_icon['icon-class'] ); ?> highlight fontsize_24"></i>
|
|
<?php else:
|
|
echo wp_get_attachment_image( $second_teaser_icon['attachment-id'] );
|
|
endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="media-body media-middle">
|
|
<?php if ( $second_teaser_link ) : ?>
|
|
<a href="<?php echo esc_attr( $second_teaser_link ) ?>">
|
|
<?php endif; ?>
|
|
<?php echo esc_html( $second_teaser_text ); ?>
|
|
<?php if ( $second_teaser_link ) : ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ( $third_teaser_text ) : ?>
|
|
<div class="col-md-3 col-sm-4 col-xs-12">
|
|
<div class="media small-media greylinks">
|
|
<?php if ( $third_teaser_icon['type'] ) : ?>
|
|
<div class="media-left media-middle">
|
|
<?php if ( $third_teaser_icon['type'] === 'icon-font') : ?>
|
|
<i class="<?php echo esc_attr( $third_teaser_icon['icon-class'] ); ?> highlight fontsize_24"></i>
|
|
<?php else:
|
|
echo wp_get_attachment_image( $third_teaser_icon['attachment-id'] );
|
|
endif; ?>
|
|
</div>
|
|
<?php endif; ?>
|
|
<div class="media-body media-middle">
|
|
<?php if ( $third_teaser_link ) : ?>
|
|
<a href="<?php echo esc_attr( $third_teaser_link ) ?>">
|
|
<?php endif; ?>
|
|
<?php echo esc_html( $third_teaser_text ); ?>
|
|
<?php if ( $third_teaser_link ) : ?>
|
|
</a>
|
|
<?php endif; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
<?php if ( ! empty( $social_icons ) ) : ?>
|
|
<div class="col-md-3 col-sm-12 col-xs-12">
|
|
<div class="greylinks">
|
|
<?php
|
|
//get icons-social shortcode to render icons in team member item
|
|
$shortcodes_extension = fw()->extensions->get( 'shortcodes' );
|
|
if ( ! empty( $shortcodes_extension ) ) {
|
|
echo fw_ext( 'shortcodes' )->get_shortcode( 'icons_social' )->render( array( 'social_icons' => $social_icons ) );
|
|
}
|
|
?>
|
|
</div>
|
|
</div>
|
|
<?php endif; //social icons ?>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<footer class="page_footer ls ms section_padding_top_25 section_padding_bottom_25">
|
|
<div class="container">
|
|
|
|
<?php if ( is_active_sidebar( 'sidebar-footer-secondary' ) ) : ?>
|
|
<div class="cs gradient_bg with_padding big-padding">
|
|
<div class="row">
|
|
<?php dynamic_sidebar( 'sidebar-footer-secondary' ); ?>
|
|
</div>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div class="row">
|
|
<?php dynamic_sidebar( 'sidebar-footer' ); ?>
|
|
</div>
|
|
|
|
</div>
|
|
</footer><!-- .page_footer -->
|