plugins/gallery/search.php
changeset 31 3e8d2acd7388
parent 16 36dd990c0c25
child 42 7c6e2e97aa08
equal deleted inserted replaced
30:689b095d02cf 31:3e8d2acd7388
    14  
    14  
    15 //
    15 //
    16 // Search results hook
    16 // Search results hook
    17 //
    17 //
    18 
    18 
    19 $plugins->attachHook('search_results', 'gal_searcher($q, $offset);');
    19 $plugins->attachHook('search_results', 'if ( !isset($offset) ) $offset =& $start; gal_searcher($q, $offset);');
    20 $plugins->attachHook('search_global_inner', 'snapr_search_new_api($query, $query_phrase, $scores, $page_data, $case_sensitive, $word_list);');
    20 $plugins->attachHook('search_global_inner', 'snapr_search_new_api($query, $query_phrase, $scores, $page_data, $case_sensitive, $word_list);');
    21 
    21 
    22 $plugins->attachHook('compile_template', '
    22 $plugins->attachHook('compile_template', '
    23   // CSS for gallery browser
    23   // CSS for gallery browser
    24   $template->add_header(\'<link rel="stylesheet" href="' . scriptPath . '/plugins/gallery/browser.css" type="text/css" />\');
    24   $template->add_header(\'<link rel="stylesheet" href="' . scriptPath . '/plugins/gallery/browser.css" type="text/css" />\');