Make WordPress Core


Ignore:
Timestamp:
03/20/2009 12:14:57 AM (18 years ago)
Author:
azaozz
Message:

More theme install styling, see #8652

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r10810 r10823  
    182182        $stylesheet_dir = $themes[$theme_name]['Stylesheet Dir'];
    183183        $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 ) );
    185185        $preview_text = attribute_escape( sprintf( __('Preview of "%s"'), $title ) );
    186186        $tags = $themes[$theme_name]['Tags'];
     
    189189        $activate_text = attribute_escape( sprintf( __('Activate "%s"'), $title ) );
    190190        $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>';
    192192        $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attribute_escape(sprintf(__('Preview "%s"'), $theme_name)) . '">' . __('Preview') . '</a>';
    193193        if ( current_user_can('update_themes') )
     
    197197        $actions = implode ( ' | ', $actions );
    198198?>
    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">
    200200<?php if ( $screenshot ) : ?>
    201201                        <img src="<?php echo WP_CONTENT_URL . $stylesheet_dir . '/' . $screenshot; ?>" alt="" />
     
    209209<?php endif; ?>
    210210                <?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>
    213211<?php endif; // end if not empty theme_name ?>
    214212        </td>
Note: See TracChangeset for help on using the changeset viewer.