87 lines
3.9 KiB
PHP
87 lines
3.9 KiB
PHP
|
|
<?php
|
||
|
|
/**
|
||
|
|
* Underscore.js template
|
||
|
|
*
|
||
|
|
* @package fusion-builder
|
||
|
|
* @since 2.0
|
||
|
|
*/
|
||
|
|
|
||
|
|
?>
|
||
|
|
<script type="text/template" id="fusion-builder-nested-column-modules-template">
|
||
|
|
<div class="fusion-builder-modal-top-container">
|
||
|
|
<div class="fusion-builder-modal-search">
|
||
|
|
<label for="fusion-modal-search" class="fusiona-search"><span><?php esc_html_e( 'Search', 'fusion-builder' ); ?></span></label>
|
||
|
|
<input type="text" id="fusion-modal-search" class="fusion-elements-filter" placeholder="{{ fusionBuilderText.search_elements }}" />
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<ul class="fusion-tabs-menu">
|
||
|
|
<# if ( 'undefined' !== typeof components && components.length && 0 < componentsCounter ) { #>
|
||
|
|
<li class=""><a href="#template-elements">{{ fusionBuilderText.layout_section_elements }}</a></li>
|
||
|
|
<# } #>
|
||
|
|
<li class=""><a href="#default-elements">{{ fusionBuilderText.builder_elements }}</a></li>
|
||
|
|
<li class=""><a href="#custom-elements">{{ fusionBuilderText.library_elements }}</a></li>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
|
||
|
|
<div class="fusion-builder-main-settings fusion-builder-main-settings-full has-group-options">
|
||
|
|
<div class="fusion-builder-all-elements-container">
|
||
|
|
<div class="fusion-tabs">
|
||
|
|
<# if ( 'undefined' !== typeof components && components.length && 0 < componentsCounter ) { #>
|
||
|
|
<div id="template-elements" class="fusion-tab-content">
|
||
|
|
<ul class="fusion-builder-all-modules fusion-template-components">
|
||
|
|
<# _.each( components, function( module ) { #>
|
||
|
|
<#
|
||
|
|
var additionalClass = FusionPageBuilderViewManager.countElementsByType( module.label ) >= module.components_per_template ? ' fusion-builder-disabled-element' : '';
|
||
|
|
|
||
|
|
var components_per_template_tooltip = fusionBuilderText.template_max_use_limit + ' ' + module.components_per_template
|
||
|
|
components_per_template_tooltip = ( 2 > module.components_per_template ) ? components_per_template_tooltip + ' ' + fusionBuilderText.time : components_per_template_tooltip + ' ' + fusionBuilderText.times;
|
||
|
|
#>
|
||
|
|
<li class="{{ module.label }} fusion-builder-element{{ additionalClass }}">
|
||
|
|
<h4 class="fusion_module_title">
|
||
|
|
<# if ( 'undefined' !== typeof fusionAllElements[module.label].icon ) { #>
|
||
|
|
<div class="fusion-module-icon {{ fusionAllElements[module.label].icon }}"></div>
|
||
|
|
<# } #>
|
||
|
|
{{ module.title }}
|
||
|
|
</h4>
|
||
|
|
<# if ( FusionPageBuilderViewManager.countElementsByType( module.label ) >= module.components_per_template ) { #>
|
||
|
|
<span class="fusion-tooltip">{{ components_per_template_tooltip }}</span>
|
||
|
|
<# } #>
|
||
|
|
<span class="fusion_module_label">{{ module.label }}</span>
|
||
|
|
</li>
|
||
|
|
<# } ); #>
|
||
|
|
|
||
|
|
<# for ( var i = 0; i < 16; i++ ) { #>
|
||
|
|
<li class="spacer fusion-builder-element"></li>
|
||
|
|
<# } #>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<# } #>
|
||
|
|
<div id="default-elements" class="fusion-tab-content">
|
||
|
|
<ul class="fusion-builder-all-modules">
|
||
|
|
<# _.each( generator_elements, function(module) { #>
|
||
|
|
<# var additionalClass = ( 'undefined' !== typeof module.generator_only ) ? ' fusion-builder-element-generator' : ''; #>
|
||
|
|
<li class="{{ module.label }} fusion-builder-element{{ additionalClass }}">
|
||
|
|
<h4 class="fusion_module_title">
|
||
|
|
<# if ( 'undefined' !== typeof fusionAllElements[module.label].icon ) { #>
|
||
|
|
<div class="fusion-module-icon {{ fusionAllElements[module.label].icon }}"></div>
|
||
|
|
<# } #>
|
||
|
|
{{ module.title }}
|
||
|
|
</h4>
|
||
|
|
<# if ( 'undefined' !== typeof module.generator_only ) { #>
|
||
|
|
<span class="fusion-tooltip">{{ fusionBuilderText.generator_elements_tooltip }}</span>
|
||
|
|
<# } #>
|
||
|
|
<span class="fusion_module_label">{{ module.label }}</span>
|
||
|
|
</li>
|
||
|
|
<# } ); #>
|
||
|
|
|
||
|
|
<# for ( var i = 0; i < 16; i++ ) { #>
|
||
|
|
<li class="spacer fusion-builder-element"></li>
|
||
|
|
<# } #>
|
||
|
|
</ul>
|
||
|
|
</div>
|
||
|
|
<div id="custom-elements" class="fusion-tab-content"></div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</div>
|
||
|
|
</script>
|