Files
roi-theme/wp-content/plugins/thrive-visual-editor/inc/classes/elements/class-tcb-menu-dropdown-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

89 lines
1.6 KiB
PHP
Executable File

<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Menu_Child_Element
*/
class TCB_Menu_Dropdown_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Menu Dropdown', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve_w_menu .sub-menu:not(.tcb-mega-drop ul)';
}
/**
* Hidden element
*
* @return string
*/
public function hide() {
return true;
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
return array(
'borders' => array(
'blocked_controls' => array(
'Corners' => __( 'This is disabled for the current element because it can have an unpredictable behaviour', 'thrive-cb' ),
),
'config' => [
'Borders' => [
'important' => true,
],
'Corners' => [
'important' => true,
],
],
),
'shadow' => [
'config' => [
'important' => true,
'default_shadow' => 'none',
],
],
'layout' => [
'disabled_controls' => [
'margin',
'.tve-advanced-controls',
'Height',
'Width',
'Alignment',
'Display',
],
],
'typography' => [ 'hidden' => true ],
'animation' => [ 'hidden' => true ],
'responsive' => [ 'hidden' => true ],
'styles-templates' => [ 'hidden' => true ],
);
}
}