Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /************************************************************************************
- /* Zobrazení odkazu na způsob řazení výsledků vyhledávání *
- /* Zobrazí se pouze pokud je aktivní plugin Relevanssi (http://www.relevanssi.com/) *
- /* -------------------------------------------------------------------------------- *
- /* Created by Lukenzi <lukenzi@gmail.com> *
- /***********************************************************************************/
- if(function_exists('relevanssi_options')){
- if(is_search()){
- $siteurl = get_option('siteurl');
- if(isset($_GET['orderby']) && !empty($_GET['orderby'])){
- echo '<a class="search-button" href="'.$siteurl.'/?s='.strip_tags(addslashes($_GET['s'])).'" rel="nofollow">Seřadit podle relevance</a>';
- }else{
- echo '<a class="search-button" href="'.$siteurl.'/?s='.strip_tags(addslashes($_GET['s'])).'&orderby=post_date&order=desc" rel="nofollow">Seřadit podle data</a>';
- }
- unset($siteurl);
- }
- }
- /**********************************************************************************/
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement