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

79 lines
1.5 KiB
PHP
Executable File

<?php
require_once plugin_dir_path( __FILE__ ) . 'class-tcb-menu-item-element.php';
/**
* Class TCB_Label_Disabled_Element
*
* Non edited label element. For inline text we use typography control
*/
class TCB_Megamenu_Column_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Dropdown Column', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-regular.tcb-mega-std li.lvl-1';
}
/**
* Hidden element
*
* @return string
*/
public function hide() {
return true;
}
/**
* There is no need for HTML for this element since we need it only for control filter
*
* @return string
*/
protected function html() {
return '';
}
/**
* Component and control config
*
* @return array
*/
public function general_components() {
$components = parent::general_components();
unset( $components['animation'], $components['typography'], $components['responsive'], $components['styles-templates'], $components['scroll'] );
$components['layout']['disabled_controls'] = [
'margin',
'.tve-advanced-controls',
'Width',
'Height',
'Alignment',
'Display',
];
$components['megamenu_column'] = array(
'config' => array(
'Description' => array(
'config' => array(
'label' => __( 'Show menu description', 'thrive-cb' ),
),
'extends' => 'Switch',
),
),
);
return $components;
}
}