first commit
This commit is contained in:
142
wp-content/themes/solarify/template-parts/footer/footer-1.php
Normal file
142
wp-content/themes/solarify/template-parts/footer/footer-1.php
Normal file
@@ -0,0 +1,142 @@
|
||||
<?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' ) : '';
|
||||
|
||||
?>
|
||||
|
||||
<?php if ( $social_icons || $first_teaser_text || $second_teaser_text || $third_teaser_text) : ?>
|
||||
<section class="cs gradient page_contacts section_padding_top_50 section_padding_bottom_50">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php if ( $first_teaser_text ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="media teaser small-media darklinks teaser">
|
||||
<?php if ( $first_teaser_icon['type'] !== 'none' ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $first_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $first_teaser_icon['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $first_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle fontsize_18">
|
||||
<?php if ( $first_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $first_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo wp_kses_post( $first_teaser_text ); ?>
|
||||
<?php if ( $first_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $second_teaser_text ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="media teaser small-media small-media darklinks">
|
||||
<?php if ( $second_teaser_icon['type'] !== 'none' ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $second_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $second_teaser_icon['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $second_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle fontsize_18">
|
||||
<?php if ( $second_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $second_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo wp_kses_post( $second_teaser_text ); ?>
|
||||
<?php if ( $second_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( $third_teaser_text ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="media teaser small-media small-media darklinks">
|
||||
<?php if ( $third_teaser_icon['type'] !== 'none' ) : ?>
|
||||
<div class="media-left media-middle">
|
||||
<?php if ( $third_teaser_icon['type'] === 'icon-font') : ?>
|
||||
<div class="teaser_icon highlight light_bg_color round">
|
||||
<i class="<?php echo esc_attr( $third_teaser_icon['icon-class'] ); ?>"></i>
|
||||
</div>
|
||||
<?php else:
|
||||
echo wp_get_attachment_image( $third_teaser_icon['attachment-id'] );
|
||||
endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<div class="media-body media-middle fontsize_18">
|
||||
<?php if ( $third_teaser_link ) : ?>
|
||||
<a href="<?php echo esc_attr( $third_teaser_link ) ?>">
|
||||
<?php endif; ?>
|
||||
<?php echo wp_kses_post( $third_teaser_text ); ?>
|
||||
<?php if ( $third_teaser_link ) : ?>
|
||||
</a>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( ! empty( $social_icons ) ) : ?>
|
||||
<div class="col-lg-3 col-sm-6 col-xs-12">
|
||||
<div class="darklinks">
|
||||
<?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>
|
||||
<?php endif; ?>
|
||||
|
||||
<footer class="page_footer ds section_padding_top_120 section_padding_bottom_140 columns_padding_25 columns_margin_bottom_20">
|
||||
<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 -->
|
||||
Reference in New Issue
Block a user