__( 'Displays pages as services. Best for Business Template Top/Bottom Area.', 'thbusiness' ), ) // Args ); } public function form( $instance ) { for ( $i=0; $i<6; $i++ ) { $var = 'page_id'.$i; $icons = 'icon'.$i; $defaults[$icons] = ''; $defaults[$var] = ''; } $instance = wp_parse_args( (array) $instance, $defaults ); for ( $i=0; $i<6; $i++ ) { $var = 'page_id'.$i; $var = absint( $instance[ $var ] ); } ?> Give the name of the font awesome icon to the Icon input field.You can find the icon names from the readme.txt
eg: fa-angle-double-up', 'thbusiness' ); ?>

' ','name' => $this->get_field_name( 'page_id'.$i ), 'selected' => $instance[ 'page_id'.$i ], 'class' => 'widefat' ) ); ?>

-1, 'post_type' => array( 'page' ), 'post__in' => $page_array, 'orderby' => 'post__in' ) ); ?>
have_posts()) : $get_services_pages->the_post(); ?>
post_excerpt ) ) { echo thbusiness_excerpt(30); } else { echo the_excerpt(); } ?>
__( 'Displays pages as recent work.Featured image of the page will show up first. Best for Business Template Top/Bottom Area.', 'thbusiness' ), ) // Args ); } public function form( $instance ) { for ( $i=0; $i<4; $i++ ) { $var = 'page_id'.$i; $defaults[$var] = ''; } $att_defaults = $defaults; $att_defaults['title'] = ''; $att_defaults['show_page_titles'] = 1; $att_defaults['show_page_excerpts'] = 0; $instance = wp_parse_args( (array) $instance, $att_defaults ); for ( $i=0; $i<4; $i++ ) { $var = 'page_id'.$i; $var = absint( $instance[ $var ] ); } $title = esc_attr( $instance[ 'title' ] ); $show_page_titles = $instance['show_page_titles'] ? 'checked="checked"' : ''; $show_page_excerpts = $instance['show_page_excerpts'] ? 'checked="checked"' : ''; ?>

id="get_field_id( 'show_page_titles' ); ?>" name="get_field_name( 'show_page_titles' ); ?>" />

id="get_field_id( 'show_page_excerpts' ); ?>" name="get_field_name( 'show_page_excerpts' ); ?>" />

' ','name' => $this->get_field_name( key($defaults) ), 'selected' => $instance[key($defaults)] ) ); ?>

-1, 'post_type' => array( 'page' ), 'post__in' => $page_array, 'orderby' => 'post__in' ) ); ?>
have_posts()) : $get_services_pages->the_post(); ?>

post_excerpt ) ) { echo thbusiness_excerpt(30); } else { echo the_excerpt(); } ?>
__( 'Displays a call to action widget.Best for Business Template Top/Bottom Area.', 'thbusiness' ), ) // Args ); } public function form( $instance ) { $thbusiness_defaults[ 'action_title' ] = ''; $thbusiness_defaults[ 'action_text' ] = ''; $thbusiness_defaults[ 'button_text' ] = ''; $thbusiness_defaults[ 'button_url' ] = ''; $instance = wp_parse_args( (array) $instance, $thbusiness_defaults ); $action_title = esc_textarea( $instance['action_title'] ); $action_text = esc_textarea( $instance['action_text'] ); $button_text = esc_attr( $instance['button_text'] ); $button_url = esc_url( $instance['button_url'] ); ?>

__( 'Displays a single Page along with the featured image.', 'thbusiness' ), ) // Args ); } public function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'page_id' => '', 'title' => '', 'disable_feature_image' => 0 ) ); $title = esc_attr( $instance[ 'title' ] ); $page_id = absint( $instance[ 'page_id' ] ); $disable_feature_image = $instance['disable_feature_image'] ? 'checked="checked"' : ''; ?>

$this->get_field_name( 'page_id' ), 'selected' => $instance['page_id'] ) ); ?>

id="get_field_id('disable_feature_image'); ?>" name="get_field_name('disable_feature_image'); ?>" />

have_posts() ):$the_query->the_post(); $page_name = get_the_title(); $before_widget; ?>
__( 'Displays a testimonial.Best for Business Template Left/Right Area.', 'thbusiness' ), ) // Args ); } public function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'image' => '', 'description' => '', 'name' => '', 'designation' => '', 'company_name' => '', 'company_url' => '' ) ); $title = strip_tags( $instance['title'] ); $image = strip_tags( $instance['image'] ); $description = esc_textarea( $instance['description'] ); $name = strip_tags( $instance['name'] ); $designation = strip_tags( $instance['designation'] ); $company_name = strip_tags( $instance['company_name'] ); $company_url = strip_tags( $instance['company_url'] ); ?>

X
id_base ); $description = apply_filters( 'description', empty( $instance['description'] ) ? '' : $instance['description'], $instance ); $name = apply_filters( 'name', empty( $instance['name'] ) ? '' : $instance['name'], $instance, $this->id_base ); $company_name = apply_filters( 'company_name', empty( $instance['company_name'] ) ? '' : $instance['company_name'], $instance, $this->id_base ); $company_url = apply_filters( 'company_url', empty( $instance['company_url'] ) ? '' : $instance['company_url'], $instance, $this->id_base ); $designation = apply_filters( 'designation', empty( $instance['designation'] ) ? '' : $instance['designation'], $instance, $this->id_base ); $image = apply_filters( 'image', empty( $instance['image'] ) ? '' : $instance['image'], $instance, $this->id_base ); echo $before_widget; ?>
<?php echo esc_attr($name); ?>

,
__( 'Displays images.You can show customer logos or any other images by this widget.Best for Business Template Top/Bottom Area.', 'thbusiness' ), ) // Args ); } public function form( $instance ) { for ( $i=0; $i<4; $i++ ) { $image_url = 'image_url'.$i; $image_redirect_url = 'image_redirect_url'.$i; $defaults[$image_url] = ''; $defaults[$image_redirect_url] = ''; } $title = 'title'; $defaults[$title] = ''; $instance = wp_parse_args( (array) $instance, $defaults ); $title = strip_tags($instance['title']); for ( $i=0; $i<4; $i++ ) { $image_url = 'image_url'.$i; $image_redirect_url = 'image_redirect_url'.$i; $instance[ $image_url ] = esc_url( $instance[ $image_url ] ); $instance[ $image_redirect_url ] = esc_url( $instance[ $image_redirect_url ] ); } ?>

X