Ignore:
Timestamp:
Mar 21, 2007, 1:34:51 PM (14 years ago)
Author:
erational@…
Message:

ajout lien doc + support de balise dynamique #FORMULAIRE_RECHERCHE_GOOGLE{requete}

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_dev_/google_ajax_search/googleajaxsearch_pipeline.php

    r10569 r10573  
    2626    <!-- google ajax api search -->
    2727    <link href="http://www.google.com/uds/css/gsearch.css" type="text/css" rel="stylesheet"/>
    28     <script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&key='.$google_key.'" type="text/javascript"></script>
    29     <script language="Javascript" type="text/javascript">
    30     //<![CDATA[
    31 
    32     function OnLoad() {
    33       // Create a search control
    34       var searchControl = new GSearchControl();
    35      
    36       // web search with options
    37       var siteSearch = new GwebSearch();
    38       siteSearch.setSiteRestriction("'.$adresse_site.'");
    39       var options = new GsearcherOptions();
    40       options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);
    41      
    42       // add websearch
    43       searchControl.addSearcher(siteSearch, options);
    44      
    45       // tell the searcher to draw itself and tell it where to attach
    46       searchControl.draw(document.getElementById("searchcontrol"));
    47 
    48     }
    49     GSearch.setOnLoadCallback(OnLoad);
    50 
    51     //]]>
    52     </script>';
    53                
     28    <script src="http://www.google.com/uds/api?file=uds.js&amp;v=1.0&key='.$google_key.'" type="text/javascript"></script>';
    5429       
    5530        return $flux;
Note: See TracChangeset for help on using the changeset viewer.