<?php
if (isset($label_data) && is_array($label_data)){
	print "
<span class='headline'>".LABEL_TEXT."</span>";
	foreach ($label_data AS $key => $value){
		print "
<input type='hidden' name='label_data[".$key."][language]' value='".$value['language']."' />
<input type='hidden' name='label_data[".$key."][title]' value='".$value['title']."' />
<div class='form-row'>
	<label for='label_text_".$key."' class='form-label textarea'>".$value['title']."</label>
	<div class='form-cols'>
		<div class='form-col form-full'>
			<div class='form-controls'>
				<ul class='textarea-panel'>
					<li class='show_default-editor current' data-id='label_text_".$key."'><i class='material-icons md-24'>edit</i>".LABEL_DEFAULT_EDITOR."</li>
					<li class='show_richtext-editor' data-id='label_text_".$key."'><i class='material-icons md-24'>wysiwyg</i>".LABEL_RICHTEXT_EDITOR."</li>
					<li class='show_code-editor' data-id='label_text_".$key."'><i class='material-icons md-24'>code</i>".LABEL_CODE_EDITOR."</li>
				</ul>
				<textarea name='label_data[".$key."][value]' class='field' id='label_text_".$key."_textarea' data-mode='html' data-autocomplete='true'>".$value['value']."</textarea>
				<div id='label_text_".$key."' class='code-editor'></div>
			</div><!-- /.form-controls -->
		</div><!-- /.form-col form-1of2 -->
	</div><!-- /.form-cols -->
</div><!-- /.form-row -->";
	}
}