summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-10-13 13:12:20 +0100
committerRichard W.M. Jones <rjones@redhat.com>2010-10-13 13:12:20 +0100
commitb5cd122dbf77aac2c3148475e04cf02f26e8ec5f (patch)
tree180801c6a029113ffe59432d8279f981ad12ba7c
parent932005abd5b10b887c7c075ff426e12fc693aa57 (diff)
Add Google custom search (disabled).
-rw-r--r--website/templates/google_search10
-rw-r--r--website/templates/page2
2 files changed, 12 insertions, 0 deletions
diff --git a/website/templates/google_search b/website/templates/google_search
new file mode 100644
index 0000000..1bca564
--- /dev/null
+++ b/website/templates/google_search
@@ -0,0 +1,10 @@
+<div id="cse">Loading</div>
+<script src="http://www.google.com/jsapi" type="text/javascript"></script>
+<script type="text/javascript">
+ google.load('search', '1', {language : 'en'});
+ google.setOnLoadCallback(function() {
+ var customSearchControl = new google.search.CustomSearchControl('003698069423892724783:r4jn3nsyeoq');
+ customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
+ customSearchControl.draw('cse');
+ }, true);
+</script>
diff --git a/website/templates/page b/website/templates/page
index ec98e14..348346a 100644
--- a/website/templates/page
+++ b/website/templates/page
@@ -45,6 +45,8 @@ Back to <a href="../">[% section_titles.$section %]</a>.
</p>
[%- END %]
+[%# INCLUDE google_search -%]
+
<p id="vtfooter">
Copyright &copy; [% year %] <a href="http://redhat.com/">Red Hat, Inc.</a> &mdash;
License: <a href="[% topdir %]/about/#license">GPL or CC</a> &mdash;