Rev | Line | |
---|
[19033] | 1 | <?php |
---|
| 2 | /* |
---|
| 3 | Theme Name: Full_Background |
---|
[25999] | 4 | Version: 2.3 |
---|
[19033] | 5 | Description: theme Full_Background pour Piwigo. |
---|
| 6 | Theme URI: http://piwigo.org/ext/extension_view.php?eid=649 |
---|
[19042] | 7 | Author:Miklfe [piwitheme.fr] |
---|
| 8 | Author URI: http://piwitheme.fr |
---|
[19033] | 9 | */ |
---|
| 10 | $themeconf = array( |
---|
| 11 | 'name' => 'Full_Background', |
---|
| 12 | 'parent' => 'default', |
---|
[19210] | 13 | 'local_head' => 'local_head.tpl', |
---|
| 14 | |
---|
[19033] | 15 | ); |
---|
| 16 | |
---|
| 17 | load_language('theme.lang', PHPWG_THEMES_PATH.'Full_Background/'); |
---|
| 18 | |
---|
| 19 | |
---|
| 20 | add_event_handler('loc_begin_index', 'modify_nb_thumbnail_page'); |
---|
[19492] | 21 | if(!function_exists('modify_nb_thumbnail_page')) |
---|
[19033] | 22 | { |
---|
[19492] | 23 | function modify_nb_thumbnail_page() |
---|
| 24 | { |
---|
| 25 | global $user, $page; |
---|
| 26 | $user['nb_image_page']=999; |
---|
| 27 | $page['nb_image_page']=999; |
---|
[25999] | 28 | $conf['nb_categories_page']=999; |
---|
[19492] | 29 | } |
---|
[19033] | 30 | } |
---|
| 31 | |
---|
| 32 | add_event_handler('get_categories_menu_sql_where', 'mic_get_categories_menu_sql_where', EVENT_HANDLER_PRIORITY_NEUTRAL, 3 ); |
---|
[19492] | 33 | if(!function_exists('mic_get_categories_menu_sql_where')) |
---|
| 34 | { |
---|
| 35 | function mic_get_categories_menu_sql_where($where){ |
---|
| 36 | global $page; |
---|
| 37 | $where = '1'; |
---|
| 38 | return $where; |
---|
| 39 | } |
---|
[19033] | 40 | } |
---|
| 41 | |
---|
| 42 | add_event_handler('allow_increment_element_hit_count', 'stop_increment'); |
---|
| 43 | function stop_increment(){ |
---|
| 44 | } |
---|
| 45 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.