path = dirname( __file__ ); $this->description = __( 'List your skills.', 'spyropress' ); $this->id_base = 'spyroress_skills'; $this->name = __( 'Skills', 'spyropress' ); // Fields $this->fields = array( array( 'label' => __( 'Title', 'spyropress' ), 'id' => 'title', 'type' => 'text', ), array( 'label' => __( 'Skills', 'spyropress' ), 'id' => 'skills', 'type' => 'repeater', 'item_label' => 'title', 'fields' => array( array( 'label' => __( 'Title', 'spyropress' ), 'id' => 'title', 'type' => 'text' ), array( 'label' => __( 'Percentage', 'spyropress' ), 'id' => 'percentage', 'type' => 'range_slider', ) ) ) ); $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_Skill_Knob spyropress_builder_register_module('Spyropress_Module_Skill_Knob'); ?>