PluginProbe
Polylang / 3.8.4
Polylang v3.8.4
3.8.9 3.8.8 3.8.7 3.8.6 3.8.5 3.8.4 3.8.3 2.7 2.7.0.1 2.7.1 2.7.2 2.7.3 2.7.4 2.8 2.8.1 2.8.2 2.8.3 2.8.4 2.9 2.9.1 2.9.2 3.0 3.0.1 3.0.2 3.0.3 All 233 releases
polylang / src / settings / view-languages.php

view-languages.php in Polylang 3.8.4, at src/settings/view-languages.php

36 lines 894 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Displays the Languages admin panel
4 *
5 * @package Polylang
6 *
7 * @var string $active_tab Active Polylang settings page.
8 */
9
10 defined( 'ABSPATH' ) || exit;
11
12 require ABSPATH . 'wp-admin/options-head.php'; // Displays the errors messages as when we were a child of options-general.php
13 ?>
14 <div class="wrap">
15 <h1><?php echo esc_html( $GLOBALS['title'] ); ?></h1>
16 <?php
17 switch ( $active_tab ) {
18 case 'lang': // Languages tab
19 case 'strings': // String translations tab
20 case 'settings': // Settings tab
21 include __DIR__ . '/view-tab-' . $active_tab . '.php';
22 // Intentional fall-through to upgrade to fire the action below.
23
24 default:
25 /**
26 * Fires when loading the active Polylang settings tab
27 * Allows plugins to add their own tab
28 *
29 * @since 1.5.1
30 */
31 do_action( 'pll_settings_active_tab_' . $active_tab );
32 break;
33 }
34 ?>
35 </div><!-- wrap -->
36