wenpai.org/wp-content/plugins/glotpress/gp-templates/translation-set-new.php
2024-06-21 23:57:39 +08:00

33 lines
973 B
PHP

<?php
gp_title( __( 'Create New Translation Set &lt; GlotPress', 'glotpress' ) );
if ( $project ) {
gp_breadcrumb_project(
$project,
array(
__( 'Create New Translation Set', 'glotpress' ),
)
);
} else {
gp_breadcrumb(
array(
__( 'Create New Translation Set', 'glotpress' ),
)
);
}
// jQuery is required for the 'translation-set-form' template.
gp_enqueue_script( 'jquery' );
gp_tmpl_header();
?>
<h2><?php _e( 'Create New Translation Set', 'glotpress' ); ?></h2>
<form action="" method="post">
<?php gp_tmpl_load( 'translation-set-form', get_defined_vars() ); ?>
<div class="button-group">
<input class="button is-primary" type="submit" name="submit" value="<?php esc_attr_e( 'Create', 'glotpress' ); ?>" id="submit" />
<a class="button is-link" href="<?php echo esc_url( gp_url_project( $project ) ); ?>"><?php _e( 'Cancel', 'glotpress' ); ?></a>
</div>
<?php gp_route_nonce_field( 'add-translation-set' ); ?>
</form>
<?php
gp_tmpl_footer();