Guest User

Untitled

a guest
Dec 16th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. {embed="_global/header" bodyclass="int generic"}
  2. <div id="main">
  3. {exp:low_googlesearch:form result_page="{segment_1}" form_class="search"}
  4. <fieldset>
  5. <legend>Search this site</legend>
  6. <input type="text" name="keywords" id="keywords" />
  7. <button type="submit">Search</button>
  8. </fieldset>
  9. {/exp:low_googlesearch:form}
  10.  
  11. {if "{segment_2}" != ""}
  12.  
  13. {exp:low_googlesearch:results keywords="{segment_2}" oe="utf8" cx="10238740198347018932401:f1m0woumyim" site="default_collection"}
  14.  
  15. {if keywords}
  16. <p>Searched for <strong>{keywords}</strong><br />
  17. Results <strong>{start_result} - {end_result}</strong> of about <strong>{approx_results}</strong>.</p>
  18. {/if}
  19.  
  20. {if keymatch}
  21. <p>KeyMatch: <a href="{keymatch_url}">{keymatch_description}</a></p>
  22. {/if}
  23.  
  24. {if total_synonyms}
  25. <h3>Also try:</h3>
  26. <ul>
  27. {synonyms}
  28. <li><a href="{path="search/results/{synonym_url}"}">{synonym_name}</a></li>
  29. {/synonyms}
  30. </ul>
  31. {/if}
  32.  
  33. {entries}
  34. {if count == 1}<ol id="searchresults">{/if}
  35. <li{if filtered} class="level2"{/if}>
  36. <h3><a href="{url}">{title}</a></h3>
  37. {if excerpt}<span class="excerpt">{excerpt}</span>{/if}
  38. <span class="meta">{display_url}</span>
  39. {if more_url}<span class="sitesearch">[ <a href="{more_url_path}">More results from {more_url}</a> ]</span>{/if}
  40. </li>
  41. {if count == total_results}</ol>{/if}
  42. {/entries}
  43.  
  44. {if total_pages > 1}
  45. <p class="pagination">
  46. <span class="count">Page {current_page} of {total_pages}</span>
  47. {if previous_path}<a class="prev" href="{previous_path}">Previous page</a>{/if}
  48. {pagination}
  49. {if is_active}
  50. <strong>{page_count}</strong>
  51. {if:else}
  52. <a href="{pagination_path}">{page_count}</a>
  53. {/if}
  54. {/pagination}
  55. {if next_path}<a class="next" href="{next_path}">Next page</a>{/if}
  56. </p>
  57. {/if}
  58. {/exp:low_googlesearch:results}
  59.  
  60. {/if}
  61. </div><!-- #contents -->
  62. {embed="_global/footer"}
Add Comment
Please, Sign In to add comment