[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <?php
   2  gp_title( __( 'Create New Glossary &lt; GlotPress', 'glotpress' ) );
   3  gp_breadcrumb(
   4      array(
   5          gp_project_links_from_root( $project ),
   6          gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ), $translation_set->name ),
   7          __( 'Create Glossary', 'glotpress' ),
   8      )
   9  );
  10  gp_tmpl_header();
  11  ?>
  12  
  13  <h2><?php _e( 'Create New Glossary', 'glotpress' ); ?></h2>
  14  <form action="" method="post">
  15      <p>
  16          <label for="glossary-new-description"><?php _e( 'Description (optional)', 'glotpress' ); ?></label> <span class="ternary"><?php _e( 'can include HTML', 'glotpress' ); ?></span><br/>
  17          <textarea id="glossary-new-description" name="glossary[description]" rows="4" cols="40"></textarea>
  18      </p>
  19  
  20      <div class="button-group">
  21          <input class="button is-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
  22          <a class="button is-link" href="<?php echo esc_url( gp_url_project_locale( $project, $locale->slug, $translation_set->slug ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a>
  23      </div>
  24  
  25      <input type="hidden" name="glossary[translation_set_id]" value="<?php echo esc_attr( $glossary->translation_set_id ); ?>"/>
  26      <?php gp_route_nonce_field( 'add-glossary' ); ?>
  27  </form>
  28  
  29  <?php
  30  gp_tmpl_footer();


Generated: Thu Nov 21 01:01:07 2024 Cross-referenced by PHPXref 0.7.1