Changeset 15761
- Timestamp:
- 10/09/2010 08:59:57 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r15656 r15761 137 137 <label class="screen-reader-text" for="theme-search-input"><?php _e('Search Themes'); ?>:</label> 138 138 <input type="text" id="tag-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 139 <input type="submit" value="<?php esc_attr_e('Search Themes'); 139 <input type="submit" value="<?php esc_attr_e('Search Themes'); ?>" class="button" /> 140 140 <a id="filter-click" href="?filter=1"><?php _e( 'Feature Filter' ); ?></a> 141 141 </p> … … 143 143 <br class="clear"/> 144 144 145 <div id="filters" <?php if ( $tpage != 'filter' ) echo ' style="display: none"' ?>>145 <div id="filters" <?php if ( ! isset( $tpage ) || $tpage != 'filter' ) echo ' style="display: none"' ?>> 146 146 <?php $feature_list = get_theme_feature_list(); ?> 147 147 <div class="feature-filter"> 148 148 <p class="install-help"><?php _e('Theme filters') ?></p> 149 149 150 <?php foreach ( $feature_list as $feature_name => $features ) : ?>151 <?php$feature_name = esc_html( $feature_name ); ?>150 <?php foreach ( $feature_list as $feature_name => $features ) : 151 $feature_name = esc_html( $feature_name ); ?> 152 152 153 153 <div class="feature-container"> 154 154 <div class="feature-name"><?php echo $feature_name ?></div> 155 155 156 156 <ol style="float: left; width: 725px;" class="feature-group"> 157 <?php foreach ( $features as $key => $feature ) : ?> 158 <?php 157 <?php foreach ( $features as $key => $feature ) : 159 158 $feature_name = $feature; 160 159 $feature_name = esc_html( $feature_name ); … … 162 161 ?> 163 162 <li> 164 <input type="checkbox" name="features[<?php echo $key; ?>]" id="feature-id-<?php echo $key; ?>" value="<?php echo $key; ?>" <?php if ( in_array( $key, $checked_features ) ) echo ' checked="checked"'?>/>163 <input type="checkbox" name="features[<?php echo $key; ?>]" id="feature-id-<?php echo $key; ?>" value="<?php echo $key; ?>" <?php checked( isset( $checked_features ) && in_array( $key, $checked_features ) ); ?>/> 165 164 <label for="feature-id-<?php echo $key; ?>"><?php echo $feature_name; ?></label> 166 165 </li> 167 <?php 166 <?php endforeach; ?> 168 167 </ol> 169 168 </div> 170 <?php 169 <?php endforeach; ?> 171 170 172 171 <div class="feature-container"> 173 <input style="margin-left: 120px" type="submit" class="button-secondary submitter" value="<?php _e( 'Apply Filters' ); ?>" />172 <input style="margin-left: 120px" type="submit" class="button-secondary submitter" value="<?php esc_attr_e( 'Apply Filters' ); ?>" /> 174 173 175 174 <small><a id="mini-filter-click" href="<?php echo admin_url( 'themes.php' ); ?>"><?php _e( 'Close filters' )?></a></small>
Note: See TracChangeset
for help on using the changeset viewer.