'',
'title' => esc_html__('Our Services','nexas'),
'sub_title' => esc_html__('Check Our All Services','nexas')
);
return $defaults;
}
public function __construct()
{
parent::__construct(
/*Base ID of your widget*/
'nexas-service-widget',
/*Widget name will appear in UI*/
esc_html__( 'Nexas Service Widget', 'nexas' ),
/*Widget description*/
array( 'description' => esc_html__( 'Nexas Service Section', 'nexas' ) )
);
}
/**
* Function to Creating widget front-end. This is where the action happens
*
* @access public
* @since 1.0
*
* @param array $args widget setting
* @param array $instance saved values
*
* @return void
*
*/
public function widget( $args, $instance )
{
if (!empty( $instance ) ) {
$instance = wp_parse_args( (array ) $instance, $this->defaults ());
$title = apply_filters('widget_title', !empty($instance['title']) ? esc_html( $instance['title']): '', $instance, $this->id_base);
$subtitle = esc_html( $instance['sub_title'] );
$services_page_items = $instance['services_page_items'];
echo $args['before_widget'];
?>