<?php
class Skyhaus_Customizer_Control_Styling extends Skyhaus_Customizer_Control_Modal {
	static function field_template() {
		echo '<script type="text/html" id="tmpl-field-skyhaus-styling">';
		self::before_field();
		?>
		<?php echo self::field_header(); ?>
		<div class="skyhaus-actions">
			<a href="#" title="<?php esc_attr_e( 'Reset to default', 'skyhaus' ); ?>" class="action--reset" data-control="{{ field.name }}"><span class="dashicons dashicons-image-rotate"></span></a>
			<a href="#" title="<?php esc_attr_e( 'Toggle edit panel', 'skyhaus' ); ?>" class="action--edit" data-control="{{ field.name }}"><span class="dashicons dashicons-admin-customizer"></span></a>
		</div>
		<div class="skyhaus-field-settings-inner">
			<input type="hidden" class="skyhaus-hidden-modal-input skyhaus-only" data-name="{{ field.name }}" value="{{ JSON.stringify( field.value ) }}" data-default="{{ JSON.stringify( field.default ) }}">
		</div>
		<?php
		self::after_field();
		echo '</script>';
		?>
		<script type="text/html" id="tmpl-skyhaus-modal-settings">
			<div class="skyhaus-modal-settings">
				<div class="skyhaus-modal-settings--inner">
					<div class="skyhaus-modal-settings--fields"></div>
				</div>
			</div>
		</script>
		<?php
	}
}
