';
if( have_posts() ){
echo '
';
while( have_posts() ){
the_post();
?>
', '');
the_content();
?>
';
}
wp_reset_postdata();
echo '
';
echo '';
}
}
endif;
if( ! function_exists( 'business_times_cta' ) ) :
/**
* Home Page cta Section
*
* @since 1.0.1
*/
function business_times_cta(){
global $business_times_default_page;
$cta_enable = get_theme_mod( 'business_times_ed_cta_section', '1' );
$cta_page = get_theme_mod( 'business_times_cta_section_page', $business_times_default_page );
$cta_one = get_theme_mod( 'business_times_cta_section_button_one', __( 'About Us', 'biz-times' ) );
$cta_one_url = get_theme_mod( 'business_times_cta_button_one_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();
?>
>
', '');
the_content();
if( $cta_one && $cta_one_url ) {
echo '
';
}
?>
'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_portfolio' ) ) :
/**
* Home Page portfolio Section
*
* @since 1.0.1
*/
function business_times_portfolio(){
$portfolio_enable = get_theme_mod( 'business_times_ed_portfolio_section' );
$portfolio_page = get_theme_mod('business_times_portfolio_page', '');
if( $portfolio_enable ){
echo '
';
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 '
';
echo '
';
}
}
endif;
if( ! function_exists( 'business_times_blog' ) ) :
/**
* Home Page Latest Post Section
*
* @since 1.0.1
*/
function business_times_blog(){
$blog_enable = get_theme_mod( 'business_times_ed_blog_section' );
$blog_meta = get_theme_mod( 'business_times_ed_blog_date','1' );
$blog_title = get_theme_mod( 'business_times_blog_section_title', '' );
$blog_category = get_theme_mod( 'business_times_blog_section_category' );
$blog_readmore = get_theme_mod( 'business_times_blog_section_readmore' );
$blog_url = get_theme_mod( 'business_times_blog_section_url' );
if( $blog_enable ){
$args = array(
'post_type' => 'post',
'post_status' => 'publish',
'posts_per_page' => 3,
'ignore_sticky_post' => true
);
if( $blog_category ){
$args[ 'cat' ] = absint( $blog_category );
}
$qry = new WP_Query( $args );
echo '
';
echo '';
if( $blog_title ) { business_times_template_header( $blog_title ); }
echo '
';
}
}
wp_reset_postdata();
echo '
';
echo '';
echo '';
}
}
endif;