wp_back/wp-content/plugins/wp-asset-clean-up/templates/_admin-pages-assets-manager/_search.php
2024-05-20 15:37:46 +03:00

28 lines
1.4 KiB
PHP

<?php
/*
* No direct access to this file
*/
if (! isset($data)) {
exit;
}
$baseNamePageType = str_replace('.php', '', basename(__FILE__));
$baseNamePageType = trim($baseNamePageType, '_');
?>
<div style="margin: 25px 0 0;">
<p><?php echo wp_kses(
str_replace('[wpacu_chosen_page_type]', $baseNamePageType, $data['locked_for_pro']),
array('span' => array('class' => array()), 'a' => array('href' => array()))
); ?></p>
<hr />
<p>Default Search Template (search.php &#187; this is the template that displays the search results; the query parameter "s" is within the URL). If you create a <a target="_blank" href="https://codex.wordpress.org/Creating_a_Search_Page">Search Page</a>, it will belong to the "Pages" page type. The assets can be unloaded <strong>only in the front-end view</strong> (<em>"Manage in the Front-end?" from "Settings" tab has to be enabled</em>).</p>
<p><strong>Example:</strong> <code>//www.yoursite.com/blog/?s=design</code></p>
<hr />
<strong>How to retrieve the loaded styles &amp; scripts?</strong>
<p style="margin-bottom: 0;"><span class="dashicons dashicons-yes" style="color: green;"></span> If "Manage in the Front-end?" is enabled, and you're logged in:</p>
<p style="margin-top: 0;">Go to the search results page (any search query as the managing will apply for any search term) and scroll to the bottom of the page where you will see the list.</p>
</div>