Changeset 10900
- Timestamp:
- 04/09/2009 01:16:14 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r10889 r10900 205 205 206 206 <li> 207 <input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" >207 <input type="checkbox" name="features[<?php echo $feature; ?>]" id="feature-id-<?php echo $feature; ?>" value="<?php echo $feature; ?>" /> 208 208 <label for="feature-id-<?php echo $feature; ?>"><?php echo $feature_name; ?></label> 209 209 </li> … … 273 273 add_action('install_themes_upload', 'install_themes_upload', 10, 1); 274 274 function install_themes_upload($page = 1) { 275 275 ?> 276 276 <h4><?php _e('Install a theme in .zip format') ?></h4> 277 277 <p class="install-help"><?php _e('If you have a theme in a .zip format, you may install it by uploading it here.') ?></p> 278 <form method="post" enctype="multipart/form-data" 279 action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>"><?php wp_nonce_field( 'theme-upload') ?> 280 <input type="file" name="themezip" /> <input type="submit" 281 class="button" value="<?php _e('Install Now') ?>" /></form> 282 <?php 278 <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('theme-install.php?tab=do_upload') ?>"> 279 <?php wp_nonce_field( 'theme-upload') ?> 280 <input type="file" name="themezip" /> 281 <input type="submit" class="button" value="<?php _e('Install Now') ?>" /> 282 </form> 283 <?php 283 284 } 284 285 … … 288 289 if ( empty($theme) ) 289 290 return; 290 //var_dump($theme);291 291 292 292 $name = wp_kses($theme->name, $themes_allowedtags); 293 293 $desc = wp_kses($theme->description, $themes_allowedtags); 294 294 //if ( strlen($desc) > 30 ) 295 // $desc = substr($desc, 0, 30) . '<span class="dots">...</span><span>' . substr($desc, 30) . '</span>';295 // $desc = substr($desc, 0, 15) . '<span class="dots">...</span><span>' . substr($desc, -15) . '</span>'; 296 296 297 297 $preview_link = $theme->preview_url . '?TB_iframe=true&width=600&height=400';
Note: See TracChangeset
for help on using the changeset viewer.