';
if( $blog_title ) { business_times_template_header( $blog_title ); }
echo '
';
if( $qry->have_posts() ){ ?>
have_posts() ){
$qry->the_post();
?>
';
echo '
';
echo '';
}
}
endif;
if( ! function_exists( 'business_times_cta' ) ) :
/**
* Home Page cta Section
*
* @since 1.0.1
*/
function business_times_cta(){
$cta_enable = get_theme_mod( 'business_times_ed_cta_section' );
$cta_page = get_theme_mod( 'business_times_cta_section_page', '' );
$cta_one = get_theme_mod( 'business_times_cta_section_button_one', __( 'about Us', 'business-times' ) );
$cta_one_url = get_theme_mod( 'business_times_cta_button_one_url', '#' );
$cta_two = get_theme_mod( 'business_times_cta_section_button_two', __( 'Contact Us', 'business-times' ));
$cta_two_url = get_theme_mod( 'business_times_cta_button_two_url', '#' );
if( $cta_page && $cta_enable ){
$qry = new WP_Query ( array(
'post_type' => 'page',
'p' => absint( $cta_page )
) );
if( $qry->have_posts() ){
while( $qry->have_posts() ){
$qry->the_post();
?>
', '');
echo '
';
the_content();
echo '
';
?>
';
echo esc_html( $cta_one );
echo '';
}
?>
';
echo '
';
$page_qry = new WP_Query(array(
'post_type' => 'page',
'p' => $portfolio_page,
));
if($page_qry->have_posts()){
while($page_qry->have_posts()){ $page_qry->the_post();
echo '
';
echo '';
the_title();
echo '
';
the_excerpt();
echo '';
}
}
wp_reset_postdata();
for( $i = 1; $i <= 6; $i++ ){
$business_times_portfolio_post_id = get_theme_mod( 'business_times_portfolio_'.$i );
if( $business_times_portfolio_post_id ) {
$qry = new WP_Query( array( 'post_type' => 'post', 'p' => $business_times_portfolio_post_id ) );
if( $qry->have_posts() ){
while( $qry->have_posts() ){
$qry->the_post(); ?>
';
echo '
';
}
}
endif;
if( ! function_exists( 'business_times_team' ) ) :
/**
* Home Page Teams Section
*
* @since 1.0.1
*/
function business_times_team(){
$team_enable = get_theme_mod( 'business_times_ed_teams_section' );
$team_title = get_theme_mod( 'business_times_teams_section_title', '');
$team_category = get_theme_mod( 'business_times_team_category' );
if( $team_enable ){
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'cat' => absint( $team_category ),
'posts_per_page' => 4,
'orderby' => 'post_in',
'ignore_sticky_post' => true
);
if( $team_category ){
$args[ 'cat' ] = absint( $team_category );
}
$qry = new WP_Query( $args );
echo '
';
echo '';
if( $team_title ) { business_times_template_header( $team_title ); }
echo '
';
if( $qry->have_posts() ){ ?>
have_posts() ){
$qry->the_post();
?>
';
echo '
';
echo '';
}
}
endif;
if( ! function_exists( 'business_times_testimonial' ) ) :
/**
* Home Page testimonials Section
*
* @since 1.0.1
*/
function business_times_testimonial(){
$testimonial_enable = get_theme_mod( 'business_times_ed_testimonials_section' );
$testimonial_title = get_theme_mod( 'business_times_testimonials_section_title', '' );
$testimonial_category = get_theme_mod( 'business_times_testimonial_category' );
if( $testimonial_enable ){
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 6,
'ignore_sticky_post' => true
);
if( $testimonial_category ){
$args[ 'cat' ] = absint( $testimonial_category );
}
$qry = new WP_Query( $args );
echo '
';
echo '';
if( $testimonial_title ) { business_times_template_header( $testimonial_title ); }
echo '
';
echo '
';
if( $qry->have_posts() ){
while( $qry->have_posts() ){
$qry->the_post();
?>
';
echo '
';
echo '
';
echo '';
}
}
endif;
if( ! function_exists( 'business_times_content_start' ) ) :
/**
* Content Start
*
* @since 1.0.1
*/
function business_times_content_start(){
$ed_slider = get_theme_mod( 'business_times_ed_slider' );
$class = is_404() ? 'error-holder' : 'row' ;
if( !( $ed_slider && is_front_page() && !is_home()) ){
/** Breadcrumb */
do_action( 'business_times_breadcrumbs' );
?>
';// .row /#content /.container
}
}
endif;
if( ! function_exists( 'business_times_footer_start' ) ) :
/**
* Footer Start
*
* @since 1.0.1
*/
function business_times_footer_start(){
echo '
';
}
endif;
if( ! function_exists( 'business_times_footer_end' ) ) :
/**
* Footer End
*
* @since 1.0.1
*/
function business_times_footer_end(){
echo ''; // #colophon
}
endif;
if( ! function_exists( 'business_times_page_end' ) ) :
/**
* Page End
*
* @since 1.0.1
*/
function business_times_page_end(){
?>