path = dirname(__file__); // Widget variable settings. $this->cssclass = ''; $this->description = __( 'Slide content or images using FlexSlider', 'spyropress' ); $this->idbase = 'spyropress_flexslider'; $this->name = __( 'Slider', 'spyropress' ); $this->fields = array( array( 'label' => __( 'Title', 'spyropress' ), 'id' => 'sub_title', 'type' => 'text' ), array( 'label' => __( 'Sub Title', 'spyropress' ), 'id' => 'title', 'type' => 'text' ), array( 'label' => __( 'Slides', 'spyropress' ), 'type' => 'repeater', 'id' => 'slides', 'fields' => array( array( 'name' => __( 'Image', 'spyropress' ), 'id' => 'image', 'type' => 'upload', ) ) ), array( 'label' => __( 'Content Image', 'spyropress' ), 'id' => 'content_image', 'type' => 'upload', ), array( 'label' => __( 'Content', 'spyropress' ), 'id' => 'content', 'type' => 'textarea', 'rows' => 4 ) ); $this->create_widget(); } function widget( $args, $instance ){ // extracting info extract( $args ); extract( $instance ); // get view to render require( $this->get_view() ); } } //register module class Spyropress_Module_FlexSlider spyropress_builder_register_module('Spyropress_Module_FlexSlider'); ?>