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,66 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Entities;
use TCB\ConditionalDisplay\Entity;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Referral extends Entity {
/**
* @return string
*/
public static function get_key() {
return 'referral_data';
}
public static function get_label() {
return esc_html__( 'Referral', 'thrive-cb' );
}
/**
* The referrer is normally taken from $_SERVER['HTTP_REFERER'].
* When it's not available ( this happens during ajax requests ), it is sent as a parameter from there.
*
* @param $param
*
* @return array|mixed
*/
public function create_object( $param ) {
$referrer_data = [];
if ( wp_doing_ajax() && ! empty( $_REQUEST['referrer'] ) ) {
$url = $_REQUEST['referrer'];
} else if ( ! empty( $_SERVER['HTTP_REFERER'] ) ) {
$url = $_SERVER['HTTP_REFERER'];
}
if ( ! empty( $url ) ) {
$referrer_data['url'] = $url;
/* if the URL is from this site, store the post data */
if ( strpos( $url, home_url() ) !== false ) {
$referrer_data['post'] = get_post( url_to_postid( $url ) );
}
}
return $referrer_data;
}
/**
* Determines the display order in the modal entity select
*
* @return int
*/
public static function get_display_order() {
return 25;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Entities;
use TCB\ConditionalDisplay\Entity;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Request extends Entity {
/**
* @return string
*/
public static function get_key() {
return 'request_data';
}
public static function get_label() {
return esc_html__( 'Request data', 'thrive-cb' );
}
public function create_object( $param ) {
return '';
}
/**
* Determines the display order in the modal entity select
*
* @return int
*/
public static function get_display_order() {
return 20;
}
}

View File

@@ -0,0 +1,41 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Entities;
use TCB\ConditionalDisplay\Entity;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Time extends Entity {
/**
* @return string
*/
public static function get_key() {
return 'time_data';
}
public static function get_label() {
return esc_html__( 'Time and date', 'thrive-cb' );
}
public function create_object( $param ) {
return '';
}
/**
* Determines the display order in the modal entity select
*
* @return int
*/
public static function get_display_order() {
return 15;
}
}

View File

@@ -0,0 +1,42 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-visual-editor
*/
namespace TCB\ConditionalDisplay\Entities;
use TCB\ConditionalDisplay\Entity;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class User extends Entity {
/**
* @return string
*/
public static function get_key() {
return 'user_data';
}
public static function get_label() {
return esc_html__( 'User', 'thrive-cb' );
}
public function create_object( $param ) {
$user_id = get_current_user_id();
return get_userdata( $user_id );
}
/**
* Determines the display order in the modal entity select
*
* @return int
*/
public static function get_display_order() {
return 0;
}
}