- 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>
57 lines
1.6 KiB
PHP
Executable File
57 lines
1.6 KiB
PHP
Executable File
<?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>
|