[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> translation-set-edit.php (source)

   1  <?php
   2  gp_title(
   3      sprintf(
   4          /* translators: 1: Translation set name. 2: Project name. */
   5          __( 'Edit Translation Set &lt; %1$s &lt; %2$s &lt; GlotPress', 'glotpress' ),
   6          $set->name,
   7          $project->name
   8      )
   9  );
  10  gp_breadcrumb(
  11      array(
  12          gp_project_links_from_root( $project ),
  13          gp_link_get( $url, $locale->english_name . 'default' !== $set->slug ? ' ' . $set->name : '' ),
  14      )
  15  );
  16  
  17  // jQuery is required for the 'translation-set-form' template.
  18  gp_enqueue_script( 'jquery' );
  19  
  20  gp_tmpl_header();
  21  ?>
  22  <h2><?php _e( 'Edit Translation Set', 'glotpress' ); ?></h2>
  23  <form action="" method="post">
  24  <?php gp_tmpl_load( 'translation-set-form', get_defined_vars() ); ?>
  25      <p>
  26          <input type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
  27          <span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="<?php echo esc_url( gp_url_project_locale( $project, $locale->slug, $set->slug ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
  28      </p>
  29      <?php gp_route_nonce_field( 'edit-translation-set_' . $set->id ); ?>
  30  </form>
  31  <?php
  32  gp_tmpl_footer();


Generated: Fri Jul 10 01:01:55 2020 Cross-referenced by PHPXref 0.7.1