<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

final class WOOBE_INFO extends WOOBE_EXT {

	protected $slug = 'info'; // unique

	public function __construct() {
		// tabs
		$this->add_tab( $this->slug, 'panel', esc_html__( 'Help', 'woo-bulk-editor' ), 'info' );
		add_action( 'woobe_ext_panel_' . $this->slug, array( $this, 'woobe_ext_panel' ), 1 );
	}

	public function woobe_ext_scripts() {
		?>
		<script>
			lang.<?php echo esc_attr( $this->slug ); ?> = {};
			//lang.<?php echo esc_attr( $this->slug ); ?>.test = '<?php esc_html_e( 'test', 'woo-bulk-editor' ); ?> ...';
		</script>
		<?php
	}

	public function woobe_ext_panel() {
		$data = array();
		WOOBE_HELPER::render_html_e( $this->get_ext_path() . 'views/panel.php', $data );
	}
}
