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,43 @@
<fieldset>
<legend><?php echo __('Aria Labels', 'ajax-search-pro'); ?></legend>
<div class="item">
<?php
$o = new wpdreamsText("aria_search_form_label",
__('Search form aria-label', 'ajax-search-pro'),
$sd['aria_search_form_label']
);
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("aria_settings_form_label",
__('Search Settings form aria-label', 'ajax-search-pro'),
$sd['aria_settings_form_label']
);
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("aria_search_input_label",
__('Search input aria-label', 'ajax-search-pro'),
$sd['aria_search_input_label']
);
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("aria_search_autocomplete_label",
__('Search autocomplete input aria-label', 'ajax-search-pro'),
$sd['aria_search_autocomplete_label']
);
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("aria_magnifier_label",
__('Search magnifier button aria-label', 'ajax-search-pro'),
$sd['aria_magnifier_label']
);
?>
</div>
</fieldset>

View File

@@ -0,0 +1,130 @@
<fieldset>
<legend><?php echo __('Advanced Visual Options', 'ajax-search-pro'); ?></legend>
<div class="item">
<?php
$o = new wpdreamsYesNo("visual_detect_visbility", __('Hide the search box if it gets invisible?', 'ajax-search-pro'), $sd['visual_detect_visbility']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('In case the search is placed into an interactive element, which hides on certain events, enable this option.
The plugin will try to detect it\'s visibility, and hide the settings and the results container if needed.', 'ajax-search-pro'); ?>
</p>
</div>
</fieldset>
<fieldset>
<legend><?php echo __('Other options', 'ajax-search-pro'); ?></legend>
<div class="item">
<?php
$o = new wpdreamsText("jquery_select2_nores", __('\'No matches\' text for searchable select and multiselect filters', 'ajax-search-pro'), $sd['jquery_select2_nores']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __("When using the 'searchable select' and 'searchable multiselect' fields in category, taxonomy, tag or custom field filters - this text is used
when no results match the searched value.", 'ajax-search-pro'); ?>
</p>
</div>
</fieldset>
<fieldset>
<legend><?php echo __('Desktop browsers', 'ajax-search-pro'); ?></legend>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("sett_box_animation", __('Settings drop-down box animation', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => 'None', 'value' => 'none'),
array('option' => 'Fade', 'value' => 'fade'),
array('option' => 'Fade and Drop', 'value' => 'fadedrop')
),
'value'=>$sd['sett_box_animation']) );
$params[$o->getName()] = $o->getData();
?>
<?php
$o = new wpdreamsTextSmall("sett_box_animation_duration", __('.. animation duration (ms)', 'ajax-search-pro'),
$sd['sett_box_animation_duration']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('The animation of the appearing settings box when clicking on the settings icon.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("res_box_animation", __('Results container box animation', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => 'None', 'value' => 'none'),
array('option' => 'Fade', 'value' => 'fade'),
array('option' => 'Fade and Drop', 'value' => 'fadedrop')
),
'value'=>$sd['res_box_animation']) );
$params[$o->getName()] = $o->getData();
?>
<?php
$o = new wpdreamsTextSmall("res_box_animation_duration", __('.. animation duration (ms)', 'ajax-search-pro'),
$sd['res_box_animation_duration']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('The animation of the appearing results box when finishing the search.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item">
<?php
$o = new wpdreamsAnimations("res_items_animation", __('Result items animation', 'ajax-search-pro'), $sd['res_items_animation']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg">
<?php echo __('The animation of each result when the results box is opening.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>
<fieldset>
<legend><?php echo __('Mobile browsers', 'ajax-search-pro'); ?></legend>
<div class="item item-flex-nogrow item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("sett_box_animation_m", __('Settings drop-down box animation', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => 'None', 'value' => 'none'),
array('option' => 'Fade', 'value' => 'fade'),
array('option' => 'Fade and Drop', 'value' => 'fadedrop')
),
'value'=>$sd['sett_box_animation_m']) );
$params[$o->getName()] = $o->getData();
?>
<?php
$o = new wpdreamsTextSmall("sett_box_animation_duration_m", __('.. animation duration (ms)', 'ajax-search-pro'),
$sd['sett_box_animation_duration_m']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('The animation of the appearing settings box when clicking on the settings icon.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item item-flex-nogrow item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("res_box_animation_m", __('Results container box animation', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => 'None', 'value' => 'none'),
array('option' => 'Fade', 'value' => 'fade'),
array('option' => 'Fade and Drop', 'value' => 'fadedrop')
),
'value'=>$sd['res_box_animation_m']) );
$params[$o->getName()] = $o->getData();
?>
<?php
$o = new wpdreamsTextSmall("res_box_animation_duration_m", __('.. animation duration (ms)', 'ajax-search-pro'),
$sd['res_box_animation_duration_m']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('The animation of the appearing results box when finishing the search.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item">
<?php
$o = new wpdreamsAnimations("res_items_animation_m", __('Result items animation', 'ajax-search-pro'), $sd['res_items_animation_m']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg">
<?php echo __('The animation of each result when the results box is opening.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>

View File

@@ -0,0 +1,264 @@
<style>
.asp-adv-fields .wd_textarea_expandable {
min-width: 85%;
max-height: 480px !important;
}
</style>
<fieldset>
<legend><?php echo __('Content & Language', 'ajax-search-pro'); ?></legend>
<div class="item<?php echo class_exists('SitePress') ? "" : " hiddend"; ?>">
<?php
$o = new wpdreamsYesNo("wpml_compatibility", __('WPML compatibility', 'ajax-search-pro'), $sd['wpml_compatibility']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('If turned <strong>ON</strong>: return results from current language. If turned <strong>OFF</strong>: return results from any language.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item<?php echo function_exists("pll_current_language") ? "" : " hiddend"; ?>">
<?php
$o = new wpdreamsYesNo("polylang_compatibility", __('Polylang compatibility', 'ajax-search-pro'), $sd['polylang_compatibility']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('If turned <strong>ON</strong>: return results from current language. If turned <strong>OFF</strong>: return results from any language.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("shortcode_op", __('What to do with shortcodes in results content?', 'ajax-search-pro'), array(
'selects'=>array(
array("option"=>__('Remove them, keep the content', 'ajax-search-pro'), "value" => "remove"),
array("option"=>__('Execute them (can by really slow)', 'ajax-search-pro'), "value" => "execute")
),
'value'=>$sd['shortcode_op']
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Removing shortcode is usually <strong>much faster</strong>, especially if you have many of them within posts.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsText("striptagsexclude", __('HTML Tags exclude from stripping content', 'ajax-search-pro'), $sd['striptagsexclude']);
$params[$o->getName()] = $o->getData();
?>
</div>
</fieldset>
<fieldset class="asp-adv-fields">
<legend>
<?php echo __('Post Type Result Fields', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/advanced-options/advanced-title-and-description-fields"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("primary_titlefield", __('Primary Title Field for Posts/Pages/CPT', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Post Title', 'ajax-search-pro'), 'value' => 0),
array('option' => __('Post Excerpt', 'ajax-search-pro'), 'value' => 1),
array('option' => __('Custom Field', 'ajax-search-pro'), 'value' => 'c__f')
),
'value'=>$sd['primary_titlefield']
));
$params[$o->getName()] = $o->getData();
$o = new wd_CFSearchCallBack('primary_titlefield_cf', '', array(
'value'=>$sd['primary_titlefield_cf'],
'args'=> array(
'controls_position' => 'left',
'class'=>'wpd-text-right'
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("secondary_titlefield", __('Secondary Title Field for Posts/Pages/CPT', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Disabled', 'ajax-search-pro'), 'value' => -1),
array('option' => __('Post Title', 'ajax-search-pro'), 'value' => 0),
array('option' => __('Post Excerpt', 'ajax-search-pro'), 'value' => 1),
array('option' => __('Custom Field', 'ajax-search-pro'), 'value' => 'c__f')
),
'value'=>$sd['secondary_titlefield']
));
$params[$o->getName()] = $o->getData();
$o = new wd_CFSearchCallBack('secondary_titlefield_cf', '', array(
'value'=>$sd['secondary_titlefield_cf'],
'args'=> array(
'controls_position' => 'left',
'class'=>'wpd-text-right'
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("primary_descriptionfield", __('Primary Description Field for Posts/Pages/CPT', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Post Content', 'ajax-search-pro'), 'value' => 0),
array('option' => __('Post Excerpt', 'ajax-search-pro'), 'value' => 1),
array('option' => __('Post Title', 'ajax-search-pro'), 'value' => 2),
array('option' => __('Custom Field', 'ajax-search-pro'), 'value' => 'c__f')
),
'value'=>$sd['primary_descriptionfield']
));
$params[$o->getName()] = $o->getData();
$o = new wd_CFSearchCallBack('primary_descriptionfield_cf', '', array(
'value'=>$sd['primary_descriptionfield_cf'],
'args'=> array(
'controls_position' => 'left',
'class'=>'wpd-text-right'
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("secondary_descriptionfield", __('Secondary Description Field for Posts/Pages/CPT', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Disabled', 'ajax-search-pro'), 'value' => -1),
array('option' => __('Post Content', 'ajax-search-pro'), 'value' => 0),
array('option' => __('Post Excerpt', 'ajax-search-pro'), 'value' => 1),
array('option' => __('Post Title', 'ajax-search-pro'), 'value' => 2),
array('option' => __('Custom Field', 'ajax-search-pro'), 'value' => 'c__f')
),
'value'=>$sd['secondary_descriptionfield']
));
$params[$o->getName()] = $o->getData();
$o = new wd_CFSearchCallBack('secondary_descriptionfield_cf', '', array(
'value'=>$sd['secondary_descriptionfield_cf'],
'args'=> array(
'controls_position' => 'left',
'class'=>'wpd-text-right'
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<?php if ( version_compare(asp_wp_get_wp_version(), '6.0', '>=') ): ?>
<div id="wdo" class="wdo">
<div id="asp-search-post-advanced-fields"></div>
</div>
<?php else: ?>
<div class="item">
<?php
$o = new wd_TextareaExpandable("advtitlefield", __('Advanced Title Field (default: {titlefield})', 'ajax-search-pro'), $sd['advtitlefield']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('HTML is supported! Use {custom_field_name} format to have custom field values.', 'ajax-search-pro'); ?>&nbsp;
<a href="https://documentation.ajaxsearchpro.com/advanced-options/advanced-title-and-description-fields" target="_blank">
<?php echo __('More possibilities explained here!', 'ajax-search-pro'); ?>
</a>
</p>
</div>
<div class="item">
<?php
$o = new wd_TextareaExpandable("advdescriptionfield", __('Advanced Description Field (default: {descriptionfield})', 'ajax-search-pro'), $sd['advdescriptionfield']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('HTML is supported! Use {custom_field_name} format to have custom field values.', 'ajax-search-pro'); ?>&nbsp;
<a href="https://documentation.ajaxsearchpro.com/advanced-options/advanced-title-and-description-fields" target="_blank">
<?php echo __('More possibilities explained here!', 'ajax-search-pro'); ?>
</a>
</p>
</div>
<?php endif; ?>
</fieldset>
<fieldset class="asp-adv-fields">
<legend>
<?php echo __('User Result Fields & URL', 'ajax-search-pro'); ?>
</legend>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("user_search_title_field", __('Title field for <strong>User</strong> results', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('Login Name', 'ajax-search-pro'), 'value' => 'login'),
array('option' => __('Display Name', 'ajax-search-pro'), 'value' => 'display_name')
),
'value' => $sd['user_search_title_field']
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("user_search_description_field", __('Description field for <strong>User</strong> results', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('Biography', 'ajax-search-pro'), 'value' => 'bio'),
array('option' => __('BuddyPress Last Activity', 'ajax-search-pro'), 'value' => 'buddypress_last_activity'),
array('option' => __('Nothing', 'ajax-search-pro'), 'value' => 'nothing')
),
'value' => $sd['user_search_description_field']
));
$params[$o->getName()] = $o->getData();
?>
</div>
<?php if ( version_compare(asp_wp_get_wp_version(), '6.0', '>=') ): ?>
<div id="wdo" class="wdo">
<div id="asp-search-user-advanced-fields"></div>
</div>
<?php else: ?>
<div class="item">
<?php
$o = new wd_TextareaExpandable("user_search_advanced_title_field", __('Advanced title field for <strong>User</strong> results', 'ajax-search-pro'),
$sd['user_search_advanced_title_field']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Variable {titlefield} will be replaced with the Title field value. Use the format {meta_field} to get user meta.', 'ajax-search-pro'); ?><br>
<a href="https://documentation.ajaxsearchpro.com/advanced-options/advanced-title-and-description-fields/user-search-advanced-title-and-content-fields" target="_blank"><?php echo __('More possibilities explained here!', 'ajax-search-pro'); ?></a>
</p>
</div>
<div class="item">
<?php
$o = new wd_TextareaExpandable("user_search_advanced_description_field", __('Advanced description field for <strong>User</strong> results', 'ajax-search-pro'),
$sd['user_search_advanced_description_field']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Variable {descriptionfield} will be replaced with the Description field value. Use the format {meta_field} to get user meta.', 'ajax-search-pro'); ?><br>
<a href="https://documentation.ajaxsearchpro.com/advanced-options/advanced-title-and-description-fields/user-search-advanced-title-and-content-fields" target="_blank"><?php echo __('More possibilities explained here!', 'ajax-search-pro'); ?></a>
</p>
</div>
<?php endif; ?>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("user_search_url_source", __('<strong>User</strong> results url source', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('Default', 'ajax-search-pro'), 'value' => 'default'),
array('option' => __('BuddyPress profile', 'ajax-search-pro'), 'value' => 'bp_profile'),
array('option' => __('Custom scheme', 'ajax-search-pro'), 'value' => 'custom')
),
'value' => $sd['user_search_url_source']
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('This is the result URL destination. By default it\'s the author profile link.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsText("user_search_custom_url", __('Custom url scheme for <strong>User</strong> results', 'ajax-search-pro'),
$sd['user_search_custom_url']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('You can use these variables: {USER_ID}, {USER_LOGIN}, {USER_NICENAME}, {USER_DISPLAYNAME}, {USER_NICKNAME}', 'ajax-search-pro'); ?>
</p>
</div>
</fieldset>

View File

@@ -0,0 +1,98 @@
<div class="item" style="border-bottom: 0;">
<?php
$o = new wpdreamsYesNo("exclude_dates_on", __('Exclude Post/Page/CPT by date', 'ajax-search-pro'), $sd['exclude_dates_on']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wd_DateInterval("exclude_dates", 'posts', $sd['exclude_dates']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wd_UserSelect("exclude_content_by_users", __('Exclude or Include content by users', 'ajax-search-pro'), array(
"value"=>$sd['exclude_content_by_users'],
"args"=> array(
"show_type" => 1
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsSearchTags("exclude_post_tags", __('Exclude posts by tags', 'ajax-search-pro'), $sd['exclude_post_tags']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wd_TaxonomyTermSelect("exclude_by_terms", __("<span style='color: red; font-weight: bold'>Exclude</span> posts (or cpt, attachments, comments) by categories/taxonomy terms", 'ajax-search-pro'), array(
"value"=>$sd['exclude_by_terms'],
"args" => array(
"show_type" => 0,
"op_type" => "exclude",
"show_checkboxes" => 0,
"show_display_mode" => 0,
"show_more_options" => 0,
'show_taxonomy_all' => 0,
"built_in" => true,
"exclude_taxonomies" => array("post_tag", "nav_menu", "link_category")
)
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('An object is excluded if matches <strong>any</strong> of the selected items.', 'ajax-search-pro'); ?></p>
</div>
<div class="item">
<?php
$o = new wd_TaxonomyTermSelect("include_by_terms", __("<span style='color: red; font-weight: bold;'>Include</span> posts (or cpt, attachments, comments) only from selected categories/taxonomy terms", 'ajax-search-pro'), array(
"value"=>$sd['include_by_terms'],
"args" => array(
"show_type" => 0,
"op_type" => "include",
"show_checkboxes" => 0,
"show_display_mode" => 0,
"show_more_options" => 0,
'show_taxonomy_all' => 0,
"built_in" => true,
"exclude_taxonomies" => array("nav_menu", "link_category")
)
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('The exclusions from the above option <strong>still apply!</strong>', 'ajax-search-pro'); ?></p>
</div>
<div class="item">
<?php
$o = new wd_CPTSelect("exclude_cpt", __('Exclude posts/pages/cpt', 'ajax-search-pro'), array(
"value"=>$sd['exclude_cpt'],
"args"=> array(
"show_parent_checkbox" => 1
)
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('The "Exclude direct children too?" option only works with <strong>DIRECT</strong> parent-child relationships. (1 level down)', 'ajax-search-pro'); ?></p>
</div>
<div class="item">
<?php
$o = new wd_TextareaExpandable("excludeposts", __('Exclude Posts/Pages/CPT by ID\'s (comma separated post ID-s)', 'ajax-search-pro'), $sd['excludeposts']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('If you wish to exclude Posts, Pages and custom post types (like products etc..) by ID here. Comma separated list.', 'ajax-search-pro'); ?></p>
</div>
<div class="item">
<p class="errorMsg"><?php echo __('<strong>WARNING:</strong> This option restricts Posts/Pages/CPT to the selected items only, no other inclusions will apply! <br>Exclusions still apply.', 'ajax-search-pro'); ?></p>
<?php
$o = new wd_CPTSelect("include_cpt", __('Include only posts/pages/cpt', 'ajax-search-pro'), array(
"value"=>$sd['include_cpt'],
"args"=> array(
"show_parent_checkbox" => 0
)
));
$params[$o->getName()] = $o->getData();
?>
</div>

View File

@@ -0,0 +1,126 @@
<div class="item">
<?php
$o = new wpdreamsCustomSelect("group_by", __('Group results by', 'ajax-search-pro'), array(
'selects'=> array(
array("value" => "none", "option" => __('No grouping', 'ajax-search-pro')),
array("value" => "post_type", "option" => __('Post Type', 'ajax-search-pro')),
array("value" => "categories_terms", "option" => __('Categories/Terms', 'ajax-search-pro')),
array("value" => "content_type", "option" => __('Content Type', 'ajax-search-pro'))
),
'value'=>$sd['group_by']) );
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('Only works with <b>Vertical</b> results layout.', 'ajax-search-pro'); ?></p>
</div>
<div class="item wd_groupby wd_groupby_categories_terms">
<?php
$o = new wd_TaxonomyTermSelect("groupby_terms", __('Category/Term grouping options', 'ajax-search-pro'), array(
"value" => $sd['groupby_terms'],
"args" => array(
"show_type" => 0,
"show_checkboxes" => 0
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby wd_groupby_content_type">
<?php
$o = new wd_Sortable_Editable("groupby_content_type", __('Content type grouping options', 'ajax-search-pro'), $sd['groupby_content_type']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby wd_groupby_post_type">
<?php
$o = new wd_CPT_Editable("groupby_cpt", __('Custom Post Type grouping options', 'ajax-search-pro'), $sd['groupby_cpt']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsYesNo("group_reorder_by_pr", __('Reorder groups by highest priority and relevance in results?', 'ajax-search-pro'), $sd['group_reorder_by_pr']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('The groups are reordered according to the highest priority and relevance of each result within each individual group.', 'ajax-search-pro'); ?></p>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsYesNo("group_order_results_page", __('Try to apply the same results order on the results page? (NOT RECOMMENDED)', 'ajax-search-pro'), $sd['group_order_results_page']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('The results order is different on the results page as grouping changes that. When this is enabled, the plugin will try to maintain the same order for both the live and results pages.', 'ajax-search-pro'); ?>
<?php echo __('Works best if the <a class="asp_to_tab" href="#614" tabid="111">post type limit</a> is set to the same number for both the live and results page.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsYesNo("group_make_header_clickable", __('Make group header clickable?', 'ajax-search-pro'), $sd['group_make_header_clickable']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('Makes the group header clickable links to the corresponding archive pages.', 'ajax-search-pro'); ?></p>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsText("group_header_prefix", __('Group header prefix text', 'ajax-search-pro'), $sd['group_header_prefix']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsText("group_header_suffix", __('Group header suffix text', 'ajax-search-pro'), $sd['group_header_suffix']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsCustomSelect("group_result_no_group", __('If result does not match any group?', 'ajax-search-pro'), array(
'selects'=> array(
array("value" => "remove", "option" => __('Remove it', 'ajax-search-pro')),
array("value" => "display", "option" => __('Display in Other results group', 'ajax-search-pro'))
),
'value'=>$sd['group_result_no_group']) );
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby_op item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsText("group_other_results_head", __('Other results group header text', 'ajax-search-pro'), $sd['group_other_results_head']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsCustomSelect("group_other_location", ' ' . __('location' . ' ', 'ajax-search-pro'), array(
'selects'=> array(
array("value" => "top", "option" => __('Top of results', 'ajax-search-pro')),
array("value" => "bottom", "option" => __('Bottom of results', 'ajax-search-pro'))
),
'value'=>$sd['group_other_location']) );
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsYesNo("group_exclude_duplicates", __('Display duplicates only in the first group match?', 'ajax-search-pro'), $sd['group_exclude_duplicates']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('For example posts in multiple categories will be displayed in the first matching group only.', 'ajax-search-pro'); ?></p>
</div>
<div class="item wd_groupby_op item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsYesNo("group_show_empty", __('Display empty groups with the \'No results!\' text?', 'ajax-search-pro'), $sd['group_show_empty']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsCustomSelect("group_show_empty_position", __(' ..emtpy group location ', 'ajax-search-pro'), array(
'selects'=> array(
array("value" => "default", "option" => __('Leave the default', 'ajax-search-pro')),
array("value" => "bottom", "option" => __('Move to the bottom', 'ajax-search-pro')),
array("value" => "top", "option" => __('Move to the top', 'ajax-search-pro'))
),
'value'=>$sd['group_show_empty_position']) );
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item wd_groupby_op">
<?php
$o = new wpdreamsYesNo("group_result_count", __('Show results count in group headers', 'ajax-search-pro'), $sd['group_result_count']);
$params[$o->getName()] = $o->getData();
?>
</div>

View File

@@ -0,0 +1,15 @@
<p class="infoMsg"><?php echo __('Keyword exceptions will be replaced with an empty string "" in the search phrase.', 'ajax-search-pro'); ?></p>
<div class="item">
<?php
$o = new wd_TextareaExpandable("kw_exceptions", __('Keyword exceptions - replace anywhere', 'ajax-search-pro'), $sd['kw_exceptions']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('<strong>Comma separated list</strong> of keywords you want to remove or ban. Matching anything, even partial words.', 'ajax-search-pro'); ?></p>
</div>
<div class="item">
<?php
$o = new wd_TextareaExpandable("kw_exceptions_e", __('Keyword exceptions - replace whole words only', 'ajax-search-pro'), $sd['kw_exceptions_e']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg"><?php echo __('<strong>Comma separated list</strong> of keywords you want to remove or ban. Only matching whole words between word boundaries.', 'ajax-search-pro'); ?></p>
</div>