Ignore:
Timestamp:
Mar 27, 2020, 10:01:26 AM (4 years ago)
Author:
ddtddt
Message:

[uploadt1menu] compatibility bootstrap

Location:
extensions/uploadt1menu
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/uploadt1menu/initadmin.php

    r31447 r32063  
    33// | Upload 1 menu plugin for piwigo                                       |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2011-2016 ddtddt               http://temmii.com/piwigo/ |
     5// | Copyright(C) 2011-2020 ddtddt               http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/uploadt1menu/main.inc.php

    r31447 r32063  
    1212// | Upload 1 menu plugin for piwigo                                       |
    1313// +-----------------------------------------------------------------------+
    14 // | Copyright(C) 2011-2016 ddtddt               http://temmii.com/piwigo/ |
     14// | Copyright(C) 2011-2020 ddtddt               http://temmii.com/piwigo/ |
    1515// +-----------------------------------------------------------------------+
    1616// | This program is free software; you can redistribute it and/or modify  |
     
    8686    if (($block = $menu->get_block( 'mbUpload' )) != null) {
    8787        $template->set_template_dir(U1M_PATH.'template/');
    88         $block->template = 'menubar_upload.tpl';
     88       
     89                if ($user['theme'] == 'bootstrapdefault'||$user['theme'] == 'bootstrap_darkroom'){
     90                  $block->template = 'menubar_upload_Bootstrap_Default.tpl';           
     91                }else if ($user['theme'] == 'smartpocket'){
     92                  $block->template = 'menubar_upload_smartpocket.tpl';         
     93                }else{
     94                  $block->template = 'menubar_upload.tpl';
     95                }
    8996    }
    9097}
Note: See TracChangeset for help on using the changeset viewer.