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,14 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div>
<button class="click" data-fn="addNewRule">+&nbsp;<?php _e( 'Add more content', 'thrive-dash' ); ?></button>
</div>

View File

@@ -0,0 +1,30 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div>
<h3><?php _e( 'Add new content set', 'thrive-dash' ); ?></h3>
</div>
<div class="tvd-content-set-inner">
<div>
<input class="mb-30" id="tvd-content-set-name" placeholder="<?php echo __( 'Content set name', 'thrive-dash' ) ?>" type="text"
value="<#= model.get('post_title') #>">
</div>
<div>
<h4><?php _e( 'What content should be part of this set?', 'thrive-dash' ); ?></h4>
</div>
<div id="tvd-content-set-rules"></div>
<div id="tvd-content-set-add-rule"></div>
</div>
<div class="tvd-content-set-save-footer">
<button class="click" data-fn="saveContentSet">
<?php echo __( 'Save content set', 'thrive-dash' ); ?>
</button>
</div>

View File

@@ -0,0 +1,20 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-item-delete">
<div>
<?php echo esc_html__( 'Are you sure you want to delete this content set? This cannot be undone.', 'thrive-dash' ); ?>
</div>
<div>
<a href="javascript:void(0);" class="click" data-fn="cancel"><?php echo esc_html__( 'No, cancel', 'thrive-dash' ); ?></a>
<a href="javascript:void(0);" class="click" data-fn="confirm"><?php echo esc_html__( 'Yes, delete', 'thrive-dash' ); ?></a>
</div>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div data-id="<#= model.get('ID') #>">
<#= model.get('post_title') #>
<button class="tvd-content-set-edit click" data-fn="edit"><?php echo dashboard_icon( 'edit' ) ?></button>
<button class="tvd-content-set-delete click" data-fn="delete"><?php echo dashboard_icon( 'delete' ) ?></button>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-content-sets-header">
<h3>
<?php _e( 'Content Sets', 'thrive-dash' ); ?>
<span class="tvd-tooltip-parent">
<?php echo dashboard_icon( 'question-circle-full' ) ?>
<span class="tvd-ss-tooltip">
<?php _e( 'Define content sets that will be used site wide to control what content your customers have access to.', 'thrive-dash' ); ?><br>
<?php echo dashboard_icon( 'question-circle-full' ) ?>
<a href="#" target="_blank">
<?php _e('Show me how Content Sets work', 'thrive-dash') ?>
</a>
</span>
</span>
</h3>
<a href="javascript:void(0)" class="click tvd-tss-add-new-field" data-fn="addSet"><span><?php _e( 'Add Set', 'thrive-dash' ); ?></span></a>
</div>
<input type="text" class="tva-filter-sets input" data-fn="filterSets" placeholder="<?php esc_html_e( 'Filter content sets', 'thrive-dash' ); ?>"/>
<div class="tvd-content-sets-list"></div>
<div class="tvd-content-sets-list-pagination"></div>

View File

@@ -0,0 +1,12 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-content-set-form"></div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-rule-delete">
<div><?php echo esc_html__( 'Are you sure you want to delete this rule? This cannot be undone.', 'thrive-dash' ); ?></div>
<div>
<a href="javascript:void(0);" class="click" data-fn="cancel"><?php echo esc_html__( 'No, cancel', 'thrive-dash' ); ?></a>
<a href="javascript:void(0);" class="click" data-fn="confirm"><?php echo esc_html__( 'Yes, delete', 'thrive-dash' ); ?></a>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div>
<div class="tvd-content-set-rule-wrapper tvd-rule-holder"></div>
<div class="tvd-content-set-delete-rule-wrapper">
<a href="javascript:void(0);" class="click" data-fn="deleteRule"><i class="tvd-icon-close2"></i></a>
</div>
</div>

View File

@@ -0,0 +1,23 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-cs-empty">
<?php echo dashboard_icon( 'content-sets' ) ?>
<p>
<b><?php echo esc_html__( 'No content sets added', 'thrive-dash' ); ?></b>
<br>
<?php
echo sprintf(
esc_html__( "Click %s button to create your first set", 'thrive-dash' ),
'<a href="javascript:void(0);" class="tva-add-button click" data-fn="addSet">+ ' . esc_html__( 'Add Set', 'thrive-dash' ) . '</a>'
); ?>
</p>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-cs-empty">
<?php echo dashboard_icon( 'content-sets' ) ?>
<p>
<b><?php echo esc_html__( 'No content sets found based on your search', 'thrive-dash' ); ?></b>
<br>
</p>
</div>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<# if( prev ) { #>
<a class="tva-prev click" data-fn="previousPage" href="javascript:void(0);"></a>
<# } else { #>
<span class="tva-prev"></span>
<# } #>
&nbsp;&nbsp;<#= currentPage #> <?php echo esc_html__( 'out of', 'thrive-dash' ) ?> <#= totalPages #>&nbsp;&nbsp;
<# if( next ) { #>
<a class="tva-next click" data-fn="nextPage" href="javascript:void(0);"></a>
<# } else { #>
<span class="tva-next"></span>
<# } #>

View File

@@ -0,0 +1,12 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<input placeholder="<?php echo esc_html__( 'Search for a date', 'thrive-dash' ) ?>" class="change tvd-date-picker" data-fn="change" type="text"/>

View File

@@ -0,0 +1,12 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<select class="tvd-browser-default"></select>

View File

@@ -0,0 +1,12 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<select class="change tvd-browser-default" data-fn="change"></select>

View File

@@ -0,0 +1,24 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden!
}
?>
<div class="tvd-content-set-rule-step-widthin-the-last">
<div>
<input type="number" class="change input" data-fn="change" min="0"/>
</div>
<div>
<select class="tvd-browser-default change" data-fn="change">
<option value="days">Days</option>
<option value="weeks">Weeks</option>
<option value="month">Months</option>
<option value="years">Years</option>
</select>
</div>
</div>

View File

@@ -0,0 +1,21 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<ul class="tvd-ss-breadcrumbs">
<# links.each( function( item, index ) { item.has_link = index < links.size() - 1 #>
<li class="tvd-breadcrumb <#= ( item.has_link ? '' : ' tva-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
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<?php include_once TVE_DASH_PATH . '/css/font/dashboard-icons.svg' ?>
<div id="tvd-tss-wrap-all">
<div id="tvd-tss-header"></div>
<div class="tvd-tss-breadcrumbs-wrapper" id="tvd-tss-breadcrumbs-wrapper"></div>
<div id="tvd-tss-wrapper">
<div class="tvd-tss-menu"></div>
<div class="tvd-tss-content"></div>
</div>
</div>

View File

@@ -0,0 +1,64 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-name"><?php echo __( 'Field Name', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-name" autocomplete="address" class="input-change <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>" type="text" value="<#= model.get('name') #>"
data-field="name"
placeholder="<?php echo __( 'Company Address', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-address1"><?php echo __( 'Address line 1', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-address1" autocomplete="address1-input" class="input-change" type="text" value="<#= model.get('data').address1 ? model.get('data').address1 : '' #>" data-field="data_address1" placeholder="e.g. Stevenage Rd">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-address2" id="tvd-tss-not-required"><?php echo __( 'Address line 2', 'thrive-dash' ) ?></label>
<div class="tvd-input-field">
<input id="tvd-tss-field-address2" autocomplete="address2-input" class="input-change" type="text" value="<#= model.get('data').address2 ? model.get('data').address2 : '' #>" data-field="data_address2" placeholder="e.g. Fulham">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-city"><?php echo __( 'City', 'thrive-dash' ) ?></label>
<div class="tvd-input-field">
<input id="tvd-tss-field-city" autocomplete="city-input" class="input-change" type="text" value="<#= model.get('data').city ? model.get('data').city : '' #>" data-field="data_city" placeholder="e.g. London">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-state"><?php echo __( 'County / State', 'thrive-dash' ) ?></label>
<div class="tvd-input-field">
<input id="tvd-tss-field-state" autocomplete="state-input" class="input-change" type="text" value="<#= model.get('data').state ? model.get('data').state : '' #>" data-field="data_state" placeholder="e.g. SW6">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-zip"><?php echo __( 'Zip / Postal Code', 'thrive-dash' ) ?></label>
<div class="tvd-input-field">
<input id="tvd-tss-field-zip" autocomplete="zip-input" class="input-change" type="text" value="<#= model.get('data').zip ? model.get('data').zip : '' #>" data-field="data_zip" placeholder="e.g. 6HH">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-country"><?php echo __( 'Country', 'thrive-dash' ) ?></label>
<div class="tvd-input-field">
<input id="tvd-tss-field-country" autocomplete="country-input" class="input-change" type="text" value="<#= model.get('data').country ? model.get('data').country : '' #>" data-field="data_country" placeholder="e.g. UK">
<label></label>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-name"><?php echo __( 'Field Name', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-name" autocomplete="email" class="input-change <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>" type="text" value="<#= model.get('name') #>"
data-field="name"
placeholder="<?php echo __( 'Email address', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-email"><?php echo __( 'Email Address', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-email" autocomplete="email-input" class="input-change" type="text" value="<#= model.get('data').email ? model.get('data').email : '' #>" data-field="data_email" placeholder="<?php echo __( 'email@someexample.com', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>

View File

@@ -0,0 +1,18 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-list-item <#= model.get( 'just_added' ) ? 'tve-tss-just-added':'' #>">
<i class="tvd-tss-icon"><#= model.get('icon') #></i>
<span class="tvd-tss-label"><#= model.get('name') #></span>
<span class="tvd-tss-value"><#= Object.entries(model.get('formated_data')).length === 0 ? '<span class="unset">Not Set</span>' : model.get('formated_data') #></span>
<a class="tvd-tss-edit-field tvd-tss-icon" href="javascript:void(0)"><?php echo dashboard_icon( 'edit-new' ) ?></a>
<a class="tvd-tss-delete-field tvd-tss-icon <#= model.get('default_field')? 'tvd-disabled':'' #>" href="javascript:void(0)"><?php echo dashboard_icon( 'trash-new' ) ?></a>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-collapsible-header tvd-active">
<span><#= model.get('name') #></span>
<span class="tvd-tss-edit-group tvd-tss-group-action"><?php echo dashboard_icon( 'edit-new' ) ?></span>
<span class="tvd-tss-delete-group tvd-tss-group-action"><?php echo dashboard_icon( 'trash-new' ) ?></span>
<span class="tvd-tss-hl"></span>
<a class="tvd-tss-expand" href="javascript:void(0)"><i class="tvd-icon-expanded"></i></a>
</div>
<div class="tvd-collapsible-body">
<div class="tvd-collapsible-body-content">
<ul class="tvd-tss-fields-wrapper"></ul>
</div>
</div>

View File

@@ -0,0 +1,37 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-name"><?php echo __( 'Field Name', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-name" autocomplete="link" class="input-change <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>" type="text" value="<#= model.get('name') #>"
data-field="name"
placeholder="<?php echo __( 'Company website', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-text"><?php echo __( 'Link Text', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-text" autocomplete="link-input" class="input-change" type="text" value="<#= model.get('data').text ? model.get('data').text : '' #>" data-field="data_text" placeholder="<?php echo __( 'e.g Thrive Themes', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-url"><?php echo __( 'Link URL', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-url" autocomplete="url" class="input-change" type="text" value="<#= model.get('data').url ? model.get('data').url : '' #>" data-field="data_url" placeholder="<?php echo __( 'e.g thrivethemes.com', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>

View File

@@ -0,0 +1,34 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-field-data">
<span><?php echo __( 'Field Name', 'thrive-dash' ) ?></span>
<div class="tvd-input-field">
<input id="tvd-tss-field-name" autocomplete="location" class="input-change <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>" type="text" value="<#= model.get('name') #>"
data-field="name"
placeholder="<?php echo __( 'Company Location', 'thrive-dash' ) ?>">
<label for="tvd-tss-field-name"><?php echo __( 'Field Name', 'thrive-dash' ) ?></label>
</div>
</div>
<div class="tvd-tss-field-data">
<span><?php echo __( 'Field Value', 'thrive-dash' ) ?></span>
<div class="tvd-input-field">
<input id="tvd-tss-field-location" class="input-change" type="text" value="<#= model.get('data').location ? model.get('data').location : '' #>"
data-field="data_location" placeholder="<?php echo __( 'e.g New York', 'thrive-dash' ) ?>">
<label for="tvd-tss-field-text"><?php echo __( 'Location', 'thrive-dash' ) ?></label>
</div>
<div id="tvd-tss-google-map">
</div>
</div>

View File

@@ -0,0 +1,14 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-group-option tvd-pointer" data-id="<#= model.get( 'id' ) #>">
<span><#= model.get( 'name' ) #></span>
</div>

View File

@@ -0,0 +1,15 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-field-type-option tvd-pointer" data-id="<#= model.get( 'key' ) #>" data-name="<#= model.get( 'name' ) #>">
<i><#= model.get( 'icon' ) #></i>
<span><#= model.get( 'name' ) #></span>
</div>

View File

@@ -0,0 +1,33 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-modal-content">
<h3 class="tvd-modal-title"><?php echo __( 'Delete', 'thrive-dash' ) ?> <strong><#= model.get('name') #></strong> - <#= model.get('type') ? 'Field' : 'Group' #></h3>
<# if( model.get('type') ) {#>
<p><?php echo __( 'Are you sure you want to delete this field? This will affect any content on the site that contains this particular field.', 'thrive-dash' ) ?></p>
<# } else {#>
<p><?php echo __( 'Are you sure you want to delete this field group? Any fields that are part of this field group will also be deleted.', 'thrive-dash' ) ?></p>
<# } #>
</div>
<div class="tvd-modal-footer">
<div class="tvd-tss-flex">
<a href="javascript:void(0)"
class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-dash' ) ?>
</a>
<a href="javascript:void(0)"
class="tvd-btn tvd-btn-red tvd-waves-light tvd-right tvd-delete-item">
<?php echo __( 'Yes', 'thrive-dash' ) ?>
</a>
</div>
</div>

View File

@@ -0,0 +1,40 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-modal-header">
<h3 class="tvd-modal-title"><?php echo __( 'Edit Group', 'thrive-dash' ) ?></h3>
</div>
<div class="tvd-modal-content tvd-tss-add">
<div class="tvd-tss-field-data-wrapper">
<div>
<label for="tvd-tss-group-name">
<?php echo __( 'Group name', 'thrive-dash' ) ?> *
</label>
<div class="tvd-input-field">
<input id="tvd-tss-group-name" type="text" value="<#= model.get('name') #>" data-field="name" placeholder="<?php echo __( 'Group name', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
</div>
</div>
<div class="tvd-tss-modal-footer">
<div class="tvd-tss-flex">
<button class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-dash' ) ?>
</button>
<button class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvd-modal-submit">
<?php echo __( 'Save', 'thrive-dash' ) ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,89 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-modal-header">
<h3 class="tvd-modal-title">
<# if( model.get('type') ){ #>
<?php echo __( 'Edit Field', 'thrive-dash' ) ?>
<# } else{ #>
<?php echo __( 'Add Field', 'thrive-dash' ) ?>
<# } #>
</h3>
</div>
<div class="tvd-modal-content tvd-tss-add">
<div class="tvd-tss-group-wrapper">
<p><?php _e( 'Which Group should this Global Field be added to?', 'thrive-dash' ) ?> *</p>
<div class="tvd-input-field">
<div id="tvd-tss-group-name" data-field="group_id" class="tvd-complex-dropdown-trigger <#= Number( model.get( 'is_default' ) ) ? 'tvd-disabled' : '' #>">
<# if( group.get('name') ){ #>
<#= group.get('name') #>
<# } else{ #>
<?php echo __( 'Select the field group', 'thrive-dash' ) ?>
<# } #>
</div>
<label></label>
</div>
<div class="tvd-select-group-dropdown tvd-complex-dropdown-content tvd-hide">
<div class="tvd-global-field-group-list"></div>
<div id="tvd-add-new-group" class="tvd-add-new-group">
<p>
<span><?php dashboard_icon( 'plus-circle-regular' ); ?></span>
<span><?php echo __( 'Add New Group', 'thrive-dash' ) ?></span>
</p>
</div>
<div id="tvd-input-new-group" class="tvd-save-new-group tvd-hide">
<div class="tvd-input-field">
<input id="tvd-add-group" data-field="name" type="text" value="" placeholder="Complete the group name">
<label></label>
</div>
<div class="tvd-add-new-group" id="tvd-save-new-group">
<p>
<span><?php dashboard_icon( 'check-light' ); ?></span>
<span><?php echo __( 'Save Group', 'thrive-dash' ) ?></span>
</p>
</div>
</div>
</div>
</div>
<div class="tvd-tss-field-wrapper">
<p><?php _e( 'What type of field is this?', 'thrive-dash' ) ?> *</p>
<div class="tvd-input-field">
<div id="tvd-tss-field-type" data-field="type"
class=" tvd-complex-dropdown-trigger <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>">
<# if( model.get('type') ){ #>
<i><#= SmartSite.data.fieldTypes[model.get('type')].icon #></i>
<span><#= SmartSite.utils.get_field_type_name( parseInt( model.get('type') ) ) #></span>
<# } else{ #>
<?php echo __( 'Select the field type', 'thrive-dash' ) ?>
<# } #>
</div>
</div>
<div class="tvd-select-type-dropdown tvd-complex-dropdown-content tvd-hide">
<div class="tvd-global-field-type-list"></div>
</div>
</div>
<div class="tvd-tss-field-data-wrapper"></div>
</div>
<div class="tvd-tss-modal-footer">
<div class="tvd-tss-flex">
<button class="tvd-btn-flat tvd-btn-flat-secondary tvd-btn-flat-dark tvd-waves-effect tvd-modal-close">
<?php echo __( 'Cancel', 'thrive-dash' ) ?>
</button>
<button class="tvd-btn tvd-btn-green tvd-waves-light tvd-right tvd-modal-submit tvd-tss-save-field" id="tvd-tss-save-field">
<?php echo __( 'Save', 'thrive-dash' ) ?>
</button>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-name"><?php echo __( 'Field Name', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-name" autocomplete="phone" class="input-change <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>" type="text" value="<#= model.get('name') #>"
data-field="name"
placeholder="<?php echo __( 'Company Phone', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-phone"><?php echo __( 'Phone Number', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-phone" autocomplete="phone-input" class="input-change" type="text" value="<#= model.get('data').phone ? model.get('data').phone : '' #>" data-field="data_phone" placeholder="<?php echo __( '555-555-555', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-name" ><?php echo __( 'Field Name', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-name" autocomplete="text" class="input-change <#= model.get( 'default_field' )? 'tvd-disabled tvd-no-focus' : '' #>" type="text" value="<#= model.get('name') #>"
data-field="name"
placeholder="<?php echo __( 'Company name', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>
<div class="tvd-tss-field-data">
<label for="tvd-tss-field-text"><?php echo __( 'Text', 'thrive-dash' ) ?> *</label>
<div class="tvd-input-field">
<input id="tvd-tss-field-text" autocomplete="text-input" class="input-change" type="text" value="<#= model.get('data').text ? model.get('data').text : '' #>" data-field="data_text" placeholder="<?php echo __( 'e.g WidgetCorp', 'thrive-dash' ) ?>">
<label></label>
</div>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<div class="tvd-tss-fields-content">
<div class="tvd-tss-fixed-top">
<h3><?php _e('Global Fields', 'thrive-dash') ?></h3>
<a href="javascript:void(0)" class="tvd-tss-add-new-field"><span><?php _e('Add Field', 'thrive-dash') ?></span></a>
</div>
<div>
<p>
<?php _e('Add global information that can be used in many places on your site. Your company address, for example', 'thrive-dash') ?>
</p>
<a href="https://thrivethemes.com/tkb_item/how-to-use-the-global-fields-feature/" target="_blank" class="tvd-tss-wizard-button">
<?php echo dashboard_icon( 'question-circle' ) ?>
<span>
<?php _e('Show me how Global Fields Work', 'thrive-dash') ?>
</span>
</a>
</div>
<ul class="tvd-tss-groups-wrapper tvd-collapsible tvd-expandable" data-collapsible="" data-easing="easeInOutQuart" data-duration="500"></ul>
</div>

View File

@@ -0,0 +1,16 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<h1 id="tvd-tss-title">
<?php echo dashboard_icon( 'ss-logo' ) ?>
<?php _e( 'Smart Site', 'thrive-dash' ); ?>
</h1>

View File

@@ -0,0 +1,34 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<ul>
<li class="<#= page === 'global-fields' ? 'active' : '' #>">
<a href="#global-fields">
<?php echo dashboard_icon( 'global-fields' ) ?>
<span>
<?php _e( 'Global Fields', 'thrive-dash' ); ?>
</span>
</a>
</li>
<?php if ( tvd_content_sets()->show_ui() ) : ?>
<li class="<#= page === 'content-sets' ? 'active' : '' #>">
<a href="#content-sets">
<?php echo dashboard_icon( 'content-sets' ) ?>
<span>
<?php _e( 'Content Sets', 'thrive-dash' ); ?>
</span>
</a>
</li>
<?php endif; ?>
</ul>
<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 tvd-tss-back">
<?php echo __( "Back To Dashboard", 'thrive-dash' ); ?>
</a>

View File

@@ -0,0 +1,29 @@
<?php
/**
* Thrive Themes - https://thrivethemes.com
*
* @package thrive-dashboard
*/
if ( ! defined( 'ABSPATH' ) ) {
exit; // Silence is golden
}
?>
<ul>
<li class="<#= page == 'global_fields' ? 'tvd-selected' : '' #>">
<a href="#global_fields">
<i><?php echo dashboard_icon( 'format-align-justify' ) ?></i><?php _e( 'Global Fields', 'thrive-dash' ); ?>
</a>
</li>
<!-- <li class="<#= page == 'dynamic_fields' ? 'tvd-selected' : '' #>">-->
<!-- <a href="#dynamic_fields">-->
<!-- <i>--><?php //echo dashboard_icon( 'dynamic-list' ) ?><!--</i> --><?php //_e( 'Dynamic Fields', 'thrive-dash' ); ?>
<!-- </a>-->
<!-- </li>-->
<!-- <li class="<#= page == 'visitor_targeting' ? 'tvd-selected' : '' #>">-->
<!-- <a href="#visitor_targeting">-->
<!-- <i>--><?php //echo dashboard_icon( 'crosshairs-regular' ) ?><!--</i> --><?php //_e( 'Visitor Targeting', 'thrive-dash' ); ?>
<!-- </a>-->
<!-- </li>-->
</ul>