Renamed module name to google_search (custom_search)

Clean code.
Updated google custom search to handle quota limit and no query submit.
Updated encoding issues for input searches: like "void safe" and "void + safe".
This commit is contained in:
jvelilla
2015-10-14 11:51:59 -03:00
parent 454d92f85b
commit 9263f31521
18 changed files with 435 additions and 256 deletions

View File

@@ -0,0 +1,6 @@
{
"gcse": {
"cx":"015017565055626880074:9gdgp1fvt-g",
"secret_key":"AIzaSyBKAXNofo-RqZb6kUmpbiCwPEy7n7-E51k"
}
}

View File

@@ -4,7 +4,7 @@
</header>
<!-- list of results -->
<ol>
<ol start="{$result.current_page.start_index/}">
<!-- Item result -->
{foreach from="$result.items" item="item"}
@@ -18,7 +18,7 @@
</h3>
</header>
<blockquote cite="{$item.link/}">
<p>{htmlentities}{$item.snippet/}{/htmlentities}</p>
<p>{$item.html_snippet/}</p>
<footer>
<p><abbr title="Uniform Resource Locator">Source</abbr> <a href="{$item.link/}">{$item.display_link/}</a></p>
</footer>
@@ -37,4 +37,4 @@
<li><a href="{$site_url/}gcse/?q={$result.next_page.search_terms/}&amp;start={$result.next_page.start_index/}&amp;num={$result.next_page.count/}">Next</a></li>
{/if}
</ul>
</section>
</section>