AnonSec Team
Server IP : 10.131.40.8  /  Your IP : 216.73.216.37
Web Server : Apache
System : Linux webd008.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
User : ludmqhh ( 137773)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0705) :  /home/ludmqhh/www/hotel-forum/wp-content/_plugins/weglot/templates/admin/pages/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/ludmqhh/www/hotel-forum/wp-content/_plugins/weglot/templates/admin/pages/settings.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

use WeglotWP\Helpers\Helper_Tabs_Admin_Weglot;
use WeglotWP\Services\Button_Service_Weglot;
use WeglotWP\Services\Language_Service_Weglot;
use WeglotWP\Services\Option_Service_Weglot;

$option_services    = weglot_get_service( 'Option_Service_Weglot' );
$language_services    = weglot_get_service( 'Language_Service_Weglot' );
$button_services    = weglot_get_service( 'Button_Service_Weglot' );
$organization_slug = $option_services->get_option('organization_slug');
$project_slug = $option_services->get_option('project_slug');
$project_dashboard_url = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/translations/languages/', 'weglot' );
$project_slug_url = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/translations/slugs/', 'weglot' );
$project_url_exclusions = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/settings/exclusions#excluded-urls', 'weglot' );
$project_blocks_exclusions = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/settings/exclusions#excluded-blocks', 'weglot' );
$project_switcher_editor = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/settings/language-switcher/editor', 'weglot' );
$project_auto_redirect = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/settings/general', 'weglot' );
$project_pageviews = esc_url( 'https://dashboard.weglot.com/workspaces/' . $organization_slug . '/projects/'. $project_slug .'/statistics/page-views/', 'weglot' );

$url_form = wp_nonce_url(
	add_query_arg(
		[
			'action' => 'weglot_save_settings',
			'tab'    => $tab_active,
		],
		admin_url( 'admin-post.php' )
	),
	'weglot_save_settings'
);

?>

<div id="wrap-weglot">
	<?php
	if ( ! $this->options['has_first_settings'] ) :
		?>
		<div id="weglot-wrapper-infobox" class="wrap wrap-left">
			<div class="weglot-infobox weglot-wp-menu">
				<h3><img src="<?php echo esc_url(WEGLOT_DIRURL.'app/images/logo-wg.svg' ); ?>"></h3>
				<div>
					<ul>
						<li><a href="#main_configuration"><?php esc_html_e( 'Main configuration', 'weglot' ) ?></a></li>
						<li><a href="#language_button_position"><?php esc_html_e( 'Language button position', 'weglot' ) ?></a></li>
						<li><a href="#translation_exclusion"><?php esc_html_e( 'Translation Exclusion', 'weglot' ) ?></a></li>
						<li><a href="#other_options"><?php esc_html_e( 'Other options', 'weglot' ) ?></a></li>
					</ul>
				</div>
				<blockquote class="text-cen">Weglot - <?php echo esc_html(WEGLOT_VERSION); ?></blockquote>
			</div>

			<div class="weglot-infobox weglot-info-translation-box">
				<h3><?php esc_html_e( 'Where are my translations?', 'weglot' ); ?></h3>
				<div>
					<p><?php esc_html_e( 'You can find all your translations in your Weglot account:', 'weglot' ); ?></p>
					<a href="<?php echo esc_url( $project_dashboard_url ); ?>"
					   target="_blank" class="weglot-editbtn">
						<?php esc_html_e( 'Edit my translations', 'weglot' ); ?>
					</a>
					<p><span
							class="wp-menu-image dashicons-before dashicons-welcome-comments"></span><?php esc_html_e( 'When you edit your translations in Weglot, remember to clear your cache (if you have a cache plugin) to make sure you see the latest version of your page)', 'weglot' ); ?>
					</p>

				</div>
			</div>
		</div>
	<?php
	endif;
	?>
	<div class="wrap">
		<form method="post" id="mainform" action="<?php echo esc_url( $url_form ); ?>">
			<?php

			switch ( $tab_active ) {
				case Helper_Tabs_Admin_Weglot::SETTINGS:
				default:
					include_once WEGLOT_TEMPLATES_ADMIN_PAGES . '/tabs/settings.php';
					if ( ! $this->options['has_first_settings'] ) {
						include_once WEGLOT_TEMPLATES_ADMIN_PAGES . '/tabs/appearance.php';
						include_once WEGLOT_TEMPLATES_ADMIN_PAGES . '/tabs/advanced.php';
					}

					break;
				case Helper_Tabs_Admin_Weglot::STATUS:
					include_once WEGLOT_TEMPLATES_ADMIN_PAGES . '/tabs/status.php';
					break;
				case Helper_Tabs_Admin_Weglot::SUPPORT:
					include_once WEGLOT_TEMPLATES_ADMIN_PAGES . '/tabs/support.php';
					break;
			}

			if ( ! in_array( $tab_active, [ Helper_Tabs_Admin_Weglot::STATUS ], true ) ) {
				submit_button();
			}
			?>
			<input type="hidden" name="tab" value="<?php echo esc_attr( $tab_active ); ?>">
		</form>
		<?php if ( ! $this->options['has_first_settings'] ) : ?>
			<hr>
			<span class="dashicons dashicons-heart"></span>&nbsp;
			<a target="_blank" href="http://wordpress.org/support/view/plugin-reviews/weglot?rate=5#postform">
				<?php esc_html_e( 'Love Weglot? Give us 5 stars on WordPress.org', 'weglot' ); ?>
			</a>
			<p class="weglot-five-stars">
				<?php
				// translators: 1 HTML Tag, 2 HTML Tag
				echo sprintf( esc_html__( 'If you need any help, you can contact us via email us at %1$ssupport@weglot.com%2$s.', 'weglot' ), '<a href="mailto:support@weglot.com?subject=Need help from WP plugin admin" target="_blank">', '</a>' );
				echo ' ';
				// translators: 1 HTML Tag, 2 HTML Tag
				echo sprintf( esc_html__( 'You can also check our %1$sFAQ%2$s.', 'weglot' ), '<a href="https://support.weglot.com/" target="_blank">', '</a>' ); ?>
			</p>
			<hr>
		<?php endif; ?>
	</div>

</div>


AnonSec - 2021