Ignore:
Timestamp:
03/09/2006 08:07:26 AM (6 years ago)
Author:
cirrus
Message:

Add: google suggest-like search input. Closes #93
Add: show_map=no option to not display the map. Closes #47

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/includes/pages/nodes/nodes_search.php

    r140 r154  
    105105                $this->tpl['link_fullmap'] = makelink(array("page" => "gmap", "node" => get('node'))); 
    106106                $this->tpl['link_gearth'] = makelink(array("page" => "gearth", "subpage" => "download", "node" => get('node'), "show_p2p" => "1", "show_aps" => "1", "show_clients" => "1", "show_unlinked" => "1", "show_links_p2p" => "1", "show_links_client" => "1")); 
    107                 $this->tpl['gmap_key_ok'] = include_gmap("?page=gmap&subpage=js&node=".get('node')); 
     107                if(get('show_map') == "no") $this->tpl['gmap_key_ok'] = "nomap"; 
     108                else $this->tpl['gmap_key_ok'] = include_gmap("?page=gmap&subpage=js&node=".get('node')); 
    108109 
    109110                return template($this->tpl, __FILE__); 
Note: See TracChangeset for help on using the changeset viewer.