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

84 lines
1.6 KiB
PHP
Executable File

<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 7/5/2018
* Time: 4:44 PM
*/
require_once 'class-tcb-button-group-item-element.php';
/**
* Class TCB_Button_Group_Item_Element
*/
class TCB_Button_Group_Item_Element extends TCB_Button_Element {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Button Group Item', 'thrive-cb' );
}
/**
* Hide Element From Sidebar Menu
*
* @return bool
*/
public function hide() {
return true;
}
/**
* Allow this element to be also styled for active state
*
* The active state class is .tcb-active-state
*
* @return string
*/
public function active_state_config() {
return true;
}
/**
* Button element identifier
*
* @return string
*/
public function identifier() {
return '.thrv-button-group-item';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = parent::own_components();
$components['button']['disabled_controls'] = [
'.tve-control[data-key="style"]',
'.tcb-button-link-container',
];
$components['animation'] = [
'hidden' => true,
];
$components['shared-styles'] = [
'hidden' => true,
];
$components['layout']['disabled_controls'] = [
'Alignment',
'.tve-advanced-controls',
'hr',
];
$components['borders']['config']['Borders']['important'] = true;
$components['borders']['config']['Corners']['important'] = true;
$components['scroll'] = [ 'hidden' => true ];
return $components;
}
}