]> git.somenet.org - somenet/www-somenet-org.git/blob - theme/templates/search_sidebar.html
content/ntp.md
[somenet/www-somenet-org.git] / theme / templates / search_sidebar.html
1 {% if GOOGLE_CUSTOM_SEARCH_SIDEBAR %}
2 <li class="nav-header"><h4><i class="icon-search"></i>Google Search</h4></li>
3 <div id="cse" style="width: 100%;">Loading</div>
4 <script src="http://www.google.com/jsapi" type="text/javascript"></script>
5 <script type="text/javascript">
6   google.load('search', '1');
7   google.setOnLoadCallback(function() {
8     var customSearchOptions = {};  var customSearchControl = new google.search.CustomSearchControl(
9       '{{GOOGLE_CUSTOM_SEARCH_SIDEBAR}}', customSearchOptions);
10     customSearchControl.setResultSetSize(google.search.Search.SMALL_RESULTSET);
11     customSearchControl.draw('cse');
12   }, true);
13 </script>
14 <link rel="stylesheet" href="http://www.google.com/cse/style/look/default.css" type="text/css" />
15 {% endif %}