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,16 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
include( TVD_SM_Constants::path( 'includes/admin/views/templates' ) . '/header.phtml' ); ?>
<div id="tvd-sm-breadcrumbs-wrapper"></div>
<div id="tvd-sm-wrapper">
<div id="tvd-sm-container">
</div>
</div>

View File

@@ -0,0 +1,5 @@
<div class="tvd-sm-breadcrumbs">
<a href="<?php echo admin_url( 'admin.php?page=tve_dash_section' ); ?>">
<?php echo __( 'Thrive Dashboard', 'thrive-dash' ); ?>
</a> &nbsp > &nbsp <strong><?php echo __( 'Analytics & Scripts', 'thrive-dash' ); ?></strong>
</div>

View File

@@ -0,0 +1,36 @@
<div class="tvd-section-title">
<h3><?php echo __( 'Analytics & Scripts', 'thrive-dash' ) ?>
<a class="tvd-add-modal tvd-waves-effect tvd-waves-light tvd-btn tvd-btn-blue"><?php echo __( 'ADD NEW', 'thrive-dash' ) ?></a>
</h3>
</div>
<div id="tve-dash-scripts">
<h4 class="tvd-sm-row">
<span class="tvd-sm-row-elem-placement"><?php echo __( 'Before ', 'thrive-dash' ) ?><?php echo htmlentities( '</head>' ); ?> </span>
<span class="tvd-sm-enabled tvd-sm-theme-column" style="<#= !TVD_SM_CONST.is_ttb_active ? 'display:none' : '' #>"><?php echo __( 'Inserted in Thrive Themes', 'thrive-dash' ) ?></span>
<span class="tvd-sm-enabled tvd-sm-lp-column" style="<#= !TVD_SM_CONST.is_tar_active ? 'display:none' : '' #>"><?php echo __( 'Inserted in Landing Pages', 'thrive-dash' ) ?></span>
<span class="tvd-sm-empty"></span>
</h4>
<div id="tvd-sm-container-head" class="tvd-sm-script-group">
</div>
<h4 class="tvd-sm-row">
<span class="tvd-sm-row-elem tvd-sm-row-elem-placement"><?php echo __( 'After ', 'thrive-dash' ) ?><?php echo htmlentities( '<body>' ); ?> </span>
</h4>
<div id="tvd-sm-container-body-open" class="tvd-sm-script-group">
</div>
<h4 class="tvd-sm-row">
<span class="tvd-sm-row-elem tvd-sm-row-elem-placement"><?php echo __( 'Before ', 'thrive-dash' ) ?><?php echo htmlentities( '</body>' ); ?> </span>
</h4>
<div id="tvd-sm-container-body-close" class="tvd-sm-script-group">
</div>
</div>
<div id="tvd-back-td" class="tvd-col tvd-m6">
<a href="<?php echo admin_url( 'admin.php?page=tve_dash_section' ); ?>" class="tvd-waves-effect tvd-waves-light tvd-btn-small tvd-btn-gray">
<?php echo __( 'Back To Dashboard', 'thrive-dash' ); ?>
</a>
</div>

View File

@@ -0,0 +1,33 @@
<?php /* taken from templates/header.phtml */ ?>
<div class="tvd-header">
<nav id="tvd-nav">
<div class="nav-wrapper">
<div class="tve-logo tvd-left">
<a href="<?php menu_page_url( 'tve_dash_section' ); ?>"
class="tvd-users-dashboard-logo"
title="<?php echo __( 'Thrive Dashboard', 'thrive-dash' ) ?>">
<span class="tvd-logo-container">
<img class="thrive_admin_logo"
src="<?php echo TVE_DASH_URL ?>/css/images/thrive-logo.png"
alt="">
</span>
</a>
</div>
<ul id="tvd-dash-submenu" class="tvd-right">
<li>
<a id="tvd-delete-page-level-scripts" href="javascript:void(0)">
<i class="tvd-icon-trash-o"></i>
<?php echo __( 'Delete All Page-Level Scripts', 'thrive-dash' ) ?></a>
</li>
<li>
<a id="tvd-share-modal" class="tvd-modal-trigger" href="#tvd-modal1"
data-overlay_class="tvd-white-bg" data-opacity=".95">
<span class="tvd-icon-heart"></span>
</a>
</li>
</ul>
</div>
</nav>
</div>
<?php include TVE_DASH_PATH . '/templates/share.phtml'; ?>

View File

@@ -0,0 +1,70 @@
<div class="tvd-modal-content tvd-modal-add-edit-script">
<h4 class="tvd-modal-title"><#= message #></h4>
<a href="javascript:void(0)"
class="tvd-modal-action tvd-modal-close tvd-modal-close-x">
<i class="tvd-icon-close2"></i>
</a>
<form class="">
<div class="tvd-row">
<div class="tvd-sm-form-element clearfix">
<label for="tvd-sm-script-code">
<?php echo __( 'Script', 'thrive-dash' ) ?>
</label>
<textarea id="tvd-sm-script-code"><#= typeof(this.model) !== 'undefined' ? this.model.get('code'):''#></textarea>
</div>
<div id="tvd-sm-code-empty" class="tvd-sm-input-error" hidden>
<?php echo __( 'Required field!', 'thrive-dash' ); ?>
</div>
<div id="tvd-sm-code-invalid" class="tvd-sm-input-error" hidden>
<?php echo __( 'Invalid code!', 'thrive-dash' ); ?>
</div>
<div class="tvd-sm-form-element">
<label class="tvd-sm-script-name" for="tvd-sm-script-name"><?php echo __( 'Script Label', 'thrive-dash' ) ?></label>
<input id="tvd-sm-script-name" type="text" value="<#= typeof(this.model) !== 'undefined' ? this.model.get('label') : '' #>">
</div>
<div id="tvd-sm-label-empty" class="tvd-sm-input-error no-space-top" hidden>
<?php echo __( 'Required field!', 'thrive-dash' ); ?>
</div>
<div class="tvd-sm-form-element">
<label class="tvd-sm-script-placement" for="tvd-sm-script-placement"><?php echo __( 'Placement', 'thrive-dash' ) ?></label>
<select id="tvd-sm-script-placement">
<option value="" disabled selected hidden><?php echo __( 'Choose placement', 'thrive-dash' ) ?></option>
<# _.each(TVD_SM_CONST.script_placement_text, function(value,key){ #>
<option value="<#= key #>"
<#= (typeof(this.model) !== 'undefined') && (key === this.model.get('placement')) ? "selected" : "" #>
>
<#= value #>
</option>
<# }, this); #>
</select>
</div>
<div id="tvd-sm-placement-empty" class="tvd-sm-input-error no-space-top" hidden>
<?php echo __( 'Required field!', 'thrive-dash' ); ?>
</div>
<div class="tvd-sm-form-element tvd-sm-location" style="<#= TVD_SM_CONST.is_ttb_active && TVD_SM_CONST.is_tar_active ? '' : 'display:none' #>">
<label class="tvd-sm-script-location"><?php echo __( 'Inserted in', 'thrive-dash' ) ?></label>
<input id="tvd-sm-script-checkbox-ttb" type="checkbox" <#= typeof(this.model) !== 'undefined' ? (this.model.get('status').ttb ? 'checked' : '') : '' #>>
<label for="tvd-sm-script-checkbox-ttb" class="tvd-sm-checkbox"> <?php echo __( 'Thrive Themes', 'thrive-dash' ); ?> </label>
<input id="tvd-sm-script-checkbox-lp" type="checkbox" <#= typeof(this.model) !== 'undefined' ? (this.model.get('status').lp ? 'checked' : '') : '' #>>
<label for="tvd-sm-script-checkbox-lp" class="tvd-sm-checkbox"> <?php echo __( 'Landing Pages', 'thrive-dash' ); ?> </label>
</div>
<div style="display:none">
<input id="tvd-sm-script-icon" type="text" value="<#= typeof(this.model) !== 'undefined' ? this.model.get('icon') : '' #>">
</div>
</div>
<div class="tvd-row tvd-row_wmb">
<a href="javascript:void(0)" class="tvd-modal-close tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect"><?php echo __( 'BACK', 'thrive-dash' ) ?></a>
<a href="javascript:void(0)" class="tvd-submit tvd-waves-effect tvd-waves-light tvd-btn tvd-right tvd-btn-green"><?php echo __( 'CONTINUE', 'thrive-dash' ) ?></a>
</div>
</form>
</div>

View File

@@ -0,0 +1,18 @@
<div class="tvd-col tvd-s6 tvd-ms6 tvd-m4 tvd-l3">
<div class="tvd-card tvd-small tvd-red tvd-sm-delete-custom">
<div class="tvd-card-content tvd-center-align">
<h4 class="tvd-margin-top">
<?php echo __( 'You are about to delete all the scripts you\'ve inserted on individual pages using the Thrive Architect editor. Do you want to proceed?', 'thrive-dash' ) ?>
</h4>
</div>
<div class="tvd-card-action">
<a class="tvd-modal-close tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-left tvd-waves-effect">
<?php echo __( 'No', 'thrive-dash' ) ?>
</a>
<a class="tvd-submit tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvd-waves-effect">
<?php echo __( 'Yes', 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>
<a href="javascript:void(0)" class="tvd-modal-action tvd-modal-close tvd-modal-close-x tvd-white-text"><i class="tvd-icon-close2"></i></a>

View File

@@ -0,0 +1,18 @@
<div class="tvd-col tvd-s6 tvd-ms6 tvd-m4 tvd-l3">
<div class="tvd-card tvd-small tvd-red">
<div class="tvd-card-content tvd-center-align">
<h4 class="tvd-margin-top">
<?php echo __( 'Are you sure you want to delete this script?', 'thrive-dash' ) ?>
</h4>
</div>
<div class="tvd-card-action">
<a class="tvd-modal-close tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-light tvd-left tvd-waves-effect">
<?php echo __( 'NO, DON\'T DELETE', 'thrive-dash' ) ?>
</a>
<a class="tvd-submit tvd-btn-flat tvd-btn-flat-primary tvd-btn-flat-light tvd-right tvd-waves-effect">
<?php echo __( 'YES, DELETE', 'thrive-dash' ) ?>
</a>
</div>
</div>
</div>
<a href="javascript:void(0)" class="tvd-modal-action tvd-modal-close tvd-modal-close-x tvd-white-text"><i class="tvd-icon-close2"></i></a>

View File

@@ -0,0 +1,26 @@
<span class="tvd-sm-script-elem tvd-sm-script-label">
<i class="tvd-icon-handle"></i>
<span class="<#= this.formIconClass() #>"></span>
<strong><#= this.model.get('label') #></strong>
</span>
<div class="tvd-sm-script-elem-switch tvd-switch" style="<#= !TVD_SM_CONST.is_ttb_active ? 'display:none' : '' #>">
<label>
<input type="checkbox" data-type="checkbox" data-location="ttb"
<#= this.model.get('status').ttb ? "checked" : "" #> >
<span class="tvd-lever"></span>
</label>
</div>
<div class="tvd-sm-script-elem-switch tvd-switch" style="<#= !TVD_SM_CONST.is_tar_active ? 'display:none' : '' #>">
<label>
<input type="checkbox" data-type="checkbox" data-location="lp"
<#= this.model.get('status').lp ? "checked" : "" #> >
<span class="tvd-lever"></span>
</label>
</div>
<span class="tvd-sm-script-elem-operations tvd-right-align">
<i class="tvd-edit-modal tvd-icon-pencil"></i>
<i class="tvd-delete-modal tvd-icon-trash-o"></i>
</span>