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,42 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for the keyword suggestions
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/no-results.php
*
* The keyword should must always hold the 'asp_keyword' class and only
* contain the keyword text as the content.
*
* You can use any WordPress function here.
* Variables to mention:
* Array[] $s_keywords - array of the keywords
* Array[] $s_options - holding the search options
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.18
*/
?>
<div class="elementor-posts-nothing-found asp_elementor_nores">
<?php
echo wp_kses_post(
stripslashes(
\WPDRMS\ASP\Utils\Str::resolveBracketSyntax(
asp_icl_t(
'No results text' . " ($id)",
$s_options['noresultstext']
),
array( 'phrase' => $phrase )
)
)
);
?>
</div>

View File

@@ -0,0 +1,25 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is printed as the group footer - only works with vertical results
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/group-footer.php
*
* You can use any WordPress function here.
* Variables to mention:
* String $group_name - the group name (including post count)
* Array[] $s_options - holding the search options
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
</div>

View File

@@ -0,0 +1,32 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is printed as the group header - only works with vertical results
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/group-header.php
*
* You can use any WordPress function here.
* Variables to mention:
* String $group_name - the group name (including post count)
* Array[] $s_options - holding the search options
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<div class="asp_results_group <?php echo esc_attr($group_class); ?>">
<?php if ($group_url): ?>
<div class="asp_group_header">
<a href="<?php echo $group_url;?>"><?php echo wp_kses_post($group_name); ?></a>
</div>
<?php else: ?>
<div class="asp_group_header"><?php echo wp_kses_post($group_name); ?></div>
<?php endif; ?>

View File

@@ -0,0 +1,81 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for one horizontal result
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/horizontal.php
*
* It's also a good idea to use the actions to insert content instead of modifications.
*
* You can use any WordPress function here.
* Variables to mention:
* Object() $r - holding the result details
* Array[] $s_options - holding the search options
*
* DO NOT OUTPUT ANYTHING BEFORE OR AFTER THE <div class='item'>..</div> element
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<div id="asp-res-<?php echo esc_attr($r->id); ?>"
class='item<?php echo esc_attr(apply_filters('asp_result_css_class', $asp_res_css_class, $r->id, $r)); ?>'>
<?php do_action('asp_res_horizontal_begin_item'); ?>
<?php if (!empty($r->image)): ?>
<a class='asp_res_image_url' href='<?php echo esc_attr($r->link); ?>'<?php echo ($s_options['results_click_blank'])?" target='_blank'":""; ?>>
<div class='asp_image<?php echo $s_options['image_display_mode'] == "contain" ? " asp_image_auto" : ""; ?>'>
<img loading="lazy" alt="<?php echo esc_attr($r->title); ?>" src="<?php echo esc_attr($r->image); ?>" />
<div class="void"></div>
</div>
</a>
<?php endif; ?>
<?php do_action('asp_res_horizontal_after_image'); ?>
<div class='asp_content'>
<h3><a class="asp_res_url" href='<?php echo esc_attr($r->link); ?>'<?php echo ($s_options['results_click_blank'])?" target='_blank'":""; ?>><?php echo wp_kses_post($r->title); ?>
<?php if ($s_options['resultareaclickable'] == 1): ?>
<span class='overlap'></span>
<?php endif; ?>
</a></h3>
<div class='etc'>
<?php if ($s_options['showauthor'] == 1): ?>
<span class='asp_author'><?php echo esc_html($r->author); ?></span>
<?php endif; ?>
<?php if ($s_options['showdate'] == 1): ?>
<span class='asp_date'><?php echo esc_html($r->date); ?></span>
<?php endif; ?>
</div>
<?php if ($show_description == 1): ?>
<?php if ( empty($r->image) || $s_options['hhidedesc'] == 0 ): ?>
<div class="asp_res_text">
<?php echo asp_kses_content($r->content); ?>
</div>
<?php endif; ?>
<?php endif; ?>
</div>
<?php do_action('asp_res_horizontal_after_content'); ?>
<div class='clear'></div>
<?php do_action('asp_res_horizontal_end_item'); ?>
</div>

View File

@@ -0,0 +1,80 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for one isotopic result
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/isotopic.php
*
* It's also a good idea to use the actions to insert content instead of modifications.
*
* You can use any WordPress function here.
* Variables to mention:
* Object() $r - holding the result details
* Array[] $s_options - holding the search options
*
* DO NOT OUTPUT ANYTHING BEFORE OR AFTER THE <div class='item'>..</div> element
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<div id="asp-res-<?php echo esc_attr($r->id); ?>"
class='item asp_isotopic_item<?php echo esc_attr(apply_filters('asp_result_css_class', $asp_res_css_class, $r->id, $r)); ?>'>
<?php do_action('asp_res_isotopic_begin_item'); ?>
<?php if ( !empty($r->image) ) : ?>
<div class='asp_image' data-src="<?php echo esc_attr($r->image); ?>">
<img loading="lazy" alt="<?php echo esc_attr($r->title); ?>" src="<?php echo esc_attr($r->image); ?>" />
</div>
<?php endif; ?>
<?php do_action('asp_res_isotopic_after_image'); ?>
<div class='asp_content<?php echo $s_options['i_hide_content'] ? ' asp_content_hide_on_overlay' : ''; ?>'>
<h3><a class="asp_res_url" href='<?php echo esc_attr($r->link); ?>'<?php echo ( $s_options['results_click_blank'] ) ?" target='_blank'" :''; ?>>
<?php echo wp_kses_post($r->title); ?>
<?php if ( $s_options['resultareaclickable'] == 1 ) : ?>
<span class='overlap'></span>
<?php endif; ?>
</a></h3>
<div class='etc'>
<?php if ( $s_options['showauthor'] == 1 ) : ?>
<span class='asp_author'><?php echo esc_html($r->author); ?></span>
<?php endif; ?>
<?php if ( $s_options['showdate'] == 1 ) : ?>
<span class='asp_date'><?php echo esc_html($r->date); ?></span>
<?php endif; ?>
</div>
<?php
if (
$show_description == 1 ||
( empty($r->image) && $s_options['i_ifnoimage'] == 'description' )
) :
?>
<p class='asp_res_text'><?php echo asp_kses_content($r->content); ?></p>
<?php endif; ?>
</div>
<?php do_action('asp_res_isotopic_after_content'); ?>
<div class='clear'></div>
<?php do_action('asp_res_isotopic_end_item'); ?>
</div>

View File

@@ -0,0 +1,57 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for the keyword suggestions
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/keyword-suggestions.php
*
* The keyword must always hold the 'asp_keyword' class and only
* contain the keyword text as the content.
*
* You can use any WordPress function here.
* Variables to mention:
* String $phrase - the search phrase
* Array[] $s_keywords - array of the keywords
* Array[] $s_options - holding the search options
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<div class="asp_nores">
<div class="asp_nores_header">
<?php
echo wp_kses_post(
stripslashes(
\WPDRMS\ASP\Utils\Str::resolveBracketSyntax(
asp_icl_t(
'No results text' . " ($id)",
$s_options['noresultstext']
),
array( 'phrase' => $phrase )
)
)
);
?>
</div>
<div class="asp_nores_kw_suggestions">
<?php
echo wp_kses_post(
stripslashes(
asp_icl_t('Did you mean? text' . " ($id)", $s_options['didyoumeantext'])
)
);
?>
<?php foreach ( $s_keywords as $keyword ) : ?>
<span class='asp_keyword'><?php echo wp_kses_post($keyword); ?></span>
<?php endforeach; ?>
</div>
</div>

View File

@@ -0,0 +1,44 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for the keyword suggestions
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/no-results.php
*
* The keyword should must always hold the 'asp_keyword' class and only
* contain the keyword text as the content.
*
* You can use any WordPress function here.
* Variables to mention:
* Array[] $s_keywords - array of the keywords
* Array[] $s_options - holding the search options
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<div class="asp_nores">
<span class="asp_nores_header">
<?php
echo wp_kses_post(
stripslashes(
\WPDRMS\ASP\Utils\Str::resolveBracketSyntax(
asp_icl_t(
'No results text' . " ($id)",
$s_options['noresultstext']
),
array( 'phrase' => $phrase )
)
)
);
?>
</span>
</div>

View File

@@ -0,0 +1,67 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for one polaroid result
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/polaroid.php
*
* It's also a good idea to use the actions to insert content instead of modifications.
*
* You can use any WordPress function here.
* Variables to mention:
* Object() $r - holding the result details
* Array[] $s_options - holding the search options
*
* DO NOT OUTPUT ANYTHING BEFORE OR AFTER THE <figure> element!!
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<figure id="asp-res-<?php echo esc_attr($r->id); ?>"
class='photostack-flip photostack-current<?php echo esc_attr(apply_filters('asp_result_css_class', $asp_res_css_class, $r->id, $r)); ?>'>
<?php if ( isset($r->image) ): ?>
<a class="asp_res_url" href='<?php echo $r->link; ?>'<?php echo ($s_options['results_click_blank'])?" target='_blank'":""; ?>>
<div class='asp_image' style='background-image: url("<?php echo $r->image; ?>");' data-src="<?php echo esc_attr($r->image); ?>"></div>
</a>
<?php elseif ($s_options['pifnoimage'] == 'descinstead'): ?>
<a class="asp_res_url" href='<?php echo esc_attr($r->link); ?>'<?php echo ($s_options['results_click_blank'])?" target='_blank'":""; ?>><?php echo asp_kses_content($r->content); ?></a>
<?php endif; ?>
<figcaption>
<h2 class='photostack-title'><a href='<?php echo esc_attr($r->link); ?>'<?php echo ($s_options['results_click_blank'])?" target='_blank'":""; ?>>
<?php echo wp_kses_post($r->title); ?>
<?php if ($s_options['resultareaclickable'] == 1): ?>
<span class='overlap'></span>
<?php endif; ?>
</a></h2>
<div class='etc'>
<?php if ($s_options['pshowsubtitle']): ?>
<?php if ($s_options['showauthor'] == 1): ?>
<span class='asp_author'><?php echo esc_html($r->author); ?></span>
<?php endif; ?>
<?php if ($s_options['showdate'] == 1): ?>
<span class='asp_date'><?php echo esc_html($r->date); ?></span>
<?php endif; ?>
<?php endif; ?>
</div>
<?php if ($s_options['pshowdesc'] && !empty($r->content)): ?>
<div class='photostack-back'><?php echo asp_kses_content($r->content); ?></div>
<?php endif; ?>
</figcaption>
</figure>

View File

@@ -0,0 +1,90 @@
<?php
/* Prevent direct access */
defined('ABSPATH') or die("You can't access this file directly.");
/**
* This is the default template for one vertical result
*
* !!!IMPORTANT!!!
* Do not make changes directly to this file! To have permanent changes copy this
* file to your theme directory under the "asp" folder like so:
* wp-content/themes/your-theme-name/asp/vertical.php
*
* It's also a good idea to use the actions to insert content instead of modifications.
*
* WARNING: Modifying anything in this file might result in search malfunctioning,
* so be careful and use your test environment.
*
* You can use any WordPress function here.
* Variables to mention:
* Object() $r - holding the result details
* Array[] $s_options - holding the search options
*
* I DO NOT RECOMMEND PUTTING ANYTHING BEFORE OR AFTER THE
* <div class='item'>..</div><div class="asp_spacer"></div> structure
*
* You can leave empty lines for better visibility, they are cleared before output.
*
* MORE INFO: https://knowledgebase.ajaxsearchpro.com/hooks/templating/result-templating
*
* @since: 4.0
*/
?>
<div id="asp-res-<?php echo esc_attr($r->id); ?>"
class='item<?php echo esc_attr(apply_filters('asp_result_css_class', $asp_res_css_class, $r->id, $r)); ?>'>
<?php do_action('asp_res_vertical_begin_item'); ?>
<div class='asp_content'>
<?php if ( !empty($r->image) ) : ?>
<?php do_action('asp_res_vertical_before_image'); ?>
<a class='asp_res_image_url' href='<?php echo esc_attr($r->link); ?>'<?php echo ( $s_options['results_click_blank'] ) ?" target='_blank'" :''; ?>>
<div class='asp_image' data-src="<?php echo esc_attr($r->image); ?>">
<img loading="lazy" alt="<?php echo esc_attr($r->title); ?>" src="<?php echo esc_attr($r->image); ?>" />
<div class="void"></div>
</div>
</a>
<?php do_action('asp_res_vertical_after_image'); ?>
<?php endif; ?>
<h3><a class="asp_res_url" href='<?php echo esc_attr($r->link); ?>'<?php echo ( $s_options['results_click_blank'] ) ?" target='_blank'" :''; ?>>
<?php echo wp_kses_post($r->title); ?>
<?php if ( $s_options['resultareaclickable'] == 1 ) : ?>
<span class='overlap'></span>
<?php endif; ?>
</a></h3>
<div class='etc'>
<?php if ( $s_options['showauthor'] == 1 && !empty($r->author) ) : ?>
<span class='asp_author'><?php echo esc_html($r->author); ?></span>
<?php endif; ?>
<?php if ( $s_options['showdate'] == 1 && !empty($r->date) ) : ?>
<span class='asp_date'><?php echo esc_html($r->date); ?></span>
<?php endif; ?>
</div>
<?php if ( $show_description == 1 ) : ?>
<div class="asp_res_text">
<?php echo asp_kses_content($r->content); ?>
</div>
<?php endif; ?>
</div>
<?php do_action('asp_res_vertical_after_content'); ?>
<div class='clear'></div>
<?php do_action('asp_res_vertical_end_item'); ?>
</div>