Changeset 10885
- Timestamp:
- 04/07/2009 05:02:25 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r10883 r10885 179 179 $feature_list = install_themes_feature_list( ); 180 180 echo '<div class="feature-filter">'; 181 $trans = array ('Colors' => __('Colors'), 'black' => __('Black'), 'blue' => __('Blue'), 'brown' => __('Brown'), 182 'green' => __('Green'), 'orange' => __('Orange'), 'pink' => __('Pink'), 'purple' => __('Purple'), 'red' => __('Red'), 183 'silver' => __('Silver'), 'tan' => __('Tan'), 'white' => __('White'), 'yellow' => __('Yellow'), 'dark' => __('Dark'), 184 'light' => __('Light'), 'Columns' => __('Columns'), 'one-column' => __('One Column'), 'two-columns' => __('Two Columns'), 185 'three-columns' => __('Three Columns'), 'four-columns' => __('Four Columns'), 'left-sidebar' => __('Left Sidebar'), 186 'right-sidebar' => __('Right Sidebar'), 'Width' => __('Width'), 'fixed-width' => __('Fixed Width'), 'flexible-width' => __('Flexible Width'), 187 'Features' => __('Features'), 'custom-colors' => __('Custom Colors'), 'custom-header' => __('Custom Header'), 'theme-options' => __('Theme Options'), 188 'threaded-comments' => __('Threaded Comments'), 'sticky-post' => __('Sticky Post'), 'microformats' => __('Microformats'), 189 'Subject' => __('Subject'), 'holiday' => __('Holiday'), 'photoblogging' => __('Photoblogging'), 'seasonal' => __('Seasonal'), 190 ); 181 191 182 192 foreach ( (array) $feature_list as $feature_name => $features ) { 183 $html_safe['feature_name'] = wp_specialchars( $feature_name ); 184 echo '<div class="feature-name">' . $html_safe['feature_name'] . '</div>'; 193 if ( isset($trans[$feature_name]) ) 194 $feature_name = $trans[$feature_name]; 195 $feature_name = wp_specialchars( $feature_name ); 196 echo '<div class="feature-name">' . $feature_name . '</div>'; 185 197 186 198 echo '<ol style="float: left; width: 725px;" class="feature-group">'; 187 199 foreach ( $features as $feature ) { 188 $html_safe['feature'] = wp_specialchars( $feature ); 200 $feature_name = $feature; 201 if ( isset($trans[$feature]) ) 202 $feature_name = $trans[$feature]; 203 $feature_name = wp_specialchars( $feature_name ); 204 $feature = attribute_escape($feature); 189 205 ?> 190 206 191 207 <li> 192 <input type="checkbox" name="features[<?php echo $ html_safe['feature']; ?>]" id="feature-id-<?php echo $html_safe['feature']; ?>" value="<?php echo $html_safe['feature']; ?>">193 <label for="feature-id-<?php echo $ html_safe['feature']; ?>"><?php echo $html_safe['feature']; ?></label>208 <input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>"> 209 <label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label> 194 210 </li> 195 211
Note: See TracChangeset
for help on using the changeset viewer.