HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: /var/www/html/triad-infosec/wp-content/plugins/fusion-builder/inc/templates/dynamic-selection.php
<?php
/**
 * Underscore.js template
 *
 * @package fusion-builder
 * @since 2.1
 */

?>
<script type="text/template" id="fusion-builder-dynamic-selection">
<div class="select_arrow"></div>
<select id="fusion-dynamic-selection-{{ option }}" class="fusion-select-field<?php echo ( is_rtl() ) ? ' fusion-select-field-rtl' : ''; ?>">
	<option value=""><?php esc_attr_e( 'Select Dynamic Content', 'fusion-builder' ); ?></option>
	<# _.each( params, function( values, groupId ) { #>
		<optgroup label="{{ values.label }}">
			<# _.each( values.params, function( value, id ) { #>
				<#
					var label    = 'string' === typeof value.label ? value.label : id,
						supports = 'object' === typeof value.options ? _.values( value.options ) : false,
						support  = ! supports ? true : -1 !== _.indexOf( supports, option );
						if ( 'undefined' !== typeof customOptions && customOptions ) {
								support = customOptions.includes( id );
						}
				#>
				<# if ( 'undefined' !== typeof support && support ) { #>
					<option value="{{ id }}" >{{{ label }}}</option>
				<# } #>
			<# }); #>
		</optgroup>
	<# }); #>
</select>
</script>