Changeset 10654
- Timestamp:
- 02/26/2009 02:46:51 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/theme-install.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/theme-install.php
r10653 r10654 269 269 $type = isset($_REQUEST['type']) ? stripslashes( $_REQUEST['type'] ) : ''; 270 270 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; 271 272 $themes_allowedtags = array('a' => array('href' => array(),'title' => array(), 'target' => array()),273 'abbr' => array('title' => array()),'acronym' => array('title' => array()),274 'code' => array(), 'pre' => array(), 'em' => array(),'strong' => array());275 276 271 ?> 277 272 <div class="tablenav"> … … 336 331 $action_links = array(); 337 332 $action_links[] = '<a href="' . admin_url('theme-install.php?tab=theme-information&theme=' . $theme->slug . 338 '&TB_iframe=true&width=600&height=800') . '" class=" buttonthickbox onclick" title="' . attribute_escape(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>';339 $action_links[] = '<a href="' . $preview_link . '" class=" buttonthickbox thickbox-preview onclick previewlink" title="' . attribute_escape(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>';333 '&TB_iframe=true&width=600&height=800') . '" class="thickbox onclick" title="' . attribute_escape(sprintf(__('Install "%s"'), $name)) . '">' . __('Install') . '</a>'; 334 $action_links[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview onclick previewlink" title="' . attribute_escape(sprintf(__('Preview "%s"'), $name)) . '">' . __('Preview') . '</a>'; 340 335 341 336 $action_links = apply_filters('theme_install_action_links', $action_links, $theme); 342 $actions = implode ( ' ', $action_links );343 echo " 344 <a class='thickbox thickbox-preview screenshot' href=' $preview_link' title='" . attribute_escape(sprintf(__('Preview "%s"'), $name)) . "'>345 <img src=' {$theme->screenshot_url}' width='150' />337 $actions = implode ( ' | ', $action_links ); 338 ?> 339 <a class='thickbox thickbox-preview screenshot' href='<? echo clean_url($preview_link) ?>' title='<?php attribute_escape(sprintf(__('Preview "%s"'), $name)) ?>'> 340 <img src='<?php echo clean_url($theme->screenshot_url) ?>' width='150' /> 346 341 </a> 347 <h3>{$name}</h3> 348 <span class='action-links'>$actions</span> 349 <p>{$desc}</p>"; 342 <h3><?php echo $name ?></h3> 343 <span class='action-links'><?php echo $actions ?></span> 344 <p><?php echo $desc ?></p> 345 <p><strong><?php _e('Version:') ?></strong> <?php echo wp_kses($theme->version, $themes_allowedtags) ?></p> 346 <p><strong><?php _e('Author:') ?></strong> <?php echo wp_kses($theme->author, $themes_allowedtags) ?></p> 347 <?php 350 348 /* 351 349 object(stdClass)[59]
Note: See TracChangeset
for help on using the changeset viewer.