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

[uploadt1menu] compatibility bootstrap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.