Ignore:
Timestamp:
Apr 3, 2010, 3:33:04 PM (10 years ago)
Author:
Eric
Message:

[NBC_UserAdvManager]

  • Code refactoring for Piwigo 2.1 compliance
  • Bug 1508 fixed : Plugin displayed name doesn't show "nbc_" prefix any more
  • Bug 1551 fixed : There was a problem on very first time installation
  • Several translation fixes
  • Template files storage : All admin's templates are now in a "template" directory with css file
Location:
extensions/NBC_UserAdvManager/trunk/admin
Files:
11 added
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/admin/UAM_admin.php

    r5181 r5593  
    1414//ini_set('display_errors', true);
    1515
    16 include_once (PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
     16include_once(PHPWG_ROOT_PATH.'admin/include/tabsheet.class.php');
    1717include_once (PHPWG_ROOT_PATH.'/include/constants.php');
    1818$my_base_url = get_admin_plugin_menu_link(__FILE__);
     
    452452// |                           templates display                           |
    453453// +-----------------------------------------------------------------------+
    454   $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/global.tpl');
     454  $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/global.tpl');
    455455  $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
    456456
     
    573573      }
    574574      else $display = '';
    575      
    576       /* Plugin version inserted */
    577       $template->assign(
    578         array(
    579           'UAM_VERSION' => $version,
    580           'UAM_PATH'    => UAM_PATH,
    581           )
    582         );
    583575
    584576                $template->append(
     
    594586                        );
    595587                }
     588    /* Plugin version inserted */
     589    $template->assign(
     590      array(
     591        'UAM_VERSION'  => $version,
     592        'UAM_PATH'     => UAM_PATH,
     593      )
     594    );   
    596595// +-----------------------------------------------------------------------+
    597596// |                             errors display                            |
     
    609608// |                           templates display                           |
    610609// +-----------------------------------------------------------------------+
    611                 $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/userlist.tpl');
     610                $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/userlist.tpl');
    612611    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');         
    613612  }
    614613  else
    615614  {
    616                 array_push($page['infos'], l10n('Err_Userlist_Settings'));
     615                array_push($page['errors'], l10n('Err_Userlist_Settings'));
    617616  }
    618617  break;
     
    11631162// |                           templates display                           |
    11641163// +-----------------------------------------------------------------------+
    1165                 $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/usermanager.tpl');
     1164                $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/usermanager.tpl');
    11661165    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');         
    11671166        }
    11681167  else
    11691168  {
    1170                 array_push($page['infos'], l10n('Err_UserManager_Settings'));
     1169                array_push($page['errors'], l10n('Err_UserManager_Settings'));
    11711170  }
    11721171  break;
     
    15541553// |                           templates display                           |
    15551554// +-----------------------------------------------------------------------+
    1556                 $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/ghosttracker.tpl');
     1555                $template->set_filename('plugin_admin_content', dirname(__FILE__) . '/template/ghosttracker.tpl');
    15571556    $template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');         
    15581557        }
    15591558  else
    15601559  {
    1561                 array_push($page['infos'], l10n('Err_GhostTracker_Settings'));
     1560                array_push($page['errors'], l10n('Err_GhostTracker_Settings'));
    15621561  }
    15631562
Note: See TracChangeset for help on using the changeset viewer.