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,17 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 11:05 AM
*/
?>
<ul class="clearfix">
<# links.each( function( item, index ) { item.has_link = index < links.size() - 1 #>
<li class="tvd-breadcrumb <#= ( item.has_link ? '' : ' tqb-no-link' ) #>">
<# if ( item.has_link ) { #><a href="<#= item.get_url() #>"><# } #>
<#= _.escape ( item.get ( 'label' ) ) #>
<# if ( item.has_link ) { #></a><# } #>
</li>
<# } ) #>
</ul>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 5:18 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<td><#= model.get('title') #></td>
<td><#= model.get('date_completed_pretty') #></td>
<td><#= model.get('page_title') #></td>
<td><#= model.get('goal') #></td>
<td>
<a href="<#= model.get('test_link') #>"><?php echo __( 'View Test Details', 'thrive-ab-page-testing' ); ?></a>&nbsp;&nbsp;&nbsp;
<a href="javascript:void(0);" class="tab-delete-test"><?php echo __( 'Delete Test', 'thrive-ab-page-testing' ); ?></a>
</td>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/19/2018
* Time: 10:16 AM
*/
?>
<tr>
<td style="text-align: center;" colspan="5"><?php echo __( 'You have no finished tests, yet.', 'thrive-ab-page-testing' ); ?></td>
</tr>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 2/1/2018
* Time: 3:48 PM
*/
?>
<tr>
<td style="text-align: center;" colspan="5"><?php echo __( 'You have no completed test with that name', 'thrive-ab-page-testing' ); ?></td>
</tr>

View File

@@ -0,0 +1,180 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 2:18 PM
*/
?>
<div class="tab-center">
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<span class="tab-dash-title"><?php echo __( 'Last 30 Days Stats', 'thrive-ab-page-testing' ); ?></span>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<span class="tab-dash-subtitle"><?php //echo __( '(Applies for running tests only)', 'thrive-ab-page-testing' ); ?></span>
</div>
</div>
</div>
<div class="tvd-row" style="margin-bottom: 40px">
<div class="tvd-col tvd-s4">
<div class="tab-overview-box">
<p class="tab-stats-text">
<span class="tvd-icon-eye tvd-stats-icon"></span>
<span><?php echo __( 'Total Unique Visitors', 'thrive-ab-page-testing' ); ?></span>
</p>
<hr>
<p class="tab-stats-number tab-stats-blue"><#= stats.unique_visitors #></p>
</div>
</div>
<div class="tvd-col tvd-s4">
<div class="tab-overview-box">
<p class="tab-stats-text">
<span class="tvd-icon-paper-plane tvd-stats-icon"></span>
<span><?php echo __( 'Total Conversions', 'thrive-ab-page-testing' ); ?></span>
</p>
<hr>
<p class="tab-stats-number tab-stats-blue"><#= stats.total_conversions #></p>
</div>
</div>
<div class="tvd-col tvd-s4">
<div class="tab-overview-box">
<p class="tab-stats-text">
<span class="tvd-icon-line-chart tvd-stats-icon"></span>
<span><?php echo __( 'Conversion Rate', 'thrive-ab-page-testing' ); ?></span>
</p>
<hr>
<p class="tab-stats-number tab-stats-green"><#= stats.conversion_rate #>%</p>
</div>
</div>
</div>
<hr>
<br>
<div class="tvd-row tab-no-margin">
<div class="tvd-col tvd-s6">
<h3><?php echo __( 'Running A/B Tests Overview', 'thrive-ab-page-testing' ); ?></h3>
</div>
<div class="tvd-col tvd-s6 tab-right">
<div class="tvd-input-field tvd-prefix tvd-input-field-limit">
<i class="tvd-icon-search"></i>
<input type="text" class="tab-running-search-input tvd-no-margin" placeholder="<?php echo __( 'Search tests...', 'thrive-ab-page-testing' ); ?>" value=""/>
</div>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<table class="tvd-collection">
<thead>
<tr>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Test Name', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'Test Name', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Date Started', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'Date Started', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'On Page', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'On Page', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Test Goal', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el">
<?php echo __( 'Test Goal', 'thrive-ab-page-testing' ); ?>
</h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Unique Visitors', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'Unique Visitors', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Conversions', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el">
<?php echo __( 'Conversions', 'thrive-ab-page-testing' ); ?>
</h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Actions', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el">
<?php echo __( 'Actions', 'thrive-ab-page-testing' ); ?>
</h5>
</div>
</td>
</tr>
</thead>
<tbody class="tab-running-test-items-list"></tbody>
</table>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s6 tvd-offset-s6 tab-running-pagination"></div>
</div>
<div class="tvd-row tab-no-margin">
<div class="tvd-col tvd-s6">
<h3><?php echo __( 'Completed Tests', 'thrive-ab-page-testing' ); ?></h3>
</div>
<div class="tvd-col tvd-s6 tab-right">
<div class="tvd-input-field tvd-prefix tvd-input-field-limit">
<i class="tvd-icon-search"></i>
<input type="text" class="tab-completed-search-input tvd-no-margin" placeholder="<?php echo __( 'Search tests...', 'thrive-ab-page-testing' ); ?>" value=""/>
</div>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s12">
<table class="tvd-collection">
<thead>
<tr>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Test Name', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'Test Name', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'End Date', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'End Date', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'On Page', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el"><?php echo __( 'On Page', 'thrive-ab-page-testing' ); ?></h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Test Goal', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el">
<?php echo __( 'Test Goal', 'thrive-ab-page-testing' ); ?>
</h5>
</div>
</td>
<td>
<div class="tvd-truncate-on-small" data-popup="<?php echo __( 'Actions', 'thrive-ab-page-testing' ); ?>">
<h5 class="tvd-truncate-on-small-el">
<?php echo __( 'Actions', 'thrive-ab-page-testing' ); ?>
</h5>
</div>
</td>
</tr>
</thead>
<tbody class="tab-completed-test-items-list"></tbody>
</table>
</div>
</div>
<div class="tvd-row">
<div class="tvd-col tvd-s6 tvd-offset-s6 tab-completed-pagination"></div>
</div>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ab-page-testing
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-modal-content">
<p>
<#= this.data.description #>
</p>
</div>
<div class="tvd-modal-footer">
<div class="tvd-row">
<div class="tvd-col tvd-s12 tvd-m6">
<a href="javascript:void(0)" class="tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-modal-close tvd-waves-effect">
<#= this.data.btn_no_txt #>
</a>
</div>
<div class="tvd-col tvd-s12 tvd-m6">
<a href="javascript:void(0)" class="tvd-waves-effect tvd-waves-light tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvd-modal-submit">
<#= this.data.btn_yes_txt #>
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,33 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 5:36 PM
*/
?>
<div class="tvd-right">
<span class="tvd-inline-block"><strong><?php echo __('Rows per page:','thrive-ab-page-testing' ); ?></strong></span>
<div class="tvd-input-field tvd-input-field-small tvd-inline-block tab-pagination-select">
<select class="tab-items-per-page">
<option value="10" <# if(itemsPerPage == 10) { #> selected="selected" <# } #>>10</option>
<option value="15" <# if(itemsPerPage == 15) { #> selected="selected" <# } #>>15</option>
<option value="30" <# if(itemsPerPage == 30) { #> selected="selected" <# } #>>30</option>
<option value="50" <# if(itemsPerPage == 50) { #> selected="selected" <# } #>>50</option>
</select>
</div>
<div class="tvd-inline-block ">
<strong>
<#= (currentPage-1)*itemsPerPage #> - <#= currentPage * itemsPerPage > total_items ? total_items : currentPage * itemsPerPage #>
<?php echo __('of','thrive-ab-page-testing' ) ?> <#= total_items #>
</strong>
</div>
<div id="pages" class="tvd-inline-block tab-pagination-icons">
<# if( pageCount > 1) { #>
<a <# if(currentPage > 1) { #> class="page" value="<#= currentPage - 1 #>" <# } #>> <span class="tab-icon-pagination tvd-icon-chevron-left"></span></a>
<a <# if(currentPage < pageCount) { #> class="page" value="<#= (currentPage + 1) #>" <# } #>> <span class="tab-icon-pagination tvd-icon-chevron-left tab-next-pagination"></span></a>
<# } #>
</div>
</div>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 4:35 PM
*/
?>
<td><#= model.get('title') #></td>
<td><#= model.get('date_started_pretty') #></td>
<td><#= model.get('page_title') #></td>
<td><#= model.get('goal') #></td>
<td><#= model.get('unique_impressions') #></td>
<td><#= model.get('conversions') #></td>
<td><a href="<#= model.get('test_link') #>"><?php echo __( 'View Test Details', 'thrive-ab-page-testing' ); ?></a></td>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/19/2018
* Time: 10:17 AM
*/
?>
<tr>
<td style="text-align: center;" colspan="7"><?php echo __( 'You have no running tests, yet.', 'thrive-ab-page-testing' ); ?></td>
</tr>

View File

@@ -0,0 +1,11 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 2/1/2018
* Time: 3:47 PM
*/
?>
<tr>
<td style="text-align: center;" colspan="7"><?php echo __( 'You have no running test with that name', 'thrive-ab-page-testing' ); ?></td>
</tr>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/16/2018
* Time: 9:23 AM
*/
?>
<div id="thrive-ab-top-bar" class="thrive-ab-logo-holder" style="margin-left: -20px">
<div class="thrive-ab-logo">
<span></span>
</div>
<?php do_action( 'tvd_notification_inbox' ); ?>
</div>
<div class="td-app-notification-overlay overlay close "></div>
<div class="td-app-notification-drawer">
<div class="td-app-notification-holder">
<div class="td-app-notification-header notification-header-notify-t-optimize"></div>
<div class="td-app-notification-wrapper notification-wrapper-notify-t-optimize"></div>
<div class="notification-footer notification-footer-notify-t-optimize"></div>
</div>
</div>
<div id="tab-breadcrumbs-wrapper"></div>
<?php echo tvd_get_individual_plugin_license_message( new Thrive_AB_Product(), true ); ?>
<div id="tab-admin-dashboard-wrapper"></div>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 11/21/2017
* Time: 9:03 AM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
$singular = isset( $singular ) ? $singular : null;
?>
<table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
<thead>
<tr>
<?php $this->print_column_headers(); ?>
</tr>
</thead>
<tbody id="top-the-list"<?php echo $singular ? " data-wp-lists='list:$singular'" : ''; ?>>
<?php $this->display_rows_or_placeholder(); ?>
</tbody>
</table>

View File

@@ -0,0 +1,38 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 11/18/2017
* Time: 7:31 PM
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
$singular = isset( $singular ) ? $singular : null;
$start_test_link = $this->_page->get_start_test_url();
/** @var Thrive_AB_Meta_Box_Variations_Table $this */
?>
<table class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
<thead>
<tr>
<?php $this->print_column_headers(); ?>
</tr>
</thead>
<tbody id="top-the-list"<?php echo $singular ? " data-wp-lists='list:$singular'" : ''; ?>>
<?php $this->display_rows_or_placeholder(); ?>
</tbody>
</table>
<?php if ( $this->_pagination_args['total_items'] > 0 ) : ?>
<div class="thrv-ab-action-button-wrapper">
<?php if ( count( $this->_page_tests ) > 0 ) : ?>
<?php $view_test_link = $this->_page->get_test_link( $this->_page_tests[0]['id'] ) ?>
<p><span></span><?php echo __( 'Changes occurred while a test is running can sometimes invalidate the test results.', 'thrive-ab-page-testing' ); ?></p>
<a class="thrv-ab-action-button" href="<?php echo $view_test_link; ?>"><?php echo __( 'View Test Details', 'thrive-ab-page-testing' ); ?></a>
<?php else : ?>
<a class="thrv-ab-action-button" href="<?php echo $start_test_link . '#dashboard/start-test'; ?>"><?php echo __( 'Set Up & Start A/B Test', 'thrive-ab-page-testing' ); ?></a>
<?php endif; ?>
</div>
<?php endif; ?>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ab-page-testing
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
$plugin_name = 'Thrive Optimize';
$tar_name = 'Thrive Architect';
?>
<div class="notice notice-error">
<p>
<?php echo __( sprintf( '%s is not active on your site and you cannot use %s', $tar_name, $plugin_name ), 'thrive-ab-page-testing' ) ?>
</p>
</div>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-ab-page-testing
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
$tar_name = 'Thrive Architect';
$tar_required_version = Thrive_AB_Checker::get_tar_required_version();
?>
<div class="notice notice-error">
<p>
<?php echo __( sprintf( 'Version of %s is not the required one: %s! Please update it before.', $tar_name, $tar_required_version ), 'thrive-ab-page-testing' ) ?>
</p>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Created by PhpStorm.
* User: Ovidiu
* Date: 1/18/2018
* Time: 5:26 PM
*/
tve_enqueue_style( 'tve_architect_edit_links', tve_editor_css() . '/thrive-architect-edit-links.css' );
global $post;
$view_test_link = '';
try {
$page = new Thrive_AB_Page( (int) $post->ID );
$test_id = $page->get_meta()->get( 'running_test_id' );
$start_test_link = $page->get_start_test_url();
$view_test_link = $start_test_link . '&test-id=' . $test_id . '#test';
} catch ( Exception $e ) {
}
?>
<!--<a class="thrive-architect-edit-link tcb-enable-editor thrive-architect-edit-disabled">-->
<!-- <div class="thrive-architect-admin-icon-holder">-->
<!-- <div class="thrive-architect-admin-icon"></div>-->
<!-- </div>-->
<!-- <div class="thrive-architect-admin-text">-->
<!-- --><?php //echo __( 'Edit with Thrive Architect', 'thrive-ab-page-testing' ) ?>
<!-- </div>-->
<!--</a>-->
<!-- TOP-143 <p style="display: inline;">--><?php //echo sprintf( __( 'Page editing is disabled while the A/B test is running. Click <a href="%s">here</a> to manage/end the test and enable editing again.', 'thrive-ab-page-testing' ), $view_test_link ); ?><!--</p>-->