• 
    $control_uid = $this->get_control_uid('{{value}}');
    ?>
    <div class="elementor-control-field">
    <label class="elementor-control-title">data.label</label>
    
    <# if ( data.description ) { #>
    <div class="elementor-control-field-description">data.description</div>
    <# } #>
    
    <div class="elementor-control-input-wrapper">
    <div class="elementor-imageselector elementor-imageselector-type-data.type_selector">
    <# _.each( data.options, function( options, value ) {
    var valueItem = value;
    
    if( (data.return_val == 'image' && options.return_val != 'val') ||  options.return_val == 'image'){
    valueItem = options.image;
    }else if( (data.return_val == 'icon' && options.return_val != 'val') || options.return_val == 'icon' ){
    valueItem = options.icon;
    }
    imageItem = options.image;
    
    if(options.image_preview){
    imageItem = options.image_preview;
    }
    #>
    <div class="elementor-imageselector-item elementor-imageselector-column-columns_grid" data-column-grid="columns_grid">
    

Viewing 1 replies (of 1 total)
  • Hi,

    The <# and #> are used to enclose a block of code written in JavaScript template literals and they allow the embedding of JavaScript code within HTML code.

    As a result, the code between these delimiters is executed as JavaScript and its output is injected into the final HTML output.

Viewing 1 replies (of 1 total)
  • The topic ‘What does <# in code means?’ is closed to new replies.