[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <?php
   2  /**
   3   * Templates: Delete Glossary
   4   *
   5   * @package GlotPress
   6   * @subpackage Templates
   7   * @since 2.0.0
   8   */
   9  
  10  gp_title( __( 'Delete glossary &lt; GlotPress', 'glotpress' ) );
  11  gp_breadcrumb(
  12      array(
  13          gp_project_links_from_root( $project ),
  14          gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), $translation_set->name ),
  15          gp_link_get( gp_url_join( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), '/glossary' ), __( 'Glossary', 'glotpress' ) ),
  16          __( 'Delete', 'glotpress' ),
  17      )
  18  );
  19  gp_tmpl_header();
  20  ?>
  21  
  22  <h2><?php _e( 'Delete glossary', 'glotpress' ); ?></h2>
  23  
  24  <form action="" method="post">
  25      <p>
  26          <?php _e( 'Note this will delete all entries associated with this glossary!', 'glotpress' ); ?>
  27      </p>
  28  
  29      <div class="button-group">
  30          <input class="button is-destructive" type="submit" name="submit" value="<?php esc_attr_e( 'Delete', 'glotpress' ); ?>" id="submit" />
  31          <a class="button is-link" href="<?php echo esc_url( gp_url_join( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), '/glossary' ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a>
  32      </div>
  33      <?php gp_route_nonce_field( 'delete-glossary_' . $glossary->id ); ?>
  34  </form>
  35  
  36  <?php
  37  gp_tmpl_footer();


Generated: Fri Mar 29 01:01:13 2024 Cross-referenced by PHPXref 0.7.1