aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap2/templates/search_sidebar.html
blob: 24fdaadfe3d52f4de3de624fa14acce19d042811 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 %}