[ Index ] |
PHP Cross Reference of GlotPress |
[Summary view] [Print] [Text view]
1 <?php 2 gp_title( __( 'Edit Glossary < 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 <div class="button-group"> 23 <input class="button is-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Save', 'glotpress' ); ?>" id="submit" /> 24 <a class="button is-link" href="<?php echo esc_url( gp_url_join( gp_url_project_locale( $project, $locale->slug, $translation_set->slug ), '/glossary' ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a> 25 </div> 26 27 <input type="hidden" name="glossary[id]" value="<?php echo esc_attr( $glossary->id ); ?>"/> 28 <input type="hidden" name="glossary[translation_set_id]" value="<?php echo esc_attr( $glossary->translation_set_id ); ?>"/> 29 <?php gp_route_nonce_field( 'edit-glossary_' . $glossary->id ); ?> 30 </form> 31 32 <?php 33 gp_tmpl_footer();
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sat Nov 23 01:01:06 2024 | Cross-referenced by PHPXref 0.7.1 |