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,49 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Fields\Time;
use TCB\ConditionalDisplay\Field;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Current_Date extends Field {
/**
* @return string
*/
public static function get_entity() {
return 'time_data';
}
/**
* @return string
*/
public static function get_key() {
return 'current_date';
}
public static function get_label() {
return esc_html__( 'Date', 'thrive-cb' );
}
public static function get_conditions() {
return [ 'date' ];
}
public function get_value( $data ) {
return current_time( 'Y/m/d H:i' );
}
/**
* @return int
*/
public static function get_display_order() {
return 0;
}
}

View File

@@ -0,0 +1,49 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Fields\Time;
use TCB\ConditionalDisplay\Field;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Current_Time extends Field {
/**
* @return string
*/
public static function get_entity() {
return 'time_data';
}
/**
* @return string
*/
public static function get_key() {
return 'current_time';
}
public static function get_label() {
return esc_html__( 'Time', 'thrive-cb' );
}
public static function get_conditions() {
return [ 'time' ];
}
public function get_value( $data ) {
return current_time( 'H:i' );
}
/**
* @return int
*/
public static function get_display_order() {
return 5;
}
}

View File

@@ -0,0 +1,59 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Fields\Time;
use TCB\ConditionalDisplay\Field;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Day_Of_Month extends Field {
/**
* @return string
*/
public static function get_entity() {
return 'time_data';
}
/**
* @return string
*/
public static function get_key() {
return 'day_of_month';
}
public static function get_label() {
return esc_html__( 'Day of month', 'thrive-cb' );
}
public static function get_conditions() {
return [ 'number_equals' ];
}
public function get_value( $data ) {
return (int) date( 'd' );
}
/**
* @return array
*/
public static function get_validation_data() {
return [
'min' => 1,
'max' => 31,
];
}
/**
* @return int
*/
public static function get_display_order() {
return 15;
}
}

View File

@@ -0,0 +1,82 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Fields\Time;
use TCB\ConditionalDisplay\Field;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Day_Of_Week extends Field {
/**
* @return string
*/
public static function get_entity() {
return 'time_data';
}
/**
* @return string
*/
public static function get_key() {
return 'day_of_week';
}
public static function get_label() {
return esc_html__( 'Day of week', 'thrive-cb' );
}
public static function get_conditions() {
return [ 'checkbox' ];
}
public function get_value( $data ) {
return strtolower( date( 'l' ) );
}
public static function get_options( $selected_values = [], $search = '' ) {
return [
[
'value' => 'monday',
'label' => __( 'Monday' ),
],
[
'value' => 'tuesday',
'label' => __( 'Tuesday' ),
],
[
'value' => 'wednesday',
'label' => __( 'Wednesday' ),
],
[
'value' => 'thursday',
'label' => __( 'Thursday' ),
],
[
'value' => 'friday',
'label' => __( 'Friday' ),
],
[
'value' => 'saturday',
'label' => __( 'Saturday' ),
],
[
'value' => 'sunday',
'label' => __( 'Sunday' ),
],
];
}
/**
* @return int
*/
public static function get_display_order() {
return 10;
}
}

View File

@@ -0,0 +1,102 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Fields\Time;
use TCB\ConditionalDisplay\Field;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Month extends Field {
/**
* @return string
*/
public static function get_entity() {
return 'time_data';
}
/**
* @return string
*/
public static function get_key() {
return 'month';
}
public static function get_label() {
return esc_html__( 'Month', 'thrive-cb' );
}
public static function get_conditions() {
return [ 'checkbox' ];
}
public function get_value( $data ) {
return (int) date( 'n' );
}
public static function get_options( $selected_values = [], $search = '' ) {
return [
[
'value' => '1',
'label' => __( 'January' ),
],
[
'value' => '2',
'label' => __( 'February' ),
],
[
'value' => '3',
'label' => __( 'March' ),
],
[
'value' => '4',
'label' => __( 'April' ),
],
[
'value' => '5',
'label' => __( 'May' ),
],
[
'value' => '6',
'label' => __( 'June' ),
],
[
'value' => '7',
'label' => __( 'July' ),
],
[
'value' => '8',
'label' => __( 'August' ),
],
[
'value' => '9',
'label' => __( 'September' ),
],
[
'value' => '10',
'label' => __( 'October' ),
],
[
'value' => '11',
'label' => __( 'November' ),
],
[
'value' => '12',
'label' => __( 'December' ),
],
];
}
/**
* @return int
*/
public static function get_display_order() {
return 20;
}
}