403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.144.237.242
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/plugins/give/src/DonationForms/resources/registrars/templates/layouts/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/plugins/give/src/DonationForms/resources/registrars/templates/layouts/Goal.tsx
import {__} from '@wordpress/i18n';
import type {GoalProps} from '@givewp/forms/propTypes';

/**
 * @since 3.0.0
 */
export default function Goal({
    currentAmount,
    currentAmountFormatted,
    targetAmount,
    targetAmountFormatted,
    goalLabel,
    progressPercentage,
    totalCountLabel,
    totalCountValue,
    totalRevenue,
    totalRevenueFormatted,
}: GoalProps) {
    return (
        <>
            <aside className="givewp-layouts-goal__stats-panel">
                <ul className="givewp-layouts-goal__stats-panel__list">
                    <Stat value={totalRevenueFormatted} label={__('Raised', 'give')} />
                    <Stat value={totalCountValue} label={totalCountLabel} />
                    <Stat value={targetAmountFormatted} label={__('Goal', 'give')} />
                </ul>
            </aside>
            <div className="givewp-layouts-goal__progress">
                <label htmlFor="goal-progress" className="givewp-layouts-goal__progress__description">
                    {__(`${currentAmountFormatted} of ${targetAmountFormatted} ${goalLabel}`, 'give')}
                </label>
                <progress
                    id="goal-progress"
                    className="givewp-layouts-goal__progress__meter"
                    value={progressPercentage}
                    max={100}
                    aria-label={__(`${currentAmount} of ${targetAmount} ${goalLabel} goal`, 'give')}
                ></progress>
                <div className="givewp-layouts-goal__progress__markers">
                    <span className="givewp-layouts-goal__progress__marker">
                        {currentAmountFormatted} {goalLabel}
                    </span>
                    <span className="givewp-layouts-goal__progress__marker">
                        {targetAmountFormatted} {goalLabel}
                    </span>
                </div>
            </div>
        </>
    );
}

function Stat({value, label}: {value: string | number; label: string}) {
    return (
        <li className="givewp-layouts-goal__stats-panel__list-item">
            <span className="givewp-layouts-goal__stats-panel__stat-value">{value} </span>{' '}
            <span className="givewp-layouts-goal__stats-panel__stat-label">{label}</span>
        </li>
    );
}

Youez - 2016 - github.com/yon3zu
LinuXploit