wp_back/wp-content/plugins/wp-smushit/app/views/settings/general-meta-box.php

62 lines
1.9 KiB
PHP
Raw Normal View History

2024-05-20 15:37:46 +03:00
<?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 ); ?>