<?php
/**
 * An underscore.js template.
 *
 * @package fusion-builder
 */

?>
<script type="text/template" id="fusion-builder-row-inner-template">
	<h4 class="fusion_module_title">
		{{ fusionAllElements[ element_type ].name }}
	</h4>
	<div class="fusion-builder-row-content fusion-builder-data-cid" data-cid="{{ cid }}">

		<div class="fusion-builder-modal-top-container">
			<# if ( 'undefined' !== typeof fusionAllElements[ element_type ] ) { #>
				<h2>{{ fusionAllElements[ element_type ].name }}</h2>
			<# }; #>
			<div class="fusion-builder-inner-row-close-icon fusion-builder-modal-close fusiona-plus2"></div>
		</div>

		<div class="fusion-builder-modal-bottom-container">
			<a href="#" class="fusion-builder-insert-inner-column fusion-builder-module-control"><span class="fusiona-plus"></span> {{ fusionBuilderText.columns }}</a>
			<a href="#" class="fusion-builder-modal-save fusion-builder-module-control"><span>{{ fusionBuilderText.save }}</span></a>
			<a href="#" class="fusion-builder-inner-row-close fusion-builder-module-control"><span>{{ fusionBuilderText.cancel }}</span></a>
		</div>
		<div id="fusion-builder-row-{{ cid }}" class="fusion-builder-row-container-inner"></div>
	</div>


	<div class="fusion-builder-module-controls-container fusion-builder-module-controls-type-{{ element_type }}">
		<div class="fusion-builder-controls fusion-builder-inner-row-controls">
			<a href="#" class="fusion-builder-inner-row-overlay fusion-builder-module-control" title="{{ fusionBuilderText.column_settings }}"><span class="fusiona-pen"></span></a>
			<a href="#" class="fusion-builder-inner-row-settings fusion-builder-module-control" title="{{ fusionBuilderText.inner_columns_settings }}"><span class="fusiona-cog"></span></a>
			<a href="#" class="fusion-builder-clone fusion-builder-module-control fusion-builder-clone-inner-row" title="{{ fusionBuilderText.clone_inner_columns }}"><span class="fusiona-file-add"></span></a>
			<?php if ( current_user_can( apply_filters( 'awb_role_manager_access_capability', 'edit_posts', 'avada_library', 'backed_builder_edit' ) ) ) : ?>
				<a href="#" class="fusion-builder-save-inner-row-dialog-button fusion-builder-module-control" title="{{ fusionBuilderText.save_inner_columns }}"><span class="fusiona-drive"></span></a>
			<?php endif; ?>
			<a href="#" class="fusion-builder-remove-inner-row fusion-builder-module-control" title="{{ fusionBuilderText.delete_inner_columns }}"><span class="fusiona-trash-o"></span></a>
		</div>
	</div>
</script>
