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


Generated: Thu Mar 21 01:01:48 2019 Cross-referenced by PHPXref 0.7.1