Files
roi-theme/wp-content/plugins/thrive-visual-editor/inc/classes/elements/class-tcb-search-overlay-element.php
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

92 lines
1.8 KiB
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class TCB_Search_Overlay_Element extends TCB_ContentBox_Element {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Search Overlay', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-sf-overlay-container';
}
public function own_components() {
$prefix_config = tcb_selection_root() . ' ';
$bg_selector = '>.tve-content-box-background';
$components = parent::own_components();
unset( $components['contentbox'] );
unset( $components['shared-styles'] );
$components['layout'] = [
'disabled_controls' => [
'Display',
'Float',
'Position',
'Width',
'Alignment',
'.tve-advanced-controls',
],
'config' => [
'Height' => [
'important' => true,
],
],
];
$components['background'] = [
'config' => [
'ColorPicker' => [ 'css_prefix' => $prefix_config ],
'PreviewList' => [ 'css_prefix' => $prefix_config ],
'to' => $bg_selector,
],
];
$components['borders'] = [
'config' => [
'Borders' => [
'important' => true,
'to' => $bg_selector,
],
'Corners' => [
'important' => true,
'to' => $bg_selector,
],
],
];
$components['typography'] = [ 'hidden' => true ];
$components['scroll'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components['animation'] = [ 'hidden' => true ];
$components['decoration'] = [ 'hidden' => true ];
$components['styles-templates'] = [ 'hidden' => true ];
return $components;
}
public function hide() {
return true;
}
}