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

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 &rarr;', 'glotpress' ) : __( 'Suggest new translation &rarr;', 'glotpress' ); ?>
</button>
<?php endif; ?>
<button type="button" href="#" class="button is-link close"><?php _e( 'Cancel', 'glotpress' ); ?></button>
</div>
</div>