Changeset 2924 for branches/2.0/admin
- Timestamp:
- Dec 6, 2008, 3:31:02 AM (15 years ago)
- Location:
- branches/2.0/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/admin/extend_for_templates.php
r2713 r2924 103 103 'tags.tpl' => 'tags', 104 104 'upload.tpl' => 'upload',); 105 $flip_templates = array_flip($eligible_templates); 105 106 $flip_templates = array_flip($eligible_templates); 107 108 $available_templates = array_merge( 109 array('N/A' => '----------'), 110 get_dirs(PHPWG_ROOT_PATH.'template')); 111 106 112 // +-----------------------------------------------------------------------+ 107 113 // | selected templates | … … 119 125 $url_keyword = $_POST['url'][$i]; 120 126 if ($url_keyword == '----------') $url_keyword = 'N/A'; 127 $bound_tpl = $_POST['bound'][$i]; 128 if ($bound_tpl == '----------') $bound_tpl = 'N/A'; 121 129 if ($handle != 'N/A') 122 130 { 123 $replacements[$newtpl] = array($handle, $url_keyword );131 $replacements[$newtpl] = array($handle, $url_keyword, $bound_tpl); 124 132 } 125 133 $i++; … … 151 159 foreach ($new_extensions as $file) 152 160 { 153 $tpl_extension[$file] = array('N/A', 'N/A' );161 $tpl_extension[$file] = array('N/A', 'N/A', 'N/A'); 154 162 } 155 163 … … 168 176 $handle = $conditions[0]; 169 177 $url_keyword = $conditions[1]; 178 $bound_tpl = $conditions[2]; 170 179 { 171 180 $template->append('extents', 172 181 array( 173 'replacer' => $file, 174 'url_parameter' => $relevant_parameters, 175 'original_tpl' => array_keys($eligible_templates), 176 'selected_tpl' => $flip_templates[$handle], 177 'selected_url' => $url_keyword,) 182 'replacer' => $file, 183 'url_parameter' => $relevant_parameters, 184 'original_tpl' => array_keys($eligible_templates), 185 'bound_tpl' => $available_templates, 186 'selected_tpl' => $flip_templates[$handle], 187 'selected_url' => $url_keyword, 188 'selected_bound' => $bound_tpl,) 178 189 ); 179 190 } -
branches/2.0/admin/template/goto/default-layout.css
r2675 r2924 8 8 } 9 9 10 TABLE.table2 TD {10 TABLE.table2 TD, TABLE.table2 TH { 11 11 padding: 0 5px; 12 12 } -
branches/2.0/admin/template/goto/extend_for_templates.tpl
r2531 r2924 10 10 <th>{'Original templates'|@translate}</th> 11 11 <th>{'Optional URL keyword'|@translate}</th> 12 <th>{'Bound template'|@translate}</th> 12 13 </tr> 13 14 {foreach from=$extents item=tpl name=extent_loop} … … 23 24 {html_options name=url[] output=$tpl.url_parameter values=$tpl.url_parameter selected=$tpl.selected_url} 24 25 </td> 26 <td> 27 {html_options name=bound[] output=$tpl.bound_tpl values=$tpl.bound_tpl selected=$tpl.selected_bound} 28 </td> 25 29 </tr> 26 30 {/foreach}
Note: See TracChangeset
for help on using the changeset viewer.