<div id="thememakers_shortcode_template" class="thememakers_shortcode_template clearfix">
	
	<div class="one-half">
		<h4 class="label"><?php _e('Buttons Text', THEMEMAKERS_THEME_FOLDER_NAME); ?></h4>
		<input type="text" value="" class="js_shortcode_template_changer data-input" data-shortcode-field="content">
	</div><!--/ .one-half-->
	
	<div class="one-half">
		<h4 class="label"><?php _e('URL', THEMEMAKERS_THEME_FOLDER_NAME); ?></h4>
		<input type="text" value="#" class="js_shortcode_template_changer data-input" data-shortcode-field="url">
		<span class="preset_description"><?php _e('http://forums.webtemplatemasters.com/', THEMEMAKERS_THEME_FOLDER_NAME); ?></span>
	</div><!--/ .one-half-->

	<div class="one-half">

		<h4 class="label"><?php _e('Color', THEMEMAKERS_THEME_FOLDER_NAME); ?></h4>
		<?php $colors = ThemeMakersHelper::get_theme_buttons(); ?>
		<select class="js_shortcode_template_changer data-select" data-shortcode-field="color">

			<?php if (!empty($colors)): ?>
				<?php foreach ($colors as $key => $name) : ?>
					<option value="<?php echo $key ?>"><?php echo $name ?></option>
				<?php endforeach; ?>
			<?php endif; ?>

		</select>	
		
	</div><!--/ .one-half-->
	
	<div class="one-half">
		
		<h4 class="label"><?php _e('Type', THEMEMAKERS_THEME_FOLDER_NAME); ?></h4>
		<?php $size = ThemeMakersHelper::get_theme_buttons_sizes() ?>
		<select class="js_shortcode_template_changer data-select" data-shortcode-field="size">

			<?php if (!empty($size)): ?>
				<?php foreach ($size as $key => $name) : ?>
					<option value="<?php echo $key ?>"><?php echo $name ?></option>
				<?php endforeach; ?>
			<?php endif; ?>

		</select>		
		
	</div><!--/ .one-half-->

</div><!--/ .thememakers_shortcode_template->


<!-- --------------------------  PROCESSOR  --------------------------- -->

<div class="fullwidth-frame">
	
	<h4 class="label"><?php _e('Preview', THEMEMAKERS_THEME_FOLDER_NAME); ?></h4>

	<?php $frame_uri = Thememakers_Application_Shortcodes::get_application_uri() . "/preview.php"; ?>

	<div class="shortcode_app_frame_block">
		<div class="thememakers_shortcode_info_popup" style="display: none"></div>
		<iframe src="<?php echo $frame_uri ?>" class="shortcode_app_frame" frameborder="1" id="thememakers_shortcode_template_preview"></iframe>
	</div>

	<script type="text/javascript">
		var thememakers_app_shortcodes_preview_url = "<?php echo $frame_uri ?>";
		jQuery(function() {
			var shortcode_name = "button";
			thememakers_app_shortcodes.changer(shortcode_name);
			jQuery("#thememakers_shortcode_template .js_shortcode_template_changer").on('keyup, change', function() {
				thememakers_app_shortcodes.changer(shortcode_name);
			});

		});
	</script>
	
</div><!--/ .fullwidth-frame-->




