path = dirname( __file__ ); $this->description = __( 'Call of Action', 'spyropress' ); $this->id_base = 'call_action'; $this->cssclass = 'call-action'; $this->name = __( 'Call of Action', 'spyropress' ); // Fields $this->fields = array( array( 'label' => __( 'Title', 'spyropress' ), 'id' => 'title', 'type' => 'text', ), array( 'label' => __( 'Sub Title', 'spyropress' ), 'id' => 'sub_title', 'type' => 'textarea', 'rows' => 5 ) ); $this->create_widget(); $this->fields = spyropress_get_options_link( $this->fields ); } function widget( $args, $instance ){ // extracting info extract( $args ); extract( $instance ); // get view to render require( $this->get_view() ); } } //register class Spyropress_Module_Call_Action spyropress_builder_register_module( 'Spyropress_Module_Call_Action' ); ?>