diff options
author | Kura <kura@kura.io> | 2014-06-09 14:11:01 +0100 |
---|---|---|
committer | Kura <kura@kura.io> | 2014-06-09 14:11:01 +0100 |
commit | 520b94f9139818106ebcacdf341b84a7d5f2ef27 (patch) | |
tree | eed50acbec4382e4c827a4bec1ba52ce22b171d1 /new-bootstrap2/templates/search_sidebar.html | |
parent | 32607120f455d53c6da8b755bd2529abad715046 (diff) | |
parent | 8de98b30a54eb942c107d3a2d8c6908e9ed7049f (diff) | |
download | pelican-themes-520b94f9139818106ebcacdf341b84a7d5f2ef27.tar.gz |
Merge pull request #62 from infinitylx/master
Add new theme
Diffstat (limited to 'new-bootstrap2/templates/search_sidebar.html')
-rw-r--r-- | new-bootstrap2/templates/search_sidebar.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/new-bootstrap2/templates/search_sidebar.html b/new-bootstrap2/templates/search_sidebar.html new file mode 100644 index 0000000..24fdaad --- /dev/null +++ b/new-bootstrap2/templates/search_sidebar.html @@ -0,0 +1,15 @@ +{% if GOOGLE_CUSTOM_SEARCH_SIDEBAR %} +<li class="nav-header"><h4><i class="icon-search"></i>Google Search</h4></li> +<div id="cse" style="width: 100%;">Loading</div> +<script src="http://www.google.com/jsapi" type="text/javascript"></script> +<script type="text/javascript"> + google.load('search', '1'); + google.setOnLoadCallback(function() { + var customSearchOptions = {}; var customSearchControl = new google.search.CustomSearchControl( + '{{GOOGLE_CUSTOM_SEARCH_SIDEBAR}}', customSearchOptions); + customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET); + customSearchControl.draw('cse'); + }, true); +</script> +<link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" /> +{% endif %} |