__( 'Right Sidebar', 'ample' ), 'id' => 'ample_right_sidebar', 'description' => __('Shows widgets at right side.', 'ample' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Business Sidebar', 'ample' ), 'id' => 'ample_business_sidebar', 'description' => __('Shows widgets on Business Page Template.', 'ample' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Error 404 Page Sidebar', 'ample' ), 'id' => 'ample_error_404_page_sidebar', 'description' => __('Shows widgets on Error 404 page.', 'ample' ), 'before_widget' => '', 'before_title' => '

', 'after_title' => '

', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar1', 'ample' ), 'id' => 'ample_footer_sidebar1', 'description' => __('Shows widgets on footer.', 'ample' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar2', 'ample' ), 'id' => 'ample_footer_sidebar2', 'description' => __('Shows widgets on footer.', 'ample' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar3', 'ample' ), 'id' => 'ample_footer_sidebar3', 'description' => __('Shows widgets on footer.', 'ample' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_sidebar( array( 'name' => __( 'Footer Sidebar4', 'ample' ), 'id' => 'ample_footer_sidebar4', 'description' => __('Shows widgets on footer.', 'ample' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); register_widget("ample_service_widget"); register_widget("ample_portfolio_widget"); register_widget("ample_call_to_action_widget"); register_widget("ample_featured_posts_widget"); } /**************************************************************************************/ /** * Featured recent work widget to show pages. */ class ample_service_widget extends WP_Widget { function ample_service_widget() { $widget_ops = array( 'classname' => 'widget_service_block', 'description' => __( 'Show your some pages as services.', 'ample' ) ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::WP_Widget( false, $name = __( 'TG: Service Widget', 'ample' ), $widget_ops, $control_ops); } function form( $instance ) { for ( $i=1; $i<=6; $i++ ) { $var = 'page_id'.$i; $defaults[$var] = ''; } $defaults['title'] = ''; $defaults['text'] = ''; $instance = wp_parse_args( (array) $instance, $defaults ); $title = esc_attr( $instance[ 'title' ] ); $text = esc_textarea( $instance['text'] ); ?>

Refer here For Icon Class', 'ample' ), esc_url( $url ) ); ?>

Select the page to display Title and Excerpt.

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

-1, 'post_type' => array( 'page' ), 'post__in' => $page_array, 'orderby' => 'post__in' ) ); echo $before_widget; if ( !empty( $title ) ) { ?>

have_posts() ):$get_featured_pages->the_post(); if ( $count == 2 ) { $service_wrap_class = 'feature-box tg-one-third tg-one-third-last'; } else { $service_wrap_class = 'feature-box tg-one-third'; } ?>
'widget_portfolio_block', 'description' => __( 'Display portfolio by using specific category', 'ample') ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::WP_Widget( false,$name= __( 'TG: Portfolio', 'ample' ), $widget_ops); } function form( $instance ) { $tg_defaults['background_color'] = '#e96045'; $tg_defaults['background_image' ] = ''; $tg_defaults['title'] = ''; $tg_defaults['text'] = ''; $tg_defaults['number'] = 4; $tg_defaults['category'] = ''; $tg_defaults['button_text'] = ''; $tg_defaults['button_url' ] = ''; $instance = wp_parse_args( (array) $instance, $tg_defaults ); $background_color = esc_attr( $instance[ 'background_color' ] ); $background_image = esc_url_raw( $instance[ 'background_image' ] ); $title = esc_attr( $instance[ 'title' ] ); $text = esc_textarea( $instance[ 'text' ] ); $number = $instance['number']; $category = $instance['category']; $button_text = esc_attr( $instance[ 'button_text' ] ); $button_url = esc_url( $instance[ 'button_url' ] ); ?>




get_field_id( 'background_image' . 'preview') . '"src="' . $background_image . '"style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" />
'; endif; ?>


' ','name' => $this->get_field_name( 'category' ), 'selected' => $category ) ); ?>

$number, 'post_type' => 'post', 'category__in' => $category ) ); echo $before_widget; ?>
style="background-color: " data-parallax="scroll" data-image-src="">

have_posts() ):$get_featured_posts->the_post(); if ( $i % 4 == 0 ) { $class = 'tg-one-fourth tg-one-fourth-last'; } else { $class = 'tg-one-fourth'; } ?>
'blog-excerp-section', 'description' => __( 'Display latest posts or posts of specific category', 'ample') ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::WP_Widget( false,$name= __( 'TG: Featured Posts', 'ample' ),$widget_ops); } function form( $instance ) { $tg_defaults['title'] = ''; $tg_defaults['number'] = 4; $tg_defaults['image_size'] = 'featured-blog-small'; $tg_defaults['type'] = 'latest'; $tg_defaults['category'] = ''; $instance = wp_parse_args( (array) $instance, $tg_defaults ); $title = esc_attr( $instance[ 'title' ] ); $number = $instance['number']; $type = $instance['type']; $category = $instance['category']; $image_size = $instance[ 'image_size' ]; ?>

id="get_field_id( 'image_size' ); ?>" name="get_field_name( 'image_size' ); ?>" value="featured"/>
id="get_field_id( 'image_size' ); ?>" name="get_field_name( 'image_size' ); ?>" value="featured-blog-small"/>

id="get_field_id( 'type' ); ?>" name="get_field_name( 'type' ); ?>" value="latest"/>
id="get_field_id( 'type' ); ?>" name="get_field_name( 'type' ); ?>" value="category"/>

' ','name' => $this->get_field_name( 'category' ), 'selected' => $category ) ); ?>

$number, 'post_type' => 'post', 'ignore_sticky_posts' => true ) ); } else { $get_featured_posts = new WP_Query( array( 'posts_per_page' => $number, 'post_type' => 'post', 'category__in' => $category ) ); } echo $before_widget; if( $image_size == 'featured-blog-small' ) { $featured = 'featured-blog-small'; $image_class = 'post-featured-image'; } else { $featured = 'featured-blog-large'; $image_class = 'post-featured-image-large'; } ?>
'widget_call_to_action', 'description' => __( 'Use this widget to show the call to action section.', 'ample' ) ); $control_ops = array( 'width' => 200, 'height' =>250 ); parent::WP_Widget( false, $name = __( 'TG: Call To Action Widget', 'ample' ), $widget_ops, $control_ops); } function form( $instance ) { $ample_defaults[ 'background_color' ] = '#e96045'; $ample_defaults[ 'background_image' ] = ''; $ample_defaults[ 'text_main' ] = ''; $ample_defaults[ 'button_text' ] = ''; $ample_defaults[ 'button_url' ] = ''; $instance = wp_parse_args( (array) $instance, $ample_defaults ); $background_color = esc_attr( $instance[ 'background_color' ] ); $text_additional = esc_url_raw( $instance[ 'background_image' ] ); $text_main = esc_textarea( $instance[ 'text_main' ] ); $button_text = esc_attr( $instance[ 'button_text' ] ); $button_url = esc_url( $instance[ 'button_url' ] ); ?>




get_field_id( 'background_image' . 'preview') . '"src="' . $instance[ 'background_image' ] . '"style="margin:0;padding:0;max-width:100px;float:left;display:inline-block" />
'; endif; ?>


style="background-color: " data-parallax="scroll" data-image-src="">