first commit
This commit is contained in:
105
wp-content/themes/thinkai/templates/footer/default-footer.php
Normal file
105
wp-content/themes/thinkai/templates/footer/default-footer.php
Normal file
@@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Template File
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Template Path
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
$options = thinkai_WSH()->option();
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
|
||||
$footer_shape_img_v1 = $options->get( 'footer_shape_img_v1' );
|
||||
$footer_shape_img_v1 = thinkai_set( $footer_shape_img_v1, 'url', THINKAI_URI . '/assets/images/shapes/our-company-info__bg.png' );
|
||||
|
||||
$footer_newsletter_icon = $options->get( 'footer_newsletter_icon_image' );
|
||||
$footer_newsletter_icon = thinkai_set( $footer_newsletter_icon, 'url', THINKAI_URI . '/assets/images/footer/footer-v1-icon1.png' );
|
||||
|
||||
?>
|
||||
|
||||
<!--Start footer Style1 -->
|
||||
<footer class="footer-style1 <?php if(! $options->get('show_top_footer_v1')) echo 'pt-0'; ?>">
|
||||
<?php if($options->get('show_top_footer_v1')){ ?>
|
||||
<!--Start Footer Top-->
|
||||
<div class="footer-top">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-xl-6 col-lg-6">
|
||||
<div class="our-company-info">
|
||||
<?php if($footer_shape_img_v1){ ?><div class="our-company-info__bg" style="background-image: url(<?php echo esc_url($footer_shape_img_v1); ?>);"></div><?php } ?>
|
||||
<div class="our-company-info__inner text-center">
|
||||
<div class="footer-logo-style1">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
<span class="icon-thm-logo1"></span>
|
||||
</a>
|
||||
<h2>
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php echo wp_kses($options->get('footer_logo_title_v1'), true); ?></a>
|
||||
</h2>
|
||||
</div>
|
||||
<div class="text">
|
||||
<p>
|
||||
<?php echo wp_kses($options->get('footer_user_text_v1'), true); ?>
|
||||
</p>
|
||||
</div>
|
||||
<div class="btn-box">
|
||||
<a href="<?php echo esc_url($options->get('footer_external_link_v1')); ?>"><span class="icon-right-arrow1"></span></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-xl-6 col-lg-6">
|
||||
<div class="footer-widget-newsletter-box">
|
||||
<div class="icon-box float-bob-x">
|
||||
<img class="zoom-fade" src="<?php echo esc_url($footer_newsletter_icon); ?>" alt="<?php bloginfo( 'name' ); ?>">
|
||||
</div>
|
||||
<h3><?php echo wp_kses($options->get('footer_newsletter_title_v1'), true); ?></h3>
|
||||
<p><?php echo wp_kses($options->get('footer_newsletter_text_v1'), true); ?></p>
|
||||
<?php echo do_shortcode($options->get('footer_newsletter_form_url_v1')); ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Top-->
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'footer-sidebar' ) ) { ?>
|
||||
<!--Start Footer Main-->
|
||||
<div class="footer-main">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<?php dynamic_sidebar( 'footer-sidebar' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Main-->
|
||||
<?php } ?>
|
||||
|
||||
<!--Start Footer Bottom-->
|
||||
<?php if( $options->get('footer_copyright_text_v1') || $options->get('show_footer_privacy_menu_v1') ){ ?>
|
||||
<div class="footer-bottom">
|
||||
<div class="container">
|
||||
<div class="bottom-inner">
|
||||
<?php if($options->get('footer_copyright_text_v1')){ ?>
|
||||
<div class="copyright-text">
|
||||
<p><?php echo wp_kses($options->get('footer_copyright_text_v1'), true); ?></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($options->get('show_footer_privacy_menu_v1')){ ?>
|
||||
<div class="footer-menu">
|
||||
<ul>
|
||||
<?php echo wp_kses($options->get('footer_privacy_menu_v1'), true); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
<!--End Footer Bottom-->
|
||||
</footer>
|
||||
<!--End footer Style1-->
|
||||
32
wp-content/themes/thinkai/templates/footer/footer.php
Normal file
32
wp-content/themes/thinkai/templates/footer/footer.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Template File
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Webiane
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
$options = thinkai_WSH()->option();
|
||||
$back = $options->get( 'footer_background' );
|
||||
$back = thinkai_set( $back, 'url', THINKAI_URI . 'assets/images/parallax.png' );
|
||||
$s_type = '';
|
||||
$e_tpl = '';
|
||||
|
||||
if( is_singular() ) {
|
||||
$s_type = get_post_meta( $page_id, 'footer_source_type', true );
|
||||
$e_tpl = get_post_meta( $page_id, 'footer_elementor_template', true );
|
||||
}
|
||||
if( $s_type !== 'e' ) {
|
||||
$s_type = $options->get('footer_source_type');
|
||||
$e_tpl = $options->get('footer_elementor_template');
|
||||
}
|
||||
|
||||
if ( class_exists( '\Elementor\Plugin' ) AND $s_type == 'e' AND $e_tpl ) {
|
||||
echo Elementor\Plugin::instance()->frontend->get_builder_content_for_display( $e_tpl );
|
||||
} else {
|
||||
|
||||
do_action( 'thinkai_main_footer' );
|
||||
}
|
||||
|
||||
|
||||
51
wp-content/themes/thinkai/templates/footer/footer_v2.php
Normal file
51
wp-content/themes/thinkai/templates/footer/footer_v2.php
Normal file
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Template File
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Template Path
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
$options = thinkai_WSH()->option();
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
?>
|
||||
|
||||
<!--Start footer Style2 -->
|
||||
<footer class="footer-style2">
|
||||
<?php if ( is_active_sidebar( 'footer-sidebar2' ) ) { ?>
|
||||
<!--Start Footer Main-->
|
||||
<div class="footer-main-style2">
|
||||
<div class="container">
|
||||
<div class="footer-main-widget-style2">
|
||||
<?php dynamic_sidebar( 'footer-sidebar2' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Main-->
|
||||
<?php } ?>
|
||||
|
||||
<!--Start Footer Bottom-->
|
||||
<div class="footer-bottom-style2">
|
||||
<div class="container">
|
||||
<div class="bottom-inner">
|
||||
<?php if($options->get('footer_copyright_text_v2')){ ?>
|
||||
<div class="copyright-text">
|
||||
<p><?php echo wp_kses($options->get('footer_copyright_text_v2'), true); ?></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($options->get('show_footer_privacy_menu_v2')){ ?>
|
||||
<div class="footer-menu">
|
||||
<ul>
|
||||
<?php echo wp_kses($options->get('footer_privacy_menu_v2'), true); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Bottom-->
|
||||
</footer>
|
||||
<!--End footer Style1-->
|
||||
|
||||
65
wp-content/themes/thinkai/templates/footer/footer_v3.php
Normal file
65
wp-content/themes/thinkai/templates/footer/footer_v3.php
Normal file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Template File
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Template Path
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
$options = thinkai_WSH()->option();
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
?>
|
||||
|
||||
<!--Start footer Style3 -->
|
||||
<footer class="footer-style3">
|
||||
<?php if ( is_active_sidebar( 'footer-sidebar3' ) ) { ?>
|
||||
<!--Start Footer Main-->
|
||||
<div class="footer-main-style3">
|
||||
<div class="container">
|
||||
<div class="footer-main-widget-style3">
|
||||
<?php dynamic_sidebar( 'footer-sidebar3' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Main-->
|
||||
<?php } ?>
|
||||
|
||||
<!--Start Footer Bottom-->
|
||||
<div class="footer-bottom-style3">
|
||||
<div class="container">
|
||||
<div class="bottom-inner">
|
||||
<div class="copyright-text-style3">
|
||||
<?php if($options->get('show_footer_privacy_menu_v3')){ ?>
|
||||
<ul>
|
||||
<?php echo wp_kses($options->get('footer_privacy_menu_v3'), true); ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($options->get('footer_copyright_text_v3')){ ?>
|
||||
<p><?php echo wp_kses($options->get('footer_copyright_text_v3'), true); ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php if( $options->get( 'show_footer_social_icon_v3' )){ ?>
|
||||
<div class="footer-social-link-style3">
|
||||
<ul class="clearfix">
|
||||
<?php echo (thinkai_get_social_icon()); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if( $options->get( 'show_footer_email_info_v3' )){ ?>
|
||||
<div class="footer-bottom-style3__right">
|
||||
<p><?php echo wp_kses($options->get('footer_email_title_v3'), true); ?></p>
|
||||
<p><a href="mailto:<?php echo esc_attr($options->get('footer_email_address_v3')); ?>"><?php echo wp_kses($options->get('footer_email_address_v3'), true); ?></a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Bottom-->
|
||||
|
||||
</footer>
|
||||
<!--End footer Style3-->
|
||||
|
||||
143
wp-content/themes/thinkai/templates/footer/footer_v4.php
Normal file
143
wp-content/themes/thinkai/templates/footer/footer_v4.php
Normal file
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Template File
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Template Path
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
$options = thinkai_WSH()->option();
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
|
||||
$bg_img_v4 = $options->get( 'bg_img_v4' );
|
||||
$bg_img_v4 = thinkai_set( $bg_img_v4, 'url', THINKAI_URI . '/assets/images/shapes/footer-style4__shape1.png' );
|
||||
|
||||
$logo_img_v4 = $options->get( 'logo_img_v4' );
|
||||
$logo_img_v4 = thinkai_set( $logo_img_v4, 'url', THINKAI_URI . '/assets/images/footer/footer-logo-2.png' );
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<!--Start footer Style4 -->
|
||||
<footer class="footer-style4">
|
||||
|
||||
<?php if($bg_img_v4){ ?>
|
||||
<div class="footer-style4__bg" style="background-image: url('<?php echo esc_url($bg_img_v4); ?>');"></div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($options->get('show_top_footer_v4')){ ?>
|
||||
<!--Start Footer Main-->
|
||||
<div class="footer-style4_main">
|
||||
<div class="container">
|
||||
<div class="footer-style4_main__inner">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-xl-8">
|
||||
<div class="footer-style4_main-content">
|
||||
<div class="footer-style4_main-content__inner">
|
||||
<?php if($logo_img_v4){ ?>
|
||||
<div class="footer-logo-style3">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
||||
<img src="<?php echo esc_url($logo_img_v4); ?>" alt="<?php bloginfo( 'name' ); ?>">
|
||||
</a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<h2><?php echo wp_kses($options->get('footer_title_v4'), true); ?></h2>
|
||||
<div class="contact-info">
|
||||
<p><?php echo wp_kses($options->get('footer_contact_info_title_v4'), true); ?></p>
|
||||
<h3>
|
||||
<a class="email" href="mailto:<?php echo esc_attr($options->get('footer_email_address_v4')); ?>"><?php echo wp_kses($options->get('footer_email_address_v4'), true); ?></a>
|
||||
<span><?php esc_html_e('[or]', 'thinkai'); ?></span>
|
||||
<a class="faq-btn" href="<?php echo esc_url($options->get('footer_button_link_v4')); ?>">
|
||||
<span class="icon-right-arrow1"></span> <?php echo wp_kses($options->get('footer_button_title_v4'), true); ?>
|
||||
</a>
|
||||
</h3>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($options->get('footer_external_link_v4')){ ?>
|
||||
<div class="footer-style4_main-content__outer">
|
||||
<a href="<?php echo esc_url($options->get('footer_external_link_v4')); ?>"><span class="icon-right-arrow1"></span></a>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
$icons_v2 = $options->get('social_media_tabs_v2');
|
||||
if ($icons_v2) :
|
||||
?>
|
||||
<div class="col-xl-4">
|
||||
<div class="footer-social-link-style4">
|
||||
<ul>
|
||||
<?php
|
||||
for ( $i=0; $i < count( $icons_v2['select_social_media_v2'] ); $i++ ) {
|
||||
$social_icon_v2 = ( isset( $icons_v2['select_social_media_v2'][$i] ) && !empty( $icons_v2['select_social_media_v2'][$i] ) ) ? $icons_v2['select_social_media_v2'][$i] : '';
|
||||
$social_link_v2 = ( isset( $icons_v2['link_social_media_v2'][$i] ) && !empty( $icons_v2['link_social_media_v2'][$i] ) ) ? $icons_v2['link_social_media_v2'][$i] : '';
|
||||
$social_title_v2 = ( isset( $icons_v2['title_social_media_v2'][$i] ) && !empty( $icons_v2['title_social_media_v2'][$i] ) ) ? $icons_v2['title_social_media_v2'][$i] : '';
|
||||
?>
|
||||
<li>
|
||||
<div class="icon-box">
|
||||
<a class="icon-box1" href="<?php echo esc_url($social_link_v2); ?>">
|
||||
<span class="fab <?php echo esc_attr(str_replace("fab ", " ", $social_icon_v2)); ?>"></span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="title-box">
|
||||
<h5><?php echo wp_kses($social_title_v2, true); ?></h5>
|
||||
<p>
|
||||
<a href="<?php echo esc_url($social_link_v2); ?>">
|
||||
<?php echo esc_url($social_link_v2); ?>
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</li>
|
||||
<?php } ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Main-->
|
||||
<?php } ?>
|
||||
|
||||
<!--Start Footer Bottom-->
|
||||
<div class="footer-style4__bottom">
|
||||
<div class="container">
|
||||
<div class="bottom-inner text-center">
|
||||
<div class="footer-menu-style4">
|
||||
<ul>
|
||||
<?php wp_nav_menu( array( 'theme_location' => 'footer_menu', 'container_id' => 'navbar-collapse-1',
|
||||
'container_class'=>'navbar-collapse collapse navbar-right',
|
||||
'menu_class'=>'nav navbar-nav',
|
||||
'fallback_cb'=>false,
|
||||
'items_wrap' => '%3$s',
|
||||
'container'=>false,
|
||||
'depth'=>'1',
|
||||
'walker'=> new Bootstrap_walker()
|
||||
)); ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="copyright-text-style3 copyright-text-style--2">
|
||||
<?php if($options->get('show_footer_privacy_menu_v4')){ ?>
|
||||
<ul>
|
||||
<?php echo wp_kses($options->get('footer_privacy_menu_v4'), true); ?>
|
||||
</ul>
|
||||
<?php } ?>
|
||||
|
||||
<?php if($options->get('footer_copyright_text_v4')){ ?>
|
||||
<p><?php echo wp_kses($options->get('footer_copyright_text_v4'), true); ?></p>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Bottom-->
|
||||
|
||||
</footer>
|
||||
<!--End footer Style1-->
|
||||
|
||||
59
wp-content/themes/thinkai/templates/footer/footer_v5.php
Normal file
59
wp-content/themes/thinkai/templates/footer/footer_v5.php
Normal file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/**
|
||||
* Footer Template File
|
||||
*
|
||||
* @package THINKAI
|
||||
* @author Template Path
|
||||
* @version 1.0
|
||||
*/
|
||||
|
||||
$options = thinkai_WSH()->option();
|
||||
$allowed_html = wp_kses_allowed_html( 'post' );
|
||||
?>
|
||||
|
||||
<!--Start footer Style5 -->
|
||||
<footer class="footer-style5">
|
||||
<?php if($options->get('show_top_footer_v5')){ ?>
|
||||
<!--Start Footer style5__top -->
|
||||
<div class="footer-style5__top">
|
||||
<div class="big-title">
|
||||
<h2><?php echo wp_kses($options->get('footer_bg_title_v5'), true); ?></h2>
|
||||
</div>
|
||||
<div class="container">
|
||||
<div class="footer-style5__top-inner text-center">
|
||||
<h2><?php echo wp_kses($options->get('footer_text_v5'), true); ?></h2>
|
||||
<div class="btn-box">
|
||||
<?php if($options->get('footer_email_address_v5')){ ?>
|
||||
<a class="btn-one one" href="mailto:<?php echo esc_attr($options->get('footer_email_address_v5')); ?>">
|
||||
<span class="txt"><?php echo wp_kses($options->get('footer_email_title_v5'), true); ?></span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
<?php if($options->get('footer_support_link_v5')){ ?>
|
||||
<a class="btn-one" href="<?php echo esc_url($options->get('footer_support_link_v5')); ?>">
|
||||
<span class="txt"><?php echo wp_kses($options->get('footer_support_title_v5'), true); ?></span>
|
||||
</a>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer style5__top -->
|
||||
<?php } ?>
|
||||
|
||||
<?php if ( is_active_sidebar( 'footer-sidebar4' ) ) { ?>
|
||||
<!--Start Footer Main-->
|
||||
<div class="footer-style5__main">
|
||||
<div class="container">
|
||||
<div class="footer-style5__main-inner">
|
||||
<div class="footer-main-widget-style5">
|
||||
<?php dynamic_sidebar( 'footer-sidebar4' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!--End Footer Main-->
|
||||
<?php } ?>
|
||||
|
||||
</footer>
|
||||
<!--End footer Style5-->
|
||||
|
||||
Reference in New Issue
Block a user