Changeset 10299
- Timestamp:
- Apr 11, 2011, 8:14:32 PM (13 years ago)
- Location:
- extensions/Icons_Set
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/Icons_Set/admin.php
r10297 r10299 42 42 43 43 if($ext_fichier == 'conf.php') { //On ne prend que les .conf.php 44 $path = str_replace(" /plugins/Icons_Set", "", $path);44 $path = str_replace("./plugins/Icons_Set/icons/", "", $path); 45 45 $list_iconconf_path[]=$path; 46 46 } … … 131 131 $themes->sort_fs_themes(); 132 132 $all_themes=array(); 133 foreach ($conf_themes as $theme_id => $iconset) // theme supprimé133 foreach ($conf_themes as $theme_id => $iconset) 134 134 { 135 135 $all_themes[$theme_id]=array( … … 140 140 ); 141 141 } 142 143 $all_icons=array(); 144 $values=array(); 145 $output=array(); 146 foreach ($conf_icons as $iconset) 147 { 148 include_once('icons/'.$iconset); 149 $all_icons[]=array( 150 'path'=>$iconset, 151 'name' => $iconsetconf['name'], 152 'id' => $iconsetconf['id'], 153 'icon_file' => $iconsetconf['icon_file'], 154 'css_file' => $iconsetconf['css_file'], 155 ); 156 $values[]=$iconset; 157 $output[]=$iconsetconf['name']; 158 } 142 159 $template->assign(array( 143 160 'all_themes' => $all_themes, 144 'all_icons' => $conf_icons, 161 'all_icons' => $all_icons, 162 'values' => $values, 163 'output' => $output, 145 164 )); 146 165 -
extensions/Icons_Set/template/admin.css
r10297 r10299 9 9 overflow: hidden; 10 10 text-align: center; 11 width:100%; 11 12 } -
extensions/Icons_Set/template/admin.tpl
r10297 r10299 15 15 <div> 16 16 <select name="set"> 17 <option value="NULL">{'iconset_nochange'|@translate}</option>18 17 <option value="NULL">{'iconset_nothing'|@translate}</option> 19 {foreach from=$list_set item=ls} 20 <option value="{$ls.FILE}">{$ls.TEXTE}</option> 21 {/foreach} 18 {html_options output=$output values=$values selected=$theme.icon} 22 19 </select> 23 20 </div>
Note: See TracChangeset
for help on using the changeset viewer.