3, 'post_type' => 'page', 'post__in' => $avanza_lite_pages, 'orderby' => 'post__in' ); $query = new WP_Query( $args ); if ( $query->have_posts() ) : $sld = 7; ?>
have_posts() ) : $query->the_post(); $i++; $avanza_lite_slideno[] = $i; $avanza_lite_slidetitle[] = get_the_title(); $avanza_lite_slidedesc[] = get_the_excerpt(); $avanza_lite_slidelink[] = esc_url(get_permalink()); ?>
'; $secttl = get_theme_mod('fsecttl','1'); if( !empty( $secttl ) ){ echo '

'.$secttl.'

'; } $getmore = get_theme_mod('fsecmore',true); if( !empty( $getmore ) ){ $shwgetmore .= ''.$getmore.''; } echo '
'; for( $fsec = 1; $fsec<5; $fsec++ ){ if( get_theme_mod( 'page-setting'.$fsec,true ) !='' ){ $fsecquery = new WP_Query(array('page_id' => get_theme_mod('page-setting'.$fsec))); while( $fsecquery->have_posts() ) : $fsecquery->the_post(); $shwthumb = wp_get_attachment_image_src( get_post_thumbnail_id(), 'icon-box-thumb'); echo '
'; if( has_post_thumbnail() ) { echo '
'; } echo '

'.get_the_excerpt().'

'.$shwgetmore.'
'; endwhile; wp_reset_postdata(); } } echo '
'; } ?> '.$getmores.''; } echo '
'; if(get_theme_mod('ser-setting1') != '') { $page_query = new WP_Query(array('page_id' => get_theme_mod('ser-setting1'))); while( $page_query->have_posts() ) : $page_query->the_post(); $sec_subttl = get_theme_mod('ser-second-sec-ttl','1'); if( !empty( $sec_subttl ) ){ $shwsbttl = '
'.get_theme_mod('ser-second-sec-ttl','1').'
'; } echo '
'; if( has_post_thumbnail() ) { $src = wp_get_attachment_image_src( get_post_thumbnail_id($post_id), 'full' ); $url = $src[0]; echo '
'; } echo '
'.$shwsbttl.'

'.get_the_title().'

'.get_the_content().'

'.$shwgetmores.'
'; endwhile; wp_reset_postdata(); } echo '
'; } } ?>