Plugin Directory

Changeset 890047


Ignore:
Timestamp:
04/09/2014 12:39:56 PM (12 years ago)
Author:
ilanco
Message:

tagging version 1.7.1

Location:
gravity-forms-multi-currency/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gravity-forms-multi-currency/trunk/gravity-forms-multi-currency.php

    r703412 r890047  
    44 * Plugin URI: https://github.com/ilanco/gravity-forms-multi-currency
    55 * Description: Per form currency for Gravity Forms.
    6  * Version: 1.7
     6 * Version: 1.7.1
    77 * Author: Ilan Cohen <ilanco@gmail.com>
    88 * Author URI: https://github.com/ilanco
     
    1717  die(false);
    1818
    19 define('GF_MC_VERSION', '1.7');
     19define('GF_MC_VERSION', '1.7.1');
    2020
    2121define('GF_MC_MAINFILE', __FILE__);
     
    9898        ob_start();
    9999        include 'tpl/custom_form_settings.php';
    100         $settings['Form Basics']['form_custom_currency_setting'] = ob_get_contents();
     100        $settings['Form Basics']['form_currency_setting'] = ob_get_contents();
    101101        ob_end_clean();
    102102
     
    106106    public function save_custom_form_settings($form)
    107107    {
    108         $form['custom_currency'] = rgpost('form_custom_currency');
     108        $form['currency'] = rgpost('form_currency');
    109109
    110110        return $form;
     
    116116        <script type='text/javascript'>
    117117        jQuery(function($) {
    118             $("#form_custom_currency").change(function() {
     118            $("#form_currency").change(function() {
    119119                form.currency = this.value;
    120120            });
    121             $("#form_custom_currency").val(form.currency);
     121            $("#form_currency").val(form.currency);
    122122        });
    123123        </script>
  • gravity-forms-multi-currency/trunk/readme.txt

    r703412 r890047  
    44Tags: gravity, forms, gravity forms, gravity form, currency, multiple
    55Requires at least: 3.0.1
    6 Tested up to: 3.5
    7 Stable tag: 1.7
     6Tested up to: 3.8.1
     7Stable tag: 1.7.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    2929
    3030== Changelog ==
     31
     32= 1.7.1 =
     33Fixed setting currency after upgrade to Gravity Forms 1.7.3
    3134
    3235= 1.7 =
  • gravity-forms-multi-currency/trunk/tpl/custom_form_settings.php

    r703416 r890047  
    11        <li>
    2             <label for="form_custom_currency">Currency</label>
    3             <select id="form_custom_currency" name="form_custom_currency" style="width:200px">
     2            <label for="form_currency">Currency</label>
     3            <select id="form_currency" name="form_currency" style="width:200px">
    44                <option value="">Default currency (<?php echo $this->gf_get_default_currency() ?>)</option>
    55                <?php foreach (RGCurrency::get_currencies() as $code => $currency): ?>
    66                <option
    7                     <?php if (rgar($form, 'custom_currency') === $code): ?>
     7                    <?php if (rgar($form, 'currency') === $code): ?>
    88                    selected="selected"
    99                    <?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.