Files
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-light-ajax.php
class-logger.php
class-maintenance-mode.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
wp-multisite-waas/inc/country/class-country-cn.php
2024-11-30 18:24:12 -07:00

150 lines
3.4 KiB
PHP

<?php // phpcs:ignore - @generation-checksum CN-34-1296
/**
* Country Class for China (CN).
*
* State/province count: 34
* City count: 1296
* City count per state/province:
* - HN: 118 cities
* - FJ: 111 cities
* - SD: 90 cities
* - GD: 72 cities
* - HL: 71 cities
* - TJ: 69 cities
* - HB: 55 cities
* - HA: 55 cities
* - GZ: 54 cities
* - JL: 52 cities
* - TW: 52 cities
* - LN: 51 cities
* - SC: 49 cities
* - ZJ: 41 cities
* - HE: 39 cities
* - XJ: 37 cities
* - AH: 37 cities
* - NM: 33 cities
* - YN: 29 cities
* - GX: 28 cities
* - GS: 20 cities
* - CQ: 18 cities
* - SX: 18 cities
* - JX: 16 cities
* - SN: 14 cities
* - HI: 14 cities
* - XZ: 13 cities
* - JS: 13 cities
* - BJ: 8 cities
* - QH: 8 cities
* - NX: 7 cities
* - SH: 4 cities
*
* @package WP_Ultimo\Country
* @since 2.0.11
*/
namespace WP_Ultimo\Country;
// Exit if accessed directly
defined('ABSPATH') || exit;
/**
* Country Class for China (CN).
*
* 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_CN 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' => 'CN',
'currency' => 'CNY',
'phone_code' => 86,
);
/**
* The type of nomenclature used to refer to the country sub-divisions.
*
* @since 2.0.11
* @var string
*/
protected $state_type = 'province';
/**
* Return the country name.
*
* @since 2.0.11
* @return string
*/
public function get_name() {
return __('China', 'wp-ultimo-locations');
} // end get_name;
/**
* Returns the list of states for CN.
*
* @since 2.0.11
* @return array The list of state/provinces for the country.
*/
protected function states() {
return array(
'AH' => __('Anhui', 'wp-ultimo'),
'BJ' => __('Beijing', 'wp-ultimo'),
'CQ' => __('Chongqing', 'wp-ultimo'),
'FJ' => __('Fujian', 'wp-ultimo'),
'GS' => __('Gansu', 'wp-ultimo'),
'GD' => __('Guangdong', 'wp-ultimo'),
'GX' => __('Guangxi Zhuang', 'wp-ultimo'),
'GZ' => __('Guizhou', 'wp-ultimo'),
'HI' => __('Hainan', 'wp-ultimo'),
'HE' => __('Hebei', 'wp-ultimo'),
'HL' => __('Heilongjiang', 'wp-ultimo'),
'HA' => __('Henan', 'wp-ultimo'),
'HK' => __('Hong Kong SAR', 'wp-ultimo'),
'HB' => __('Hubei', 'wp-ultimo'),
'HN' => __('Hunan', 'wp-ultimo'),
'NM' => __('Inner Mongolia', 'wp-ultimo'),
'JS' => __('Jiangsu', 'wp-ultimo'),
'JX' => __('Jiangxi', 'wp-ultimo'),
'JL' => __('Jilin', 'wp-ultimo'),
'LN' => __('Liaoning', 'wp-ultimo'),
'MO' => __('Macau SAR', 'wp-ultimo'),
'NX' => __('Ningxia Huizu', 'wp-ultimo'),
'QH' => __('Qinghai', 'wp-ultimo'),
'SN' => __('Shaanxi', 'wp-ultimo'),
'SD' => __('Shandong', 'wp-ultimo'),
'SH' => __('Shanghai', 'wp-ultimo'),
'SX' => __('Shanxi', 'wp-ultimo'),
'SC' => __('Sichuan', 'wp-ultimo'),
'TW' => __('Taiwan', 'wp-ultimo'),
'TJ' => __('Tianjin', 'wp-ultimo'),
'XJ' => __('Xinjiang', 'wp-ultimo'),
'XZ' => __('Xizang', 'wp-ultimo'),
'YN' => __('Yunnan', 'wp-ultimo'),
'ZJ' => __('Zhejiang', 'wp-ultimo'),
);
} // end states;
} // end class Country_CN;