Changeset 11732 for sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php
- Timestamp:
- 04/01/2022 11:42:40 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/translation-row-preview.php
r11051 r11732 43 43 ?> 44 44 45 <div class="original-tags"> 45 46 <?php 47 $show_context = wporg_gp_should_display_original_context( $translation ); 48 $show_priority = '1' === $translation->priority || '-1' === $translation->priority; 49 if ( $show_context || $show_priority ) : 50 ?> 51 <div class="original-tags"> 52 <?php 53 if ( $show_context ) : 54 ?> 55 <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span> 56 <?php 57 endif; 58 59 if ( $show_priority ) : 60 ?> 61 <span class="priority bubble"><?php echo esc_html( sprintf( 'Priority: %s', gp_array_get( GP::$original->get_static( 'priorities' ), $translation->priority ) ) ); ?></span> 62 <?php 63 endif; 64 ?> 65 </div> 46 66 <?php 47 if ( wporg_gp_should_display_original_context( $translation ) ) : 48 ?> 49 <span class="context bubble"><?php echo esc_html( $translation->context ); ?></span> 50 <?php 51 endif; 52 53 if ( '1' === $translation->priority || '-1' === $translation->priority ) : 54 ?> 55 <span class="priority bubble"><?php echo esc_html( sprintf( 'Priority: %s', gp_array_get( GP::$original->get_static( 'priorities' ), $translation->priority ) ) ); ?></span> 56 <?php 57 endif; 58 ?> 59 </div> 67 endif; 68 ?> 60 69 </td> 61 70 <td class="translation foreign-text">
Note: See TracChangeset
for help on using the changeset viewer.