',
$business_profile_counter
);
$business_profile_carousel_item_caption = '';
$business_profile_carousel_item[] = sprintf(
'
%s %s
',
business_profile_attachment_url_to_post_thumbnail($business_profile_image1),
$business_profile_carousel_item_caption
);
$business_profile_counter++;
}
$business_profile_image2 = get_theme_mod( 'business_profile_home_carousel_image2' );
if( $business_profile_image2 ) {
$business_profile_carousel_indicators[] = sprintf(
'',
$business_profile_counter
);
$business_profile_carousel_item[] = sprintf(
'%s %s
',
business_profile_attachment_url_to_post_thumbnail($business_profile_image2),
''
);
$business_profile_counter++;
}
$business_profile_image3 = get_theme_mod( 'business_profile_home_carousel_image3' );
if( $business_profile_image3 ) {
$business_profile_carousel_indicators[] = sprintf(
'',
$business_profile_counter
);
$business_profile_carousel_item[] = sprintf(
'%s %s
',
business_profile_attachment_url_to_post_thumbnail($business_profile_image3),
''
);
$business_profile_counter++;
}
$business_profile_carousel_control[] = 'Previous';
$business_profile_carousel_control[] = 'Next';
}
if( is_page() && has_post_thumbnail() ) {
$business_profile_carousel_item[] = sprintf(
'%s
',
get_the_post_thumbnail()
);
$business_profile_counter++;
}
if( $business_profile_counter > 0 ) {
?>