esc_html__( 'Get A Quote Widget', 'business-land' ) ) // Args
);
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance ) {
// outputs the options form on admin
$businessland_quote_title = ! empty( $instance['businessland_quote_title'] ) ? $instance['businessland_quote_title'] : '';
$businessland_quote_btn_label = ! empty( $instance['businessland_quote_btn_label'] ) ? $instance['businessland_quote_btn_label'] : '';
$businessland_quote_btn_url = ! empty( $instance['businessland_quote_btn_url'] ) ? $instance['businessland_quote_btn_url'] : '';
$business_quote_bg_image = ! empty( $instance['business_quote_bg_image'] ) ? $instance['business_quote_bg_image'] : '';
?>
style="background-image:url('');" data-stellar-background-ratio="0.5">
esc_html__( 'Service Widget', 'business-land' ) ) // Args
);
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance ){
$service_section_title = ! empty( $instance['service_section_title'] ) ? $instance['service_section_title'] : '';
$service_section_sub_title = ! empty( $instance['service_section_sub_title'] ) ? $instance['service_section_sub_title'] : '';
$service_fb1_status = ! empty( $instance['service_fb1_status'] ) ? $instance['service_fb1_status'] : '';
$service_fb1_title = ! empty( $instance['service_fb1_title'] ) ? $instance['service_fb1_title'] : '';
$service_fb1_content = ! empty( $instance['service_fb1_content'] ) ? $instance['service_fb1_content'] : '';
$service_fb1_icon = ! empty( $instance['service_fb1_icon'] ) ? $instance['service_fb1_icon'] : '';
$service_fb2_status = ! empty( $instance['service_fb2_status'] ) ? $instance['service_fb2_status'] : '';
$service_fb2_title = ! empty( $instance['service_fb2_title'] ) ? $instance['service_fb2_title'] : '';
$service_fb2_content = ! empty( $instance['service_fb2_content'] ) ? $instance['service_fb2_content'] : '';
$service_fb2_icon = ! empty( $instance['service_fb2_icon'] ) ? $instance['service_fb2_icon'] : '';
$service_fb3_status = ! empty( $instance['service_fb3_status'] ) ? $instance['service_fb3_status'] : '';
$service_fb3_title = ! empty( $instance['service_fb3_title'] ) ? $instance['service_fb3_title'] : '';
$service_fb3_content = ! empty( $instance['service_fb3_content'] ) ? $instance['service_fb3_content'] : '';
$service_fb3_icon = ! empty( $instance['service_fb3_icon'] ) ? $instance['service_fb3_icon'] : '';
$service_fb4_status = ! empty( $instance['service_fb4_status'] ) ? $instance['service_fb4_status'] : '';
$service_fb4_title = ! empty( $instance['service_fb4_title'] ) ? $instance['service_fb4_title'] : '';
$service_fb4_content = ! empty( $instance['service_fb4_content'] ) ? $instance['service_fb4_content'] : '';
$service_fb4_icon = ! empty( $instance['service_fb4_icon'] ) ? $instance['service_fb4_icon'] : '';
$service_fb5_status = ! empty( $instance['service_fb5_status'] ) ? $instance['service_fb5_status'] : '';
$service_fb5_title = ! empty( $instance['service_fb5_title'] ) ? $instance['service_fb5_title'] : '';
$service_fb5_content = ! empty( $instance['service_fb5_content'] ) ? $instance['service_fb5_content'] : '';
$service_fb5_icon = ! empty( $instance['service_fb5_icon'] ) ? $instance['service_fb5_icon'] : '';
$service_fb6_status = ! empty( $instance['service_fb6_status'] ) ? $instance['service_fb6_status'] : '';
$service_fb6_title = ! empty( $instance['service_fb6_title'] ) ? $instance['service_fb6_title'] : '';
$service_fb6_content = ! empty( $instance['service_fb6_content'] ) ? $instance['service_fb6_content'] : '';
$service_fb6_icon = ! empty( $instance['service_fb6_icon'] ) ? $instance['service_fb6_icon'] : '';
?>
id="get_field_id( 'service_fb1_status' ) ); ?>" name="get_field_name( 'service_fb1_status' ) ); ?>" />
id="get_field_id( 'service_fb2_status' ) ); ?>" name="get_field_name( 'service_fb2_status' ) ); ?>" />
id="get_field_id( 'service_fb3_status' ) ); ?>" name="get_field_name( 'service_fb3_status' ) ); ?>" />
id="get_field_id( 'service_fb4_status' ) ); ?>" name="get_field_name( 'service_fb4_status' ) ); ?>" />
id="get_field_id( 'service_fb5_status' ) ); ?>" name="get_field_name( 'service_fb5_status' ) ); ?>" />
id="get_field_id( 'service_fb6_status' ) ); ?>" name="get_field_name( 'service_fb6_status' ) ); ?>" />
esc_html__( 'Counter Widget', 'business-land' ) ) // Args
);
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance ){
$counter_one_title = ! empty( $instance['counter_one_title'] ) ? $instance['counter_one_title'] : '';
$counter_one_count = ! empty( $instance['counter_one_count'] ) ? $instance['counter_one_count'] : '';
$counter_one_icon = ! empty( $instance['counter_one_icon'] ) ? $instance['counter_one_icon'] : '';
$counter_two_title = ! empty( $instance['counter_two_title'] ) ? $instance['counter_two_title'] : '';
$counter_two_count = ! empty( $instance['counter_two_count'] ) ? $instance['counter_two_count'] : '';
$counter_two_icon = ! empty( $instance['counter_two_icon'] ) ? $instance['counter_two_icon'] : '';
$counter_three_title = ! empty( $instance['counter_three_title'] ) ? $instance['counter_three_title'] : '';
$counter_three_count = ! empty( $instance['counter_three_count'] ) ? $instance['counter_three_count'] : '';
$counter_three_icon = ! empty( $instance['counter_three_icon'] ) ? $instance['counter_three_icon'] : '';
$counter_four_title = ! empty( $instance['counter_four_title'] ) ? $instance['counter_four_title'] : '';
$counter_four_count = ! empty( $instance['counter_four_count'] ) ? $instance['counter_four_count'] : '';
$counter_four_icon = ! empty( $instance['counter_four_icon'] ) ? $instance['counter_four_icon'] : '';
$counter_bg_image = ! empty( $instance['counter_bg_image'] ) ? $instance['counter_bg_image'] : '';
?>
style="background-image:url('');" data-stellar-background-ratio="0.5">
esc_html__( 'Latest Blog Widget', 'business-land' ) ) // Args
);
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance ) {
// outputs the options form on admin
$blog_section_title = ! empty( $instance['blog_section_title'] ) ? $instance['blog_section_title'] : '';
$blog_section_sub_title = ! empty( $instance['blog_section_sub_title'] ) ? $instance['blog_section_sub_title'] : '';
$blog_post_cat = ! empty( $instance[ 'blog_post_cat' ] ) ? $instance[ 'blog_post_cat' ] : '';
$blog_post_item = ! empty( $instance['blog_post_item'] ) ? $instance['blog_post_item'] : '';
?>
'name',
'hide_empty' => 0,
'id' => $this->get_field_id( 'blog_post_cat' ),
'name' => $this->get_field_name( 'blog_post_cat' ),
'class' => 'widefat',
'taxonomy' => 'category',
'selected' => absint( $blog_post_cat ),
'show_option_all' => esc_html__( 'Choose Category', 'business-land' )
);
wp_dropdown_categories( $post_cat );
?>
'post',
'posts_per_page' => absint( $blog_post_item ),
'ignore_sticky_posts' => true,
'post_status' => 'publish',
'cat' => absint( $blog_post_cat )
);
$post_query = new WP_Query( $args );
if( $post_query->have_posts() ):
while ( $post_query->have_posts() ) : $post_query->the_post(); ?>
esc_html__( 'Project Widget', 'business-land' ) ) // Args
);
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance ) {
// outputs the options form on admin
$project_section_title = ! empty( $instance['project_section_title'] ) ? $instance['project_section_title'] : '';
$project_section_sub_title = ! empty( $instance['project_section_sub_title'] ) ? $instance['project_section_sub_title'] : '';
$project_post_cat = ! empty( $instance[ 'project_post_cat' ] ) ? $instance[ 'project_post_cat' ] : '';
$project_post_item = ! empty( $instance['project_post_item'] ) ? $instance['project_post_item'] : '';
?>
'name',
'hide_empty' => 0,
'id' => $this->get_field_id( 'project_post_cat' ),
'name' => $this->get_field_name( 'project_post_cat' ),
'class' => 'widefat',
'taxonomy' => 'category',
'selected' => absint( $project_post_cat ),
'show_option_all' => esc_html__( 'Choose Category', 'business-land' )
);
wp_dropdown_categories( $post_cat );
?>
'post',
'posts_per_page' => absint( $project_post_item ),
'ignore_sticky_posts' => true,
'post_status' => 'publish',
'cat' => absint( $project_post_cat )
);
$post_query = new WP_Query( $args );
if( $post_query->have_posts() ):
while ( $post_query->have_posts() ) : $post_query->the_post(); ?>
esc_html__( 'About Us Widget', 'business-land' ) ) // Args
);
}
/**
* Outputs the options form on admin
*
* @param array $instance The widget options
*/
public function form( $instance ) {
// outputs the options form on admin
$aboutus_section_title = ! empty( $instance['aboutus_section_title'] ) ? $instance['aboutus_section_title'] : '';
$aboutus_section_sub_title = ! empty( $instance['aboutus_section_sub_title'] ) ? $instance['aboutus_section_sub_title'] : '';
$aboutus_excerpt_lenth = ! empty( $instance['aboutus_excerpt_lenth'] ) ? $instance['aboutus_excerpt_lenth'] : '';
$aboutus_page_one = ! empty( $instance['aboutus_page_one'] ) ? $instance['aboutus_page_one'] : '';
$aboutus_page_two = ! empty( $instance['aboutus_page_two'] ) ? $instance['aboutus_page_two'] : '';
?>
1,
'sort_order' => 'asc',
'parent' => -1,
'exclude_tree' => '',
'name' => $this->get_field_name( 'aboutus_page_one' ),
'post_type' => 'page',
'value_field' => 'ID',
'post_status' => 'publish',
'id' => $this->get_field_id( 'aboutus_page_one' ),
'selected' => absint( $aboutus_page_one ),
);
wp_dropdown_pages( wp_kses_post( $page_one ) );
?>
1,
'sort_order' => 'asc',
'parent' => -1,
'exclude_tree' => '',
'name' => $this->get_field_name( 'aboutus_page_two' ),
'post_type' => 'page',
'value_field' => 'ID',
'post_status' => 'publish',
'id' => $this->get_field_id( 'aboutus_page_two' ),
'selected' => absint( $aboutus_page_two ),
);
wp_dropdown_pages( wp_kses_post( $page_two ) );
?>
'page',
'posts_per_page' => 2,
'ignore_sticky_posts' => true,
'post_status' => 'publish',
'post__in' => array( $aboutus_page_one, $aboutus_page_two )
);
$post_query = new WP_Query( $args );
if( $post_query->have_posts() ):
while ( $post_query->have_posts() ) : $post_query->the_post(); ?>