Files
roi-theme/wp-content/plugins/ajax-search-pro/backend/tabs/instance/layout/results_layout.php
root a22573bf0b 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>
2025-11-03 21:04:30 -06:00

261 lines
13 KiB
PHP
Executable File

<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>