'; // print_r ( $rws_business_options ); // echo ''; if ( ! empty($rws_business_options['first_item_page'])) { $rws_pages[] = $rws_business_options['first_item_page']; } if ( ! empty($rws_business_options['second_item_page'])) { $rws_pages[] = $rws_business_options['second_item_page']; } if ( ! empty($rws_business_options['third_item_page'])) { $rws_pages[] = $rws_business_options['third_item_page']; } if ( ! empty($rws_business_options['fourth_item_page'])) { $rws_pages[] = $rws_business_options['fourth_item_page']; } if ( ! empty($rws_business_options['service_excerpt_length'])) { $excerpt_length = $rws_business_options['service_excerpt_length']; } else { $excerpt_length = '20'; } if (empty($rws_pages)) { $rws_business_service_section = array( '0' => array( 'title' => 'business ideas', 'content' => 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet.', 'icon' => 'fa-lightbulb-o', 'link' => '#' ), '1' => array( 'title' => 'Small Business', 'content' => 'Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.', 'icon' => 'fa-rocket', 'link' => '#' ), '2' => array( 'title' => 'our comments', 'content' => 'Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum dolore eu feugiat.', 'icon' => 'fa-comments-o', 'link' => '#' ), '3' => array( 'title' => 'open 24 hours', 'content' => 'Vero eros et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit augue duis dolore te feugait nulla facilisi.', 'icon' => 'fa-clock-o', 'link' => '#' ), ); }else { $args = array( 'post_type' => 'page', 'post_status' => 'publish', 'post__in' => $rws_pages, 'orderby' => 'post__in', 'order' => 'ASC', 'posts_per_page' => 4 ); $queried_pages = new WP_Query($args); $rws_business_service_section = array(); $i = 0; if ( $queried_pages-> have_posts() ): while ( $queried_pages->have_posts() ){ $queried_pages->the_post(); $rws_business_service_section[$i]['title'] = get_the_title(); $rws_business_service_section[$i]['content'] = rws_business_blog_excerpt( $excerpt_length ); $rws_business_service_section[$i]['link'] = esc_url( get_the_permalink() ) ; if ( ! empty($rws_business_options['first_item'])) { $rws_business_service_section[0]['icon'] = $rws_business_options['first_item']; } if ( ! empty($rws_business_options['second_item'])) { $rws_business_service_section[1]['icon'] = $rws_business_options['second_item']; } if ( ! empty($rws_business_options['third_item'])) { $rws_business_service_section[2]['icon'] = $rws_business_options['third_item']; } if ( ! empty($rws_business_options['fourth_item'])) { $rws_business_service_section[3]['icon'] = $rws_business_options['fourth_item']; } $i++; } endif; // end of query wp_reset_postdata(); } if ($rws_business_options['service_section_switch'] === true): if ( ! empty ( $rws_business_service_section ) ) : ?>
' . $services['title'] . ''; } if ( ! empty( $services['content']) ) { echo '

'.$services['content'].'

'; } if ( ! empty ( $services['link'] ) ){ echo 'read more'; } ?>
'about us', 'content' => '

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper. Duis autem vel eum iriure dolor in hendrerit in vulputate.

', 'link' => '#' ); } else { $args = array( 'post_type' => 'page', 'post_status' => 'publish', 'page_id' => $about_page, 'posts_per_page' => 1 ); $queried_pages = new WP_Query( $args ); $rws_business_about_section = array(); if ( $queried_pages-> have_posts() ): $queried_pages->the_post(); $rws_business_about_section['title'] = get_the_title(); $rws_business_about_section['content'] = rws_business_blog_excerpt( $excerpt_length ); $rws_business_about_section['link'] = esc_url( get_the_permalink() ) ; endif; // end of query wp_reset_postdata(); } if ( ! empty ( $rws_business_options['about_section_btn_text'] ) ){ $rws_business_about_section['btn'] = $rws_business_options['about_section_btn_text']; }else{ $rws_business_about_section['btn'] = 'Know Us More' ; } if ( $rws_business_options['about_sectionswitch'] === true ): if ( ! empty ( $rws_business_about_section ) ) : ?>
  • <?php echo $rws_business_about_section['title'];?>
array( 'title' => 'Made Ready for Installation.', 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing metus. elit. Quisque rutrum pellentesque imperdiete.', 'icon' => 'fa-coffee', ), '1' => array( 'title' => 'Use of Twitter Bootstrap 3.', 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing metus. elit. Quisque rutrum pellentesque imperdiets.', 'icon' => 'fa-twitter', ), '2' => array( 'title' => 'Tons of Shortcodes for your ease.', 'content' => 'Lorem ipsum dolor sit amet, consectetur adipiscing metus. elit. Quisque rutrum pellentesque imperdietf.', 'icon' => 'fa-code', ), ); }else { $args = array( 'post_type' => 'page', 'post_status' => 'publish', 'post__in' => $rws_pages, 'orderby' => 'post__in', 'order' => 'ASC', 'posts_per_page' => 3 ); $queried_pages = new WP_Query($args); $rws_business_features_section = array(); $i = 0; if ( $queried_pages-> have_posts() ): while ( $queried_pages->have_posts() ){ $queried_pages->the_post(); $rws_business_features_section[$i]['title'] = get_the_title(); $rws_business_features_section[$i]['content'] = rws_business_blog_excerpt( $excerpt_length ); $rws_business_features_section[$i]['link'] = esc_url( get_the_permalink() ) ; if ( ! empty($rws_business_options['first_item'])) { $rws_business_features_section[0]['icon'] = $rws_business_options['first_item']; } if ( ! empty($rws_business_options['second_item'])) { $rws_business_features_section[1]['icon'] = $rws_business_options['second_item']; } if ( ! empty($rws_business_options['third_item'])) { $rws_business_features_section[2]['icon'] = $rws_business_options['third_item']; } $i++; } endif; // end of query wp_reset_postdata(); } if ($rws_business_options['features_section_switch'] === true): if ( ! empty ( $rws_business_features_section ) ) : ?>

%2$s ', esc_url ( $link ), $features['title'] ); } if ( ! empty( $features['content']) ) { echo '

'.$features['content'].'

'; } ?>
array( 'title' => 'Alice In WonderLand', 'content' => 'You can\'t think how glad I am to see you again, you dear old thing\' said the Duchess, as she tucked her arm affectionately into Alice\'s, and they walked off together', 'author' => 'By Alen Cooper', 'image' => array( get_template_directory_uri().'/images/blog-post-1.jpg' ), 'link' => '#' ), '1' => array( 'title' => 'Alice In WonderLand', 'content' => 'You can\'t think how glad I am to see you again, you dear old thing\' said the Duchess, as she tucked her arm affectionately into Alice\'s, and they walked off together', 'author' => 'By Alen Cooper', 'image' => array( get_template_directory_uri().'/images/blog-post-2.jpg' ), 'link' => '#' ), '2' =>array( 'title' => 'Alice In WonderLand', 'content' => 'You can\'t think how glad I am to see you again, you dear old thing\' said the Duchess, as she tucked her arm affectionately into Alice\'s, and they walked off together', 'author' => 'By Alen Cooper', 'image' => array( get_template_directory_uri().'/images/blog-post-3.jpg' ), 'link' => '#' ), ); } else { $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'post__in' => $rws_posts, 'orderby' => 'post__in', 'order' => 'ASC', 'posts_per_page' => 3 ); $queried_pages = new WP_Query($args); $rws_business_blog_section = array(); $i = 0; if ( $queried_pages-> have_posts() ): while ( $queried_pages->have_posts() ){ $queried_pages->the_post(); $rws_business_blog_section[$i]['title'] = get_the_title(); $rws_business_blog_section[$i]['content'] = rws_business_blog_excerpt( $excerpt_length ); $rws_business_blog_section[$i]['link'] = esc_url ( get_the_permalink() ) ; $rws_business_blog_section[$i]['author'] = get_the_author(); $rws_business_blog_section[$i]['image'] = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_id()), 'rws-homepage-blog-thumb' ); $i++; } endif; // end of query wp_reset_postdata(); } if ( $rws_business_options['blog_section_switch'] === true ): if ( ! empty ( $rws_business_blog_section ) ) : ?>

<?php echo $blog['title'];?>
%2$s ', esc_url ( $blog['link'] ), $blog['title'] ); echo ''.$blog['author'].''; echo '

'.$blog['content'].'

'; echo sprintf('continue reading', esc_url ( $blog['link'] ) ); ?>
array( 'title' => 'Joeey Dischanel ( Actress of New Girl )', 'content' => 'Care and accuracy in the design process show respect towards the consumer.', 'image' => array( get_template_directory_uri().'/images/joeey.jpg' ), 'link' => '#' ), '1' => array( 'title' => 'Joeey Dischanel ( Actress of New Girl )', 'content' => 'Care and accuracy in the design process show respect towards the consumer.', 'image' => array( get_template_directory_uri().'/images/joeey.jpg' ), 'link' => '#' ), '2' =>array( 'title' => 'Joeey Dischanel ( Actress of New Girl )', 'content' => 'Care and accuracy in the design process show respect towards the consumer.', 'image' => array( get_template_directory_uri().'/images/joeey.jpg' ), 'link' => '#' ), ); } else { $args = array( 'post_type' => 'post', 'post_status' => 'publish', 'ignore_sticky_posts' => true, 'orderby' => 'date' ); if ( $rws_business_options['testimonial_select'] === 'category' && ! empty ( $rws_cats ) ){ $args['category__in'] = $rws_cats; } if ( $rws_business_options['testimonial_select'] === 'tag' && ! empty ( $rws_tags ) ){ $args['tag__in'] = $rws_tags; } $queried_pages = new WP_Query($args); $rws_business_testimonials_section = array(); $i = 0; if ( $queried_pages-> have_posts() ): while ( $queried_pages->have_posts() ){ $queried_pages->the_post(); $rws_business_testimonials_section[$i]['title'] = get_the_title(); $rws_business_testimonials_section[$i]['content'] = rws_business_blog_excerpt( $excerpt_length ); $rws_business_testimonials_section[$i]['link'] = esc_url ( get_the_permalink() ) ; $rws_business_testimonials_section[$i]['image'] = wp_get_attachment_image_src( get_post_thumbnail_id( get_the_id()), 'thumbnail' ); $i++; } endif; // end of query wp_reset_postdata(); } if ( $rws_business_options['testimonial_section_switch'] === true ): if ( ! empty ( $rws_business_testimonials_section ) ) : ?>

<?php echo esc_attr ( $image.'_'.$j ) ;?>