Changeset 14060
- Timestamp:
- 09/17/2024 04:03:18 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/wporg-gp-translation-events.php
r14004 r14060 392 392 } 393 393 394 $content = '<div id="active-events-before-translation-table" class="active-events-before-translation-table" >';394 $content = '<div id="active-events-before-translation-table" class="active-events-before-translation-table" style="width: 100%; border: 1px solid var(--gp-color-border-default); background: var(--gp-color-status-waiting-subtle); margin: 1rem 0; padding: 0.3rem 0.8rem;">'; 395 395 /* translators: %d: Number of events */ 396 396 $content .= sprintf( _n( 'Contributing to %d event:', 'Contributing to %d events:', $number_of_events, 'gp-translation-events' ), $number_of_events ); … … 398 398 399 399 foreach ( array_splice( $events, 0, 2 ) as $event ) { 400 $content .= '<span class="active-events-before-translation-table" ><a href="' . Urls::event_details( $event->id() ) . '" target="_blank">' . esc_html( $event->title() ) . '</a></span>';400 $content .= '<span class="active-events-before-translation-table" style="font-weight: 500; color: var(--gp-color-bubble-inactive-project-text); border: 1px solid var(--gp-color-bubble-inactive-project-text); font-size: .7em; margin-right: 0.3em; width: 6em; text-align: center; padding: 0.2em 0.5em; border-radius: 1em; text-transform: capitalize;"><a href="' . Urls::event_details( $event->id() ) . '" target="_blank" style="color: var(--gp-color-bubble-inactive-project-text); text-decoration: none;">' . esc_html( $event->title() ) . '</a></span>'; 401 401 } 402 402 … … 415 415 'id' => array(), 416 416 'class' => array(), 417 'style' => array(), 417 418 ), 418 419 'span' => array( 419 420 'class' => array(), 421 'style' => array(), 420 422 ), 421 423 'a' => array( 422 424 'href' => array(), 423 425 'target' => array(), 426 'style' => array(), 424 427 ), 425 428 ) 426 429 ); 427 430 } 431 428 432 429 433 /**
Note: See TracChangeset
for help on using the changeset viewer.