<?php

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

/**
 * WooCommerce Plugin WYSIWYG Class
 */
?>
<tr valign="top">
	<th scope="row" class="titledesc">
		<?php if (!empty($title)): ?>
			<label for="<?php echo esc_attr($id); ?>">
				<?php echo esc_html($title); ?>
			</label>'
		<?php endif; ?>
	</th>
	<td class="forminp">
		<fieldset>
			<?php if (!empty($title)): ?>
				<legend class="screen-reader-text">
					<span><?php echo esc_html($title); ?></span>
				</legend>
			<?php endif; ?>
			<?php
			wp_editor(html_entity_decode($value), $id, array(
				'textarea_name' => $name,
				'editor_class' => $class,
				'editor_css' => $css,
				'autop' => true,
				'textarea_rows' => 8
			));
			?>
			<p class="description"><?php echo esc_html($description); ?></p>
		</fieldset>
	</td>
</tr>
