'',
'features_title' => esc_html__('CORE FEATURES', 'nexas'),
'features_background' => ''
);
return $defaults;
}
public function __construct()
{
parent::__construct(
/*Base ID of your widget*/
'nexas-feature-widget',
/*Widget name will appear in UI*/
esc_html__('Nexas Feature Widget', 'nexas'),
/*Widget description*/
array('description' => esc_html__('Nexas Feature 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() );
/*default values*/
$features_title = apply_filters( 'widget_title', !empty( $instance['features_title'] ) ? esc_html( $instance['features_title'] ) : '', $instance, $this->id_base);
$features_page_items = $instance['features_page_items'];
$features_background = esc_url($instance['features_background']);
echo $args['before_widget'];
?>
';
endif;
?>