path = dirname( __file__ ); $this->cssclass = 'module-social-list'; $this->description = __( 'Display a list of social networks.', 'spyropress' ); $this->id_base = 'social_list'; $this->name = __( 'Social Icon List', 'spyropress' ); // Fields $this->fields = array( array( 'label' => __( 'Title', 'spyropress' ), 'id' => 'title', 'type' => 'text', 'std' => 'Follow Us' ), array( 'label' => __( 'Social', 'spyropress' ), 'type' => 'repeater', 'id' => 'socials', 'item_title' => 'network', 'fields' => array( array( 'label' => __( 'Network', 'spyropress' ), 'id' => 'network', 'type' => 'select', 'options' => spyropress_get_options_social() ), array( 'label' => __( 'URL', 'spyropress' ), 'id' => 'url', 'type' => 'text', ) ) ) ); $this->create_widget(); } function widget( $args, $instance ){ // extracting info extract( $args ); extract( $instance ); // get view to render include $this->get_view(); } } //register class Spyropress_Module_Social_Icon. spyropress_builder_register_module( 'Spyropress_Module_Social_Icon' ); ?>