Plugin Directory

Changeset 1493451


Ignore:
Timestamp:
09/09/2016 07:51:18 PM (10 years ago)
Author:
mhallmann
Message:

0.5.1 update

Location:
sepa-girocode/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sepa-girocode/trunk/readme.txt

    r1489696 r1493451  
    3030For [girocode]:
    3131* iban: International Bank Account Number of the beneficiary
    32 * bic: Bank Identifier Code, facultative for participants of the European Economic Area
     32* bic: Bank Identifier Code
    3333* beneficiary: Name of the beneficiary
    3434* amount: Amount of money to transfer in EUR
     
    4242
    4343For [girocode-generator]:
    44 There are currently now parameters available.
     44* demo: with demo="1" the form will be populated with example values, containing a donation for the German Red Coss
    4545
    4646= Come on, show me an example ... =
     
    4848OK, let's donate 5 EUR for the German Red Cross:
    4949[girocode iban="DE63370205000005023307" beneficiary="German Red Cross" amount="5" purpose="Donation"]
     50
     51Display generator form in demo mode:
     52[girocode-generator demo="1"]
    5053
    5154= Which apps do support Girocode? =
     
    6164
    6265== Changelog ==
     66= 0.5.1 (2016-09-09)  =
     67* Added girocode-generator demo mode
     68
    6369= 0.5 (2016-09-04)  =
    6470* Added girocode-generator form
  • sepa-girocode/trunk/sepa-girocode.php

    r1489651 r1493451  
    99Plugin URI:  http://www.halli-online.de/sepa-girocode/
    1010Description: Create EPC-Codes (in Germany known as Girocode) for money transfer | Girocode-Barcode für SEPA-Überweisungen erstellen
    11 Version:     0.5
     11Version:     0.5.1
    1212Author:      Michael Hallmann
    1313Author URI:  http://www.halli-online.de/
     
    363363   
    364364    $output = "";
     365       
     366    // Demo-Modus?
     367    $demo = 0;
     368    $std_beneficiary = "";
     369    $std_iban = "";
     370    $std_bic = "";
     371    $std_amount = "";
     372    $std_purpose = "";
     373   
     374    if (is_array($atts) && array_key_exists("demo", $atts) && $atts["demo"] == 1) {
     375        $std_beneficiary = "Deutsches Rotes Kreuz";
     376        $std_iban = "DE63370205000005023307";
     377        $std_bic = "BFSWDE33XXX";
     378        $std_amount = "20";
     379        $std_purpose = "Spende";
     380    }
     381   
     382   
     383   
    365384   
    366385    if ( isset( $_POST['gcf-submitted'] ) ) {
     
    400419    $output .=  '<p>';
    401420    $output .=  'Zahlungsempfänger*<br />';
    402     $output .=  '<input type="text" name="gcf-beneficiary" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 70 Zeichen" minlength="2" maxlenth="70" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-beneficiary"] ) ? esc_attr( $_POST["gcf-beneficiary"] ) : 'Deutsches Rotes Kreuz' ) . '" size="40" required />';
     421    $output .=  '<input type="text" name="gcf-beneficiary" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 70 Zeichen" minlength="2" maxlenth="70" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-beneficiary"] ) ? esc_attr( $_POST["gcf-beneficiary"] ) : $std_beneficiary ) . '" size="40" required />';
    403422    $output .=  '</p>';
    404423   
    405424    $output .=  '<p>';
    406425    $output .=  'IBAN* <br />';
    407     $output .=  '<input type="text" name="gcf-iban" minlength="15" maxlength="31" title="nur Buchstaben und Zahlen erlaubt" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-iban"] ) ? esc_attr( $_POST["gcf-iban"] ) : 'DE63370205000005023307' ) . '" size="40" required/>';
     426    $output .=  '<input type="text" name="gcf-iban" minlength="15" maxlength="31" title="nur Buchstaben und Zahlen erlaubt" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-iban"] ) ? esc_attr( $_POST["gcf-iban"] ) : $std_iban ) . '" size="40" required/>';
    408427    $output .=  '</p>';
    409428   
    410429    $output .=  '<p>';
    411430    $output .=  'BIC* <br />';
    412     $output .=  '<input type="text" name="gcf-bic" minlength="8" maxlength="11" title="nur Buchstaben und Zahlen erlaubt, min. 8, max. 11 Stellen" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-bic"] ) ? esc_attr( $_POST["gcf-bic"] ) : 'BFSWDE33XXX' ) . '" size="40" required />';
     431    $output .=  '<input type="text" name="gcf-bic" minlength="8" maxlength="11" title="nur Buchstaben und Zahlen erlaubt, min. 8, max. 11 Stellen" pattern="[a-zA-Z0-9]+" value="' . ( isset( $_POST["gcf-bic"] ) ? esc_attr( $_POST["gcf-bic"] ) : $std_bic ) . '" size="40" required />';
    413432    $output .=  '</p>';
    414433
    415434    $output .=  '<p>';
    416435    $output .=  'Betrag in EUR* <br />';
    417     $output .=  '<input type="number" name="gcf-amount" min="0" max="999999999" step="1" value="' . ( isset( $_POST["gcf-amount"] ) ? esc_attr( $_POST["gcf-amount"] ) : '20' ) . '" size="40" />';
     436    $output .=  '<input type="number" name="gcf-amount" min="0" max="999999999" step="1" value="' . ( isset( $_POST["gcf-amount"] ) ? esc_attr( $_POST["gcf-amount"] ) : $std_amount ) . '" size="40" />';
    418437    $output .=  '</p>';
    419438   
    420439    $output .=  '<p>';
    421440    $output .=  'Verwendungszweck*<br />';
    422     $output .=  '<input type="text" name="gcf-purpose" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 140 Zeichen" maxlength="140" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-purpose"] ) ? esc_attr( $_POST["gcf-purpose"] ) : 'Spende' ) . '" size="40" required />';
     441    $output .=  '<input type="text" name="gcf-purpose" title="nur Buchstaben, Zahlen, Leerzeichen und die Zeichen :?,-(+.)/ sind erlaubt, max. 140 Zeichen" maxlength="140" pattern="[a-zA-Z0-9 :?,-(+.)/]+" value="' . ( isset( $_POST["gcf-purpose"] ) ? esc_attr( $_POST["gcf-purpose"] ) : $std_purpose ) . '" size="40" required />';
    423442    $output .=  '</p>';
    424443   
Note: See TracChangeset for help on using the changeset viewer.