Ignore:
Timestamp:
Jul 1, 2010, 8:17:33 PM (14 years ago)
Author:
datajulien
Message:

theme changer
Amélioration de la gestion des thèmes désactivés ou supprimés par l'ajout d'un indicateur de l'état de l'association.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/nbc_ThemeChanger/include/functions_ThemeChanger.inc.php

    r6642 r6648  
    7171}
    7272
    73 /*
    74 function my_existe_theme ($themeId)
     73
     74function my_exist_pwg_theme ($themeId)
    7575{
    76         return -1;
     76        return realpath(PHPWG_ROOT_PATH.'themes'.'/'.$themeId);
    7777}
    7878
    7979
     80function my_get_pwg_theme_status($themeId)
     81{
     82        if (!my_exist_pwg_theme($themeId))
     83                return 'Delete';
     84        else
     85        {
     86                $themes = my_get_pwg_themes();
     87                $i_themeName = 0;
     88                while (ISSET($themes[$i_themeName])){
     89                        if ($themes[$i_themeName]['id'] == $themeId)
     90                                return 'Active';
     91                        $i_themeName++;
     92                }
     93        }
     94        return 'Inactive';
     95}
     96
     97/*
    8098function my_get_pwg_themeName ($themeId)
    8199{
Note: See TracChangeset for help on using the changeset viewer.