Changeset 31875 for extensions
- Timestamp:
- Jul 15, 2017, 8:12:22 AM (7 years ago)
- Location:
- extensions/Contact1menu
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Contact1menu/initadmin.php
r31457 r31875 3 3 // | Contact 1 menu plugin for piwigo | 4 4 // +-----------------------------------------------------------------------+ 5 // | Copyright(C) 2010 - 201 6ddtddt http://temmii.com/piwigo/ |5 // | Copyright(C) 2010 - 2017 ddtddt http://temmii.com/piwigo/ | 6 6 // +-----------------------------------------------------------------------+ 7 7 // | This program is free software; you can redistribute it and/or modify | -
extensions/Contact1menu/main.inc.php
r31457 r31875 12 12 // | Contact 1 menu plugin for piwigo | 13 13 // +-----------------------------------------------------------------------+ 14 // | Copyright(C) 2010 - 201 6ddtddt http://temmii.com/piwigo/ |14 // | Copyright(C) 2010 - 2017 ddtddt http://temmii.com/piwigo/ | 15 15 // +-----------------------------------------------------------------------+ 16 16 // | This program is free software; you can redistribute it and/or modify | … … 58 58 function c1m_apply($menu_ref_arr) 59 59 { 60 global $template ;61 60 global $template, $user; 61 //var_dump($user); 62 62 $menu = & $menu_ref_arr[0]; 63 63 … … 75 75 { 76 76 $template->set_template_dir(C1M_PATH.'template/'); 77 $block->template = 'menubar_contact.tpl'; 77 if ($user['theme'] == 'bootstrapdefault'){ 78 $block->template = 'menubar_contact_Bootstrap_Default.tpl'; 79 }else if ($user['theme'] == 'smartpocket'){ 80 $block->template = 'menubar_contact_smartpocket.tpl'; 81 }else{ 82 $block->template = 'menubar_contact.tpl'; 83 } 78 84 } 79 85 }
Note: See TracChangeset
for help on using the changeset viewer.