Changeset 6648 for extensions
- Timestamp:
- Jul 1, 2010, 8:17:33 PM (14 years ago)
- Location:
- extensions/nbc_ThemeChanger
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/nbc_ThemeChanger/admin/nbc_ThemeChanger_admin.php
r6642 r6648 105 105 $newconf_nbc_ThemeChanger .= ';'; 106 106 //echo ' Recup : '.$element_ThemeChanger[0]; 107 if ($element_ThemeChanger[1]) 107 108 $newconf_nbc_ThemeChanger .= $element_ThemeChanger[0].','.$element_ThemeChanger[1]; 108 109 } … … 212 213 'CATEGORY_ID' => $element_ThemeChanger[0], 213 214 'TEMPLATE' => $element_ThemeChanger[1], 215 'STATUS' => my_get_pwg_theme_status($element_ThemeChanger[1]), 214 216 'U_MODIFY' => add_url_params($page_ThemeChanger_admin, array( 215 217 'action' => 'mod_assoc', -
extensions/nbc_ThemeChanger/admin/nbc_ThemeChanger_admin.tpl
r6642 r6648 2 2 <link rel="stylesheet" href="plugins/nbc_ThemeChanger/theme/style.css" type="text/css" id="" /> 3 3 <script type="text/javascript" src="plugins/nbc_ThemeChanger/include/jquery.tablesorter.js"></script> 4 5 4 6 {literal} 5 7 … … 9 11 $.tablesorter.defaults.widgets = ['zebra']; 10 12 // extend the default setting to always sort on the first column 11 $.tablesorter.defaults.sortList = [[ 1,0]];13 $.tablesorter.defaults.sortList = [[0,0]]; 12 14 // On choisi ici la colonne 5 (l'index commence à 0) // On désactive le tri sur cette colonne 13 15 $.tablesorter.defaults.headers = { 14 16 2: { 17 sorter: false 18 } , 19 3: { 15 20 sorter: false 16 21 } … … 19 24 $("table").tablesorter(); 20 25 }); 26 </script> 27 28 <script type='text/javascript'> 29 $(function(){ 30 $(".assocLink").tipTip({ 31 maxWidth: "auto", 32 activation: "hover", 33 edgeOffset: 10, 34 defaultPosition: "top", 35 delay: 0 36 }); 37 }); 21 38 </script> 22 39 … … 40 57 <th>{'theme'|@translate}</th> 41 58 <th>{'action'|@translate}</th> 59 <th>{'Status'|@translate}</th> 42 60 </tr> 43 61 </thead> … … 49 67 <td>{$assoc.CATEGORY_NAME}</td> 50 68 <td>{$assoc.TEMPLATE}</td> 51 <td style="text-align:center;">52 <a href="{$assoc.U_MODIFY}"><img src="{$themeconf.icon_dir}/register.png" class="button" style="border:none" alt="{'modify_assoc'|@translate}" title="{'modify_assoc'|@translate}"></a>53 <a href="{$assoc.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate}');" ><img src="{$themeconf.icon_dir}/remove_s.png" class="button" style="border:none" alt="{'delete_assoc'|@translate}" title="{'delete_assoc'|@translate}"></a>69 <td class="TDcenter"> 70 <a href="{$assoc.U_MODIFY}"><img src="{$themeconf.icon_dir}/register.png" class="assocLink" alt="{'modify_assoc'|@translate}" title="{'modify_assoc'|@translate}"></a> 71 <a href="{$assoc.U_DELETE}" onclick="return confirm('{'Are you sure?'|@translate}');" ><img src="{$themeconf.icon_dir}/remove_s.png" class="assocLink" alt="{'delete_assoc'|@translate}" title="{'delete_assoc'|@translate}"></a> 54 72 </td> 73 <td class="TDcenter"> 74 {if ($assoc.STATUS=="Active")} 75 <img src="{$themeconf.icon_dir}/validate_s.png" class="assocLink" alt="{'Valide_assoc'|@translate}" title="{'Valide_assoc'|@translate}"> 76 {else} 77 {if ($assoc.STATUS=="Delete")} 78 <img src="{$themeconf.icon_dir}/errors.png" class="assocLink" alt="{'ErrorDelete_assoc'|@translate}" title="{'ErrorDelete_assoc'|@translate}" > 79 {else} 80 <img src="{$themeconf.icon_dir}/infos.png" class="assocLink" alt="{'ErrorUnactive_assoc'|@translate}" title="{'ErrorUnactive_assoc'|@translate}"> 81 {/if} 82 {/if} 83 </td> 55 84 56 85 </tr> -
extensions/nbc_ThemeChanger/include/functions_ThemeChanger.inc.php
r6642 r6648 71 71 } 72 72 73 /* 74 function my_exist e_theme ($themeId)73 74 function my_exist_pwg_theme ($themeId) 75 75 { 76 return -1;76 return realpath(PHPWG_ROOT_PATH.'themes'.'/'.$themeId); 77 77 } 78 78 79 79 80 function 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 /* 80 98 function my_get_pwg_themeName ($themeId) 81 99 { -
extensions/nbc_ThemeChanger/language/en_UK/plugin.lang.php
r3954 r6648 1 1 <?php 2 /***************V2.1.0.c*****************/ 3 $lang['Valide_assoc'] = 'Valide association '; 4 $lang['ErrorDelete_assoc'] = 'Association invalid because of suppress theme'; 5 $lang['ErrorUnactive_assoc'] = 'Association invalid because of inactive theme'; 2 6 3 7 $lang['title_assoc'] = 'ThemeChanger'; -
extensions/nbc_ThemeChanger/language/es_ES/plugin.lang.php
r3968 r6648 1 1 <?php 2 /***************V2.1.0.c*****************/ 3 $lang['Valide_assoc'] = 'Valide association'; 4 $lang['ErrorDelete_assoc'] = 'Association invalid because of suppress theme'; 5 $lang['ErrorUnactive_assoc'] = 'Association invalid because of inactive theme'; 6 2 7 3 8 $lang['title_assoc'] = 'ThemeChanger'; -
extensions/nbc_ThemeChanger/language/fr_FR/plugin.lang.php
r3954 r6648 1 1 <?php 2 /***************V2.1.0.c*****************/ 3 $lang['Valide_assoc'] = 'Association valide'; 4 $lang['ErrorDelete_assoc'] = 'Association invalide à cause d la supression du thème'; 5 $lang['ErrorUnactive_assoc'] = 'Association invalide à cause de la désactivation du thème'; 2 6 3 7 $lang['title_assoc'] = 'ThemeChanger'; -
extensions/nbc_ThemeChanger/language/hu_HU/plugin.lang.php
r6585 r6648 1 1 <?php 2 /***************V2.1.0.c*****************/ 3 $lang['Valide_assoc'] = 'Valide association '; 4 $lang['ErrorDelete_assoc'] = 'Association invalid because of suppress theme'; 5 $lang['ErrorUnactive_assoc'] = 'Association invalid because of inactive theme'; 2 6 3 7 $lang['title_assoc'] = 'ThemeChanger'; -
extensions/nbc_ThemeChanger/language/it_IT/plugin.lang.php
r4362 r6648 1 1 <?php 2 /***************V2.1.0.c*****************/ 3 $lang['Valide_assoc'] = 'Associazione valida'; 4 $lang['ErrorDelete_assoc'] = 'Associazione non valida a causa dell\'eliminazione del tema'; 5 $lang['ErrorUnactive_assoc'] = 'Associazione non valida a causa della disattivazione del tema'; 6 2 7 3 8 $lang['title_assoc'] = 'ThemeChanger'; -
extensions/nbc_ThemeChanger/main.inc.php
r6642 r6648 57 57 if (isset($page['category']['id']) and isset($category_theme[$page['category']['id']])) 58 58 { 59 $Defalut_user_theme = $user['theme']; 59 60 if (realpath(PHPWG_ROOT_PATH.'themes'.'/'.$category_theme[$page['category']['id']])) 60 61 $user['theme'] = $category_theme[$page['category']['id']]; 61 else 62 $user['theme'] = 'Sylvia'; 63 62 64 63 $template = new Template(PHPWG_ROOT_PATH.'themes', $user['theme']); 65 64 } -
extensions/nbc_ThemeChanger/theme/style.css
r6642 r6648 23 23 } 24 24 25 .assocLink{ 26 border: none; 27 width: 25px; 28 height: 25px; 29 30 } 31 td.TDcenter {text-align:center;}
Note: See TracChangeset
for help on using the changeset viewer.