Changeset 29920


Ignore:
Timestamp:
Oct 7, 2014, 10:30:00 PM (10 years ago)
Author:
rvelices
Message:

rv_gmaps added near: quick search scope (experimental so far)

Location:
extensions/rv_gmaps/trunk
Files:
1 added
1 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/main.inc.php

    r28498 r29920  
    1717add_event_handler('blockmanager_apply', 'rvm_blockmanager_apply');
    1818
     19add_event_handler('qsearch_pre', 'rvm_qsearch_pre', EVENT_HANDLER_PRIORITY_NEUTRAL, dirname(__FILE__).'/qsearch.inc.php');
     20add_event_handler('qsearch_get_scopes', 'rvm_qsearch_get_scopes', EVENT_HANDLER_PRIORITY_NEUTRAL, dirname(__FILE__).'/qsearch.inc.php');
     21add_event_handler('get_popup_help_content', 'rvm_get_popup_help', EVENT_HANDLER_PRIORITY_NEUTRAL, dirname(__FILE__).'/qsearch.inc.php');
     22
    1923global $rvm_dir;
    2024$rvm_dir = basename( dirname(__FILE__) );
    2125
    22 global $conf;
    2326
    2427function rvm_index_cat_thumbs_displayed()
     
    4750        global $page, $filter, $template, $rvm_dir;
    4851
    49         //if ( !is_admin() ) return; // TEMP
    5052        if ( isset($page['chronology_field']) || $filter['enabled'] )
    5153                return;
    5254
     55        $geo = @$page['qsearch_details']['geo'];
     56        if (!empty($geo) && !@$page['start'])
     57        {
     58                include_once(dirname(__FILE__).'/qsearch.inc.php');
     59                rvm_qsearch_show_alt($geo);
     60        }
    5361        if ( 'categories' == @$page['section'])
    5462        { // flat or no flat ; has subcats or not;  ?
Note: See TracChangeset for help on using the changeset viewer.