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,162 @@
<div class="item">
<?php
$o = new wpdreamsYesNo("box_compact_layout", __('Compact layout mode', 'ajax-search-pro'), $sd['box_compact_layout']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('In compact layout only the search magnifier is visible, and the user has to click on the magnifier first to show the search bar.', 'ajax-search-pro'); ?>
</p>
</div>
<div wd-disable-on="box_compact_layout:0">
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsCustomSelect("box_compact_layout_desktop", __('Compact mode on Devices: ', 'ajax-search-pro'), array(
'selects'=>array(
array('option'=>'Enabled', 'value'=>'1'),
array('option'=>'Disabled', 'value'=>'0')
),
'icon'=>'desktop',
'value'=>$sd['box_compact_layout_desktop']
)
);
$o = new wpdreamsCustomSelect("box_compact_layout_tablet", __('', 'ajax-search-pro'), array(
'selects'=>array(
array('option'=>'Enabled', 'value'=>'1'),
array('option'=>'Disabled', 'value'=>'0')
),
'icon'=>'tablet',
'value'=>$sd['box_compact_layout_tablet']
)
);
$o = new wpdreamsCustomSelect("box_compact_layout_mobile", __('', 'ajax-search-pro'), array(
'selects'=>array(
array('option'=>'Enabled', 'value'=>'1'),
array('option'=>'Disabled', 'value'=>'0')
),
'icon'=>'phone',
'value'=>$sd['box_compact_layout_mobile']
)
);
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("box_compact_layout_focus_on_open", __('Auto focus the input field, after the compact box opens', 'ajax-search-pro'), $sd['box_compact_layout_focus_on_open']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("box_compact_close_on_magn", __('Close on magnifier click', 'ajax-search-pro'), $sd['box_compact_close_on_magn']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Closes the box when the magnifier is clicked.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("box_compact_close_on_document", __('Close on document click', 'ajax-search-pro'), $sd['box_compact_close_on_document']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Closes the box when the document is clicked.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item item-flex-nogrow item-flex-wrap wpd-isotopic-width" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsTextSmall("box_compact_width", __('Compact box final width', 'ajax-search-pro'), array(
'icon' => 'desktop',
'value' => $sd['box_compact_width']
));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("box_compact_width_tablet", '', array(
'icon' => 'tablet',
'value' => $sd['box_compact_width_tablet']
));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("box_compact_width_phone", '', array(
'icon' => 'phone',
'value' => $sd['box_compact_width_phone']
));
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo sprintf(
__('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-pro'),
'https://www.w3schools.com/cssref/css_units.asp', '200px', '50%', 'auto', '100%'
); ?>
<br>
<?php echo __('You might need to adjust this to a static value like 200px, as 100% is not always working in compact mode.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsYesNo("box_compact_overlay", __('Display background overlay?', 'ajax-search-pro'), $sd['box_compact_overlay']);
$params[$o->getName()] = $o->getData();
?>
<?php
$o = new wpdreamsColorPicker("box_compact_overlay_color", __(' color ', 'ajax-search-pro'), $sd['box_compact_overlay_color']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('Overlay only works with if the <strong>box position is set to Fixed</strong> below.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item"><?php
$o = new wpdreamsCustomSelect("box_compact_float", __('Compact layout alignment', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('No floating', 'ajax-search-pro'), 'value' => 'none'),
array('option' => __('Left', 'ajax-search-pro'), 'value' => 'left'),
array('option' => __('Right', 'ajax-search-pro'), 'value' => 'right')
),
'value' => $sd['box_compact_float']
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('By default the search box floats with the theme default (none). You can change that here.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item"><?php
$o = new wpdreamsCustomSelect("box_compact_position", __('Compact search box position', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('Static (default)', 'ajax-search-pro'), 'value' => 'static'),
array('option' => __('Fixed', 'ajax-search-pro'), 'value' => 'fixed'),
array('option' => __('Absolute', 'ajax-search-pro'), 'value' => 'absolute')
),
'value' => $sd['box_compact_position']
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('In absolute position the search can not affect it\'s parent element height as absolutely positioned elements are removed from the flow, thus ignored by other elements.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$option_name = "box_compact_screen_position";
$option_desc = __('Position values', 'ajax-search-pro');
$option_expl = __('You can use auto or include the unit as well, example: 10px or 1em or 90%', 'ajax-search-pro');
$o = new wpdreamsFour($option_name, $option_desc,
array(
"desc" => $option_expl,
"value" => $sd[$option_name]
)
);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsTextSmall("box_compact_position_z", __('z-index', 'ajax-search-pro'), $sd['box_compact_position_z']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('In case you have some other elements floating above/below the search icon, you can adjust it\'s position with the z-index.', 'ajax-search-pro'); ?>
</p>
</div>
</div>

View File

@@ -0,0 +1,152 @@
<fieldset>
<legend>
<?php echo __('More results text and behavior', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/more-results-link"><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 wpdreamsYesNo("showmoreresults", __('Show \'More results..\' text in the bottom of the search box?', 'ajax-search-pro'), $sd['showmoreresults']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsCustomSelect("more_results_action", __(' action', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Load more ajax results', 'ajax-search-pro'), 'value' => 'ajax'),
array('option' => __('Redirect to Results Page', 'ajax-search-pro'), 'value' => 'results_page'),
array('option' => __('Redirect to WooCommerce Results Page', 'ajax-search-pro'), 'value' => 'woo_results_page'),
array('option' => __('Redirect to Elementor post widget page', 'ajax-search-pro'), 'value' => 'elementor_page'),
array('option' => __('Redirect to custom URL', 'ajax-search-pro'), 'value' => 'redirect')
),
'value'=>$sd['more_results_action']
));
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('"Load more ajax results" option will not work if Polaroid layout or Grouping is activated, or if results are removed when no images are present.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item">
<?php
$o = new wd_CPTSearchCallBack('more_redirect_elementor', __('Select a page with an Elementor Pro posts widget', 'ajax-search-pro'), array(
'value'=>$sd['more_redirect_elementor'],
'args'=> array(
'controls_position' => 'left',
'class'=>'wpd-text-right'
)
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsText("more_redirect_url", __('\' Show more results..\' url', 'ajax-search-pro'), $sd['more_redirect_url']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("more_results_infinite", __('<strong>Infinite scroll</strong> - Trigger loading more results on scrolling near the end of results list', 'ajax-search-pro'), $sd['more_results_infinite']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsText("showmoreresultstext", __('\' Show more results..\' text', 'ajax-search-pro'), $sd['showmoreresultstext']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsCustomSelect("more_redirect_location", __(' location: ', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => 'Use same tab', 'value' => 'same'),
array('option' => 'Open new tab', 'value' => 'new')
),
'value' => $sd['more_redirect_location']
));
$params[$o->getName()] = $o->getData();
?>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo __('Results text keyword highlighter - Live results list', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/search-phrase-highlighter"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item"><?php
$o = new wpdreamsYesNo("highlight", __('Highlight search text in live results?', 'ajax-search-pro'), $sd['highlight']);
$params[$o->getName()] = $o->getData();
?></div>
<div class="item"><?php
$o = new wpdreamsYesNo("highlightwholewords", __('Highlight only whole words?', 'ajax-search-pro'), $sd['highlightwholewords']);
$params[$o->getName()] = $o->getData();
?></div>
<div class="item"><?php
$o = new wpdreamsColorPicker("highlightcolor", __('Highlight text color', 'ajax-search-pro'), $sd['highlightcolor']);
$params[$o->getName()] = $o->getData();
?></div>
<div class="item"><?php
$o = new wpdreamsColorPicker("highlightbgcolor", __('Highlight-text background color', 'ajax-search-pro'), $sd['highlightbgcolor']);
$params[$o->getName()] = $o->getData();
?>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo __('Results text keyword highlighter - Single Result & Search Results page', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/search-phrase-highlighter"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="errorMsg">
<?php echo __('<strong>Disclaimer: </strong> This feature is highly experimental, and may not work correctly in all cases.', 'ajax-search-pro'); ?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("single_highlight", __('Highlight search text on single result pages?', 'ajax-search-pro'), $sd['single_highlight']);
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("result_page_highlight", __('Highlight search text on the Search Results page?', 'ajax-search-pro'), $sd['result_page_highlight']);
?>
</div>
<div wd-disable-on="single_highlight:0;result_page_highlight:0">
<div class="item"><?php
$o = new wpdreamsYesNo("single_highlightwholewords", __('Highlight only whole words?', 'ajax-search-pro'), $sd['single_highlightwholewords']);
$params[$o->getName()] = $o->getData();
?></div>
<div class="item"><?php
$o = new wpdreamsColorPicker("single_highlightcolor", __('Highlight text color', 'ajax-search-pro'), $sd['single_highlightcolor']);
$params[$o->getName()] = $o->getData();
?></div>
<div class="item"><?php
$o = new wpdreamsColorPicker("single_highlightbgcolor", __('Highlight-text background color', 'ajax-search-pro'), $sd['single_highlightbgcolor']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsYesNo("single_highlight_scroll", __('Scroll to the first keyword match if possible?', 'ajax-search-pro'), $sd['single_highlight_scroll']);
$o = new wpdreamsTextSmall("single_highlight_offset", __('scroll offset (px)', 'ajax-search-pro'), $sd['single_highlight_offset']);
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('A negative offset will move the window upwards, a positive downwards. Default: 0', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item"><?php
$o = new wpdreamsText("single_highlight_selector", __('Results container DOM element selector', 'ajax-search-pro'), $sd['single_highlight_selector']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('Optional, but very useful - it tells which element contains exactly the result content, so words are highlighted only on the given section of the page.', 'ajax-search-pro'); ?>
</div>
</div>
</div>
</fieldset>

View File

@@ -0,0 +1,31 @@
<div class="item">
<?php
$o = new wpdreamsYesNo("results_click_blank", __('When clicking on a result, open it in a new window?', 'ajax-search-pro'), $sd['results_click_blank']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsYesNo("scroll_to_results", __('Scroll the browser window to the result list, when the search starts?', 'ajax-search-pro'), $sd['scroll_to_results']);
$o = new wpdreamsTextSmall("scroll_to_results_offset", __('scroll offset (px)', 'ajax-search-pro'), $sd['scroll_to_results_offset']);
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo __('A negative offset will move the window upwards, a positive downwards. Default: 0', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("resultareaclickable", __('Make the whole result area clickable?', 'ajax-search-pro'), $sd['resultareaclickable']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("close_on_document_click", __('Close results when the search loses focus?', 'ajax-search-pro'), $sd['close_on_document_click']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Closes the results list when clicking outside the search elements.', 'ajax-search-pro'); ?>
</p>
</div>

View File

@@ -0,0 +1,261 @@
<fieldset>
<legend>
<?php echo __('Results layout', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/result-layout-types"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("resultstype", __('Results layout type', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Vertical Results', 'ajax-search-pro'), 'value' => 'vertical'),
array('option' => __('Horizontal Results', 'ajax-search-pro'), 'value' => 'horizontal'),
array('option' => __('Isotopic Results', 'ajax-search-pro'), 'value' => 'isotopic'),
array('option' => __('Polaroid style Results', 'ajax-search-pro'), 'value' => 'polaroid')
),
'value'=>$sd['resultstype']
));
$params[$o->getName()] = $o->getData();
?>
</div>
<p class='infoMsg'>
<?php echo __('If you are using <b>Polaroid</b> layout type, then <b>block</b> position is highly recommended!', 'ajax-search-pro'); ?>
</p>
<div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsCustomSelect("resultsposition", __('Results layout position', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('Hover - over content', 'ajax-search-pro'), 'value' => 'hover'),
array('option' => __('Block - pushes content', 'ajax-search-pro'), 'value' => 'block')
),
'value'=>$sd['resultsposition']
));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsCustomSelect("results_snap_to", __(' and snap the results to the ', 'ajax-search-pro'), array(
'selects'=>array(
array('option' => __('left side of the search', 'ajax-search-pro'), 'value' => 'left'),
array('option' => __('right side of the search', 'ajax-search-pro'), 'value' => 'right'),
array('option' => __('the center', 'ajax-search-pro'), 'value' => 'center')
),
'value'=>$sd['results_snap_to']
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-flex-wrap wpd-isotopic-width">
<?php
$o = new wpdreamsTextSmall("results_width", __('Results box width', 'ajax-search-pro'), array(
'icon' => 'desktop',
'value' => $sd['results_width']
));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("results_width_tablet", '', array(
'icon' => 'tablet',
'value' => $sd['results_width_tablet']
));
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("results_width_phone", '', array(
'icon' => 'phone',
'value' => $sd['results_width_phone']
));
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo sprintf(
__('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-pro'),
'https://www.w3schools.com/cssref/css_units.asp', '10px', '50%', 'auto', 'auto'
); ?>
</div>
</div>
<div class="item">
<?php
$o = new wd_ANInputs("results_margin", __('Results container margin', 'ajax-search-pro'),
array(
'args' => array(
'inputs' => array(
array( __('Top', 'ajax-search-pro'), '0px'),
array( __('Right', 'ajax-search-pro'), '0px'),
array( __('Bottom', 'ajax-search-pro'), '0px'),
array( __('Left', 'ajax-search-pro'), '0px')
)
),
'value' => $sd['results_margin']
));
?>
<div class="descMsg">
<?php echo sprintf(
__('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-pro'),
'https://www.w3schools.com/cssref/css_units.asp', '10px', '50%', 'auto', 'auto'
); ?>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo __('Result container header', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/results-information-box"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item">
<?php
$o = new wpdreamsYesNo("results_top_box", __('Display the results information box?', 'ajax-search-pro'), $sd['results_top_box']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Additional information on top of the results list, like the phrase and the results count. Only displays when there are results.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wd_TextareaExpandable("results_top_box_text", __('Information box text, when a search phrase is present', 'ajax-search-pro'), $sd['results_top_box_text']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Supports HTML and variables {phrase}, {results_count} and {results_count_total}', 'ajax-search-pro'); ?>
</p>
<?php
$o = new wd_TextareaExpandable("results_top_box_text_nophrase", __('Information box text, when the search phrase is empty', 'ajax-search-pro'), $sd['results_top_box_text_nophrase']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Supports HTML and variables {results_count} and {results_count_total}', 'ajax-search-pro'); ?>
</p>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo __('Results fields - Post type results', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/content-author-date-and-description-in-results"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsYesNo("showauthor", __('Show author in results?', 'ajax-search-pro'), $sd['showauthor']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsCustomSelect("author_field", __('Author field', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => 'Display name', 'value' => 'display_name'),
array('option' => 'Login name', 'value' => 'user_login')
),
'value' => $sd['author_field']
));
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsYesNo("showdate", __('Show date in results?', 'ajax-search-pro'), $sd['showdate']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsYesNo("custom_date", __('Use custom date format?', 'ajax-search-pro'),
$sd['custom_date']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsText("custom_date_format", __(' format', 'ajax-search-pro'),
$sd['custom_date_format']);
$params[$o->getName()] = $o->getData();
?>
<div class='descMsg' style="min-width: 100%;
flex-wrap: wrap;
flex-basis: auto;
flex-grow: 1;
box-sizing: border-box;">
<?php echo __('If turned OFF, it will use WordPress defaults. Default custom value: <b>Y-m-d H:i:s</b>', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item">
<?php
$o = new wpdreamsTextSmall("post_type_res_title_length", __('Max. title field length', 'ajax-search-pro'), $sd['post_type_res_title_length']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsYesNo("showdescription", __('Show description (content) in results?', 'ajax-search-pro'), $sd['showdescription']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("descriptionlength", __('Description (content) length', 'ajax-search-pro'), $sd['descriptionlength']);
$params[$o->getName()] = $o->getData();
?>
<div class='descMsg' style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
<?php echo __('Content length in characters.', 'ajax-search-pro'); ?>
</div>
</div>
<div class="item item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsYesNo("description_context", __('Display the description context?', 'ajax-search-pro'), $sd['description_context']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("description_context_depth", __(' ..depth', 'ajax-search-pro'), $sd['description_context_depth']);
$params[$o->getName()] = $o->getData();
?><div>characters.</div>
<div class='descMsg' style="min-width: 100%;
flex-wrap: wrap;
flex-basis: auto;
flex-grow: 1;
box-sizing: border-box;">
<?php echo __('Will display the description from around the search phrase, not from the beginning.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo __('Results fields - Taxonomy term results', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/content-author-date-and-description-in-results"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item">
<?php
$o = new wpdreamsTextSmall("tax_res_title_length", __('Max. title field length', 'ajax-search-pro'), $sd['tax_res_title_length']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsYesNo("tax_res_showdescription", __('Show description (content) in taxonomy term results?', 'ajax-search-pro'), $sd['tax_res_showdescription']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("tax_res_descriptionlength", __('Description (content) length', 'ajax-search-pro'), $sd['tax_res_descriptionlength']);
$params[$o->getName()] = $o->getData();
?>
<div class='descMsg' style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
<?php echo __('Content length in characters.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>
<fieldset>
<legend>
<?php echo __('Results fields - User results', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/layout-settings/content-author-date-and-description-in-results"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item">
<?php
$o = new wpdreamsTextSmall("user_res_title_length", __('Max. title field length', 'ajax-search-pro'), $sd['user_res_title_length']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item item-flex-nogrow item-conditional" style="flex-wrap: wrap;">
<?php
$o = new wpdreamsYesNo("user_res_showdescription", __('Show description (content) in user results?', 'ajax-search-pro'), $sd['user_res_showdescription']);
$params[$o->getName()] = $o->getData();
$o = new wpdreamsTextSmall("user_res_descriptionlength", __('Description (content) length', 'ajax-search-pro'), $sd['user_res_descriptionlength']);
$params[$o->getName()] = $o->getData();
?>
<div class='descMsg' style="min-width: 100%;flex-wrap: wrap;flex-basis: auto;flex-grow: 1;box-sizing: border-box;">
<?php echo __('Content length in characters.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>

View File

@@ -0,0 +1,101 @@
<div class="item">
<?php
$o = new wpdreamsText("defaultsearchtext", __('Search box placeholder text', 'ajax-search-pro'), $sd['defaultsearchtext']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('Default search placeholder text appearing in the search bar.', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("focus_on_pageload", __('Focus the search input when the page is loaded? (desktop devices only)', 'ajax-search-pro'), $sd['box_sett_hide_box']);
$params[$o->getName()] = $o->getData();
?>
</div>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("box_alignment", __('Search box alignment', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('Inherit', 'ajax-search-pro'), 'value' => 'inherit'),
array('option' => __('Center', 'ajax-search-pro'), 'value' => 'center'),
array('option' => __('Left', 'ajax-search-pro'), 'value' => 'left'),
array('option' => __('Right', 'ajax-search-pro'), 'value' => 'right')
),
'value' => $sd['box_alignment']
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('By default the plugin follows the parent element alignment. This option might not have an effect if the parent element is displayed as "table" or "flex".', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsTextSmall('box_margin_top', __('Search box Top Margin', 'ajax-search-pro'),
$sd['box_margin_top']);
$o = new wpdreamsTextSmall('box_margin_bottom', __('Bottom Margin', 'ajax-search-pro'),
$sd['box_margin_bottom']);
$params[$o->getName()] = $o->getData();
?>
<div class="descMsg item-flex-grow item-flex-100">
<?php echo sprintf(
__('Use with <a href="%s" target="_blank">CSS units</a> (like %s or %s or %s ..) Default: <strong>%s</strong>', 'ajax-search-pro'),
'https://www.w3schools.com/cssref/css_units.asp', '12px', '5vh', 'auto', '0'
); ?>
</div>
</div>
<div class="item">
<?php
$o = new wpdreamsYesNo("box_sett_hide_box", __('Hide the search box completely, display settings only?', 'ajax-search-pro'), $sd['box_sett_hide_box']);
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('If enabled, the search box will be hidden, and the Frontend settings will be displayed instead.', 'ajax-search-pro'); ?>
</p>
</div>
<fieldset>
<legend>
<?php echo __('Auto Populate', 'ajax-search-pro'); ?>
<span class="asp_legend_docs">
<a target="_blank" href="https://documentation.ajaxsearchpro.com/frontend-search-settings/search-button"><span class="fa fa-book"></span>
<?php echo __('Documentation', 'ajax-search-pro'); ?>
</a>
</span>
</legend>
<div class="item">
<?php
$o = new wpdreamsCustomSelect("auto_populate", __('Display results by default when the page loads (auto populate)?', 'ajax-search-pro'),
array(
'selects' => array(
array('option' => __('Disabled', 'ajax-search-pro'), 'value' => 'disabled'),
array('option' => __('Enabled - Results for a search phrase', 'ajax-search-pro'), 'value' => 'phrase'),
array('option' => __('Enabled - Latest results', 'ajax-search-pro'), 'value' => 'latest'),
array('option' => __('Enabled - Random results', 'ajax-search-pro'), 'value' => 'random')
),
'value' => $sd['auto_populate']
));
$params[$o->getName()] = $o->getData();
?>
<p class="descMsg">
<?php echo __('If enabled, the search will automatically populate on page load based on the selected configuration. The configuration and the
frontend search options <strong>WILL be taken into account</strong> as if a normal search was made!', 'ajax-search-pro'); ?>
</p>
</div>
<div class="item item-flex-nogrow item-flex-wrap">
<?php
$o = new wpdreamsText("auto_populate_phrase", __('Phrase', 'ajax-search-pro'), $sd['auto_populate_phrase']);
$params[$o->getName()] = $o->getData();
?>&nbsp;&nbsp;&nbsp;&nbsp;
<?php
$o = new wpdreamsTextSmall("auto_populate_count", __(' Results count', 'ajax-search-pro'), $sd['auto_populate_count']);
$params[$o->getName()] = $o->getData();
?>
<div class="errorMsg hiddend autop-count-err">
<?php echo __('The <strong>Results Count</strong> option is <strong>Disabled</strong> for compatibility reasons, because the <a class="asp_to_tab" tabid="405" href="#405">Load more feature</a> is enabled.
The default results count will be used, that is set under the <a class="asp_to_tab" tabid="111" href="#111">General Options -> Limits</a> panel.', 'ajax-search-pro'); ?>
</div>
</div>
</fieldset>