[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> translation-row.php (source)

   1  <?php
   2  /**
   3   * Template for a single translation row in a translation set display
   4   *
   5   * @package GlotPress
   6   * @subpackage Templates
   7   */
   8  
   9  $user            = wp_get_current_user();
  10  $can_reject_self = ( isset( $translation->user->user_login ) && $user->user_login === $translation->user->user_login && 'waiting' === $translation->translation_status );
  11  
  12  if ( is_object( $glossary ) ) {
  13      if ( ! isset( $glossary_entries_terms ) ) {
  14          $glossary_entries       = $glossary->get_entries();
  15          $glossary_entries_terms = gp_sort_glossary_entries_terms( $glossary_entries );
  16      }
  17  
  18      $translation = map_glossary_entries_to_translation_originals( $translation, $glossary, $glossary_entries_terms );
  19  }
  20  
  21  $translation_singular = isset( $translation->singular_glossary_markup ) ? $translation->singular_glossary_markup : esc_translation( $translation->singular );
  22  
  23  gp_tmpl_load('translation-row-preview', get_defined_vars());
  24  gp_tmpl_load('translation-row-editor', get_defined_vars());


Generated: Sun Jun 16 01:02:50 2019 Cross-referenced by PHPXref 0.7.1