Files
Testing/tbs/wp-content/plugins/relevanssi/lib/tabs/search-page.php
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

64 lines
1.8 KiB
PHP

<?php
/**
* /premium/tabs/search-tab.php
*
* Prints out the Premium search tab in Relevanssi settings.
*
* @package Relevanssi_Premium
* @author Mikko Saari
* @license https://wordpress.org/about/gpl/ GNU General Public License
* @see https://www.relevanssi.com/
*/
/**
* Prints out the Premium search tab in Relevanssi settings.
*/
function relevanssi_search_tab() {
?>
<p><?php esc_html_e( 'You can use this search to perform Relevanssi searches without any restrictions from WordPress. You can search all post types here.', 'relevanssi' ); ?></p>
<table class="form-table">
<tr>
<th scope="row">
<label for='s'><?php esc_html_e( 'Search terms', 'relevanssi' ); ?></label>
</th>
<td>
<input type='text' name='s' id='s' size='60' />
</td>
</tr>
<tr>
<th scope="row">
<label for='posts_per_page'><?php esc_html_e( 'Posts per page', 'relevanssi' ); ?></label>
</th>
<td>
<select name='posts_per_page' id='posts_per_page'>
<option value='0'><?php esc_html_e( 'All', 'relevanssi' ); ?></option>
<option>10</option>
<option>50</option>
<option>100</option>
</select>
</td>
</tr>
<tr>
<th scope="row">
<label for='args'><?php esc_html_e( 'Search parameters', 'relevanssi' ); ?></label>
</th>
<td>
<input type='text' name='args' id='args' size='60' />
<?php // Translators: example query string. ?>
<p class='description'><?php printf( esc_html__( 'Use query parameter formatting here, the same that would appear on search page results URL. For example %s.', 'relevanssi' ), '<code>posts_per_page=10&post_types=page&from=2018-01-01</code>' ); ?></p>
</td>
</tr>
<tr>
<th scope="row">
</th>
<td>
<input type='submit' name='search' id='search' value='<?php echo esc_html_x( 'Search', 'button action', 'relevanssi' ); ?>' class='button' />
</td>
</tr>
</table>
<div id='results'></div>
<?php
}