Files
roi-theme/wp-content/plugins/thrive-visual-editor/inc/backbone/controls/optgroup.phtml
root a22573bf0b Commit inicial - WordPress Análisis de Precios Unitarios
- WordPress core y plugins
- Tema Twenty Twenty-Four configurado
- Plugin allow-unfiltered-html.php simplificado
- .gitignore configurado para excluir wp-config.php y uploads

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-03 21:04:30 -06:00

16 lines
625 B
PHTML
Executable File

<div class="control-grid<#=this.get_extra_class()#>">
<div class="label"><#= this.get_config( 'name' ) || this.get_config('label') || this.el.dataset.name #></div>
<div class="input">
<select class="tve-select change" data-fn="changed">
<# _.each( this.get_config('groups'), ( group ) => { #>
<optgroup label="<#= group.label #>">
<# _.each( this.getOptions( group ), function( option ) { #>
<option class="tve-option <#= option.class #>" value="<#= option.value #>"
<#= option.default ? ' selected':'' #>><#= option.name #></option>
<# }); #>
</optgroup>
<# }); #>
</select>
</div>
</div>