Skip to content
This repository has been archived by the owner on Jan 31, 2019. It is now read-only.

Commit

Permalink
updating styles
Browse files Browse the repository at this point in the history
  • Loading branch information
beck committed Jun 6, 2011
1 parent cfd58a2 commit 21ff005
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions admin-style.css
Expand Up @@ -9,6 +9,11 @@
-khtml-border-radius:5px;
-webkit-border-radius:5px;
border-radius:5px;

background:#fffbe4;
background:-moz-linear-gradient(bottom, #FFEFDC, #FFFCEC);
background:-webkit-gradient(linear, left bottom, left top, from(#fffbe4), to(#fffbe4));
border-color:#D7CBBB;
}

.plugin-update-tr .update-error {
Expand All @@ -32,9 +37,9 @@
.plugin-update-tr .update-ok {
font-weight:normal;
border-color:#B0C5B3;
background: #cfdfd1;
background:-moz-linear-gradient(bottom, #cfdfd1, #effff1);
background:-webkit-gradient(linear, left bottom, left top, from(#cfdfd1), to(#effff1));
background: #CBD8CC;
background:-moz-linear-gradient(bottom, #CBD6CC, #F5FFF6);
background:-webkit-gradient(linear, left bottom, left top, from(#CBD6CC), to(#F5FFF6));
}

.plugin-update-tr .update-ok a {
Expand Down
8 changes: 4 additions & 4 deletions assets.php
Expand Up @@ -27,13 +27,13 @@ function github_theme_update_row( $theme_key, $theme ) {
printf('Theme is up-to-date! <a href="#">Rollback you say?</a>');
} else {
// modified wp
echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message">';
echo '<tr class="plugin-update-tr"><td colspan="' . $wp_list_table->get_column_count() . '" class="plugin-update colspanchange"><div class="update-message-gtu">';
if ( ! current_user_can('update_themes') )
printf( __('From GitHub, there is a new version of %1$s. <a href="%2$s" target="blank" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version );
printf( __('There is a new version of %1$s. <a href="%2$s" target="blank" title="%3$s">View version %4$s details</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r->new_version );
else if ( empty( $r['package'] ) )
printf( __('From GitHub, there is a new version of %1$s. <a href="%2$s" target="blank" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] );
printf( __('There is a new version of %1$s. <a href="%2$s" target="blank" title="%3$s">View version %4$s details</a>. <em>Automatic update is unavailable for this plugin.</em>'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'] );
else
printf( __('From GitHub, there is a new version of %1$s. <a href="%2$s" target="blank" title="%3$s">View version %4$s details</a> or <a href="%5$s">update automatically</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-github-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) );
printf( __('There is a new version of %1$s. <a href="%2$s" target="blank" title="%3$s">View version %4$s details</a> or <a href="%5$s">update automatically</a>.'), $theme['Name'], esc_url($details_url), esc_attr($theme['Name']), $r['new_version'], wp_nonce_url( self_admin_url('update.php?action=upgrade-github-theme&theme=') . $theme_key, 'upgrade-theme_' . $theme_key) );
}
do_action( "in_theme_update_message-$theme_key", $theme, $r );
echo '</div></td></tr>';
Expand Down

0 comments on commit 21ff005

Please sign in to comment.