'; $whyusttl = get_theme_mod('adv_frstsec_ttl','1'); if( !empty( $whyusttl ) ){ echo '

'.$whyusttl.'

'; } $whymore = get_theme_mod('whyus_more'); if( !empty( $whymore ) ){ $shwwhymore .= ''.$whymore.''; } echo '
'; for( $whysec = 1; $whysec<4; $whysec++ ){ if( get_theme_mod( 'whyus'.$whysec,true ) !='' ){ $whysecquery = new WP_Query( array( 'page_id' => get_theme_mod( 'whyus'.$whysec ) ) ); while( $whysecquery->have_posts() ) : $whysecquery->the_post(); $shwthumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'medium'); $image_id = get_post_thumbnail_id(); $image_alt = get_post_meta($image_id, '_wp_attachment_image_alt', true); echo '
'; if( has_post_thumbnail() ) { echo '
'.$image_alt.'
'; } echo '

'.get_the_title().'

'.get_the_excerpt().'

'.$shwwhymore.''; echo '
'; endwhile; wp_reset_postdata(); } } echo '
'; }