Пример #1
0
        if ($countryDisplay == 'name') {
            ?>
				<td class="pure-text-center"><?php 
            echo CMDonationHelper::showCountryName($donor->country_code);
            ?>
				<?php 
        } elseif ($countryDisplay == 'flag') {
            ?>
				<td class="pure-text-center"><?php 
            echo CMDonationHelper::showCountryFlag($donor->country_code);
            ?>
				<?php 
        } elseif ($countryDisplay == 'both') {
            ?>
				<td class="pure-text-center"><?php 
            echo CMDonationHelper::showCountryName($donor->country_code);
            ?>
				<td class="pure-text-center"><?php 
            echo CMDonationHelper::showCountryFlag($donor->country_code);
            ?>
				<?php 
        }
        ?>
				<td class="pure-text-center"><?php 
        echo $donor->donation_quantity;
        ?>
</td>
				<td class="pure-text-center">
					<?php 
        echo CMDonationHelper::showDonationAmount($donor->amount, $currencySign, $currencySignPosition, $decimals, $decimalPoint, $thousandSeparator);
        ?>
Пример #2
0
    ?>
						</td>
						<?php 
    if ($countryDisplay == 'flag') {
        ?>
						<td class="nowrap pure-text-center pure-hidden-phone">
							<?php 
        echo CMDonationHelper::showCountryFlag($item->country_code);
        ?>
						</td>
						<?php 
    } elseif ($countryDisplay == 'name' || $countryDisplay == 'both') {
        ?>
						<td class="nowrap pure-text-center pure-hidden-phone">
							<?php 
        echo CMDonationHelper::showCountryName($item->country_code);
        ?>
						</td>
						<?php 
    }
    ?>
						<?php 
    if ($countryDisplay == 'both') {
        ?>
						<td class="nowrap pure-text-center pure-hidden-phone">
							<?php 
        echo CMDonationHelper::showCountryFlag($item->country_code);
        ?>
						</td>
						<?php 
    }