<?php

namespace Clonable\Models;

class LanguageSwitcher
{
    const PAGE = "language_switcher";

    public static $fields = [
        "clonable_show_flag" => [
            "render" => "show_flag_field",
            "name" => "Show flag",
            "setting" => "clonable_show_flag",
            "description" => "Show the flag of the country.",
        ],
        "clonable_rounded_flag" => [
            "render" => "rounded_flag_field",
            "name" => "Rounded flags",
            "setting" => "clonable_rounded_flag",
            "description" => "Should the flags be circular or rectangular",
        ],
        "clonable_show_text" => [
            "render" => "show_text_field",
            "name" => "Show text",
            "setting" => "clonable_show_text",
            "description" => "Show the language name and the country name. In case you would like a custom display name, you can set this in the 'Languages' field at the bottom of this page.",
        ],
        "clonable_show_country_code" => [
            "render" => "show_country_code_field",
            "name" => "Show country code",
            "setting" => "clonable_show_country_code",
            "description" => "Show the abbreviated country code instead of the language name. 'Show text' should be enabled for this setting to work! In case you would like a custom display name, you can set this in the 'Languages' field at the bottom of this page.",
        ],
        "clonable_disable_language_switcher_styles" => [
            "render" => "disable_language_switcher_styles",
            "name" => "Disable default language switcher styles",
            "setting" => "clonable_disable_language_switcher_styles",
            "description" => "Turn off the default styles of the language switcher, this allows you to fully customize the design of the language switcher.",
        ],
        "clonable_language_switcher_shortcode" => [
            "render" => "render_cls_shortcode",
            "name" => "Language switcher shortcode output preview",
            "setting" => "clonable_language_switcher_shortcode",
            "description" => "This is a preview of the [clonable_language_switcher] shortcode output. You can use this shortcode to display the language switcher in any post, page or widget.",
        ],
        "clonable_hr" => [
            "render" => "hr_element",
            "name" => "Floating language switcher",
            "setting" => "clonable_hr",
        ],
        "clonable_enable_language_switcher" => [
            "render" => "enable_language_switcher_field",
            "name" => "Enable floating language switcher",
            "setting" => "clonable_enable_language_switcher",
            "description" => "Turn the language switcher on or off.",
        ],
        "clonable_size" => [
            "render" => "size_field",
            "name" => "Choose language switcher size",
            "setting" => "clonable_size",
            "description" => "Controls the size of the language switcher flag.",
        ],
        "clonable_position" => [
            "render" => "position_field",
            "name" => "Choose a position",
            "setting" => "clonable_position",
            "description" => "The position of the language switcher on the page.",
        ],
          "clonable_background_color" => [
            "render" => "background_color_field",
            "name" => "Choose background color",
            "setting" => "clonable_background_color",
        ],
        "clonable_hover_background_color" => [
            "render" => "background_hover_color_field",
            "name" => "Choose hover background color",
            "setting" => "clonable_hover_background_color",
        ],
        "clonable_hr_3" => [
            "render" => "hr_element",
            "name" => "",
            "setting" => "clonable_hr_3",
        ],
        "clonable_language_switcher_shortcode_info" => [
            "render" => "shortcode_info_element",
            "name" => "Language switcher info",
            "setting" => "clonable_language_switcher_shortcode_info",
            "description" => "You can find more information about the language switcher in the Clonable docs.",
        ],
        "clonable_hr_4" => [
            "render" => "hr_element",
            "name" => "",
            "setting" => "clonable_hr_4",
        ],
        "clonable_language_switcher_items" => [
            "render" => "languages_field",
            "name" => "Languages",
            "setting" => "clonable_langswitch_data",
        ],

    ];
}
