| @@ -77,9 +77,8 @@ | ||
| 77 | 77 | } |
| 78 | 78 | |
| 79 | 79 | add_action( 'admin_init', array( $this, 'init' ) ); |
| 80 | 80 | |
| 81 | - | |
| 82 | 81 | } |
| 83 | 82 | |
| 84 | 83 | /** |
| 85 | 84 | * Initialize i18n banner. |
| @@ -169,14 +168,14 @@ | ||
| 169 | 168 | ?> |
| 170 | 169 | <div id="give-i18n-notice" class="give-addon-alert updated give-notice" style="display: none"> |
| 171 | 170 | |
| 172 | 171 | <a href="https://wordpress.org/support/register.php" class="alignleft give-i18n-icon" style="margin:0" target="_blank"><span class="dashicons dashicons-translation" |
| 173 | - style="font-size: 110px; text-decoration: none;"></span></a> | |
| 172 | + style="font-size: 110px; text-decoration: none;"></span></a> | |
| 174 | 173 | |
| 175 | 174 | <div class="give-i18n-notice-content"> |
| 176 | 175 | <a href="<?php echo esc_url( add_query_arg( array( 'remove_i18n_promo' => '1' ) ) ); ?>" class="dismiss"><span class="dashicons dashicons-dismiss"></span></a> |
| 177 | 176 | |
| 178 | - <h2 style="margin: 10px 0;"><?php printf( esc_html__( 'Help Translate Give to %s', 'give' ), $this->locale_name ); ?></h2> | |
| 177 | + <h2 style="margin: 10px 0;"><?php printf( esc_html__( 'Help Translate GiveWP to %s', 'give' ), $this->locale_name ); ?></h2> | |
| 179 | 178 | <p><?php echo $message; ?></p> |
| 180 | 179 | <p> |
| 181 | 180 | <a href="https://wordpress.org/support/register.php" target="_blank"><?php _e( 'Register now »', 'give' ); ?></a> |
| 182 | 181 | </p> |
| @@ -186,14 +185,16 @@ | ||
| 186 | 185 | |
| 187 | 186 | $notice_html = ob_get_clean(); |
| 188 | 187 | |
| 189 | 188 | // Register notice. |
| 190 | - Give()->notices->register_notice( array( | |
| 191 | - 'id' => 'give-i18n-notice', | |
| 192 | - 'type' => 'updated', | |
| 193 | - 'description_html' => $notice_html, | |
| 194 | - 'show' => true, | |
| 195 | - ) ); | |
| 189 | + Give()->notices->register_notice( | |
| 190 | + array( | |
| 191 | + 'id' => 'give-i18n-notice', | |
| 192 | + 'type' => 'updated', | |
| 193 | + 'description_html' => $notice_html, | |
| 194 | + 'show' => true, | |
| 195 | + ) | |
| 196 | + ); | |
| 196 | 197 | } |
| 197 | 198 | } |
| 198 | 199 | |
| 199 | 200 | |
| @@ -209,14 +210,14 @@ | ||
| 209 | 210 | /* Banner specific styles */ |
| 210 | 211 | div.give-addon-alert.updated { |
| 211 | 212 | padding: 10px 20px; |
| 212 | 213 | position: relative; |
| 213 | - border-color: #66BB6A; | |
| 214 | + border-color: #69B868; | |
| 214 | 215 | overflow: hidden; |
| 215 | 216 | } |
| 216 | 217 | |
| 217 | 218 | div.give-addon-alert a { |
| 218 | - color: #66BB6A; | |
| 219 | + color: #69B868; | |
| 219 | 220 | } |
| 220 | 221 | |
| 221 | 222 | #give-i18n-notice > .give-i18n-icon { |
| 222 | 223 | overflow: hidden; |
| @@ -352,8 +353,10 @@ | ||
| 352 | 353 | } |
| 353 | 354 | } |
| 354 | 355 | } |
| 355 | 356 | |
| 356 | -$give_i18n = new Give_i18n_Banner( array( | |
| 357 | +$give_i18n = new Give_i18n_Banner( | |
| 358 | + array( | |
| 357 | 359 | 'hook' => 'admin_notices', |
| 358 | 360 | 'glotpress_url' => 'https://translate.wordpress.org/api/projects/wp-plugins/give/stable/', |
| 359 | - ) ); | |
| 361 | + ) | |
| 362 | +); | |