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,51 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Pagination_First_Last_Button_Element
*/
class TCB_Pagination_First_Last_Button_Element extends TCB_Button_Element {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'First / Last Buttons', 'thrive-cb' );
}
/**
* Button element identifier
*
* @return string
*/
public function identifier() {
return '.' . TCB_Pagination_Numeric::FIRST_LAST_BUTTON_CLASS;
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
return TCB_Utils::get_pagination_button_config( parent::own_components() );
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
}

View File

@@ -0,0 +1,94 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class TCB_Pagination_Label_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Pagination Label', 'thrive-cb' );
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.tcb-pagination-label';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = parent::general_components();
$prefix_config = tcb_selection_root();
$components['pagination_label'] = array(
'config' => array(
'Format' => array(
'config' => array(
'name' => __( 'Format', 'thrive-cb' ),
'options' => [
'pages' => 'Page 1 of 8',
'posts' => 'Showing 1-15 of 365',
],
),
'extends' => 'Select',
),
),
);
$pagination_label_class = 'tcb-pagination-label-content';
$components['typography']['config']['css_suffix'] = ' .' . $pagination_label_class;
foreach ( $components['typography']['config'] as $control => $config ) {
if ( is_array( $config ) && $control !== 'FontFace' ) {
$components['typography']['config'][ $control ]['css_suffix'] = ' .' . $pagination_label_class;
$components['typography']['config'][ $control ]['important'] = true;
}
}
/* fontface uses 'to' instead of css_suffix so it reads the values properly */
$components['typography']['config']['FontFace']['css_suffix'] = '';
$components['typography']['config']['FontFace']['important'] = true;
$components['typography']['config']['FontFace']['to'] = '.' . $pagination_label_class;
/* add a suffix and prefix for the shadow controls */
$components['shadow']['config']['css_suffix'] = ' .' . $pagination_label_class;
$components['shadow']['config']['css_prefix'] = $prefix_config;
$components['shadow']['config']['important'] = true;
$components['layout']['disabled_controls'] = [ 'Display', 'Alignment' ];
$components['animation'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components['styles-templates'] = [ 'hidden' => true ];
return $components;
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
}

View File

@@ -0,0 +1,65 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Pagination_Load_More_Element
*/
class TCB_Pagination_Load_More_Element extends TCB_Button_Element {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Load More Button', 'thrive-cb' );
}
/**
* WordPress element identifier
*
* @return string
*/
public function identifier() {
return '.' . TCB_Pagination_Load_More::IDENTIFIER;
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
/**
* The 'Load More' components - more or less the same as the ones from the button
*
* @return array
*/
public function own_components() {
$components = parent::own_components();
$components['button']['disabled_controls'] = [ '.tcb-button-link-container-divider', '#tcb-button-link-search-control', '.tcb-button-link-options-container', '.tcb-button-link-container', 'DynamicLink' ];
$components['animation']['disabled_controls'] = [ '.btn-inline.anim-link', '.btn-inline.anim-popup' ];
$components['scroll'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components = array_merge( $components, $this->shared_styles_component() );
/* hide the Save button */
$components['shared-styles']['disabled_controls'] = [ '.save-as-global-style' ];
return $components;
}
}

View File

@@ -0,0 +1,57 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class TCB_Pagination_Navigation_Container_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Button Container', 'thrive-cb' );
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.tcb-pagination-navigation-container';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = parent::general_components();
$components['layout']['disabled_controls'] = [ 'Display', 'Alignment' ];
$components['typography'] = [ 'hidden' => true ];
$components['animation'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components['styles-templates'] = [ 'hidden' => true ];
return $components;
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
}

View File

@@ -0,0 +1,68 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class TCB_Pagination_Number_Current_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Active Page', 'thrive-cb' );
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.tcb-pagination-current.tcb-pagination-number';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = parent::general_components();
$components['typography']['config']['css_suffix'] = '';
$components['typography']['disabled_controls'] = [ 'TextTransform', 'TextAlign', '.tve-advanced-controls', '[data-value="tcb-typography-line-height"]' ];
foreach ( $components['typography']['config'] as $control => $config ) {
if ( is_array( $config ) ) {
$components['typography']['config'][ $control ]['css_suffix'] = '';
}
}
$components['typography']['config']['FontColor']['important'] = true;
$components['typography']['config']['FontSize']['important'] = true;
$components['layout']['disabled_controls'] = [ 'Display', 'Alignment', '.tve-advanced-controls' ];
$components['animation'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components['styles-templates'] = [ 'hidden' => true ];
return $components;
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
}

View File

@@ -0,0 +1,81 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class TCB_Pagination_Number_Item_Element extends TCB_Element_Abstract {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Page Numbers', 'thrive-cb' );
}
/**
* Element identifier
*
* @return string
*/
public function identifier() {
return '.tcb-pagination-number';
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
$components = parent::general_components();
$prefix_config = tcb_selection_root();
$components['typography']['config']['css_suffix'] = '';
$components['typography']['disabled_controls'] = [ 'TextTransform', 'TextAlign', '.tve-advanced-controls', '[data-value="tcb-typography-line-height"]' ];
foreach ( $components['typography']['config'] as $control => $config ) {
if ( is_array( $config ) ) {
$components['typography']['config'][ $control ]['css_suffix'] = '';
}
}
$components['typography']['config']['FontColor']['important'] = true;
$components['typography']['config']['FontSize']['important'] = true;
/* add a suffix and prefix for the shadow controls */
$components['shadow']['config']['css_prefix'] = $prefix_config;
$components['layout']['disabled_controls'] = [ 'Display', 'Alignment', '.tve-advanced-controls' ];
$components['animation'] = [ 'hidden' => true ];
$components['responsive'] = [ 'hidden' => true ];
$components['styles-templates'] = [ 'hidden' => true ];
return $components;
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
/**
* @return bool
*/
public function has_hover_state() {
return true;
}
}

View File

@@ -0,0 +1,51 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class TCB_Pagination_Prev_Next_Button_Element
*/
class TCB_Pagination_Prev_Next_Button_Element extends TCB_Button_Element {
/**
* Name of the element
*
* @return string
*/
public function name() {
return __( 'Next/Previous Buttons', 'thrive-cb' );
}
/**
* Button element identifier
*
* @return string
*/
public function identifier() {
return '.' . TCB_Pagination_Numeric::PREV_NEXT_BUTTON_CLASS;
}
/**
* Component and control config
*
* @return array
*/
public function own_components() {
return TCB_Utils::get_pagination_button_config( parent::own_components() );
}
/**
* Hide this element in the sidebar.
*
* @return string
*/
public function hide() {
return true;
}
}