assets
data
dependencies
inc
admin-pages
api
builders
checkout
compat
contracts
country
br
ca
cn
de
es
fr
gb
in
jp
mx
my
ne
nl
ru
sg
tr
us
za
class-country-br.php
class-country-ca.php
class-country-cn.php
class-country-de.php
class-country-default.php
class-country-es.php
class-country-fr.php
class-country-gb.php
class-country-in.php
class-country-jp.php
class-country-mx.php
class-country-my.php
class-country-ne.php
class-country-nl.php
class-country-ru.php
class-country-sg.php
class-country-tr.php
class-country-us.php
class-country-za.php
class-country.php
database
debug
deprecated
development
domain-mapping
duplication
exception
functions
gateways
helpers
installers
integrations
internal
invoices
limitations
limits
list-tables
loaders
managers
mercator
models
next
objects
site-templates
sso
tax
traits
ui
updater
class-admin-notices.php
class-admin-themes-compatibility.php
class-ajax.php
class-api.php
class-async-calls.php
class-autoloader.php
class-cron.php
class-current.php
class-dashboard-statistics.php
class-dashboard-widgets.php
class-documentation.php
class-domain-mapping.php
class-faker.php
class-geolocation.php
class-helper.php
class-hooks.php
class-license.php
class-light-ajax.php
class-logger.php
class-maintenance-mode.php
class-newsletter.php
class-requirements.php
class-scripts.php
class-session-cookie.php
class-settings.php
class-sunrise.php
class-user-switching.php
class-views.php
class-whitelabel.php
class-wp-ultimo.php
lang
views
.gitignore
LICENSE
autoload.php
composer.json
constants.php
loco.xml
readme.txt
sunrise.php
uninstall.php
wp-multisite-waas.php
116 lines
2.6 KiB
PHP
116 lines
2.6 KiB
PHP
<?php // phpcs:ignore - @generation-checksum DE-16-7097
|
|
/**
|
|
* Country Class for Germany (DE).
|
|
*
|
|
* State/province count: 16
|
|
* City count: 7097
|
|
* City count per state/province:
|
|
* - BY: 1756 cities
|
|
* - BW: 944 cities
|
|
* - NI: 751 cities
|
|
* - RP: 688 cities
|
|
* - SN: 442 cities
|
|
* - NW: 428 cities
|
|
* - SH: 386 cities
|
|
* - ST: 368 cities
|
|
* - HE: 347 cities
|
|
* - TH: 319 cities
|
|
* - MV: 253 cities
|
|
* - BB: 217 cities
|
|
* - BE: 97 cities
|
|
* - SL: 60 cities
|
|
* - HH: 37 cities
|
|
* - HB: 4 cities
|
|
*
|
|
* @package WP_Ultimo\Country
|
|
* @since 2.0.11
|
|
*/
|
|
|
|
namespace WP_Ultimo\Country;
|
|
|
|
// Exit if accessed directly
|
|
defined('ABSPATH') || exit;
|
|
|
|
/**
|
|
* Country Class for Germany (DE).
|
|
*
|
|
* IMPORTANT:
|
|
* This file is generated by build scripts, do not
|
|
* change it directly or your changes will be LOST!
|
|
*
|
|
* @since 2.0.11
|
|
*
|
|
* @property-read string $code
|
|
* @property-read string $currency
|
|
* @property-read int $phone_code
|
|
*/
|
|
class Country_DE extends Country {
|
|
|
|
use \WP_Ultimo\Traits\Singleton;
|
|
|
|
/**
|
|
* General country attributes.
|
|
*
|
|
* This might be useful, might be not.
|
|
* In case of doubt, keep it.
|
|
*
|
|
* @since 2.0.11
|
|
* @var array
|
|
*/
|
|
protected $attributes = array(
|
|
'country_code' => 'DE',
|
|
'currency' => 'EUR',
|
|
'phone_code' => 49,
|
|
);
|
|
|
|
/**
|
|
* The type of nomenclature used to refer to the country sub-divisions.
|
|
*
|
|
* @since 2.0.11
|
|
* @var string
|
|
*/
|
|
protected $state_type = 'state';
|
|
|
|
/**
|
|
* Return the country name.
|
|
*
|
|
* @since 2.0.11
|
|
* @return string
|
|
*/
|
|
public function get_name() {
|
|
|
|
return __('Germany', 'wp-ultimo-locations');
|
|
|
|
} // end get_name;
|
|
|
|
/**
|
|
* Returns the list of states for DE.
|
|
*
|
|
* @since 2.0.11
|
|
* @return array The list of state/provinces for the country.
|
|
*/
|
|
protected function states() {
|
|
|
|
return array(
|
|
'BW' => __('Baden-Württemberg', 'wp-ultimo-locations'),
|
|
'BY' => __('Bavaria', 'wp-ultimo-locations'),
|
|
'BE' => __('Berlin', 'wp-ultimo-locations'),
|
|
'BB' => __('Brandenburg', 'wp-ultimo-locations'),
|
|
'HB' => __('Bremen', 'wp-ultimo-locations'),
|
|
'HH' => __('Hamburg', 'wp-ultimo-locations'),
|
|
'HE' => __('Hesse', 'wp-ultimo-locations'),
|
|
'NI' => __('Lower Saxony', 'wp-ultimo-locations'),
|
|
'MV' => __('Mecklenburg-Vorpommern', 'wp-ultimo-locations'),
|
|
'NW' => __('North Rhine-Westphalia', 'wp-ultimo-locations'),
|
|
'RP' => __('Rhineland-Palatinate', 'wp-ultimo-locations'),
|
|
'SL' => __('Saarland', 'wp-ultimo-locations'),
|
|
'SN' => __('Saxony', 'wp-ultimo-locations'),
|
|
'ST' => __('Saxony-Anhalt', 'wp-ultimo-locations'),
|
|
'SH' => __('Schleswig-Holstein', 'wp-ultimo-locations'),
|
|
'TH' => __('Thuringia', 'wp-ultimo-locations'),
|
|
);
|
|
|
|
} // end states;
|
|
|
|
} // end class Country_DE;
|