Ticket #9665: themes.related.stuff.tweaks.2.patch
| File themes.related.stuff.tweaks.2.patch, 9.1 KB (added by Simek, 4 years ago) |
|---|
-
wp-admin/css/colors-classic.css
58 58 border-color: #ccc; 59 59 } 60 60 61 #poststuff .inside label.spam { 61 #poststuff .inside label.spam, 62 .delete-theme { 62 63 color: red; 63 64 } 64 65 … … 66 67 color: orange; 67 68 } 68 69 69 #poststuff .inside label.approved { 70 #poststuff .inside label.approved, 71 .activate-theme { 70 72 color: green; 71 73 } 72 74 … … 417 419 418 420 .updated, 419 421 .login #login_error, 420 .login .message { 422 .login .message, 423 .theme-update { 421 424 background-color: #ffffe0; 422 425 border-color: #e6db55; 423 426 } -
wp-admin/css/colors-fresh.css
42 42 border-color: #ccc; 43 43 } 44 44 45 #poststuff .inside label.spam { 45 #poststuff .inside label.spam, 46 .delete-theme { 46 47 color: red; 47 48 } 48 49 … … 50 51 color: orange; 51 52 } 52 53 53 #poststuff .inside label.approved { 54 #poststuff .inside label.approved, 55 .activate-theme { 54 56 color: green; 55 57 } 56 58 … … 392 394 393 395 .updated, 394 396 .login #login_error, 395 .login .message { 397 .login .message, 398 .theme-update { 396 399 background-color: #ffffe0; 397 400 border-color: #e6db55; 398 401 } -
wp-admin/css/theme-editor.css
13 13 width: 190px; 14 14 } 15 15 16 #templateside h3, #postcustomstuff p.submit { 16 #templateside h3, 17 #postcustomstuff p.submit { 17 18 margin: 0; 18 19 } 19 20 … … 25 26 margin-bottom: 0; 26 27 } 27 28 28 #templateside ol, #templateside ul { 29 #templateside ol, 30 #templateside ul { 29 31 list-style: none; 30 32 margin: .5em; 31 33 padding: 0; 32 34 } 33 35 34 #templateside ol li, #templateside ul li { 36 #templateside ol li, 37 #templateside ul li { 35 38 margin: 1px 0; 36 39 } 37 40 … … 40 43 float: right; 41 44 position: relative; 42 45 bottom: 25px; 43 top: 20px;46 top: 20px; 44 47 } 45 48 46 49 #themeselector select { … … 49 52 } 50 53 51 54 .nonessential { 52 font-size: small; 55 font-style: italic; 56 font-size: 10px; 53 57 } 54 58 55 59 .highlight { … … 68 72 #documentation { 69 73 margin-top: 10px; 70 74 } 75 71 76 #documentation label { 72 77 line-height: 22px; 73 78 vertical-align: top; -
wp-admin/css/theme-install.css
132 132 float: left; 133 133 text-align: right; 134 134 width: 65px; 135 font-weight: bold; 135 136 } 136 137 137 138 .feature-filter .feature-group li { -
wp-admin/themes.php
98 98 $details_url = add_query_arg(array('TB_iframe' => 'true', 'width' => 1024, 'height' => 800), $update['url']); //Theme browser inside WP? replace this, Also, theme preview JS will override this on the available list. 99 99 $update_url = wp_nonce_url('update.php?action=upgrade-theme&theme=' . urlencode($stylesheet), 'upgrade-theme_' . $stylesheet); 100 100 101 if ( ! current_user_can('update_themes') ) 102 printf( __('<p>There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a>.</p>'), $theme_name, $details_url, $update['new_version']); 103 else if ( empty($update->package) ) 104 printf( __('<p>There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> <em>automatic upgrade unavailable for this theme</em>.</p>'), $theme_name, $details_url, $update['new_version']); 105 else 106 printf( __('<p>There is a new version of %1$s available. <a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> or <a href="%4$s">upgrade automatically</a>.</p>'), $theme_name, $details_url, $update['new_version'], $update_url ); 101 if ( ! current_user_can('update_themes') ) { 102 ?><div class="theme-update"><?php printf( __('There is a new version of %1$s available. <br /><a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a>.'), $theme_name, $details_url, $update['new_version']); ?></div><?php 103 } else if ( empty($update->package) ) { 104 ?><div class="theme-update"><?php printf( __('There is a new version of %1$s available. <br /><a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> <em>automatic upgrade unavailable for this theme</em>.'), $theme_name, $details_url, $update['new_version']); ?></div><?php 105 } else { 106 ?><div class="theme-update"><?php printf( __('There is a new version of %1$s available. <br /><a href="%2$s" class="thickbox" title="%1$s">View version %3$s Details</a> or <a href="%4$s">upgrade automatically</a>.'), $theme_name, $details_url, $update['new_version'], $update_url ); ?></div><?php 107 } 107 108 } 108 109 } 109 110 … … 188 189 $parent_theme = $themes[$theme_name]['Parent Theme']; 189 190 $preview_link = clean_url( get_option('home') . '/'); 190 191 $preview_link = htmlspecialchars( add_query_arg( array('preview' => 1, 'template' => $template, 'stylesheet' => $stylesheet, 'TB_iframe' => 'true' ), $preview_link ) ); 191 $preview_text = attr( sprintf( __('Preview of"%s"'), $title ) );192 $preview_text = attr( sprintf( __('Preview "%s"'), $title ) ); 192 193 $tags = $themes[$theme_name]['Tags']; 193 194 $thickbox_class = 'thickbox thickbox-preview'; 194 195 $activate_link = wp_nonce_url("themes.php?action=activate&template=".urlencode($template)."&stylesheet=".urlencode($stylesheet), 'switch-theme_' . $template); 195 196 $activate_text = attr( sprintf( __('Activate "%s"'), $title ) ); 197 $delete_link = wp_nonce_url("themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet); 198 $delete_onclick = "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;"; 196 199 $actions = array(); 197 $actions[] = '<a href="' . $activate_link . '" class="activate link" title="' . $activate_text . '">' . __('Activate') . '</a>';198 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . attr(sprintf(__('Preview "%s"'), $theme_name)). '">' . __('Preview') . '</a>';200 $actions[] = '<a href="' . $activate_link . '" class="activate-theme" title="' . $activate_text . '">' . __('Activate') . '</a>'; 201 $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . $preview_text . '">' . __('Preview') . '</a>'; 199 202 if ( current_user_can('update_themes') ) 200 $actions[] = '<a class="submitdelete delet ion" href="' . wp_nonce_url("themes.php?action=delete&template=$stylesheet", 'delete-theme_' . $stylesheet) . '" onclick="' . "if ( confirm('" . js_escape(sprintf( __("You are about to delete this theme '%s'\n 'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;". '">' . __('Delete') . '</a>';203 $actions[] = '<a class="submitdelete delete-theme" href="' . $delete_link . '" onclick="' . $delete_onclick . '">' . __('Delete') . '</a>'; 201 204 $actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]); 202 205 203 206 $actions = implode ( ' | ', $actions ); … … 210 213 <h3><?php 211 214 /* translators: 1: theme title, 2: theme version, 3: theme author */ 212 215 printf(__('%1$s %2$s by %3$s'), $title, $version, $author) ; ?></h3> 213 <p class=" description"><?php echo $description; ?></p>214 < span class='action-links'><?php echo $actions ?></span>216 <p class="theme-description"><?php echo $description; ?></p> 217 <div class='action-links'><?php echo $actions ?></div> 215 218 <?php if ($parent_theme) { ?> 216 219 <p><?php printf(__('The template files are located in <code>%2$s</code>. The stylesheet files are located in <code>%3$s</code>. <strong>%4$s</strong> uses templates from <strong>%5$s</strong>. Changes made to the templates will affect both themes.'), $title, $template_dir, $stylesheet_dir, $title, $parent_theme); ?></p> 217 220 <?php } else { ?> 218 221 <p><?php printf(__('All of this theme’s files are located in <code>%2$s</code>.'), $title, $template_dir, $stylesheet_dir); ?></p> 219 222 <?php } ?> 220 223 <?php if ( $tags ) : ?> 221 <p>< ?php _e('Tags:'); ?> <?php echo join(', ', $tags); ?></p>224 <p><strong><?php _e('Tags:'); ?></strong> <span class="theme-tags"><?php echo join(', ', $tags); ?></span></p> 222 225 <?php endif; ?> 223 226 <?php theme_update_available( $themes[$theme_name] ); ?> 224 227 <?php endif; // end if not empty theme_name ?> -
wp-admin/wp-admin.css
121 121 margin: 15px 0 5px; 122 122 } 123 123 124 .theme-update { 125 border-width: 1px; 126 border-style: solid; 127 padding: 8px; 128 font-size: 11px; 129 -moz-border-radius: 3px; 130 -khtml-border-radius: 3px; 131 -webkit-border-radius: 3px; 132 border-radius: 3px; 133 } 134 135 .theme-description { 136 text-align: justify; 137 } 138 139 .theme-tags { 140 font-size: 11px; 141 } 142 143 .action-links { 144 font-weight: bold; 145 text-align: center; 146 } 147 124 148 #current-theme { 125 149 margin: 1em 0 1.5em; 126 150 }
