Making WordPress.org


Ignore:
Timestamp:
07/17/2024 11:19:52 AM (23 months ago)
Author:
psrpinto
Message:

Translate: Sync "Translation Events" from GitHub

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-translation-events/templates/event-details.php

    r13801 r13906  
    102102                            <a href="<?php echo esc_url( get_author_posts_url( $contributor->user_id() ) ); ?>" class="name"><?php echo esc_html( get_the_author_meta( 'display_name', $contributor->user_id() ) ); ?></a>
    103103                            <?php if ( $contributor->is_new_contributor() ) : ?>
    104                                 <span class="first-time-contributor-tada" title="<?php esc_html_e( 'New Translation Contributor', 'gp-translation-events' ); ?>"></span>
     104                                <span class="first-time-contributor-tada" title="<?php esc_attr_e( 'New Translation Contributor', 'gp-translation-events' ); ?>"></span>
    105105                            <?php endif; ?>
    106106                        </li>
     
    285285            <?php else : ?>
    286286                <form class="event-details-attend" method="post" action="<?php echo esc_url( Urls::event_toggle_attendee( $event->id() ) ); ?>">
     287                    <?php wp_nonce_field( '_attendee_nonce', '_attendee_nonce' ); ?>
    287288                    <?php if ( $user_is_attending ) : ?>
    288289                        <input type="submit" class="button is-secondary attending-btn" value="<?php esc_attr_e( "You're attending", 'gp-translation-events' ); ?>" />
    289290                    <?php else : ?>
    290                         <input type="submit" class="button is-primary attend-btn" value="<?php esc_attr_e( 'Attend Event', 'gp-translation-events' ); ?>"/>
     291                        <?php if ( ! $event->is_remote() ) : ?>
     292                            <input type="submit" class="button is-primary attend-btn" value="<?php esc_attr_e( 'Attend Event On-site', 'gp-translation-events' ); ?>"/>
     293                            <?php if ( ! $event->is_hybrid() ) : ?>
     294                                <p class="onsite-btn-note">
     295                                    <?php echo wp_kses_post( __( '<strong>Note:</strong> This is an onsite-only event. Please only click attend if you are at the event. The host might otherwise remove you.', 'gp-translation-events' ) ); ?>
     296                                </p>   
     297                            <?php endif; ?>
     298                        <?php endif; ?>
     299                        <?php if ( $event->is_remote() || $event->is_hybrid() ) : ?>
     300                            <input type="submit" name="attend_remotely" class="button is-primary attend-btn" value="<?php esc_attr_e( 'Attend Event Remotely', 'gp-translation-events' ); ?>"/>
     301                        <?php endif; ?>
    291302                    <?php endif; ?>
    292303                </form>
Note: See TracChangeset for help on using the changeset viewer.