Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {embed="_global/header" bodyclass="int generic"}
- <div id="main">
- {exp:low_googlesearch:form result_page="{segment_1}" form_class="search"}
- <fieldset>
- <legend>Search this site</legend>
- <input type="text" name="keywords" id="keywords" />
- <button type="submit">Search</button>
- </fieldset>
- {/exp:low_googlesearch:form}
- {if "{segment_2}" != ""}
- {exp:low_googlesearch:results keywords="{segment_2}" oe="utf8" cx="10238740198347018932401:f1m0woumyim" site="default_collection"}
- {if keywords}
- <p>Searched for <strong>{keywords}</strong><br />
- Results <strong>{start_result} - {end_result}</strong> of about <strong>{approx_results}</strong>.</p>
- {/if}
- {if keymatch}
- <p>KeyMatch: <a href="{keymatch_url}">{keymatch_description}</a></p>
- {/if}
- {if total_synonyms}
- <h3>Also try:</h3>
- <ul>
- {synonyms}
- <li><a href="{path="search/results/{synonym_url}"}">{synonym_name}</a></li>
- {/synonyms}
- </ul>
- {/if}
- {entries}
- {if count == 1}<ol id="searchresults">{/if}
- <li{if filtered} class="level2"{/if}>
- <h3><a href="{url}">{title}</a></h3>
- {if excerpt}<span class="excerpt">{excerpt}</span>{/if}
- <span class="meta">{display_url}</span>
- {if more_url}<span class="sitesearch">[ <a href="{more_url_path}">More results from {more_url}</a> ]</span>{/if}
- </li>
- {if count == total_results}</ol>{/if}
- {/entries}
- {if total_pages > 1}
- <p class="pagination">
- <span class="count">Page {current_page} of {total_pages}</span>
- {if previous_path}<a class="prev" href="{previous_path}">Previous page</a>{/if}
- {pagination}
- {if is_active}
- <strong>{page_count}</strong>
- {if:else}
- <a href="{pagination_path}">{page_count}</a>
- {/if}
- {/pagination}
- {if next_path}<a class="next" href="{next_path}">Next page</a>{/if}
- </p>
- {/if}
- {/exp:low_googlesearch:results}
- {/if}
- </div><!-- #contents -->
- {embed="_global/footer"}
Add Comment
Please, Sign In to add comment