Changeset 20352 for trunk/wp-admin/includes/class-wp-themes-list-table.php
- Timestamp:
- 04/04/2012 09:02:29 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-themes-list-table.php
r20104 r20352 132 132 home_url( '/' ) ) ); 133 133 134 $customize_attributes = 'title="' . esc_attr( sprintf( __( 'Customize “%s”' ), $title ) ) . '" 135 . data-customize-template="' . esc_attr( $template ) . '" data-customize-stylesheet="' . esc_attr( $stylesheet ) . '"'; 136 134 137 $actions = array(); 135 138 $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' 136 139 . esc_attr( sprintf( __( 'Activate “%s”' ), $title ) ) . '">' . __( 'Activate' ) . '</a>'; 137 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' 138 . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '">' . __( 'Preview' ) . '</a>'; 140 $actions[] = '<a href="' . $preview_link . '" class="hide-if-js" title="' 141 . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '">' . __( 'Preview' ) . '</a>' 142 . '<a href="#" class="load-customize hide-if-no-js" ' . $customize_attributes . '>' . __( 'Customize' ) . '</a>'; 139 143 if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) 140 144 $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url( "themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet ) … … 146 150 $actions = implode ( ' | ', $actions ); 147 151 ?> 148 <a href="<?php echo $preview_link; ?>" class=" thickbox thickbox-preview screenshot">152 <a href="<?php echo $preview_link; ?>" class="load-customize screenshot" <?php echo $customize_attributes; ?>> 149 153 <?php if ( $screenshot = $theme->get_screenshot() ) : ?> 150 154 <img src="<?php echo esc_url( $screenshot ); ?>" alt="" />
Note: See TracChangeset
for help on using the changeset viewer.