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,56 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Campaign_Event_Id_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* @inheritDoc
*/
public static function get_id() {
return 'campaign_event_id';
}
/**
* @inheritDoc
*/
public static function get_supported_filters() {
return array( 'number_comparison' );
}
/**
* @inheritDoc
*/
public static function get_name() {
return __( 'ID of the event that triggered the countdown', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_description() {
return __( 'User targets by the specific event ID that triggered the campaign', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_placeholder() {
return '';
}
public static function get_field_value_type() {
return static::TYPE_NUMBER;
}
public static function get_dummy_value() {
return 34;
}
}

View File

@@ -0,0 +1,56 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Campaign_Id_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* @inheritDoc
*/
public static function get_id() {
return 'campaign_id';
}
/**
* @inheritDoc
*/
public static function get_supported_filters() {
return array( 'number_comparison' );
}
/**
* @inheritDoc
*/
public static function get_name() {
return __( 'ID of the Ultimatum campaign', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_description() {
return __( 'User targets by a specific Ultimatum campaign ID', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_placeholder() {
return '';
}
public static function get_field_value_type() {
return static::TYPE_NUMBER;
}
public static function get_dummy_value() {
return 31;
}
}

View File

@@ -0,0 +1,86 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Campaign_Name_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* @inheritDoc
*/
public static function get_id() {
return 'campaign_name';
}
/**
* @inheritDoc
*/
public static function get_supported_filters() {
return array( 'autocomplete' );
}
/**
* @inheritDoc
*/
public static function get_name() {
return __( 'Name of the campaign', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_description() {
return __( 'User targets by one or more Ultimatum campaigns', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_placeholder() {
return '';
}
/**
* For multiple option inputs, name of the callback function called through ajax to get the options
*/
public static function get_options_callback() {
$campaigns = array();
$running_campaigns = tve_ult_get_campaigns( array(
'get_designs' => false,
'only_running' => true,
'get_logs' => false,
'lockdown' => true,
) );
foreach ( $running_campaigns as $campaign ) {
if ( $campaign->type === \TVE_Ult_Const::CAMPAIGN_TYPE_EVERGREEN ) {
$name = $campaign->post_title;
$campaigns[ $name ] = array(
'id' => $name,
'label' => $name,
);
}
}
return $campaigns;
}
public static function is_ajax_field() {
return true;
}
public static function get_field_value_type() {
return static::TYPE_STRING;
}
public static function get_dummy_value() {
return 'An Example Ultimatum Countdown';
}
}

View File

@@ -0,0 +1,51 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Campaign_Start_Date_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* Field name
*/
public static function get_name() {
return 'Campaign start date';
}
/**
* Field description
*/
public static function get_description() {
return 'User targets by the start date of an Ultimatum campaign';
}
/**
* Field input placeholder
*/
public static function get_placeholder() {
return '';
}
public static function get_id() {
return 'campaign_start_date';
}
public static function get_supported_filters() {
return array( 'time_date' );
}
public static function get_field_value_type() {
return static::TYPE_DATE;
}
public static function get_dummy_value() {
return '2021-09-06 17:18:57';
}
}

View File

@@ -0,0 +1,76 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Campaign_Trigger_Type_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* @inheritDoc
*/
public static function get_id() {
return 'campaign_trigger_type';
}
/**
* @inheritDoc
*/
public static function get_supported_filters() {
return array( 'checkbox' );
}
/**
* @inheritDoc
*/
public static function get_name() {
return __( 'Campaign trigger type', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_description() {
return __( 'User targets by one or more trigger types of an Ultimatum campaign', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_placeholder() {
return '';
}
/**
* For multiple option inputs, name of the callback function called through ajax to get the options
*/
public static function get_options_callback() {
$trigger_types = array();
foreach ( \TVE_Ult_Const::trigger_types() as $type ) {
$trigger_types[ $type ] = array(
'id' => $type,
'label' => ucfirst( $type ),
);
}
return $trigger_types;
}
public static function is_ajax_field() {
return true;
}
public static function get_field_value_type() {
return static::TYPE_STRING;
}
public static function get_dummy_value() {
return 'Thrive Leads Form';
}
}

View File

@@ -0,0 +1,76 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
class Campaign_Type_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* @inheritDoc
*/
public static function get_id() {
return 'campaign_type';
}
/**
* @inheritDoc
*/
public static function get_supported_filters() {
return array( 'checkbox' );
}
/**
* @inheritDoc
*/
public static function get_name() {
return __( 'Campaign type', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_description() {
return __( 'User targets by one or more Ultimatum campaign types', 'thrive-ult' );
}
/**
* @inheritDoc
*/
public static function get_placeholder() {
return '';
}
/**
* For multiple option inputs, name of the callback function called through ajax to get the options
*/
public static function get_options_callback() {
$types = array();
foreach ( \TVE_Ult_Const::campaign_types() as $type ) {
$types[ $type ] = array(
'id' => $type,
'label' => ucfirst( $type ),
);
}
return $types;
}
public static function is_ajax_field() {
return true;
}
public static function get_field_value_type() {
return static::TYPE_STRING;
}
public static function get_dummy_value() {
return 'Evergreen';
}
}

View File

@@ -0,0 +1,59 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ultimatum
*/
namespace TU\Automator;
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
/**
* Class Form_Email_Field
*/
class Campaign_User_Email_Data_Field extends \Thrive\Automator\Items\Data_Field {
/**
* Field name
*/
public static function get_name() {
return 'User email';
}
/**
* Field description
*/
public static function get_description() {
return __( 'Email field, provided by the campaign trigger', 'thrive-ult' );
}
/**
* Field input placeholder
*/
public static function get_placeholder() {
return __( 'Filter by email from campaign data', 'thrive-ult' );
}
public static function get_id() {
return 'campaign_user_email';
}
public static function get_supported_filters() {
return [ 'string_equals' ];
}
public static function get_validators() {
return [ 'required', 'email' ];
}
public static function get_field_value_type() {
return static::TYPE_STRING;
}
public static function get_dummy_value() {
return 'john_doe@fakemail.com';
}
}