wp_back/wp-content/plugins/wp-smushit/app/views/settings/general-meta-box.php
2024-05-20 15:37:46 +03:00

62 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* General settings meta box.
*
* @since 3.0
* @package WP_Smush
*
* @var bool $detection Detection settings.
* @var string $site_language Site language.
* @var bool $tracking Tracking status.
* @var string $translation_link Link to plugin translation page.
*/
if ( ! defined( 'WPINC' ) ) {
die;
}
?>
<div class="sui-box-settings-row">
<p>
<?php esc_html_e( 'Configure general settings for this plugin.', 'wp-smushit' ); ?>
</p>
</div>
<?php do_action( 'wp_smush_render_setting_row', 'detection', $detection ); ?>
<div class="sui-box-settings-row">
<div class="sui-box-settings-col-1">
<span class="sui-settings-label "><?php esc_html_e( 'Translations', 'wp-smushit' ); ?></span>
<span class="sui-description">
<?php
printf( /* translators: %1$s: opening a tag, %2$s: closing a tag */
esc_html__( 'By default, Smush will use the language youd set in your %1$sWordPress Admin Settings%2$s if a matching translation is available.', 'wp-smushit' ),
'<a href="' . esc_html( admin_url( 'options-general.php' ) ) . '">',
'</a>'
);
?>
</span>
</div>
<div class="sui-box-settings-col-2">
<div class="sui-form-field">
<label for="language-input" class="sui-label">
<?php esc_html_e( 'Active Translation', 'wp-smushit' ); ?>
</label>
<input type="text" id="language-input" class="sui-form-control" disabled="disabled" placeholder="<?php echo esc_attr( $site_language ); ?>">
<span class="sui-description">
<?php
printf(
/* translators: %1$s: opening a tag, %2$s: closing a tag */
esc_html__( 'Not using your language, or have improvements? Help us improve translations by providing your own improvements %1$shere%2$s.', 'wp-smushit' ),
'<a href="' . esc_html( $translation_link ) . '" target="_blank">',
'</a>'
);
?>
</span>
</div>
</div>
</div>
<?php do_action( 'wp_smush_render_setting_row', 'usage', $tracking ); ?>