WordPress.org

Plugin Directory

Changeset 458710


Ignore:
Timestamp:
11/02/11 15:55:33 (6 years ago)
Author:
WinWithWP
Message:

update donation amount outputting in the form so that commas show where expected ($1,000)

Location:
piryx-in-wordpress/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • piryx-in-wordpress/trunk/piryx.php

    r454021 r458710  
    55Description: Allows you to embed a Piryx form into a post or page 
    66Author: Win With Wordpress 
    7 Version: 1.0.1.3 
     7Version: 1.0.1.4 
    88Requires at least: 3.0 
    99Author URI: http://www.winwithwp.com 
  • piryx-in-wordpress/trunk/views.php

    r421125 r458710  
    210210                <label> 
    211211                    <input type="radio" value="<?php echo $amount; ?>" name="amount" id="amount-<?php echo $amount; ?>" <?php checked($_POST['amount'],$amount); ?>> 
    212                     <span class="amount">$<?php echo money_format( '%i', $amount ); ?></span> 
     212                    <?php setlocale(LC_MONETARY, 'en_US'); ?> 
     213                    <span class="amount"><?php echo money_format( '%n', $amount ); ?></span> 
    213214                    <?php if ( !empty( $caption ) ): ?> 
    214215                    <span class="caption"> - <?php echo $caption; ?></span> 
Note: See TracChangeset for help on using the changeset viewer.