<?php 
/**
 * Top Margin Control
 *
 * Outputs a jquery ui slider to allow the
 * user to control the top margin of an 
 * element.
 * 
 * @package   Easy_Google_Fonts
 * @author    Sunny Johal - Titanium Themes <support@titaniumthemes.com>
 * @license   GPL-2.0+
 * @link      http://wordpress.org/plugins/easy-google-fonts/
 * @copyright Copyright (c) 2016, Titanium Themes
 * @version   1.4.3
 * 
 */
?>
<#
	// Get settings and defaults.
	var egfMarginTop = typeof egfSettings.margin_top !== "undefined" ? egfSettings.margin_top : data.egf_defaults.margin_top;
#>
<div class="egf-font-slider-control egf-margin-top-slider">
	<span class="egf-slider-title"><?php _e( 'Top', 'easy-google-fonts' ); ?></span>
	<div class="egf-font-slider-display">
		<span>{{ egfMarginTop.amount }}{{ egfMarginTop.unit }}</span> | <a class="egf-font-slider-reset" href="#"><?php _e( 'Reset', 'easy-google-fonts' ); ?></a>
	</div>
	<div class="egf-clear" ></div>
	
	<!-- Slider -->
	<div class="egf-slider" value="{{ egfMarginTop.amount }}"></div>
	<div class="egf-clear"></div>
</div>
