Ignore:
Timestamp:
10/06/11 13:45:36 (8 years ago)
Author:
mistic100
Message:

remove a prefilter for a better integration, add an option to display a mark on thumbnails list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/Back2Front/main.inc.php

    r11219 r12361  
    2424} 
    2525 
     26if (script_basename() == 'index') 
     27{ 
     28  add_event_handler('loc_end_index_thumbnails', 'Back2Front_thumbnails', 99, 2); 
     29} 
     30 
    2631if (script_basename() == 'admin') 
    2732{ 
    2833  add_event_handler('loc_begin_admin_page', 'Back2Front_picture_modify'); 
    2934   
    30         add_event_handler('get_admin_plugin_menu_links', 'Back2Front_admin_menu'); 
    31         function Back2Front_admin_menu($menu)  
    32         { 
    33                 array_push($menu, array( 
    34                         'NAME' => 'Back2Front', 
    35                         'URL' => get_root_url().'admin.php?page=plugin-' . B2F_DIR)); 
    36                 return $menu; 
    37         } 
     35  add_event_handler('get_admin_plugin_menu_links', 'Back2Front_admin_menu'); 
     36  function Back2Front_admin_menu($menu)  
     37  { 
     38    array_push($menu, array( 
     39      'NAME' => 'Back2Front', 
     40      'URL' => get_root_url().'admin.php?page=plugin-' . B2F_DIR)); 
     41    return $menu; 
     42  } 
    3843} 
    3944 
Note: See TracChangeset for help on using the changeset viewer.