<?php // $file = /home/bluedoor/www/dev/wp-content/plugins/yooessentials/modules/condition/rules/Geolocation/config.json

return [
  'name' => 'yooessentials_access_ipgeolocation', 
  'title' => 'Geolocation', 
  'group' => '', 
  'description' => 'Validates against the device IP location determined by MaxMind GeoIp.', 
  'icon' => $filter->apply('url', '~yooessentials_url/modules/condition/rules/Geolocation/icon.svg', $file), 
  'fields' => [
    'continents' => [
      'label' => 'Continents', 
      'type' => 'textarea', 
      'source' => true, 
      'attrs' => [
        'rows' => 4, 
        'placeholder' => 'South America
Africa
AU'
      ], 
      'show' => '$customizer.yooessentials.geoipcountry || $customizer.yooessentials.geoipcity', 
      'description' => 'The list of Continents (names or 2 digit iso codes) that the device IP location must match, international names are supported. Separate the entries with a comma and/or new line.'
    ], 
    '_continents' => [
      'label' => 'Continents', 
      'type' => 'yooessentials-info', 
      'show' => '!($customizer.yooessentials.geoipcountry || $customizer.yooessentials.geoipcity)', 
      'description' => 'This feature relies on the GeoIp City or Country Database.'
    ], 
    'countries' => [
      'label' => 'Countries', 
      'type' => 'textarea', 
      'source' => true, 
      'attrs' => [
        'rows' => 4, 
        'placeholder' => 'Spain
Italy
DE'
      ], 
      'show' => '$customizer.yooessentials.geoipcountry || $customizer.yooessentials.geoipcity', 
      'description' => 'The list of Countries (names or 2 digit iso codes) that the device IP location must match, international names are supported. Separate the entries with a comma and/or new line.'
    ], 
    '_countries' => [
      'label' => 'Countries', 
      'type' => 'yooessentials-info', 
      'show' => '!($customizer.yooessentials.geoipcountry || $customizer.yooessentials.geoipcity)', 
      'description' => 'This feature relies on the GeoIp City or Country Database.'
    ], 
    'cities' => [
      'label' => 'Cities', 
      'type' => 'textarea', 
      'source' => true, 
      'attrs' => [
        'rows' => 4, 
        'placeholder' => 'Barcelona
Vicenza
Denpasar'
      ], 
      'show' => '$customizer.yooessentials.geoipcity', 
      'description' => 'The list of Cities that the device IP location must match, international names are supported. Separate the entries with a comma and/or new line.'
    ], 
    '_cities' => [
      'label' => 'Cities', 
      'type' => 'yooessentials-info', 
      'show' => '!$customizer.yooessentials.geoipcity', 
      'description' => 'This feature relies on the GeoIp City Database.'
    ], 
    'codes' => [
      'label' => 'Postal Codes', 
      'type' => 'textarea', 
      'source' => true, 
      'attrs' => [
        'rows' => 4, 
        'placeholder' => '55455'
      ], 
      'show' => '$customizer.yooessentials.geoipcity', 
      'description' => 'The list of Postal Codes that the device IP location must match. Separate the entries with a comma and/or new line.'
    ], 
    '_codes' => [
      'label' => 'Postal Codes', 
      'type' => 'yooessentials-info', 
      'show' => '!$customizer.yooessentials.geoipcity', 
      'description' => 'This feature relies on the GeoIp City Database.'
    ]
  ]
];
