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,113 @@
<fieldset>
<legend><?php _e('Global loading options', 'ajax-search-pro'); ?></legend>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("js_source", __('Javascript source', 'ajax-search-pro'), array(
'selects' => wd_asp()->o['asp_compatibility_def']['js_source_def'],
'value' => $com_options['js_source']
)
);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php _e('<strong>Legacy</strong> scripts use <strong>jQuery</strong> and will be removed on the first 2022 release.', 'ajax-search-pro'); ?>
<?php echo sprintf( __('<a target="_blank" href="%s">Read More</a>'),
'https://documentation.ajaxsearchpro.com/compatibility-settings/javascript-compatibility' ); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("script_loading_method", __('Script loading method', 'ajax-search-pro'), array(
'selects'=>array(
array('option'=>__('Classic', 'ajax-search-pro'), 'value'=>'classic'),
array('option'=>__('Optimized (recommended)', 'ajax-search-pro'), 'value'=>'optimized'),
array('option'=>__('Optimized asynchronous', 'ajax-search-pro'), 'value'=>'optimized_async')
),
'value'=>$com_options['script_loading_method']
)
);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<ul style="float:right;text-align:left;width:70%;">
<li><?php echo __('<b>Classic</b> - All scripts are loaded as blocking at the same time', 'ajax-search-pro'); ?></li>
<li><?php echo __('<b>Optimized</b> - Scripts are loaded separately, but only the required ones', 'ajax-search-pro'); ?></li>
<li><?php echo __('<b>Optimized asnynchronous</b> - Same as the Optimized, but the scripts load in the background', 'ajax-search-pro'); ?></li>
</ul>
<div class="clear"></div>
</p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("init_instances_inviewport_only", __('Initialize search instances only when they get visible on the viewport?', 'ajax-search-pro'),
$com_options['init_instances_inviewport_only']
); ?>
<p class='descMsg'>
<?php echo __('Lazy loader for the search initializer script. It can reduce the initial javascript thread work and increase the google lighthouse score.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("css_loading_method", __('Style (CSS) loading method', 'ajax-search-pro'), array(
'selects'=>array(
array('option'=>__('Optimized (recommended)', 'ajax-search-pro'), 'value'=>'optimized'),
array('option'=>__('Inline', 'ajax-search-pro'), 'value'=>'inline'),
array('option'=>__('File', 'ajax-search-pro'), 'value'=>'file')
),
'value'=>$com_options['css_loading_method']
)
);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<ul style="float:right;text-align:left;width:70%;">
<li><?php echo __('<b>Optimized</b> - The basic CSS file is enqueued on-demand, then the customized styles are printed inline on-demand', 'ajax-search-pro'); ?></li>
<li><?php echo __('<b>Inline</b> - Everything is printed inline on-demand', 'ajax-search-pro'); ?></li>
<li><?php echo __('<b>File (classic)</b> - Everything is enqueued as a single CSS file', 'ajax-search-pro'); ?></li>
</ul>
<div class="clear"></div>
</p>
</div>
</fieldset>
<fieldset>
<legend><?php _e('Selective loading options', 'ajax-search-pro'); ?></legend>
<div class="errorMsg">
<p><strong><?php echo __('THESE OPTIONS ARE NOT RECOMMENDED - use it only if you know what you are doing!', 'ajax-search-pro'); ?></strong></p>
<p><?php echo __('The plugin <strong>automatically detects</strong> which pages have the search shortcodes, and loads the assets only on those pages.', 'ajax-search-pro'); ?></p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("selective_enabled", __('Enable selective script & style loading?', 'ajax-search-pro'),
$com_options['selective_enabled']
); ?>
<p class='descMsg'><?php echo __('It enables the rules below, so the scritps and styles can be excluded from specific parts of your website.', 'ajax-search-pro'); ?></p>
</div>
<div class="item item_selective_load">
<?php $o = new wpdreamsYesNo("selective_front", __('Load scripts & styles on the front page?', 'ajax-search-pro'),
$com_options['selective_front']
); ?>
</div>
<div class="item item_selective_load">
<?php $o = new wpdreamsYesNo("selective_archive", __('Load scripts & styles on archive pages?', 'ajax-search-pro'),
$com_options['selective_front']
); ?>
</div>
<div class="item item_selective_load item-flex-nogrow item-flex-wrap">
<div style="margin: 0;">
<?php
$o = new wpdreamsCustomSelect("selective_exin_logic", "",
array(
'selects' => array(
array('option' => __('Exclude on pages', 'ajax-search-pro'), 'value' => 'exclude'),
array('option' => __('Include on pages', 'ajax-search-pro'), 'value' => 'include')
),
'value' => $com_options['selective_exin_logic']
));
?>
</div>
<?php
$o = new wd_TextareaExpandable("selective_exin", " ids ", $com_options['selective_exin']);
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('Comma separated list of Post/Page/CPT IDs.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>

View File

@@ -0,0 +1,62 @@
<div class="item">
<?php $o = new wpdreamsYesNo("js_prevent_body_scroll", __('Try preventing body touch scroll on mobile devices, when using the vertical results layout?', 'ajax-search-pro'),
$com_options['js_prevent_body_scroll']
); ?>
<p class='descMsg'>
<?php echo __('When reaching the top or bottom of the results list via touch devices, the scrolling is automatically propagated to the parent element. This function will try to prevent that.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("detect_ajax", __('Try to re-initialize if the page was loaded via ajax?', 'ajax-search-pro'),
$com_options['detect_ajax']
); ?>
<p class='descMsg'>
<?php echo __('Will try to re-initialize the plugin in case an AJAX page loader is used, like Polylang language switcher etc..', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("css_compatibility_level", __('CSS compatibility level', 'ajax-search-pro'), array(
'selects'=>array(
array('option'=>'Optimal (recommended)', 'value'=>'low'),
array('option'=>'Medium', 'value'=>'medium'),
array('option'=>'Maximum', 'value'=>'maximum')
),
'value'=>$com_options['css_compatibility_level']
)
);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<ul style="float:right;text-align:left;width:50%;">
<li><?php echo __('<b>Optimal</b> - Good compabibility, smallest size', 'ajax-search-pro'); ?></li>
<li><?php echo __('<b>Medium</b> - Better compatibility, bigger size', 'ajax-search-pro'); ?></li>
<li><?php echo __('<b>Maximum</b> - High compatibility, very big size', 'ajax-search-pro'); ?></li>
</ul>
<div class="clear"></div>
</p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("css_minify", __('Minify the generated CSS?', 'ajax-search-pro'),
$com_options['css_minify']
); ?>
<p class='descMsg'>
<?php echo __('When enabled, the generated stylesheet files will be minified before saving. Can save ~10% CSS file size.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("load_google_fonts", __('Load the <strong>google fonts</strong> used in the search options?', 'ajax-search-pro'),
$com_options['load_google_fonts']
); ?>
<p class='descMsg'>
<?php echo __('When <strong>turned off</strong>, the google fonts <strong>will not be loaded</strong> via this plugin at all.<br>Useful if you already have them loaded, to avoid mutliple loading times.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<p class='infoMsg'>
<?php echo __('This might speed up the search, but also can cause incompatibility issues with other plugins.', 'ajax-search-pro'); ?>
</p>
<?php $o = new wpdreamsYesNo("usecustomajaxhandler", __('Use the custom ajax handler?', 'ajax-search-pro'),
$com_options['usecustomajaxhandler']
); ?>
</div>

View File

@@ -0,0 +1,20 @@
<div class="item">
<?php $o = new wpdreamsYesNo("rest_api_enabled", __('Enable the REST API?', 'ajax-search-pro'),
$com_options['rest_api_enabled']
); ?>
<p class='descMsg'>
<?php echo sprintf( __('You can download the <a target="_blank" href="%s">OpenAPI Swagger file here</a>.'),
ASP_URL . 'swagger.yaml' ); ?>
<?php echo sprintf( __('Check the <a target="_blank" href="%s">REST API</a> section of the knowledge base for more info.'),
'https://knowledgebase.ajaxsearchpro.com/other/rest-api' ); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomPostTypesAll("meta_box_post_types", __('Display the Ajax Search Pro Meta Boxes on these post types', 'ajax-search-pro'),
$com_options['meta_box_post_types']);
?>
<p class='descMsg'>
<?php echo __('Displays the Negative keywords & Additional keywords Meta Boxes and the Classic Editor buttons on the selected post types only.'); ?>
</p>
</div>

View File

@@ -0,0 +1,51 @@
<div class="item">
<?php $o = new wpdreamsYesNo("query_soft_check",
__('Do a soft-check only on search override, when trying to check if the current query is the search?', 'ajax-search-pro'),
$com_options['query_soft_check']
); ?>
<p class='descMsg'>
<?php echo __('Use this option, when the search override does not work on the search results page.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("use_acf_getfield",
__('<strong>Advanced Custom Fields</strong>: use the ACF get_field() function to get the metadata?', 'ajax-search-pro'),
$com_options['use_acf_getfield']
); ?>
<p class='descMsg'>
<?php echo __('Will use the get_field() Advanced Custom Fields function instead of the core get_post_meta()', 'ajax-search-pro'); ?>
</p>
</div>
<p class='infoMsg'>
<?php echo __('If you are experiencing issues with accent(diacritic) or case sensitiveness, you can force the search to try these tweaks.', 'ajax-search-pro'); ?><br>
<?php echo __('<i>The search works according to your database collation settings</i>, so please be aware that <b>this is not an effective way</b> of fixing database collation issues.', 'ajax-search-pro'); ?><br>
<?php echo sprintf( __('If you have case/diacritic issues then please read the <a href="%s" target="_blank">MySql manual on collations</a> or consult a <b>database expert</b> - those issues should be treated on database level!', 'ajax-search-pro'),
'http://dev.mysql.com/doc/refman/5.0/en/charset-syntax.html'
); ?>
</p>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("db_force_case", __('Force case', 'ajax-search-pro'), array(
'selects' => wd_asp()->o['asp_compatibility_def']['db_force_case_selects'],
'value' => $com_options['db_force_case']
)
);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("db_force_unicode", __('Force unicode search', 'ajax-search-pro'),
$com_options['db_force_unicode']
); ?>
<p class='descMsg'>
<?php echo __('Will try to force unicode character conversion on the search phrase.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php $o = new wpdreamsYesNo("db_force_utf8_like", __('Force utf8 on LIKE operations', 'ajax-search-pro'),
$com_options['db_force_utf8_like']
); ?>
<p class='descMsg'>
<?php echo __('Will try to force utf8 conversion on all LIKE operations in the WHERE and HAVING clauses.', 'ajax-search-pro'); ?>
</p>
</div>