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>
This commit is contained in:
root
2025-11-03 21:04:30 -06:00
commit a22573bf0b
24068 changed files with 4993111 additions and 0 deletions

View File

@@ -0,0 +1,137 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Countdown_Digit_Element
*/
class TCB_Countdown_Digit_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Countdown Digit', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-countdown-digit';
}
public function own_components() {
$digit_cfg = array( 'css_prefix' => tcb_selection_root() . ' ', 'css_suffix' => [ ' span', ' span::before' ], 'important' => true );
$wrapper_cfg = array( 'css_prefix' => tcb_selection_root() . ' ', 'css_suffix' => ' .t-digit-part' );
return array(
'countdown_digit' => array(
'config' => array(
'FontColor' => array_merge( $digit_cfg, [
'config' => [
'default' => '000',
'label' => 'Color',
'options' => [
'output' => 'object',
],
],
'extends' => 'ColorPicker',
]
),
'TextStyle' => $digit_cfg,
'FontFace' =>
array_merge( $digit_cfg, [
'config' => [
'template' => 'controls/font-manager',
'inline' => false,
],
]
),
'BorderColor' => array(
'config' => array(
'default' => '000',
'label' => __( 'Divider color', 'thrive-cb' ),
'options' => [
'output' => 'object',
],
),
'extends' => 'ColorPicker',
),
'BorderSize' => array(
'config' => array(
'min' => '0',
'max' => '12',
'step' => '0.5',
'um' => [ 'px' ],
'label' => __( 'Divider size', 'thrive-cb' ),
),
'extends' => 'Slider',
),
'BorderStyle' => array(
'config' => array(
'name' => __( 'Divider style', 'thrive-cb' ),
'options' => array(
'solid' => __( 'Solid', 'thrive-cb' ),
'dotted' => __( 'Dotted', 'thrive-cb' ),
'dashed' => __( 'Dashed', 'thrive-cb' ),
),
),
'extends' => 'Select',
),
),
),
'layout' => array(
'disabled_controls' => [ 'Display', 'Alignment', '.tve-advanced-controls', 'Width', 'Height' ],
'config' => array(
'MarginAndPadding' => array(
'css_prefix' => tcb_selection_root() . ' ',
'important' => true,
'padding_suffix' => [ ' .t-digit-part > span' ],
),
),
),
'typography' => [
'hidden' => true,
],
'background' => [
'config' => [
'ColorPicker' => $digit_cfg,
'PreviewList' => $digit_cfg,
],
],
'borders' => array(
'config' => array(
'Borders' => $wrapper_cfg,
'Corners' => array_merge( $wrapper_cfg, [ 'overflow' => false ] ),
),
),
'responsive' => [
'hidden' => true,
],
'shadow' => [ 'config' => $wrapper_cfg ],
'animation' => [
'hidden' => true,
],
);
}
public function hide() {
return true;
}
}

View File

@@ -0,0 +1,124 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Countdown_Label_Element
*/
class TCB_Countdown_Label_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Countdown Label', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-countdown-label';
}
public function hide() {
return true;
}
public function own_components() {
return array(
'text' => array(
'disabled_controls' => [ '.tve-advanced-controls', ],
'config' => array(
'FontSize' => array(
'config' => array(
'default' => '16',
'min' => '1',
'max' => '100',
'label' => __( 'Font Size', 'thrive-cb' ),
'um' => [ 'px', 'em' ],
'css' => 'fontSize',
),
'extends' => 'Slider',
),
'TextStyle' => array(
'css_prefix' => tcb_selection_root() . ' ',
'config' => [
'important' => true,
],
),
'LineHeight' => array(
'config' => array(
'default' => '1',
'min' => '1',
'max' => '100',
'label' => __( 'Line Height', 'thrive-cb' ),
'um' => [ 'em', 'px' ],
'css' => 'lineHeight',
),
'extends' => 'Slider',
),
'LetterSpacing' => array(
'config' => array(
'default' => 'auto',
'min' => '1',
'max' => '100',
'label' => __( 'Letter Spacing', 'thrive-cb' ),
'um' => [ 'px' ],
'css' => 'letterSpacing',
),
'extends' => 'Slider',
),
'FontColor' => array(
'config' => array(
'default' => '000',
'label' => __( 'Font Color', 'thrive-cb' ),
'options' => [
'output' => 'object',
],
),
'extends' => 'ColorPicker',
),
'FontBackground' => array(
'config' => array(
'default' => '000',
'label' => __( 'Font Highlight', 'thrive-cb' ),
'options' => [
'output' => 'object',
],
),
'extends' => 'ColorPicker',
),
'FontFace' => [
'config' => [
'template' => 'controls/font-manager',
'inline' => true,
],
'extends' => 'FontManager',
],
),
),
'typography' => [ 'hidden' => true ],
'animation' => [
'hidden' => true,
],
'layout' => [
'disabled_controls' => [ 'Display', 'Alignment', '.tve-advanced-controls', 'Height' ],
],
);
}
}

View File

@@ -0,0 +1,174 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/12/2017
* Time: 8:28 AM //countdown
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Countdown_Element
*/
class TCB_Countdown_Old_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Countdown', 'thrive-cb' );
}
public function hide() {
return true;
}
/**
* Get element alternate
*
* @return string
*/
public function alternate() {
return 'scarcity ';
}
/**
* Return icon class needed for display in menu
*
* @return string
*/
public function icon() {
return 'countdown';
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.thrv-countdown_timer_plain, .tve_cd_timer_plain:not(.tve_countdown_timer_evergreen)';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = array(
'countdown_old' => array(
'config' => array(
'CompleteText' => array(
'config' => array(
'label' => __( 'Text to show on complete', 'thrive-cb' ),
),
'extends' => 'Textarea',
),
'style' => array(
'config' => array(
'label' => __( 'Style', 'thrive-cb' ),
'items' => array(
'tve_countdown_1' => array(
'label' => __( 'Simple', 'thrive-cb' ),
'preview' => 'countdown_s1',
),
'tve_countdown_2' => array(
'label' => __( 'Rounded', 'thrive-cb' ),
'preview' => 'countdown_s2',
),
'tve_countdown_3' => array(
'label' => __( 'Squared', 'thrive-cb' ),
'preview' => 'countdown_s3',
),
),
'default' => 'tve_countdown_1',
),
),
'EndDate' => array(
'config' => array(
'label' => __( 'End Date', 'thrive-cb' ),
),
'extends' => 'DatePicker',
),
'ExternalFields' => [
'config' => [
'key' => 'countdown',
'shortcode_element' => '.thrv_countdown_timer',
],
'extends' => 'CustomFields',
],
'Color' => array(
'css_suffix' => ' .t-caption',
'config' => array(
'default' => 'f00',
'label' => __( 'Color', 'thrive-cb' ),
'important' => true,
'options' => [ 'noBeforeInit' => false ],
'style_default_color' => [
'.tve_countdown_2 .t-digits [class*="part-"]' => [ 'color' => '' ],
'.tve_countdown_2 .tve_t_part' => [ 'border-color' => '' ],
'.tve_countdown_3 .t-digits' => [ 'background' => '' ],
],
),
'extends' => 'ColorPicker',
),
'Hour' => array(
'config' => array(
'inline' => true,
'name' => __( 'H', 'thrive-cb' ),
'default' => 10,
'min' => 0,
'max' => 23,
'maxlength' => 2,
),
'extends' => 'Input',
),
'Minute' => array(
'config' => array(
'inline' => true,
'name' => __( 'M', 'thrive-cb' ),
'default' => 10,
'min' => 0,
'max' => 59,
'maxlength' => 2,
),
'extends' => 'Input',
),
),
),
'typography' => [
'hidden' => true,
],
'shadow' => [
'config' => [
'disabled_controls' => [ 'text' ],
],
],
'layout' => [
'disabled_controls' => [
'Overflow',
'ScrollStyle',
],
],
);
return apply_filters( 'tcb_countdown_controls', $components );
}
/**
* Element category that will be displayed in the sidebar
*
* @return string
*/
public function category() {
return static::get_thrive_advanced_label();
}
}

View File

@@ -0,0 +1,83 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Countdown_Separator_Element
*/
class TCB_Countdown_Separator_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Countdown Separator', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-countdown-separator';
}
public function hide() {
return true;
}
public function own_components() {
return array(
'countdown_separator' => [
'config' => [
'Separator' => [
'config' => [
'label' => 'Tile separator',
],
'extends' => 'LabelInput',
],
],
],
'typography' => [
'disabled_controls' => [ '.tve-advanced-controls', '[data-value="tcb-typography-letter-spacing"]', 'TextAlign', 'TextTransform', 'FontBackground' ],
'config' => [
'FontSize' => [
'css_suffix' => ' .tcb-plain-text',
],
'LineHeight' => [
'css_suffix' => ' .tcb-plain-text',
],
],
],
'layout' => array(
'disabled_controls' => [ 'Display', 'Alignment', '.tve-advanced-controls', 'Height' ],
'config' => array(
'MarginAndPadding' => array(
'padding_suffix' => ' span',
'margin_suffix' => '',
'css_prefix' => tcb_selection_root() . ' ',
'important' => true,
),
),
),
'responsive' => [
'hidden' => true,
],
'animation' => [
'hidden' => true,
],
);
}
}

View File

@@ -0,0 +1,64 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Countdown_Tile_Element
*/
class TCB_Countdown_Tile_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Countdown Tile', 'thrive-cb' );
}
/**
* Section element identifier
*
* @return string
*/
public function identifier() {
return '.tve-countdown-tile';
}
public function own_components() {
$cfg = array( 'css_prefix' => tcb_selection_root( false ), 'css_suffix' => [ ' span', ' .tcb-editable-label', ' .tcb-plain-text' ] );
return [
'layout' => [
'disabled_controls' => [ 'Display', 'Alignment', '.tve-advanced-controls', 'Width', 'Height' ],
],
'typography' => [
'disabled_controls' => [ '.tve-advanced-controls', '.typography-button-toggle-controls', 'TextAlign' ],
'config' => [
'TextStyle' => $cfg,
'FontColor' => $cfg,
'FontFace' => $cfg,
],
],
'responsive' => [
'hidden' => true,
],
'animation' => [
'hidden' => true,
],
];
}
public function hide() {
return true;
}
}

View File

@@ -0,0 +1,196 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 5/16/2017
* Time: 12:38 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Countdownevergreen_Element
*/
class TCB_Countdownevergreen_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Countdown Evergreen', 'thrive-cb' );
}
/**
* Get element alternate
*
* @return string
*/
public function alternate() {
return 'scarcity ';
}
/**
* Return icon class needed for display in menu
*
* @return string
*/
public function icon() {
return 'countdown_evergreen';
}
public function hide() {
return true;
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.thrv-countdown_timer_evergreen, .tve_countdown_timer_evergreen';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
return array(
'countdownevergreen' => array(
'config' => array(
'CompleteText' => array(
'config' => array(
'label' => __( 'Text to show on complete', 'thrive-cb' ),
),
'extends' => 'Textarea',
),
'style' => array(
'config' => array(
'label' => __( 'Style', 'thrive-cb' ),
'items' => array(
'tve_countdown_1' => array(
'label' => __( 'Simple', 'thrive-cb' ),
'preview' => 'countdown_s1',
),
'tve_countdown_2' => array(
'label' => __( 'Rounded', 'thrive-cb' ),
'preview' => 'countdown_s2',
),
'tve_countdown_3' => array(
'label' => __( 'Squared', 'thrive-cb' ),
'preview' => 'countdown_s3',
),
),
'default' => 'tve_countdown_1',
),
),
'Color' => array(
'config' => array(
'default' => 'f00',
'label' => __( 'Color', 'thrive-cb' ),
'important' => true,
'options' => [ 'noBeforeInit' => false ],
'style_default_color' => [
'.tve_countdown_2 .t-digits [class*="part-"]' => [ 'color' => '' ],
'.tve_countdown_2 .tve_t_part' => [ 'border-color' => '' ],
'.tve_countdown_3 .t-digits' => [ 'background' => '' ],
],
),
'extends' => 'ColorPicker',
),
'Day' => array(
'config' => array(
'inline' => true,
'name' => __( 'Days', 'thrive-cb' ),
'default' => 10,
'maxlength' => 3,
),
'extends' => 'Input',
),
'Hour' => array(
'config' => array(
'inline' => true,
'name' => __( 'Hours', 'thrive-cb' ),
'default' => 10,
'maxlength' => 2,
),
'extends' => 'Input',
),
'Minute' => array(
'config' => array(
'inline' => true,
'name' => __( 'Minutes', 'thrive-cb' ),
'default' => 10,
'maxlength' => 2,
),
'extends' => 'Input',
),
'Second' => array(
'config' => array(
'inline' => true,
'name' => __( 'Seconds', 'thrive-cb' ),
'default' => 10,
'maxlength' => 2,
),
'extends' => 'Input',
),
'ExpDay' => array(
'config' => array(
'inline' => true,
'name' => __( 'Days', 'thrive-cb' ),
'default' => 10,
'maxlength' => 3,
),
'extends' => 'Input',
),
'ExpHour' => array(
'config' => array(
'inline' => true,
'name' => __( 'Hours', 'thrive-cb' ),
'default' => 10,
'maxlength' => 2,
),
'extends' => 'Input',
),
'StartAgain' => array(
'config' => array(
'name' => '',
'label' => __( 'Starts again after', 'thrive-cb' ),
'default' => false,
),
'extends' => 'Switch',
),
),
),
'typography' => [
'hidden' => true,
],
'shadow' => [
'config' => [
'disabled_controls' => [ 'text' ],
],
],
'layout' => [
'disabled_controls' => [
'Overflow',
'ScrollStyle',
],
],
);
}
/**
* Element category that will be displayed in the sidebar
*
* @return string
*/
public function category() {
return static::get_thrive_advanced_label();
}
}