Changeset 31875 for extensions


Ignore:
Timestamp:
Jul 15, 2017, 8:12:22 AM (7 years ago)
Author:
ddtddt
Message:

[extensions] - Contact1menu - change for smartpocket and bootstapdefault

Location:
extensions/Contact1menu
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/Contact1menu/initadmin.php

    r31457 r31875  
    33// | Contact 1 menu plugin for piwigo                                      |
    44// +-----------------------------------------------------------------------+
    5 // | Copyright(C) 2010 - 2016 ddtddt             http://temmii.com/piwigo/ |
     5// | Copyright(C) 2010 - 2017 ddtddt             http://temmii.com/piwigo/ |
    66// +-----------------------------------------------------------------------+
    77// | This program is free software; you can redistribute it and/or modify  |
  • extensions/Contact1menu/main.inc.php

    r31457 r31875  
    1212// | Contact 1 menu plugin for piwigo                                      |
    1313// +-----------------------------------------------------------------------+
    14 // | Copyright(C) 2010 - 2016 ddtddt             http://temmii.com/piwigo/ |
     14// | Copyright(C) 2010 - 2017 ddtddt             http://temmii.com/piwigo/ |
    1515// +-----------------------------------------------------------------------+
    1616// | This program is free software; you can redistribute it and/or modify  |
     
    5858  function c1m_apply($menu_ref_arr)
    5959  {
    60     global $template;
    61 
     60    global $template, $user;
     61        //var_dump($user);
    6262    $menu = & $menu_ref_arr[0];
    6363   
     
    7575    {
    7676      $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                }
    7884    }
    7985  }
Note: See TracChangeset for help on using the changeset viewer.