'bumbeelbee_builder', 'description' => __( 'A page on a website that allows users to communicate with the site owner. The page has fields for filling in name, address and type of comment..', 'bumbeelbee' ), 'customize_selective_refresh' => true ) ); } public function enqueue() { wp_enqueue_script( 'jquery-ui' ); wp_enqueue_script( 'jquery-ui-slider' ); } public function form( $instance ) { $defaults = array( 'title' => __( 'Contact Section', 'bumbeelbee' ) ); $instance = wp_parse_args( (array) $instance, $defaults ); ?>
__( 'Contact Section', 'bumbeelbee' ) ); $instance = wp_parse_args( (array) $instance, $defaults ); echo $args['before_widget']; $filepath = get_template_directory() . '/include/library/widgets/widget-bumbeelbee-posts-contact/layouts/posts_contact.php'; if ( file_exists( $filepath ) ) { include $filepath; } else { esc_html_e( 'Please configure your widget', 'bumbeelbee' ); } echo $args['after_widget']; } }