# wplingua/trunk/data/switcher.php

Translate and Go multilingual – Automatic AI translation – wpLingua, version trunk. 148 lines.

- Page: https://pluginprobe.com/plugins/wplingua/trunk/code/data/switcher.php
- Raw: https://pluginprobe.com/plugins/wplingua/trunk/raw/data/switcher.php
- Modified: 2026-02-23T00:18:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wplingua/trunk/code/data/switcher.php#L10-L20`.

```php
<?php

// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
	die;
}


// ------------------------------------------------------------------------
// Data : Switcher options
// ------------------------------------------------------------------------

/**
 * Get options for switcher insertion
 *
 * @return array
 */
function wplng_data_switcher_valid_insert() {
	return array(
		'bottom-right'  => __( 'Bottom right', 'wplingua' ),
		'bottom-center' => __( 'Bottom center', 'wplingua' ),
		'bottom-left'   => __( 'Bottom left', 'wplingua' ),
		'none'          => __( 'None', 'wplingua' ),
	);
}


/**
 * Get options for switcher themes
 *
 * @return array
 */
function wplng_data_switcher_valid_theme() {
	return array(
		'light-double-smooth'     => __( 'Light - Double - Smooth', 'wplingua' ),
		'light-double-square'     => __( 'Light - Double - Square', 'wplingua' ),
		'light-simple-smooth'     => __( 'Light - Simple - Smooth', 'wplingua' ),
		'light-simple-square'     => __( 'Light - Simple - Square', 'wplingua' ),
		'grey-double-smooth'      => __( 'Grey - Double - Smooth', 'wplingua' ),
		'grey-double-square'      => __( 'Grey - Double - Square', 'wplingua' ),
		'grey-simple-smooth'      => __( 'Grey - Simple - Smooth', 'wplingua' ),
		'grey-simple-square'      => __( 'Grey - Simple - Square', 'wplingua' ),
		'dark-double-smooth'      => __( 'Dark - Double - Smooth', 'wplingua' ),
		'dark-double-square'      => __( 'Dark - Double - Square', 'wplingua' ),
		'dark-simple-smooth'      => __( 'Dark - Simple - Smooth', 'wplingua' ),
		'dark-simple-square'      => __( 'Dark - Simple - Square', 'wplingua' ),
		'blurblack-double-smooth' => __( 'Blur Black - Double - Smooth', 'wplingua' ),
		'blurblack-double-square' => __( 'Blur Black - Double - Square', 'wplingua' ),
		'blurblack-simple-smooth' => __( 'Blur Black - Simple - Smooth', 'wplingua' ),
		'blurblack-simple-square' => __( 'Blur Black - Simple - Square', 'wplingua' ),
		'blurwhite-double-smooth' => __( 'Blur White - Double - Smooth', 'wplingua' ),
		'blurwhite-double-square' => __( 'Blur White - Double - Square', 'wplingua' ),
		'blurwhite-simple-smooth' => __( 'Blur White - Simple - Smooth', 'wplingua' ),
		'blurwhite-simple-square' => __( 'Blur White - Simple - Square', 'wplingua' ),
	);
}


/**
 * Get options for switcher style
 *
 * @return array
 */
function wplng_data_switcher_valid_style() {
	return array(
		'list'     => __( 'Inline list', 'wplingua' ),
		'block'    => __( 'Block', 'wplingua' ),
		'dropdown' => __( 'Dropdown', 'wplingua' ),
	);
}


/**
 * Get options for switcher name format
 *
 * @return array
 */
function wplng_data_switcher_valid_name_format() {
	return array(
		'original' => __( 'Original name', 'wplingua' ),
		'name'     => __( 'Translated name', 'wplingua' ),
		'id'       => __( 'Language ID', 'wplingua' ),
		'none'     => __( 'No display', 'wplingua' ),
	);
}


/**
 * Get options for switcher flags style
 *
 * @return array
 */
function wplng_data_switcher_valid_flags_style() {
	return array(
		'circle'      => __( 'Circle', 'wplingua' ),
		'rectangular' => __( 'Rectangular', 'wplingua' ),
		'wave'        => __( 'Wave', 'wplingua' ),
		'none'        => __( 'No display', 'wplingua' ),
	);
}


// ------------------------------------------------------------------------
// Data : Switcher nav menu options
// ------------------------------------------------------------------------

/**
 * Get options for switcher name format in nav menu
 *
 * @return array
 */
function wplng_data_switcher_nav_menu_valid_name_format() {
	return array(
		'o' => __( 'Original name', 'wplingua' ),
		't' => __( 'Translated name', 'wplingua' ),
		'i' => __( 'Language ID', 'wplingua' ),
		'n' => __( 'No display', 'wplingua' ),
	);
}


/**
 * Get options for switcher flags style in nav menu
 *
 * @return array
 */
function wplng_data_switcher_nav_menu_valid_flags_style() {
	return array(
		'y' => __( 'Display', 'wplingua' ),
		'n' => __( 'No display', 'wplingua' ),
	);
}


/**
 * Get options for switcher layout in nav menu
 *
 * @return array
 */
function wplng_data_switcher_nav_menu_valid_layout() {
	return array(
		't' => __( 'List without current language', 'wplingua' ),
		'l' => __( 'List without active class', 'wplingua' ),
		'a' => __( 'List with active class', 'wplingua' ),
		's' => __( 'Sub-list', 'wplingua' ),
	);
}

```
