Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/blueversion/wp-content/plugins/give/src/DonationSummary/ |
Upload File : |
<?php
namespace Give\DonationSummary;
/**
* @since 2.17.0
*/
class Assets
{
/**
* @since 2.17.0
*/
public function loadFrontendAssets()
{
wp_enqueue_style(
'give-donation-summary-style-frontend',
GIVE_PLUGIN_URL . 'assets/dist/css/give-donation-summary.css',
[],
GIVE_VERSION
);
wp_enqueue_script(
'give-donation-summary-script-frontend',
GIVE_PLUGIN_URL . 'assets/dist/js/give-donation-summary.js',
['wp-i18n'],
GIVE_VERSION,
true
);
wp_localize_script(
'give-donation-summary-script-frontend',
'GiveDonationSummaryData',
[
'currencyPrecisionLookup' => array_map(function ($currency) {
return $currency['setting']['number_decimals'];
}, give_get_currencies_list()),
'recurringLabelLookup' => function_exists('give_recurring_get_default_pretty_periods')
? give_recurring_get_default_pretty_periods()
: [],
]
);
}
}