# give/4.16.9/src/DonationSummary/Assets.php

GiveWP – Donation Plugin and Fundraising Platform, version 4.16.9. 45 lines.

- Page: https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationSummary/Assets.php
- Raw: https://pluginprobe.com/plugins/give/4.16.9/raw/src/DonationSummary/Assets.php
- Modified: 2025-03-31T19:17:16+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/give/4.16.9/code/src/DonationSummary/Assets.php#L10-L20`.

```php
<?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 . 'build/assets/dist/css/give-donation-summary.css',
            [],
            GIVE_VERSION
        );

        wp_enqueue_script(
            'give-donation-summary-script-frontend',
            GIVE_PLUGIN_URL . 'build/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()
                    : [],
            ]
        );
    }
}

```
