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

138 lines
2.6 KiB
PHP
Executable File

<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/22/2018
* Time: 8:45 AM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
class TCB_Contact_Form_Input_Element extends TCB_Element_Abstract {
/**
* Name of the Element
*
* @return string
*/
public function name() {
return __( 'Contact Form Input', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-cf-input';
}
/**
* Enables Hover States on Form Input
*
* @return bool
*/
public function has_hover_state() {
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 '';
}
/**
* Hide Element From Sidebar Menu
*
* @return bool
*/
public function hide() {
return true;
}
/**
* Component and control configda
*
* @return array
*/
public function own_components() {
$prefix_config = tcb_selection_root();
$controls_default_config = [
'css_suffix' => [
' input',
' input::placeholder',
' textarea',
' textarea::placeholder',
],
];
$tag_default_config = [
'css_suffix' => [
' input',
' textarea',
],
];
return array(
'typography' => [
'config' => [
'FontSize' => $controls_default_config,
'FontColor' => $controls_default_config,
'TextAlign' => $controls_default_config,
'TextStyle' => $controls_default_config,
'TextTransform' => $controls_default_config,
'FontFace' => $controls_default_config,
'LineHeight' => $controls_default_config,
'LetterSpacing' => $controls_default_config,
],
],
'layout' => [
'disabled_controls' => [
'Width',
'Height',
'Alignment',
'Display',
'.tve-advanced-controls',
],
'config' => [
'MarginAndPadding' => $tag_default_config,
],
],
'borders' => array(
'config' => array(
'Borders' => array_merge( [ 'css_prefix' => $prefix_config . ' ' ], $tag_default_config ),
'Corners' => array_merge( [ 'css_prefix' => $prefix_config . ' ' ], $tag_default_config ),
),
),
'animation' => [
'hidden' => true,
],
'background' => [
'config' => [
'ColorPicker' => $tag_default_config,
'PreviewList' => $tag_default_config,
],
],
'shadow' => [
'config' => $tag_default_config,
],
'responsive' => [
'hidden' => true,
],
'styles-templates' => [
'hidden' => true,
],
);
}
}