multi language support
support for small devices
This commit is contained in:
		@@ -1,19 +1,19 @@
 | 
			
		||||
<?php
 | 
			
		||||
function kompass_print_radio($settingName) {
 | 
			
		||||
    $currentSetting = get_option($settingName);
 | 
			
		||||
function kompass_print_radio(string $settingName) {
 | 
			
		||||
    $currentSetting = get_option($settingName, '');
 | 
			
		||||
    $options = [
 | 
			
		||||
        'kompass_limit_login_client_type' => [
 | 
			
		||||
            'REMOTE_ADDR' => 'Direkte Verbrindung',
 | 
			
		||||
            'HTTP_X_FORWARDED_FOR' => 'Hinter einem Proxy'
 | 
			
		||||
            'REMOTE_ADDR' => __('Direct connection', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
            'HTTP_X_FORWARDED_FOR' => __('Behind a proxy', BDP_LV_PLUGIN_SLUG)
 | 
			
		||||
        ],
 | 
			
		||||
        'kompass_limit_login_cookies' => [
 | 
			
		||||
            true => 'Ja',
 | 
			
		||||
            false => 'Nein'
 | 
			
		||||
            true => __('Yes', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
            false => __('No', BDP_LV_PLUGIN_SLUG)
 | 
			
		||||
        ],
 | 
			
		||||
        'kompass_password_minimal_strength' => [
 | 
			
		||||
            '1' => 'Alle Passwörter erlauben',
 | 
			
		||||
            '2' => 'Mittelstarke Passwörter',
 | 
			
		||||
            '3' => 'Nur Starke Passwörter'
 | 
			
		||||
            '1' => __('Allow all password strengths', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
            '2' => __('At least passwords with medium strength', BDP_LV_PLUGIN_SLUG),
 | 
			
		||||
            '3' => __('Only allow strong passwords', BDP_LV_PLUGIN_SLUG)
 | 
			
		||||
        ]
 | 
			
		||||
    ];
 | 
			
		||||
 | 
			
		||||
@@ -30,6 +30,6 @@ function kompass_print_radio($settingName) {
 | 
			
		||||
              name="' . $settingName . '"
 | 
			
		||||
              value="' . $radioOption . '" 
 | 
			
		||||
              id="setting_' . $settingName . '_' . $radioOption . '" />' .
 | 
			
		||||
            '<label for="setting_' . $settingName . '_' . $radioOption . '">' . $optionText . '</label>   ';
 | 
			
		||||
            '<label for="setting_' . $settingName . '_' . $radioOption . '">' . $optionText . '</label><br />';
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user