[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

/gp-templates/ -> project-delete.php (source)

   1  <?php
   2  /**
   3   * Templates: Delete Project
   4   *
   5   * @package GlotPress
   6   * @subpackage Templates
   7   * @since 2.0.0
   8   */
   9  
  10  gp_title(
  11      sprintf(
  12          /* translators: %s: project name */
  13          __( 'Delete project "%s" &lt; GlotPress', 'glotpress' ),
  14          $project->name
  15      )
  16  );
  17  gp_breadcrumb_project( $project );
  18  gp_tmpl_header();
  19  ?>
  20  <h2>
  21      <?php
  22      printf(
  23          /* translators: %s: project name */
  24          __( 'Delete project "%s"', 'glotpress' ),
  25          esc_html( $project->name )
  26      );
  27      ?>
  28  </h2>
  29  <form action="" method="post">
  30      <p>
  31          <?php _e( 'Note this will delete all translations, translation sets and child projects!', 'glotpress' ); ?>
  32      </p>
  33      <p>
  34          <input type="submit" name="submit" value="<?php esc_attr_e( 'Delete', 'glotpress' ); ?>" id="submit" />
  35          <span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="<?php echo esc_url( gp_url_project( $project ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
  36      </p>
  37      <?php gp_route_nonce_field( 'delete-project_' . $project->id ); ?>
  38  </form>
  39  <?php
  40  gp_tmpl_footer();


Generated: Thu Nov 26 01:02:01 2020 Cross-referenced by PHPXref 0.7.1