%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/itworks/wp-content/themes/eduma/inc/widgets/accordion/
Upload File :
Create Path :
Current File : /var/www/html/itworks/wp-content/themes/eduma/inc/widgets/accordion/accordion.php

<?php
class Thim_Accordion_Widget extends Thim_Widget {

	function __construct() {

		parent::__construct(
			'accordion',
			esc_html__( 'Thim: Accordion', 'eduma' ),
			array(
				'description' => esc_html__( 'Add Accordion', 'eduma' ),
				'help'        => '',
				'panels_groups' => array('thim_widget_group'),
				'panels_icon'   => 'thim-widget-icon thim-widget-icon-accordion'
			),
			array(),
			array(
				'title' => array(
					'type' => 'text',
					'label' => esc_html__('Title', 'eduma'),
					'default' => ''
				),

				'panel' => array(
					'type' => 'repeater',
					'label' => esc_html__('Panel List', 'eduma'),
					'item_name' => esc_html__('Panel', 'eduma'),
					'fields' => array(
						'panel_title' => array(
							'type' => 'text',
							'label' => esc_html__('Panel Title', 'eduma'),
						),

						'panel_body' => array(
							'type' => 'textarea',
							'allow_html_formatting' => true,
							'label' => esc_html__('Panel Body', 'eduma'),
						),
					),
				),
			),
			THIM_DIR . 'inc/widgets/accordion/'
		);

		
	}


	function get_template_name( $instance ) {
		return 'base';
	}

	function get_style_name( $instance ) {
		return false;
	}

}

function thim_accordion_register_widget() {
	register_widget( 'Thim_Accordion_Widget' );
}

add_action( 'widgets_init', 'thim_accordion_register_widget' );

Zerion Mini Shell 1.0