[ Index ]

PHP Cross Reference of GlotPress

title

Body

[close]

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

   1  <?php
   2  gp_title( __( 'Edit 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          gp_link_get( gp_url_project_locale( $project->path, $locale->slug, $translation_set->slug ) . '/glossary', __( 'Glossary', 'glotpress' ) ),
   8          __( 'Edit', 'glotpress' ),
   9      )
  10  );
  11  gp_tmpl_header();
  12  ?>
  13  
  14  <h2><?php _e( 'Edit Glossary', 'glotpress' ); ?></h2>
  15  
  16  <form action="" method="post">
  17      <p>
  18          <label for="glossary-edit-description"><?php _e( 'Description', 'glotpress' ); ?></label> <span class="ternary"><?php _e( 'can include HTML', 'glotpress' ); ?></span> <br/>
  19          <textarea id="glossary-edit-description" name="glossary[description]" rows="4" cols="40"><?php echo esc_textarea( $glossary->description ); ?></textarea>
  20      </p>
  21  
  22      <p>
  23          <input type="hidden" name="glossary[id]" value="<?php echo esc_attr( $glossary->id ); ?>"/>
  24          <input type="hidden" name="glossary[translation_set_id]" value="<?php echo esc_attr( $glossary->translation_set_id ); ?>"/>
  25          <input type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" />
  26          <span class="or-cancel"><?php _e( 'or', 'glotpress' ); ?> <a href="<?php echo esc_url( gp_url_join( gp_url_project_locale( $project, $locale->slug, $translation_set->slug ), '/glossary' ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a></span>
  27      </p>
  28      <?php gp_route_nonce_field( 'edit-glossary_' . $glossary->id ); ?>
  29  </form>
  30  
  31  <?php
  32  gp_tmpl_footer();


Generated: Fri Jul 3 01:01:50 2020 Cross-referenced by PHPXref 0.7.1