[ 'login' => '', 'subdomain' => '', 'api_key' => '', 'registered' => FALSE, 'url' => '', 'short_url' => '', ], 'account_actions' => $this->get('account_actions'), 'libphonenumber_path' => plugins_url('/amoforms/js/vendor/libphonenumber/build/utils.js'), 'country' => 'us', 'promo_ver' => $this->get('promo_ver'), ]; if ($ip_info = IpInfo::instance()->get_info($_SERVER['REMOTE_ADDR'])) { if (!empty($ip_info['country'])) { $page_settings['country'] = strtolower($ip_info['country']); } } ?>