Example #1
0
        <table>
            <caption><h3><?php 
    _e('Recent Donations', 'charitable');
    ?>
</h3></caption>
            <?php 
    foreach ($donations as $post) {
        $donation = new Charitable_Donation($post);
        ?>
            <tr>
                <td class="donation-date"><?php 
        echo $donation->get_date();
        ?>
</td>
                <td class="donation-id">#<?php 
        echo $donation->get_number();
        ?>
</td>
                <td class="donation-status"><?php 
        echo $donation->get_status(true);
        ?>
</td>
                <td class="donation-total"><?php 
        echo charitable_format_money($donation->get_total_donation_amount());
        ?>
</td>
            </tr>
            <?php 
    }
    ?>
        </table>