Changeset 10823 for trunk/wp-admin/themes.php
- Timestamp:
- 03/20/2009 12:14:57 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/themes.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/themes.php
r10810 r10823 182 182 $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir']; 183 183 $preview_link = clean_url( get_option('home') . '/'); 184 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' , 'width' => 600, 'height' => 400), $preview_link ) );184 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); 185 185 $preview_text = attribute_escape( sprintf( __('Preview of "%s"'), $title ) ); 186 186 $tags = $themes[$theme_name]['Tags']; … … 189 189 $activate_text = attribute_escape( sprintf( __('Activate "%s"'), $title ) ); 190 190 $actions = array(); 191 $actions[] = '<a href="' . $activate_link . '" title="' . $activate_text . '">' . __('Activate') . '</a>';191 $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' . $activate_text . '">' . __('Activate') . '</a>'; 192 192 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attribute_escape(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>'; 193 193 if ( current_user_can('update_themes') ) … … 197 197 $actions = implode ( ' | ', $actions ); 198 198 ?> 199 <a href="<?php echo $ activate_link; ?>" class="<?php echo $thickbox_class; ?> screenshot">199 <a href="<?php echo $preview_link; ?>" class="<?php echo $thickbox_class; ?> screenshot"> 200 200 <?php if ( $screenshot ) : ?> 201 201 <img src="<?php echo WP_CONTENT_URL . $stylesheet_dir . '/' . $screenshot; ?>" alt="" /> … … 209 209 <?php endif; ?> 210 210 <?php theme_update_available( $themes[$theme_name] ); ?> 211 <noscript><p class="themeactions"><a href="<?php echo $preview_link; ?>" title="<?php echo $preview_text; ?>"><?php _e('Preview'); ?></a> <a href="<?php echo $activate_link; ?>" title="<?php echo $activate_text; ?>"><?php _e('Activate'); ?></a></p></noscript>212 <div style="display:none;"><a class="previewlink" href="<?php echo $preview_link; ?>"><?php echo $preview_text; ?></a> <a class="activatelink" href="<?php echo $activate_link; ?>"><?php echo $activate_text; ?></a></div>213 211 <?php endif; // end if not empty theme_name ?> 214 212 </td>
Note: See TracChangeset
for help on using the changeset viewer.