19 lines
659 B
PHP
19 lines
659 B
PHP
<?php
|
|
/**
|
|
* Template for the action buttons displayed below the editor
|
|
*
|
|
* @package GlotPress
|
|
* @subpackage Templates
|
|
*/
|
|
|
|
?>
|
|
<div class="actions">
|
|
<div class="button-group">
|
|
<?php if ( $can_edit ) : ?>
|
|
<button class="button is-primary ok" data-nonce="<?php echo esc_attr( wp_create_nonce( 'add-translation_' . $translation->original_id ) ); ?>">
|
|
<?php echo $can_approve_translation ? __( 'Add translation →', 'glotpress' ) : __( 'Suggest new translation →', 'glotpress' ); ?>
|
|
</button>
|
|
<?php endif; ?>
|
|
<button type="button" href="#" class="button is-link close"><?php _e( 'Cancel', 'glotpress' ); ?></button>
|
|
</div>
|
|
</div>
|