Plugin Directory

Changeset 3236147


Ignore:
Timestamp:
02/06/2025 04:42:16 PM (14 months ago)
Author:
gravitywp
Message:

Update to version 1.4.2 from GitHub

Location:
gravitywp-merge-tags
Files:
2 deleted
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • gravitywp-merge-tags/tags/1.4.2/assets/css/admin.css

    r3215179 r3236147  
    55    user-select: all;          /* Likely future */   
    66}
     7
     8.wp-list-table.widefat.break-all {
     9    word-break: break-all;
     10}
     11
     12.wp-list-table.widefat .break-word {
     13    word-break: break-word;
     14}
     15
     16.wp-list-table .user-select-all {
     17    user-select: all;
     18}
  • gravitywp-merge-tags/tags/1.4.2/gravitywp-merge-tags.php

    r3215179 r3236147  
    44Plugin URI: https://gravitywp.com/plugin/merge-tags
    55Description: Gravity Forms add-on to list all the merge tags from a specific form
    6 Version: 1.4.1
     6Version: 1.4.2
    77Author: GravityWP
    88Author URI: https://gravitywp.com
     
    1212*/
    1313
    14 define( 'GWP_MERGETAGS_VERSION', '1.4.1' );
     14define( 'GWP_MERGETAGS_VERSION', '1.4.2' );
    1515
    1616add_action( 'gform_loaded', array( 'GWPMergeTags_AddOn_Bootstrap', 'load' ), 5 );
  • gravitywp-merge-tags/tags/1.4.2/languages/gravitywp-merge-tags-nl_NL.po

    r3215179 r3236147  
    22msgstr ""
    33"Project-Id-Version: GravityWP - Merge Tags\n"
    4 "POT-Creation-Date: 2024-05-27 13:30-0400\n"
    5 "PO-Revision-Date: 2024-05-27 13:36-0400\n"
    6 "Last-Translator: \n"
     4"POT-Creation-Date: 2025-02-04 12:02+0100\n"
     5"PO-Revision-Date: 2025-02-04 12:03+0100\n"
     6"Last-Translator: Jurriaan Koops <[email protected]>\n"
    77"Language-Team: \n"
    88"Language: nl_NL\n"
     
    5151msgstr "Workflow"
    5252
    53 #: class-gwp-mergetags.php:303 templates/template-all-fields.php:161
    54 #: templates/template-all-fields.php:164
     53#: class-gwp-mergetags.php:303 templates/template-all-fields.php:163
     54#: templates/template-all-fields.php:166
    5555msgid "All Fields"
    5656msgstr "Alle velden"
     
    6464msgstr "Selecteer formulier"
    6565
    66 #: templates/template-all-fields.php:54
     66#: templates/template-all-fields.php:55
    6767msgid "Copy"
    6868msgstr "Kopiëren"
     
    108108msgstr ""
    109109
    110 #: templates/template-all-fields.php:96
    111 msgid "Gravity View gvlogic"
    112 msgstr ""
    113 
    114110#: templates/template-all-fields.php:97
     111msgid "GravityView gvlogic"
     112msgstr ""
     113
     114#: templates/template-all-fields.php:99
    115115msgid "Without fileuploads"
    116116msgstr "Zonder bestanden"
    117117
    118 #: templates/template-all-fields.php:111
     118#: templates/template-all-fields.php:113
    119119msgid "Select all fields"
    120120msgstr "Selecteer alle velden"
    121121
    122 #: templates/template-all-fields.php:113
     122#: templates/template-all-fields.php:115
    123123msgid "Label"
    124124msgstr "Label"
    125125
    126 #: templates/template-all-fields.php:114 templates/template-calculations.php:32
     126#: templates/template-all-fields.php:116 templates/template-calculations.php:32
    127127#: templates/template-conditional-logic.php:16
    128128#: templates/template-conditional-logic.php:109
     
    131131msgstr "Admin beheerder"
    132132
    133 #: templates/template-all-fields.php:115 templates/template-all-fields.php:161
    134 #: templates/template-gravity-flow.php:12
     133#: templates/template-all-fields.php:117 templates/template-all-fields.php:163
     134#: templates/template-dynamic-population.php:62
     135#: templates/template-gravity-flow.php:15
    135136msgid "Type"
    136137msgstr "Soort"
    137138
    138 #: templates/template-all-fields.php:116
     139#: templates/template-all-fields.php:118
    139140#: templates/template-merge-tags-advanced.php:41
    140141#: templates/template-merge-tags-advanced.php:73
     
    142143msgstr "CSS"
    143144
    144 #: templates/template-all-fields.php:164
     145#: templates/template-all-fields.php:166
    145146msgid "Table"
    146147msgstr "Tabel"
    147148
    148 #: templates/template-all-fields.php:173
     149#: templates/template-all-fields.php:175
    149150msgid "Replace All Fields Merge Tag"
    150151msgstr "Vervang All Fields Merge Tag"
    151152
    152 #: templates/template-all-fields.php:216
     153#: templates/template-all-fields.php:218
    153154msgid "Replace All Fields Merge Tag with Gravity Forms shortcode"
    154155msgstr "Vervang All Fields Merge Tag door de Gravity Forms shortcode"
    155156
    156 #: templates/template-all-fields.php:265
     157#: templates/template-all-fields.php:267
    157158msgid "Replace All Fields Merge Tag with Gravity View shortcode"
    158159msgstr "Vervang All Fields Merge Tag door de Gravity View shortcode"
    159160
    160 #: templates/template-all-fields.php:318
     161#: templates/template-all-fields.php:320
    161162msgid "Replace All Fields Merge Tag without fileuploads"
    162163msgstr "Vervang All Fields Merge Tag zonder bestanduploads"
     
    169170#: templates/template-conditional-logic.php:14
    170171#: templates/template-conditional-logic.php:107
    171 #: templates/template-gravity-flow.php:11
     172#: templates/template-gravity-flow.php:14
    172173msgid "ID"
    173174msgstr "ID"
     
    217218msgstr "Gebruikt in voorwaardelijke logica van veld met ID"
    218219
    219 #: templates/template-dynamic-population.php:33
     220#: templates/template-dynamic-population.php:46
     221msgid "Dynamic Population Type:"
     222msgstr "Dynamisch vullen Type:"
     223
     224#: templates/template-dynamic-population.php:47
     225msgid "URL"
     226msgstr ""
     227
     228#: templates/template-dynamic-population.php:48
     229msgid "URL with merge tags"
     230msgstr "URL met merge tags"
     231
     232#: templates/template-dynamic-population.php:49
     233msgid "Excel formula (International)"
     234msgstr "Excel formule (Internationaal)"
     235
     236#: templates/template-dynamic-population.php:50
     237msgid "Excel formula (Localized)"
     238msgstr "Excel formule (Lokaal)"
     239
     240#: templates/template-dynamic-population.php:52
     241#: templates/template-dynamic-population.php:94
     242msgid "JWT Prefill"
     243msgstr ""
     244
     245#: templates/template-dynamic-population.php:63
     246msgid "Value"
     247msgstr "Waarde"
     248
     249#: templates/template-dynamic-population.php:68
    220250msgid "Url query string template for dynamic population"
    221251msgstr "Url-query string sjabloon voor dynamisch vullen"
    222252
    223 #: templates/template-dynamic-population.php:41
     253#: templates/template-dynamic-population.php:72
    224254msgid "Url query string template with merge tags for dynamic population"
    225255msgstr "Url-query string sjabloon met samenvoegtags voor dynamische populatie"
    226256
    227 #: templates/template-dynamic-population.php:49
     257#: templates/template-dynamic-population.php:76
    228258msgid "Excel formula for generating url (encoded) query string (International)"
    229259msgstr ""
     
    231261"(internationaal)"
    232262
    233 #: templates/template-dynamic-population.php:57
     263#: templates/template-dynamic-population.php:81
    234264msgid "Excel formula for generating url (encoded) query string (Localized)"
    235265msgstr ""
     
    238268
    239269#. translators: Translate to localized excel function.
    240 #: templates/template-dynamic-population.php:64
     270#: templates/template-dynamic-population.php:85
    241271msgid "ENCODEURL"
    242272msgstr "URL.CODEREN"
    243273
    244 #: templates/template-gravity-flow.php:10
     274#: templates/template-dynamic-population.php:94
     275msgid "shortcode string for dynamic population"
     276msgstr "shortcode string voor dynamisch vullen"
     277
     278#: templates/template-gravity-flow.php:8
     279msgid "Worfklow Status"
     280msgstr ""
     281
     282#: templates/template-gravity-flow.php:13
    245283msgid "Gravity Flow Step"
    246284msgstr "GravityFlow Stap"
    247285
    248 #: templates/template-gravity-flow.php:13
     286#: templates/template-gravity-flow.php:16
    249287msgid "Active"
    250288msgstr "Actief"
    251289
    252 #: templates/template-gravity-flow.php:14
     290#: templates/template-gravity-flow.php:17
    253291msgid "Conditions"
    254292msgstr "Voorwaarden"
    255293
    256 #: templates/template-gravity-flow.php:15
     294#: templates/template-gravity-flow.php:18
    257295msgid "Next Step (id)"
    258296msgstr "Volgende Stap (id)"
    259297
    260 #: templates/template-gravity-flow.php:16
     298#: templates/template-gravity-flow.php:19
    261299msgid "Count Shortcode"
    262300msgstr "Count Shortcode"
  • gravitywp-merge-tags/tags/1.4.2/readme.txt

    r3215221 r3236147  
    55Requires at least: 3.0.1
    66Tested up to: 6.7
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78
     79= 1.4.2 =
     80* Added JWT prefill string to Dynamic Population tab.
    7881
    7982= 1.4.1 =
  • gravitywp-merge-tags/tags/1.4.2/templates/template-dynamic-population.php

    r3008589 r3236147  
    55
    66<?php
    7 $pre_fill_url       = '/?';
    8 $pre_fill_url_excel = '"/?';
    9 $pre_fill_url_mergetags = '/?';
     7$gwp_prefill_plugin_activated = class_exists( '\GravityWP\Prefill\GWP_Prefill' );
     8$pre_fill_url                 = '/?';
     9$pre_fill_url_excel           = '"/?';
     10$pre_fill_url_mergetags       = '/?';
     11$pre_fill_url_jwt             = '';
     12$gwp_prefill_plugin_activated = class_exists( '\GravityWP\Prefill\GWP_Prefill' );
     13$pre_fill_url                 = '/?';
     14$pre_fill_url_excel           = '"/?';
     15$pre_fill_url_mergetags       = '/?';
     16$pre_fill_url_jwt             = '';
    1017if ( isset( $form['fields'] ) && is_array( $form['fields'] ) ) {
    1118    foreach ( $form['fields'] as $field ) {
     
    1926
    2027        if ( ! empty( $field['inputName'] ) && property_exists( $field, 'allowsPrepopulate' ) && $field['allowsPrepopulate'] === true ) {
    21             $pre_fill_url       .= $field['inputName'] . '=MERGETAG&';
    22             $pre_fill_url_excel .= $field['inputName'] . '="&ENCODEURL(CELL)&"&';
     28            $pre_fill_url           .= $field['inputName'] . '=MERGETAG&';
     29            $pre_fill_url_excel     .= $field['inputName'] . '="&ENCODEURL(CELL)&"&';
     30            $pre_fill_url           .= $field['inputName'] . '=MERGETAG&';
     31            $pre_fill_url_excel     .= $field['inputName'] . '="&ENCODEURL(CELL)&"&';
    2332            $pre_fill_url_mergetags .= ( strlen( $field['adminLabel'] ) > 0 ) ? $field['inputName'] . '={' . $field['adminLabel'] . ':' . $field['id'] . '}&' : $field['inputName'] . '={' . $field['label'] . ':' . $field['id'] . '}&';
     33            if ( $gwp_prefill_plugin_activated ) {
     34                $pre_fill_url_jwt .= ( strlen( $field['adminLabel'] ) > 0 ) ? $field['inputName'] . '=\'{' . $field['adminLabel'] . ':' . $field['id'] . '}\' ' : $field['inputName'] . '=\'{' . $field['label'] . ':' . $field['id'] . '}\' ';
     35            }
     36            if ( $gwp_prefill_plugin_activated ) {
     37                $pre_fill_url_jwt .= ( strlen( $field['adminLabel'] ) > 0 ) ? $field['inputName'] . '=\'{' . $field['adminLabel'] . ':' . $field['id'] . '}\' ' : $field['inputName'] . '=\'{' . $field['label'] . ':' . $field['id'] . '}\' ';
     38            }
    2439        }
    2540    }
     
    2742?>
    2843
    29 <table class='wp-list-table widefat striped'>
     44<div id="gwp-dynamic-population-anchor-links-wrapper" style="margin-bottom:10px; display:flex; flex-wrap: wrap; justify-content: space-between;">
     45    <div id="gwp-dynamic-population-anchor-links" style="flex-grow: 1; border: 1px solid #c3c4c7; background: white; display:flex; flex-wrap: wrap; align-items:center;">
     46        <span style="padding:10px;"><?php esc_html_e( 'Dynamic Population Type:', 'gravitywp-merge-tags' ); ?></span>
     47        <a style="padding:10px;" href="#gwp-dynamic-population-url-no-mt"><?php esc_html_e( 'URL', 'gravitywp-merge-tags' ); ?></a>
     48        <a style="padding:10px;" href="#gwp-dynamic-population-url-mt"><?php esc_html_e( 'URL with merge tags', 'gravitywp-merge-tags' ); ?></a>
     49        <a style="padding:10px;" href="#gwp-dynamic-population-excel-international"><?php esc_html_e( 'Excel formula (International)', 'gravitywp-merge-tags' ); ?></a>
     50        <a style="padding:10px;" href="#gwp-dynamic-population-excel-localized"><?php esc_html_e( 'Excel formula (Localized)', 'gravitywp-merge-tags' ); ?></a>
     51        <?php if ( $gwp_prefill_plugin_activated ) { ?>
     52        <a style="padding:10px;" href="#gwp-dynamic-population-hwt-prefill"><?php esc_html_e( 'JWT Prefill', 'gravitywp-merge-tags' ); ?></a>
     53        <?php } ?>
     54       
     55    </div>
     56</div>
     57
     58<table class='wp-list-table widefat break-all striped'>
    3059    <tbody>
    31 <thead>
    32     <tr>
    33         <th colspan='6'><?php esc_html_e( 'Url query string template for dynamic population', 'gravitywp-merge-tags' ); ?></th>
    34     </tr>
    35 </thead>
    36 <tr>
    37     <td colspan='6'><?php echo esc_html( rtrim( $pre_fill_url, '&' ) ); ?></td>
    38 </tr>
    39 <thead>
    40     <tr>
    41         <th colspan='6'><?php esc_html_e( 'Url query string template with merge tags for dynamic population', 'gravitywp-merge-tags' ); ?></th>
    42     </tr>
    43 </thead>
    44 <tr>
    45     <td colspan='6'><?php echo esc_html( rtrim( $pre_fill_url_mergetags, '&' ) ); ?></td>
    46 </tr>
    47 <thead>
    48     <tr>
    49         <th colspan='6'><?php esc_html_e( 'Excel formula for generating url (encoded) query string (International)', 'gravitywp-merge-tags' ); ?></th>
    50     </tr>
    51 </thead>
    52     <tr>
    53         <td colspan="6"><?php echo esc_html( rtrim( $pre_fill_url_excel, '&"&' ) ); ?></td>
    54     </tr>
    55 <thead>
    56     <tr>
    57         <th colspan='6'><?php esc_html_e( 'Excel formula for generating url (encoded) query string (Localized)', 'gravitywp-merge-tags' ); ?></th>
    58     </tr>
    59 </thead>
    60     <tr>
    61         <td colspan="6">
     60        <thead>
     61            <tr>
     62                <th style="width:15%"><?php esc_html_e( 'Type', 'gravitywp-merge-tags' ); ?></th>
     63                <th><?php esc_html_e( 'Value', 'gravitywp-merge-tags' ); ?></th>
     64            </tr>
     65        </thead>
     66
     67        <tr>
     68            <td id="gwp-dynamic-population-url-no-mt" class="break-word"><?php esc_html_e( 'Url query string template for dynamic population', 'gravitywp-merge-tags' ); ?></td>
     69            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url, '&' ) ); ?></td>
     70        </tr>
     71        <tr>
     72            <td id="gwp-dynamic-population-url-mt" class="break-word"><?php esc_html_e( 'Url query string template with merge tags for dynamic population', 'gravitywp-merge-tags' ); ?></td>
     73            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url_mergetags, '&' ) ); ?></td>
     74        </tr>
     75        <tr>
     76            <td id="gwp-dynamic-population-excel-international" class="break-word"><?php esc_html_e( 'Excel formula for generating url (encoded) query string (International)', 'gravitywp-merge-tags' ); ?></td>
     77       
     78            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url_excel, '&"&' ) ); ?></td>
     79        </tr>
     80        <tr>
     81            <td id="gwp-dynamic-population-excel-localized" class="break-word"><?php esc_html_e( 'Excel formula for generating url (encoded) query string (Localized)', 'gravitywp-merge-tags' ); ?></td>
     82            <td class='user-select-all'>
     83            <?php
     84            /* translators: Translate to localized excel function. */
     85            $excel_replace = esc_html__( 'ENCODEURL', 'gravitywp-merge-tags' );
     86            echo esc_html( str_replace( 'ENCODEURL', $excel_replace, rtrim( $pre_fill_url_excel, '&"&' ) ) );
     87            ?>
     88            </td>
     89        </tr>
    6290        <?php
    63         /* translators: Translate to localized excel function. */
    64         $excel_replace = esc_html__( 'ENCODEURL', 'gravitywp-merge-tags' );
    65         echo esc_html( str_replace( 'ENCODEURL', $excel_replace, rtrim( $pre_fill_url_excel, '&"&' ) ) );
     91        if ( $gwp_prefill_plugin_activated ) {
     92            ?>
     93        <tr>
     94            <td id="gwp-dynamic-population-hwt-prefill" class="break-word"><a href="https://gravitywp.com/add-on/jwt-prefill/?utm_source=merge-tags-plugin-page&utm_medium=display&utm_campaign=prefill-string"><?php echo esc_html__( 'JWT Prefill', 'gravitywp-merge-tags' ); ?></a><?php echo ' ' . esc_html__( 'shortcode string for dynamic population', 'gravitywp-merge-tags' ); ?></td>
     95
     96            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url_jwt, '&"&' ) ); ?></td>
     97        </tr>
     98            <?php
     99        }
    66100        ?>
    67         </td>
    68     </tr>
    69 </tbody>
     101    </tbody>
    70102</table>
  • gravitywp-merge-tags/trunk/assets/css/admin.css

    r3215179 r3236147  
    55    user-select: all;          /* Likely future */   
    66}
     7
     8.wp-list-table.widefat.break-all {
     9    word-break: break-all;
     10}
     11
     12.wp-list-table.widefat .break-word {
     13    word-break: break-word;
     14}
     15
     16.wp-list-table .user-select-all {
     17    user-select: all;
     18}
  • gravitywp-merge-tags/trunk/gravitywp-merge-tags.php

    r3215179 r3236147  
    44Plugin URI: https://gravitywp.com/plugin/merge-tags
    55Description: Gravity Forms add-on to list all the merge tags from a specific form
    6 Version: 1.4.1
     6Version: 1.4.2
    77Author: GravityWP
    88Author URI: https://gravitywp.com
     
    1212*/
    1313
    14 define( 'GWP_MERGETAGS_VERSION', '1.4.1' );
     14define( 'GWP_MERGETAGS_VERSION', '1.4.2' );
    1515
    1616add_action( 'gform_loaded', array( 'GWPMergeTags_AddOn_Bootstrap', 'load' ), 5 );
  • gravitywp-merge-tags/trunk/languages/gravitywp-merge-tags-nl_NL.po

    r3215179 r3236147  
    22msgstr ""
    33"Project-Id-Version: GravityWP - Merge Tags\n"
    4 "POT-Creation-Date: 2024-05-27 13:30-0400\n"
    5 "PO-Revision-Date: 2024-05-27 13:36-0400\n"
    6 "Last-Translator: \n"
     4"POT-Creation-Date: 2025-02-04 12:02+0100\n"
     5"PO-Revision-Date: 2025-02-04 12:03+0100\n"
     6"Last-Translator: Jurriaan Koops <[email protected]>\n"
    77"Language-Team: \n"
    88"Language: nl_NL\n"
     
    5151msgstr "Workflow"
    5252
    53 #: class-gwp-mergetags.php:303 templates/template-all-fields.php:161
    54 #: templates/template-all-fields.php:164
     53#: class-gwp-mergetags.php:303 templates/template-all-fields.php:163
     54#: templates/template-all-fields.php:166
    5555msgid "All Fields"
    5656msgstr "Alle velden"
     
    6464msgstr "Selecteer formulier"
    6565
    66 #: templates/template-all-fields.php:54
     66#: templates/template-all-fields.php:55
    6767msgid "Copy"
    6868msgstr "Kopiëren"
     
    108108msgstr ""
    109109
    110 #: templates/template-all-fields.php:96
    111 msgid "Gravity View gvlogic"
    112 msgstr ""
    113 
    114110#: templates/template-all-fields.php:97
     111msgid "GravityView gvlogic"
     112msgstr ""
     113
     114#: templates/template-all-fields.php:99
    115115msgid "Without fileuploads"
    116116msgstr "Zonder bestanden"
    117117
    118 #: templates/template-all-fields.php:111
     118#: templates/template-all-fields.php:113
    119119msgid "Select all fields"
    120120msgstr "Selecteer alle velden"
    121121
    122 #: templates/template-all-fields.php:113
     122#: templates/template-all-fields.php:115
    123123msgid "Label"
    124124msgstr "Label"
    125125
    126 #: templates/template-all-fields.php:114 templates/template-calculations.php:32
     126#: templates/template-all-fields.php:116 templates/template-calculations.php:32
    127127#: templates/template-conditional-logic.php:16
    128128#: templates/template-conditional-logic.php:109
     
    131131msgstr "Admin beheerder"
    132132
    133 #: templates/template-all-fields.php:115 templates/template-all-fields.php:161
    134 #: templates/template-gravity-flow.php:12
     133#: templates/template-all-fields.php:117 templates/template-all-fields.php:163
     134#: templates/template-dynamic-population.php:62
     135#: templates/template-gravity-flow.php:15
    135136msgid "Type"
    136137msgstr "Soort"
    137138
    138 #: templates/template-all-fields.php:116
     139#: templates/template-all-fields.php:118
    139140#: templates/template-merge-tags-advanced.php:41
    140141#: templates/template-merge-tags-advanced.php:73
     
    142143msgstr "CSS"
    143144
    144 #: templates/template-all-fields.php:164
     145#: templates/template-all-fields.php:166
    145146msgid "Table"
    146147msgstr "Tabel"
    147148
    148 #: templates/template-all-fields.php:173
     149#: templates/template-all-fields.php:175
    149150msgid "Replace All Fields Merge Tag"
    150151msgstr "Vervang All Fields Merge Tag"
    151152
    152 #: templates/template-all-fields.php:216
     153#: templates/template-all-fields.php:218
    153154msgid "Replace All Fields Merge Tag with Gravity Forms shortcode"
    154155msgstr "Vervang All Fields Merge Tag door de Gravity Forms shortcode"
    155156
    156 #: templates/template-all-fields.php:265
     157#: templates/template-all-fields.php:267
    157158msgid "Replace All Fields Merge Tag with Gravity View shortcode"
    158159msgstr "Vervang All Fields Merge Tag door de Gravity View shortcode"
    159160
    160 #: templates/template-all-fields.php:318
     161#: templates/template-all-fields.php:320
    161162msgid "Replace All Fields Merge Tag without fileuploads"
    162163msgstr "Vervang All Fields Merge Tag zonder bestanduploads"
     
    169170#: templates/template-conditional-logic.php:14
    170171#: templates/template-conditional-logic.php:107
    171 #: templates/template-gravity-flow.php:11
     172#: templates/template-gravity-flow.php:14
    172173msgid "ID"
    173174msgstr "ID"
     
    217218msgstr "Gebruikt in voorwaardelijke logica van veld met ID"
    218219
    219 #: templates/template-dynamic-population.php:33
     220#: templates/template-dynamic-population.php:46
     221msgid "Dynamic Population Type:"
     222msgstr "Dynamisch vullen Type:"
     223
     224#: templates/template-dynamic-population.php:47
     225msgid "URL"
     226msgstr ""
     227
     228#: templates/template-dynamic-population.php:48
     229msgid "URL with merge tags"
     230msgstr "URL met merge tags"
     231
     232#: templates/template-dynamic-population.php:49
     233msgid "Excel formula (International)"
     234msgstr "Excel formule (Internationaal)"
     235
     236#: templates/template-dynamic-population.php:50
     237msgid "Excel formula (Localized)"
     238msgstr "Excel formule (Lokaal)"
     239
     240#: templates/template-dynamic-population.php:52
     241#: templates/template-dynamic-population.php:94
     242msgid "JWT Prefill"
     243msgstr ""
     244
     245#: templates/template-dynamic-population.php:63
     246msgid "Value"
     247msgstr "Waarde"
     248
     249#: templates/template-dynamic-population.php:68
    220250msgid "Url query string template for dynamic population"
    221251msgstr "Url-query string sjabloon voor dynamisch vullen"
    222252
    223 #: templates/template-dynamic-population.php:41
     253#: templates/template-dynamic-population.php:72
    224254msgid "Url query string template with merge tags for dynamic population"
    225255msgstr "Url-query string sjabloon met samenvoegtags voor dynamische populatie"
    226256
    227 #: templates/template-dynamic-population.php:49
     257#: templates/template-dynamic-population.php:76
    228258msgid "Excel formula for generating url (encoded) query string (International)"
    229259msgstr ""
     
    231261"(internationaal)"
    232262
    233 #: templates/template-dynamic-population.php:57
     263#: templates/template-dynamic-population.php:81
    234264msgid "Excel formula for generating url (encoded) query string (Localized)"
    235265msgstr ""
     
    238268
    239269#. translators: Translate to localized excel function.
    240 #: templates/template-dynamic-population.php:64
     270#: templates/template-dynamic-population.php:85
    241271msgid "ENCODEURL"
    242272msgstr "URL.CODEREN"
    243273
    244 #: templates/template-gravity-flow.php:10
     274#: templates/template-dynamic-population.php:94
     275msgid "shortcode string for dynamic population"
     276msgstr "shortcode string voor dynamisch vullen"
     277
     278#: templates/template-gravity-flow.php:8
     279msgid "Worfklow Status"
     280msgstr ""
     281
     282#: templates/template-gravity-flow.php:13
    245283msgid "Gravity Flow Step"
    246284msgstr "GravityFlow Stap"
    247285
    248 #: templates/template-gravity-flow.php:13
     286#: templates/template-gravity-flow.php:16
    249287msgid "Active"
    250288msgstr "Actief"
    251289
    252 #: templates/template-gravity-flow.php:14
     290#: templates/template-gravity-flow.php:17
    253291msgid "Conditions"
    254292msgstr "Voorwaarden"
    255293
    256 #: templates/template-gravity-flow.php:15
     294#: templates/template-gravity-flow.php:18
    257295msgid "Next Step (id)"
    258296msgstr "Volgende Stap (id)"
    259297
    260 #: templates/template-gravity-flow.php:16
     298#: templates/template-gravity-flow.php:19
    261299msgid "Count Shortcode"
    262300msgstr "Count Shortcode"
  • gravitywp-merge-tags/trunk/readme.txt

    r3215221 r3236147  
    55Requires at least: 3.0.1
    66Tested up to: 6.7
    7 Stable tag: 1.4.1
     7Stable tag: 1.4.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    7676
    7777== Changelog ==
     78
     79= 1.4.2 =
     80* Added JWT prefill string to Dynamic Population tab.
    7881
    7982= 1.4.1 =
  • gravitywp-merge-tags/trunk/templates/template-dynamic-population.php

    r3008589 r3236147  
    55
    66<?php
    7 $pre_fill_url       = '/?';
    8 $pre_fill_url_excel = '"/?';
    9 $pre_fill_url_mergetags = '/?';
     7$gwp_prefill_plugin_activated = class_exists( '\GravityWP\Prefill\GWP_Prefill' );
     8$pre_fill_url                 = '/?';
     9$pre_fill_url_excel           = '"/?';
     10$pre_fill_url_mergetags       = '/?';
     11$pre_fill_url_jwt             = '';
     12$gwp_prefill_plugin_activated = class_exists( '\GravityWP\Prefill\GWP_Prefill' );
     13$pre_fill_url                 = '/?';
     14$pre_fill_url_excel           = '"/?';
     15$pre_fill_url_mergetags       = '/?';
     16$pre_fill_url_jwt             = '';
    1017if ( isset( $form['fields'] ) && is_array( $form['fields'] ) ) {
    1118    foreach ( $form['fields'] as $field ) {
     
    1926
    2027        if ( ! empty( $field['inputName'] ) && property_exists( $field, 'allowsPrepopulate' ) && $field['allowsPrepopulate'] === true ) {
    21             $pre_fill_url       .= $field['inputName'] . '=MERGETAG&';
    22             $pre_fill_url_excel .= $field['inputName'] . '="&ENCODEURL(CELL)&"&';
     28            $pre_fill_url           .= $field['inputName'] . '=MERGETAG&';
     29            $pre_fill_url_excel     .= $field['inputName'] . '="&ENCODEURL(CELL)&"&';
     30            $pre_fill_url           .= $field['inputName'] . '=MERGETAG&';
     31            $pre_fill_url_excel     .= $field['inputName'] . '="&ENCODEURL(CELL)&"&';
    2332            $pre_fill_url_mergetags .= ( strlen( $field['adminLabel'] ) > 0 ) ? $field['inputName'] . '={' . $field['adminLabel'] . ':' . $field['id'] . '}&' : $field['inputName'] . '={' . $field['label'] . ':' . $field['id'] . '}&';
     33            if ( $gwp_prefill_plugin_activated ) {
     34                $pre_fill_url_jwt .= ( strlen( $field['adminLabel'] ) > 0 ) ? $field['inputName'] . '=\'{' . $field['adminLabel'] . ':' . $field['id'] . '}\' ' : $field['inputName'] . '=\'{' . $field['label'] . ':' . $field['id'] . '}\' ';
     35            }
     36            if ( $gwp_prefill_plugin_activated ) {
     37                $pre_fill_url_jwt .= ( strlen( $field['adminLabel'] ) > 0 ) ? $field['inputName'] . '=\'{' . $field['adminLabel'] . ':' . $field['id'] . '}\' ' : $field['inputName'] . '=\'{' . $field['label'] . ':' . $field['id'] . '}\' ';
     38            }
    2439        }
    2540    }
     
    2742?>
    2843
    29 <table class='wp-list-table widefat striped'>
     44<div id="gwp-dynamic-population-anchor-links-wrapper" style="margin-bottom:10px; display:flex; flex-wrap: wrap; justify-content: space-between;">
     45    <div id="gwp-dynamic-population-anchor-links" style="flex-grow: 1; border: 1px solid #c3c4c7; background: white; display:flex; flex-wrap: wrap; align-items:center;">
     46        <span style="padding:10px;"><?php esc_html_e( 'Dynamic Population Type:', 'gravitywp-merge-tags' ); ?></span>
     47        <a style="padding:10px;" href="#gwp-dynamic-population-url-no-mt"><?php esc_html_e( 'URL', 'gravitywp-merge-tags' ); ?></a>
     48        <a style="padding:10px;" href="#gwp-dynamic-population-url-mt"><?php esc_html_e( 'URL with merge tags', 'gravitywp-merge-tags' ); ?></a>
     49        <a style="padding:10px;" href="#gwp-dynamic-population-excel-international"><?php esc_html_e( 'Excel formula (International)', 'gravitywp-merge-tags' ); ?></a>
     50        <a style="padding:10px;" href="#gwp-dynamic-population-excel-localized"><?php esc_html_e( 'Excel formula (Localized)', 'gravitywp-merge-tags' ); ?></a>
     51        <?php if ( $gwp_prefill_plugin_activated ) { ?>
     52        <a style="padding:10px;" href="#gwp-dynamic-population-hwt-prefill"><?php esc_html_e( 'JWT Prefill', 'gravitywp-merge-tags' ); ?></a>
     53        <?php } ?>
     54       
     55    </div>
     56</div>
     57
     58<table class='wp-list-table widefat break-all striped'>
    3059    <tbody>
    31 <thead>
    32     <tr>
    33         <th colspan='6'><?php esc_html_e( 'Url query string template for dynamic population', 'gravitywp-merge-tags' ); ?></th>
    34     </tr>
    35 </thead>
    36 <tr>
    37     <td colspan='6'><?php echo esc_html( rtrim( $pre_fill_url, '&' ) ); ?></td>
    38 </tr>
    39 <thead>
    40     <tr>
    41         <th colspan='6'><?php esc_html_e( 'Url query string template with merge tags for dynamic population', 'gravitywp-merge-tags' ); ?></th>
    42     </tr>
    43 </thead>
    44 <tr>
    45     <td colspan='6'><?php echo esc_html( rtrim( $pre_fill_url_mergetags, '&' ) ); ?></td>
    46 </tr>
    47 <thead>
    48     <tr>
    49         <th colspan='6'><?php esc_html_e( 'Excel formula for generating url (encoded) query string (International)', 'gravitywp-merge-tags' ); ?></th>
    50     </tr>
    51 </thead>
    52     <tr>
    53         <td colspan="6"><?php echo esc_html( rtrim( $pre_fill_url_excel, '&"&' ) ); ?></td>
    54     </tr>
    55 <thead>
    56     <tr>
    57         <th colspan='6'><?php esc_html_e( 'Excel formula for generating url (encoded) query string (Localized)', 'gravitywp-merge-tags' ); ?></th>
    58     </tr>
    59 </thead>
    60     <tr>
    61         <td colspan="6">
     60        <thead>
     61            <tr>
     62                <th style="width:15%"><?php esc_html_e( 'Type', 'gravitywp-merge-tags' ); ?></th>
     63                <th><?php esc_html_e( 'Value', 'gravitywp-merge-tags' ); ?></th>
     64            </tr>
     65        </thead>
     66
     67        <tr>
     68            <td id="gwp-dynamic-population-url-no-mt" class="break-word"><?php esc_html_e( 'Url query string template for dynamic population', 'gravitywp-merge-tags' ); ?></td>
     69            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url, '&' ) ); ?></td>
     70        </tr>
     71        <tr>
     72            <td id="gwp-dynamic-population-url-mt" class="break-word"><?php esc_html_e( 'Url query string template with merge tags for dynamic population', 'gravitywp-merge-tags' ); ?></td>
     73            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url_mergetags, '&' ) ); ?></td>
     74        </tr>
     75        <tr>
     76            <td id="gwp-dynamic-population-excel-international" class="break-word"><?php esc_html_e( 'Excel formula for generating url (encoded) query string (International)', 'gravitywp-merge-tags' ); ?></td>
     77       
     78            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url_excel, '&"&' ) ); ?></td>
     79        </tr>
     80        <tr>
     81            <td id="gwp-dynamic-population-excel-localized" class="break-word"><?php esc_html_e( 'Excel formula for generating url (encoded) query string (Localized)', 'gravitywp-merge-tags' ); ?></td>
     82            <td class='user-select-all'>
     83            <?php
     84            /* translators: Translate to localized excel function. */
     85            $excel_replace = esc_html__( 'ENCODEURL', 'gravitywp-merge-tags' );
     86            echo esc_html( str_replace( 'ENCODEURL', $excel_replace, rtrim( $pre_fill_url_excel, '&"&' ) ) );
     87            ?>
     88            </td>
     89        </tr>
    6290        <?php
    63         /* translators: Translate to localized excel function. */
    64         $excel_replace = esc_html__( 'ENCODEURL', 'gravitywp-merge-tags' );
    65         echo esc_html( str_replace( 'ENCODEURL', $excel_replace, rtrim( $pre_fill_url_excel, '&"&' ) ) );
     91        if ( $gwp_prefill_plugin_activated ) {
     92            ?>
     93        <tr>
     94            <td id="gwp-dynamic-population-hwt-prefill" class="break-word"><a href="https://gravitywp.com/add-on/jwt-prefill/?utm_source=merge-tags-plugin-page&utm_medium=display&utm_campaign=prefill-string"><?php echo esc_html__( 'JWT Prefill', 'gravitywp-merge-tags' ); ?></a><?php echo ' ' . esc_html__( 'shortcode string for dynamic population', 'gravitywp-merge-tags' ); ?></td>
     95
     96            <td class='user-select-all'><?php echo esc_html( rtrim( $pre_fill_url_jwt, '&"&' ) ); ?></td>
     97        </tr>
     98            <?php
     99        }
    66100        ?>
    67         </td>
    68     </tr>
    69 </tbody>
     101    </tbody>
    70102</table>
Note: See TracChangeset for help on using the changeset viewer.