path = dirname( __file__ ); $this->cssclass = 'module-our-clients'; $this->description = __( 'Display a list of our clients.', 'spyropress' ); $this->id_base = 'spyropress_our_clients'; $this->name = __( 'Our Clients', 'spyropress' ); // Fields $this->fields = array( array( 'label' => __( 'title', 'spyropress' ), 'id' => 'title', 'type' => 'text', ), array( 'id' => 'clients', 'label' => __( 'Client', 'spyropress' ), 'type' => 'repeater', 'fields' => array( array( 'label' => __( 'Caption', 'spyropress' ), 'id' => 'caption', 'type' => 'text' ), array( 'label' => __( 'Link', 'spyropress' ), 'id' => 'link', 'type' => 'text', 'std' => '#' ), array( 'label' => __( 'Logo', 'spyropress' ), 'id' => 'logo', 'type' => 'upload' ) ) ) ); $this->create_widget(); } function widget( $args, $instance ){ // extracting info extract( $args ); extract( $instance ); // get view to render require( $this->get_view() ); } } //register class Spyropress_Module_Our_Clients spyropress_builder_register_module( 'Spyropress_Module_Our_Clients' ); ?>