Changeset 20476 for trunk/wp-admin/includes/class-wp-themes-list-table.php
- Timestamp:
- 04/16/2012 02:02:28 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-themes-list-table.php
r20455 r20476 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 137 134 $actions = array(); 138 135 $actions[] = '<a href="' . $activate_link . '" class="activatelink" title="' 139 136 . esc_attr( sprintf( __( 'Activate “%s”' ), $title ) ) . '">' . __( 'Activate' ) . '</a>'; 140 $actions[] = '<a href="' . $preview_link . '" class="hide-if- js" title="'137 $actions[] = '<a href="' . $preview_link . '" class="hide-if-customize" title="' 141 138 . esc_attr( sprintf( __( 'Preview “%s”' ), $title ) ) . '">' . __( 'Preview' ) . '</a>' 142 . '<a href="#" class="load-customize hide-if-no-js" ' . $customize_attributes . '>' . __( 'Customize' ) . '</a>'; 139 . '<a ' . wp_customize_href( $template, $stylesheet ) . ' class="load-customize hide-if-no-customize">' 140 . __( 'Customize' ) . '</a>'; 143 141 if ( ! is_multisite() && current_user_can( 'delete_themes' ) ) 144 142 $actions['delete'] = '<a class="submitdelete deletion" href="' . wp_nonce_url( "themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet ) … … 151 149 152 150 ?> 153 <a href="<?php echo $preview_link; ?>" class="load-customize screenshot" <?php echo $customize_attributes; ?>> 154 <?php if ( $screenshot = $theme->get_screenshot() ) : ?> 155 <img src="<?php echo esc_url( $screenshot ); ?>" alt="" /> 156 <?php endif; ?> 151 152 <a href="<?php echo $preview_link; ?>" class="screenshot hide-if-customize"> 153 <?php if ( $screenshot = $theme->get_screenshot() ) : ?> 154 <img src="<?php echo esc_url( $screenshot ); ?>" alt="" /> 155 <?php endif; ?> 157 156 </a> 157 <a <?php echo wp_customize_href( $template, $stylesheet ); ?> class="screenshot load-customize hide-if-no-customize"> 158 <?php if ( $screenshot = $theme->get_screenshot() ) : ?> 159 <img src="<?php echo esc_url( $screenshot ); ?>" alt="" /> 160 <?php endif; ?> 161 </a> 162 158 163 <h3><?php echo $title; ?></h3> 159 164 <div class="theme-author"><?php printf( __( 'By %s' ), $author ); ?></div>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)