<?php
class Nevo_Customizer_Control_Styling extends Nevo_Customizer_Control_Modal {
	static function field_template() {
		echo '<script type="text/html" id="tmpl-field-nevo-styling">';
		self::before_field();
		?>
		<?php echo self::field_header(); ?>
		<div class="nevo-actions">
			<a href="#" title="<?php esc_attr_e( 'Reset to default', 'nevo' ); ?>" 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', 'nevo' ); ?>" class="action--edit" data-control="{{ field.name }}"><span class="dashicons dashicons-edit"></span></a>
		</div>
		<div class="nevo-field-settings-inner">
			<input type="hidden" class="nevo-hidden-modal-input nevo-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-nevo-modal-settings">
			<div class="nevo-modal-settings">
				<div class="nevo-modal-settings--inner">
					<div class="nevo-modal-settings--fields"></div>
				</div>
			</div>
		</script>
		<?php
	}
}
