Created
March 18, 2018 15:45
-
-
Save anonymous/a228708e00f40514af8bf73a34061186 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Template for About Us | |
* @since Bizplan 1.0 | |
*/ | |
$id = bizplan_get_option( 'about_page' ); | |
if( $id ): | |
$query = new WP_Query( apply_filters( 'bizplan_about_query_args', array( | |
'post_type' => 'page', | |
'p' => $id | |
))); | |
while( $query->have_posts() ): | |
$query->the_post(); | |
?> | |
<section class="wrapper block-about"> | |
<div class="thumb-block-outer"> | |
<div class="container-full"> | |
<div class="row"> | |
<div class="col-xs-12 col-sm-12 col-md-6 pad0lr wow fade-in-left" data-wow-delay="0s"> | |
<div class="area-div content-outer"> | |
<?php | |
bizplan_section_heading( array( | |
'id' => 'about', | |
'heading' => get_the_title(), | |
'container' => false, | |
)); | |
bizplan_excerpt( 60, true, '...' ); | |
?> | |
<div class="button-container"> | |
<a href="<?php the_permalink(); ?>" class="button"> | |
<?php echo esc_html( bizplan_get_option( 'about_btn_text' ) ); ?> | |
</a> | |
</div> | |
</div> | |
</div> | |
<div class="col-xs-12 col-sm-12 col-md-6 pad0lr wow fade-in-right" data-wow-delay="0s"> | |
<div class="area-div thumb-outer"> | |
<?php | |
$video_url = bizplan_get_option( 'about_video' ); | |
$bg = false; | |
$biz_image = bizplan_get_thumbnail( array( | |
'size' => 'kt-1020-750', | |
'dummy' => $video_url ? false : true | |
)); | |
if( $biz_image[ 'url' ] ){ | |
$bg = $biz_image[ 'url' ]; | |
}else if( $video_url ){ | |
$bg = bizplan_get_video_thumbnail( $video_url ); | |
} | |
if( $bg ){ | |
?> | |
<style type="text/css"> | |
.block-about .thumb-inner{ | |
background-image: url(<?php echo esc_url( $bg ); ?>); | |
} | |
</style> | |
<?php | |
} | |
?> | |
<div class="thumb-inner"> | |
<?php if( $video_url ): ?> | |
<div class="video-icon"> | |
<a class="popup-video" video-url="<?php echo esc_url( $video_url ); ?>"> | |
<span class="kfi kfi-arrow-triangle-right"></span> | |
</a> | |
</div> | |
<?php endif; ?> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</div> | |
</section> | |
<?php | |
endwhile; | |
endif; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment