As the sun rises and the forest mist clears, and the clouds return and the caves darken, these changes of light and shadow are the morning and evening in the mountains. Wildflowers bloom with their subtle fragrance, fine trees flourish with their dense shade, the wind and frost are pure and clean, and the water recedes to reveal the rocks—these are the four seasons in the mountains. Going out in the morning and returning in the evening, the scenery of the four seasons is different, and the joy is endless.至于负者歌于途,行者休于树,前者呼,后者应,伛偻提携,往来而不绝者,滁人游也。临溪而渔,溪深而鱼肥,酿泉为酒,泉香而酒洌,山肴野蔌,杂然而前陈者,太守宴也。宴酣之乐,非丝非竹,射者中,弈者胜,觥筹交错,起坐而喧哗者,众宾欢也。苍颜白发,颓然乎其间者,太守醉也。
<?php
/**
* Polylang
*
* @package Polylang
* @author WP SYNTEX
* @license GPL-3.0-or-later
*
* @wordpress-plugin
* Plugin Name: Polylang
* Plugin URI: https://polylang.pro
* Description: Adds multilingual capability to WordPress
* Version: 3.8.4
* Requires at least: 6.5
* Requires PHP: 7.4
* Author: WP SYNTEX
* Author URI: https://polylang.pro
* Text Domain: polylang
* License: GPL v3 or later
* License URI: https://www.gnu.org/licenses/gpl-3.0.txt
*
* Copyright 2011-2019 Frédéric Demarle
* Copyright 2019-2026 WP SYNTEX
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
defined( 'ABSPATH' ) || exit;
if ( defined( 'POLYLANG_VERSION' ) ) {
// The user is attempting to activate a second plugin instance, typically Polylang and Polylang Pro.
require_once ABSPATH . 'wp-admin/includes/plugin.php';
require_once ABSPATH . 'wp-includes/pluggable.php';
if ( is_plugin_active( plugin_basename( __FILE__ ) ) ) {
deactivate_plugins( plugin_basename( __FILE__ ) ); // Deactivate this plugin.
// WP does not allow us to send a custom meaningful message, so just tell the plugin has been deactivated.
wp_safe_redirect( add_query_arg( 'deactivate', 'true', remove_query_arg( 'activate' ) ) );
exit;
}
return;
}
// Go on loading the plugin.
define( 'POLYLANG_VERSION', '3.8.4' );
define( 'PLL_MIN_WP_VERSION', '6.5' );
define( 'PLL_MIN_PHP_VERSION', '7.4' );
define( 'POLYLANG_FILE', __FILE__ );
define( 'POLYLANG_DIR', __DIR__ );
// Whether we are using Polylang or Polylang Pro, get the filename of the plugin in use.
if ( ! defined( 'POLYLANG_ROOT_FILE' ) ) {
define( 'POLYLANG_ROOT_FILE', __FILE__ );
}
if ( ! defined( 'POLYLANG_BASENAME' ) ) {
define( 'POLYLANG_BASENAME', plugin_basename( __FILE__ ) ); // Plugin name as known by WP.
require __DIR__ . '/vendor/autoload.php';
}
define( 'POLYLANG', ucwords( str_replace( '-', ' ', dirname( POLYLANG_BASENAME ) ) ) );
if ( ! empty( $_GET['deactivate-polylang'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification
return;
}
require POLYLANG_DIR . '/src/constant-functions.php';
if ( ! PLL_Usable::can_activate() ) {
// WP version or php version is too old.
return;
}
define( 'POLYLANG_ACTIVE', true );
if ( PLL_Deactivate::is_deactivation() ) {
// Stopping here if we are going to deactivate the plugin (avoids breaking rewrite rules).
PLL_Deactivate::add_hooks();
return;
}
PLL_Activate::add_hooks();
new Polylang();