first commit
This commit is contained in:
35
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/settings/view-languages.php
vendored
Normal file
35
wp-content/plugins/polylang-pro/vendor/wpsyntex/polylang/settings/view-languages.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php
|
||||
/**
|
||||
* Displays the Languages admin panel
|
||||
*
|
||||
* @package Polylang
|
||||
*/
|
||||
|
||||
if ( ! defined( 'ABSPATH' ) ) {
|
||||
exit; // Don't access directly
|
||||
}
|
||||
|
||||
require ABSPATH . 'wp-admin/options-head.php'; // Displays the errors messages as when we were a child of options-general.php
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1><?php echo esc_html( $GLOBALS['title'] ); ?></h1>
|
||||
<?php
|
||||
switch ( $this->active_tab ) {
|
||||
case 'lang': // Languages tab
|
||||
case 'strings': // String translations tab
|
||||
case 'settings': // Settings tab
|
||||
include __DIR__ . '/view-tab-' . $this->active_tab . '.php';
|
||||
// Intentional fall-through to upgrade to fire the action below.
|
||||
|
||||
default:
|
||||
/**
|
||||
* Fires when loading the active Polylang settings tab
|
||||
* Allows plugins to add their own tab
|
||||
*
|
||||
* @since 1.5.1
|
||||
*/
|
||||
do_action( 'pll_settings_active_tab_' . $this->active_tab );
|
||||
break;
|
||||
}
|
||||
?>
|
||||
</div><!-- wrap -->
|
||||
Reference in New Issue
Block a user