
<center><h2><strong>Ubuntu</strong></h2>
­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
/*
Widget Name: Disputo Topics
Description: Displays bbPress topics
Author: Egemenerd
Author URI: http://www.egemenerd.com
*/

class disputo_topics_widget extends SiteOrigin_Widget {
	function __construct() {
        $form_options = array(
            'heading' => array(
                'type' => 'text',
                'label' => esc_html__('Heading', 'disputo'),
                'default' => ''
            ),
            'headinglevel' => array(
				'type' => 'select',
				'label' => esc_html__( 'Heading Level', 'disputo' ),
				'default' => 'h1',
				'options' => array(
                    'h1' => esc_html__( 'Heading 1', 'disputo' ),
                    'h2' => esc_html__( 'Heading 2', 'disputo' ),
                    'h3' => esc_html__( 'Heading 3', 'disputo' ),
                    'h4' => esc_html__( 'Heading 4', 'disputo' ),
                    'h5' => esc_html__( 'Heading 5', 'disputo' ),
                    'h6' => esc_html__( 'Heading 6', 'disputo' )
				)
			 ),
            'breadcrumbs' => array(
                'type' => 'checkbox',
                'label' => esc_html__( 'Hide Breadcrumb', 'disputo' ),
                'default' => true
            ),
            'topics' => array(
				'type' => 'number',
				'label' => esc_html__('Topic ID (To display the most recent topics, leave this field blank.)', 'disputo'),
				'default' => ''
            )
		);

		parent::__construct(
			'disputo-topics',
			esc_html__('Disputo Topics', 'disputo'),
			array(
				'description' => esc_html__('Displays bbPress topics', 'disputo'),'panels_groups' => array('disputo'),'panels_icon' => 'dashicons dashicons-bbpress-logo green-icon'),
            array(),
			$form_options,
			plugin_dir_path(__FILE__)
		);
	}

	function get_template_name($instance) {
        return 'disputo-topics-template';
	}

	function get_style_name($instance) {
        return false;
	}

}
siteorigin_widget_register('disputo-topics', __FILE__, 'disputo_topics_widget');
?>