Changeset 26531
- Timestamp:
- 12/02/2013 06:57:32 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/themes.php
r26524 r26531 82 82 83 83 get_current_screen()->set_help_sidebar( 84 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 85 '<p>' . __( '<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>' ) . '</p>' . 86 '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 84 '<p><strong>' . __( 'For more information:' ) . '</strong></p>' . 85 '<p>' . __( '<a href="http://codex.wordpress.org/Using_Themes" target="_blank">Documentation on Using Themes</a>' ) . '</p>' . 86 '<p>' . __( '<a href="http://wordpress.org/support/" target="_blank">Support Forums</a>' ) . '</p>' 87 87 ); 88 88 … … 146 146 if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) 147 147 && in_array( $ct->errors()->get_error_code(), array( 'theme_no_parent', 'theme_parent_invalid', 'theme_no_index' ) ) ) ) : ?> 148 149 <?php 148 */ 149 150 150 // Pretend you didn't see this. 151 $ options = array();151 $current_theme_actions = array(); 152 152 if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) { 153 153 foreach ( (array) $submenu['themes.php'] as $item) { … … 162 162 $menu_hook = get_plugin_page_hook($submenu[$item[2]][0][2], $item[2]); 163 163 if ( file_exists(WP_PLUGIN_DIR . "/{$submenu[$item[2]][0][2]}") || !empty($menu_hook)) 164 $ options[] = "<ahref='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";164 $current_theme_actions[] = "<a class='button button-secondary' href='admin.php?page={$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 165 165 else 166 $ options[] = "<ahref='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>";166 $current_theme_actions[] = "<a class='button button-secondary' href='{$submenu[$item[2]][0][2]}'$class>{$item[0]}</a>"; 167 167 } else if ( current_user_can($item[1]) ) { 168 168 $menu_file = $item[2]; … … 170 170 $menu_file = substr( $menu_file, 0, $pos ); 171 171 if ( file_exists( ABSPATH . "wp-admin/$menu_file" ) ) { 172 $ options[] = "<ahref='{$item[2]}'$class>{$item[0]}</a>";172 $current_theme_actions[] = "<a class='button button-secondary' href='{$item[2]}'$class>{$item[0]}</a>"; 173 173 } else { 174 $ options[] = "<ahref='themes.php?page={$item[2]}'$class>{$item[0]}</a>";174 $current_theme_actions[] = "<a class='button button-secondary' href='themes.php?page={$item[2]}'$class>{$item[0]}</a>"; 175 175 } 176 176 } 177 177 } 178 178 } 179 */ 179 180 180 ?> 181 181 … … 271 271 <h3 class="theme-name">{{{ data.name }}}<span class="theme-version"><?php printf( __( 'Version: %s' ), '{{{ data.version }}}' ); ?></span></h3> 272 272 <h4 class="theme-author"><?php printf( __( 'By %s' ), '{{{ data.author }}}' ); ?></h4> 273 273 274 274 <# if ( data.hasUpdate ) { #> 275 275 <div class="theme-update-message"> … … 279 279 <# } #> 280 280 <p class="theme-description">{{{ data.description }}}</p> 281 281 282 282 <# if ( data.parent ) { #> 283 283 <p class="parent-theme"><?php printf( __( 'This is a child theme of %s.' ), '<strong>{{{ data.parent }}}</strong>' ); ?></p> 284 284 <# } #> 285 285 286 286 <# if ( data.tags ) { #> 287 287 <p class="theme-tags"> … … 296 296 <div class="active-theme"> 297 297 <a href="{{{ data.actions.customize }}}" class="button button-primary hide-if-no-customize"><?php _e( 'Customize' ); ?></a> 298 <?php if ( current_theme_supports( 'menus' ) ) { ?> 299 <a class="button button-secondary" href="<?php echo admin_url( 'nav-menus.php' ); ?>"><?php _e( 'Menus' ); ?></a> 300 <?php } ?> 301 <?php if ( current_theme_supports( 'widgets' ) ) { ?> 302 <a class="button button-secondary" href="<?php echo admin_url( 'widgets.php' ); ?>"><?php _e( 'Widgets' ); ?></a> 303 <?php } ?> 298 <?php echo implode( ' ', $current_theme_actions ); ?> 304 299 </div> 305 300 <div class="inactive-theme"> … … 309 304 <a href="{{{ data.actions.customize }}}" class="button button-secondary"><?php _e( 'Live Preview' ); ?></a> 310 305 </div> 311 306 312 307 <# if ( ! data.active && data.actions.delete ) { #> 313 308 <a href="{{{ data.actions.delete }}}" class="button button-secondary delete-theme"><?php _e( 'Delete' ); ?></a>
Note: See TracChangeset
for help on using the changeset viewer.