Changeset 2848029
- Timestamp:
- 01/13/2023 03:28:46 PM (3 years ago)
- Location:
- gravitywp-merge-tags
- Files:
-
- 20 added
- 9 edited
-
tags/1.2.0 (added)
-
tags/1.2.0/assets (added)
-
tags/1.2.0/assets/img (added)
-
tags/1.2.0/assets/img/gravitywp-logo.svg (added)
-
tags/1.2.0/assets/img/gwp_astronaut.svg (added)
-
tags/1.2.0/assets/img/gwp_astronaut2.svg (added)
-
tags/1.2.0/class-gwp-mergetags.php (added)
-
tags/1.2.0/gravitywp-merge-tags.php (added)
-
tags/1.2.0/languages (added)
-
tags/1.2.0/languages/gravitywp-merge-tags-nl_NL.mo (added)
-
tags/1.2.0/languages/gravitywp-merge-tags-nl_NL.po (added)
-
tags/1.2.0/languages/gravitywp-merge-tags.pot (added)
-
tags/1.2.0/readme.txt (added)
-
tags/1.2.0/templates (added)
-
tags/1.2.0/templates/template-all-fields.php (added)
-
tags/1.2.0/templates/template-conditional-logic.php (added)
-
tags/1.2.0/templates/template-gravity-flow.php (added)
-
tags/1.2.0/templates/template-merge-tags-advanced.php (added)
-
tags/1.2.0/templates/template-merge-tags.php (added)
-
tags/1.2.0/templates/template-standard-merge-tags.php (added)
-
trunk/class-gwp-mergetags.php (modified) (6 diffs)
-
trunk/gravitywp-merge-tags.php (modified) (4 diffs)
-
trunk/languages/gravitywp-merge-tags-nl_NL.mo (modified) (previous)
-
trunk/languages/gravitywp-merge-tags-nl_NL.po (modified) (6 diffs)
-
trunk/languages/gravitywp-merge-tags.pot (modified) (4 diffs)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/templates/template-gravity-flow.php (modified) (1 diff)
-
trunk/templates/template-merge-tags-advanced.php (modified) (2 diffs)
-
trunk/templates/template-standard-merge-tags.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
gravitywp-merge-tags/trunk/class-gwp-mergetags.php
r2786840 r2848029 6 6 GFForms::include_addon_framework(); 7 7 8 9 /** 10 * GWPMergeTags. 11 * 12 * @author GravityWP 13 * @since v0.0.1 14 * @version v1.0.0 15 * @see GFAddOn 16 * 17 * @global 18 */ 8 19 class GWPMergeTags extends GFAddOn { 9 20 10 protected $_version = GWP_MERGETAGS_VERSION; 21 /** 22 * @var string $_version 23 */ 24 protected $_version = GWP_MERGETAGS_VERSION; 25 /** 26 * @var string $_min_gravityforms_version 27 */ 11 28 protected $_min_gravityforms_version = '1.9'; 12 protected $_slug = 'gravitywp-merge-tags'; 13 protected $_path = 'gravitywp-merge-tags/gravitywp-merge-tags.php'; 14 protected $_full_path = __FILE__; 15 protected $_title = 'Merge Tags'; 16 protected $_short_title = 'Merge Tags'; 17 29 30 /** 31 * @var string $_slug 32 */ 33 protected $_slug = 'gravitywp-merge-tags'; 34 /** 35 * @var string $_path 36 */ 37 protected $_path = 'gravitywp-merge-tags/gravitywp-merge-tags.php'; 38 /** 39 * @var string $_full_path 40 */ 41 protected $_full_path = __FILE__; 42 /** 43 * @var string $_title 44 */ 45 protected $_title = 'Merge Tags'; 46 /** 47 * @var string $_short_title 48 */ 49 protected $_short_title = 'Merge Tags'; 50 51 /** 52 * @var GWPMergeTags $_instance 53 */ 18 54 private static $_instance = null; 19 55 56 /** 57 * Function: __construct. 58 * 59 * @author GravityWP 60 * @since v0.0.1 61 * @version v1.0.0 62 * @access public 63 * 64 * @return void 65 */ 20 66 public function __construct() { 21 67 $this->_capabilities_plugin_page = 'gravityforms_edit_forms'; … … 25 71 26 72 /** 73 * Override this function to perform tasks during WordPress initialization. 74 * 75 * @return void 76 */ 77 public function init() { 78 parent::init(); 79 add_filter('wp_before_admin_bar_render', [__CLASS__, 'admin_bar'], 20); 80 } 81 82 /** 27 83 * Get an instance of this class. 28 84 * … … 37 93 } 38 94 95 /** 96 * Function: scripts. 97 * 98 * @author GravityWP 99 * @since v0.0.1 100 * @version v1.0.0 101 * @access public 102 * 103 * @return array<mixed> 104 */ 39 105 public function scripts() { 40 106 return array_merge( … … 57 123 * Target of the plugin menu left nav icon. Displays the outer plugin page markup and calls plugin_page() to render the actual page. 58 124 * Override plugin_page() in order to provide a custom plugin page 125 * 126 * @author GravityWP 127 * @since v0.0.1 128 * @version v1.0.0 129 * @access public 130 * 131 * @return void 59 132 */ 60 133 public function plugin_page_container() { … … 93 166 94 167 /** 168 * Modifies the top WordPress toolbar to add Gravity Forms menu items. 169 * 170 * @since Unknown 171 * 172 * @global $wp_admin_bar 173 * 174 * @used-by GFForms::init() 175 * 176 * @return void 177 */ 178 public static function admin_bar( ) { 179 /** 180 * @var WP_Admin_Bar $wp_admin_bar 181 */ 182 global $wp_admin_bar; 183 184 $recent_form_ids = GFFormsModel::get_recent_forms(); 185 186 if ( $recent_form_ids ) { 187 $forms = GFFormsModel::get_form_meta_by_id( $recent_form_ids ); 188 189 foreach ( $recent_form_ids as $recent_form_id ) { 190 191 if ( GFCommon::current_user_can_any( 'gravityforms_edit_forms' ) ) { 192 $wp_admin_bar->add_node( 193 array( 194 'id' => 'gform-form-' . $recent_form_id . '-mergetags', 195 'parent' => 'gform-form-' . $recent_form_id, 196 'title' => esc_html__( 'Merge Tags', 'gravityforms' ), 197 'href' => admin_url( 'admin.php?page=gravitywp-merge-tags&tab=merge-tags&id=' . $recent_form_id ), 198 ) 199 ); 200 } 201 } 202 } 203 } 204 205 /** 95 206 * Creates a custom admin page for GravityWP - Merge Tags 207 * 208 * @author GravityWP 209 * @since v0.0.1 210 * @version v1.0.0 211 * @access public 212 * 213 * @return void 96 214 */ 97 215 public function plugin_page() { … … 105 223 $form = RGFormsModel::get_form_meta( absint( $_GET['id'] ) ); 106 224 225 /** 226 * Function: gwp_create_menu_item. 227 * 228 * @author GravityWP 229 * @since v0.0.1 230 * @version v1.0.0 231 * @param string $slug 232 * @param string $title 233 * 234 * @return void 235 */ 107 236 function gwp_create_menu_item( $slug, $title ) { 108 237 $url = 'href=?page=gravitywp-merge-tags&id=' . absint( $_GET['id'] ); -
gravitywp-merge-tags/trunk/gravitywp-merge-tags.php
r2786840 r2848029 4 4 Plugin URI: https://gravitywp.com/plugin/merge-tags 5 5 Description: Gravity Forms add-on to list all the merge tags from a specific form 6 Version: 1. 1.46 Version: 1.2.0 7 7 Author: GravityWP 8 8 Author URI: https://gravitywp.com … … 12 12 */ 13 13 14 define( 'GWP_MERGETAGS_VERSION', '1. 1.4' );14 define( 'GWP_MERGETAGS_VERSION', '1.2.0' ); 15 15 16 16 add_action( 'gform_loaded', array( 'GWPMergeTags_AddOn_Bootstrap', 'load' ), 5 ); 17 17 18 /** 19 * GWPMergeTags_AddOn_Bootstrap. 20 * 21 * @author GravityWP 22 * @since v0.0.1 23 * @version v1.0.0 24 * 25 * @global 26 */ 18 27 class GWPMergeTags_AddOn_Bootstrap { 19 28 29 /** 30 * Function: load. 31 * 32 * @author GravityWP 33 * @since v0.0.1 34 * @version v1.0.0 35 * @access public 36 * 37 * @return void 38 */ 20 39 public static function load() { 21 40 … … 31 50 32 51 add_filter( 'gform_toolbar_menu', 'gwpmergetags_toolbar', 10, 2 ); 52 /** 53 * Function: gwpmergetags_toolbar. 54 * 55 * @author GravityWP 56 * @since v0.0.1 57 * @version v1.0.0 58 * @global 59 * @param array<mixed> $menu_items 60 * @param int $form_id 61 * 62 * @return mixed 63 */ 33 64 function gwpmergetags_toolbar( $menu_items, $form_id ) { 34 65 … … 49 80 add_action( 'plugins_loaded', 'gwp_merge_tags_load_textdomain' ); 50 81 82 /** 83 * Function: gwp_merge_tags_load_textdomain. 84 * 85 * @author GravityWP 86 * @since v0.0.1 87 * @version v1.0.0 88 * @global 89 * 90 * @return void 91 */ 51 92 function gwp_merge_tags_load_textdomain() { 52 93 load_plugin_textdomain( 'gravitywp-merge-tags', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' ); -
gravitywp-merge-tags/trunk/languages/gravitywp-merge-tags-nl_NL.po
r2670736 r2848029 2 2 msgstr "" 3 3 "Project-Id-Version: GravityWP - Merge Tags\n" 4 "POT-Creation-Date: 2022- 01-27 16:22+0100\n"5 "PO-Revision-Date: 2022- 01-27 16:26+0100\n"4 "POT-Creation-Date: 2022-11-16 13:36+0100\n" 5 "PO-Revision-Date: 2022-11-16 13:39+0100\n" 6 6 "Last-Translator: \n" 7 7 "Language-Team: \n" … … 17 17 "X-Poedit-SourceCharset: UTF-8\n" 18 18 "X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;" 19 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c; "20 "_n _noop:1,2;_nx_noop:3c,1,2;__ngettext_noop:1,2\n"19 "esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;" 20 "_nx_noop:3c,1,2;__ngettext_noop:1,2\n" 21 21 "X-Poedit-SearchPath-0: .\n" 22 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 23 23 24 #: class-gwp-mergetags.php: 131templates/template-merge-tags.php:624 #: class-gwp-mergetags.php:212 templates/template-merge-tags.php:6 25 25 msgid "Merge Tags" 26 26 msgstr "Merge Tags" 27 27 28 #: class-gwp-mergetags.php: 13428 #: class-gwp-mergetags.php:215 29 29 msgid "Advanced" 30 30 msgstr "Geavanceerd" 31 31 32 #: class-gwp-mergetags.php:137 32 #: class-gwp-mergetags.php:218 33 msgid "Conditional Logic" 34 msgstr "Conditionele logica" 35 36 #: class-gwp-mergetags.php:221 33 37 msgid "Meta" 34 38 msgstr "" 35 39 36 #: class-gwp-mergetags.php: 14140 #: class-gwp-mergetags.php:225 37 41 msgid "Workflow" 38 42 msgstr "" 39 43 40 #: class-gwp-mergetags.php: 145templates/template-all-fields.php:944 #: class-gwp-mergetags.php:229 templates/template-all-fields.php:9 41 45 #: templates/template-all-fields.php:12 42 46 msgid "All Fields" 43 47 msgstr "Alle Velden" 44 48 45 #: class-gwp-mergetags.php: 15449 #: class-gwp-mergetags.php:238 46 50 msgid "Template not found." 47 51 msgstr "Sjabloon niet gevonden." 48 52 49 #: class-gwp-mergetags.php: 17653 #: class-gwp-mergetags.php:260 50 54 msgid "Select Form" 51 55 msgstr "Selecteer een formulier" … … 63 67 msgstr "Vervang de merge tag voor Alle Velden" 64 68 65 #: templates/template-all-fields.php:6 169 #: templates/template-all-fields.php:60 66 70 msgid "Replace All Fields Merge Tag without fileuploads" 67 71 msgstr "Vervang de merge tag voor Alle Velden zonder bestanduploads" 72 73 #: templates/template-conditional-logic.php:14 74 #: templates/template-conditional-logic.php:103 75 #: templates/template-gravity-flow.php:11 76 msgid "ID" 77 msgstr "" 78 79 #: templates/template-conditional-logic.php:15 80 #: templates/template-conditional-logic.php:104 81 #: templates/template-merge-tags-advanced.php:67 82 msgid "Field Label" 83 msgstr "Veld Label" 84 85 #: templates/template-conditional-logic.php:16 86 #: templates/template-conditional-logic.php:105 87 msgid "Admin Label" 88 msgstr "Beheerders Label" 89 90 #: templates/template-conditional-logic.php:17 91 msgid "Show / Hide" 92 msgstr "" 93 94 #: templates/template-conditional-logic.php:18 95 msgid "Match" 96 msgstr "" 97 98 #: templates/template-conditional-logic.php:19 99 msgid "Rules" 100 msgstr "" 101 102 #: templates/template-conditional-logic.php:106 103 msgid "Used in conditional logic of field with ID" 104 msgstr "" 68 105 69 106 #: templates/template-gravity-flow.php:10 … … 71 108 msgstr "GravityFlow Stap" 72 109 73 #: templates/template-gravity-flow.php:1174 msgid "ID"75 msgstr ""76 77 110 #: templates/template-gravity-flow.php:13 78 111 msgid "Active" … … 91 124 msgstr "" 92 125 93 #: templates/template-merge-tags-advanced.php:34 94 msgid "Field Label" 95 msgstr "Veld Label" 96 97 #: templates/template-merge-tags-advanced.php:35 126 #: templates/template-merge-tags-advanced.php:68 98 127 msgid "Admin Label / value" 99 msgstr " Adminlabel / waarde"100 101 #: templates/template-merge-tags-advanced.php: 36128 msgstr "Beheerders label / waarde" 129 130 #: templates/template-merge-tags-advanced.php:69 102 131 msgid "Merge Tag" 103 132 msgstr "Merge Tag" 104 133 105 #: templates/template-merge-tags-advanced.php: 37134 #: templates/template-merge-tags-advanced.php:70 106 135 msgid "Merge Tag (admin)" 107 136 msgstr "" 108 137 109 #: templates/template-merge-tags-advanced.php: 38138 #: templates/template-merge-tags-advanced.php:71 110 139 msgid "Merge Tags (short)" 111 140 msgstr "Merge Tags (kort)" 112 141 113 #: templates/template-merge-tags-advanced.php: 39142 #: templates/template-merge-tags-advanced.php:72 114 143 msgid "Populate" 115 144 msgstr "" 116 145 117 #: templates/template-merge-tags-advanced.php: 40146 #: templates/template-merge-tags-advanced.php:73 118 147 msgid "CSS" 119 148 msgstr "" 120 149 121 #: templates/template-merge-tags-advanced.php: 41150 #: templates/template-merge-tags-advanced.php:74 122 151 msgid "Field Type" 123 152 msgstr "Veld Type" 124 153 125 #: templates/template-merge-tags-advanced.php: 42154 #: templates/template-merge-tags-advanced.php:75 126 155 msgid "Field ID" 127 156 msgstr "Veld ID" 128 157 129 #: templates/template-merge-tags-advanced.php: 99158 #: templates/template-merge-tags-advanced.php:132 130 159 msgid "Url query string template for dynamic population" 131 160 msgstr "Url-queryreekssjabloon voor dynamisch vullen" 132 161 133 #: templates/template-merge-tags-advanced.php:107 134 msgid "Excel formula for generating url query string" 135 msgstr "Excel-formule voor het genereren van url-queryreeks" 162 #: templates/template-merge-tags-advanced.php:140 163 msgid "Excel formula for generating url (encoded) query string (International)" 164 msgstr "" 165 "Excel-formule voor het genereren van url (gecodeerde) queryreeks " 166 "(internationaal)" 167 168 #: templates/template-merge-tags-advanced.php:148 169 msgid "Excel formula for generating url (encoded) query string (Localized)" 170 msgstr "" 171 "Excel-formule voor het genereren van url (gecodeerde) queryreeks " 172 "(gelokaliseerd)" 173 174 #. translators: Translate to localized excel function. 175 #: templates/template-merge-tags-advanced.php:154 176 msgid "ENCODEURL" 177 msgstr "URL.CODEREN" 136 178 137 179 #. Plugin Name of the plugin/theme … … 146 188 msgid "Gravity Forms add-on to list all the merge tags from a specific form" 147 189 msgstr "" 148 "Gravity Forms add-on om alle Merge Tags van een specifiek formulier weer "149 " tegeven"190 "Gravity Forms add-on om alle Merge Tags van een specifiek formulier weer te " 191 "geven" 150 192 151 193 #. Author of the plugin/theme -
gravitywp-merge-tags/trunk/languages/gravitywp-merge-tags.pot
r2670736 r2848029 4 4 "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 5 5 "Project-Id-Version: GravityWP - Merge Tags\n" 6 "POT-Creation-Date: 2022- 01-27 16:22+0100\n"6 "POT-Creation-Date: 2022-11-16 13:35+0100\n" 7 7 "PO-Revision-Date: 2017-10-01 23:00+0200\n" 8 8 "Last-Translator: \n" … … 22 22 "X-Poedit-SearchPathExcluded-0: *.js\n" 23 23 24 #: class-gwp-mergetags.php: 131templates/template-merge-tags.php:624 #: class-gwp-mergetags.php:212 templates/template-merge-tags.php:6 25 25 msgid "Merge Tags" 26 26 msgstr "" 27 27 28 #: class-gwp-mergetags.php: 13428 #: class-gwp-mergetags.php:215 29 29 msgid "Advanced" 30 30 msgstr "" 31 31 32 #: class-gwp-mergetags.php:137 32 #: class-gwp-mergetags.php:218 33 msgid "Conditional Logic" 34 msgstr "" 35 36 #: class-gwp-mergetags.php:221 33 37 msgid "Meta" 34 38 msgstr "" 35 39 36 #: class-gwp-mergetags.php: 14140 #: class-gwp-mergetags.php:225 37 41 msgid "Workflow" 38 42 msgstr "" 39 43 40 #: class-gwp-mergetags.php: 145templates/template-all-fields.php:944 #: class-gwp-mergetags.php:229 templates/template-all-fields.php:9 41 45 #: templates/template-all-fields.php:12 42 46 msgid "All Fields" 43 47 msgstr "" 44 48 45 #: class-gwp-mergetags.php: 15449 #: class-gwp-mergetags.php:238 46 50 msgid "Template not found." 47 51 msgstr "" 48 52 49 #: class-gwp-mergetags.php: 17653 #: class-gwp-mergetags.php:260 50 54 msgid "Select Form" 51 55 msgstr "" … … 63 67 msgstr "" 64 68 65 #: templates/template-all-fields.php:6 169 #: templates/template-all-fields.php:60 66 70 msgid "Replace All Fields Merge Tag without fileuploads" 71 msgstr "" 72 73 #: templates/template-conditional-logic.php:14 74 #: templates/template-conditional-logic.php:103 75 #: templates/template-gravity-flow.php:11 76 msgid "ID" 77 msgstr "" 78 79 #: templates/template-conditional-logic.php:15 80 #: templates/template-conditional-logic.php:104 81 #: templates/template-merge-tags-advanced.php:67 82 msgid "Field Label" 83 msgstr "" 84 85 #: templates/template-conditional-logic.php:16 86 #: templates/template-conditional-logic.php:105 87 msgid "Admin Label" 88 msgstr "" 89 90 #: templates/template-conditional-logic.php:17 91 msgid "Show / Hide" 92 msgstr "" 93 94 #: templates/template-conditional-logic.php:18 95 msgid "Match" 96 msgstr "" 97 98 #: templates/template-conditional-logic.php:19 99 msgid "Rules" 100 msgstr "" 101 102 #: templates/template-conditional-logic.php:106 103 msgid "Used in conditional logic of field with ID" 67 104 msgstr "" 68 105 69 106 #: templates/template-gravity-flow.php:10 70 107 msgid "Gravity Flow Step" 71 msgstr ""72 73 #: templates/template-gravity-flow.php:1174 msgid "ID"75 108 msgstr "" 76 109 … … 91 124 msgstr "" 92 125 93 #: templates/template-merge-tags-advanced.php:34 94 msgid "Field Label" 95 msgstr "" 96 97 #: templates/template-merge-tags-advanced.php:35 126 #: templates/template-merge-tags-advanced.php:68 98 127 msgid "Admin Label / value" 99 128 msgstr "" 100 129 101 #: templates/template-merge-tags-advanced.php: 36130 #: templates/template-merge-tags-advanced.php:69 102 131 msgid "Merge Tag" 103 132 msgstr "" 104 133 105 #: templates/template-merge-tags-advanced.php: 37134 #: templates/template-merge-tags-advanced.php:70 106 135 msgid "Merge Tag (admin)" 107 136 msgstr "" 108 137 109 #: templates/template-merge-tags-advanced.php: 38138 #: templates/template-merge-tags-advanced.php:71 110 139 msgid "Merge Tags (short)" 111 140 msgstr "" 112 141 113 #: templates/template-merge-tags-advanced.php: 39142 #: templates/template-merge-tags-advanced.php:72 114 143 msgid "Populate" 115 144 msgstr "" 116 145 117 #: templates/template-merge-tags-advanced.php: 40146 #: templates/template-merge-tags-advanced.php:73 118 147 msgid "CSS" 119 148 msgstr "" 120 149 121 #: templates/template-merge-tags-advanced.php: 41150 #: templates/template-merge-tags-advanced.php:74 122 151 msgid "Field Type" 123 152 msgstr "" 124 153 125 #: templates/template-merge-tags-advanced.php: 42154 #: templates/template-merge-tags-advanced.php:75 126 155 msgid "Field ID" 127 156 msgstr "" 128 157 129 #: templates/template-merge-tags-advanced.php: 99158 #: templates/template-merge-tags-advanced.php:132 130 159 msgid "Url query string template for dynamic population" 131 160 msgstr "" 132 161 133 #: templates/template-merge-tags-advanced.php:107 134 msgid "Excel formula for generating url query string" 162 #: templates/template-merge-tags-advanced.php:140 163 msgid "" 164 "Excel formula for generating url (encoded) query string (International)" 165 msgstr "" 166 167 #: templates/template-merge-tags-advanced.php:148 168 msgid "Excel formula for generating url (encoded) query string (Localized)" 169 msgstr "" 170 171 #. translators: Translate to localized excel function. 172 #: templates/template-merge-tags-advanced.php:154 173 msgid "ENCODEURL" 135 174 msgstr "" 136 175 -
gravitywp-merge-tags/trunk/readme.txt
r2786840 r2848029 4 4 Tags: gravity forms, mergetag, merge tag, mergetags, form, forms, gravity form 5 5 Requires at least: 3.0.1 6 Tested up to: 5.97 Stable tag: 1. 1.46 Tested up to: 6.1 7 Stable tag: 1.2.0 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 12 12 13 13 == Description == 14 Th is Gravity Forms Add-on adds an admin page to your WordPress back-end with a list of all the merge tags in your form.14 The documentation for GravityWP - Merge Tags is available on [GravityWP.com](https://gravitywp.com/docs/merge-tags/). 15 15 16 Besides that it gives you information (in different tabs) about field types (for example text, radio, hidden, select, email, checkbox, etc), Standard (Meta) Gravity Forms Merge Tags (and Merge Tags from GravityView and Gravity Flow), a replacement for the all_fields Merge Tag (with or without fileuploads) and Gravity Flow Step information.16 This Gravity Forms Add-on adds an admin page to your WordPress back-end with a list of all the merge tags in your form. Besides that it gives you information (in different tabs) about field types (for example text, radio, hidden, select, email, checkbox, etc), Standard (Meta) Gravity Forms Merge Tags (and Merge Tags from GravityView and Gravity Flow), a replacement for the all_fields Merge Tag (with or without fileuploads) and Gravity Flow Step information. 17 17 18 18 So... no more clicking on a dropdown to select the Merge Tag you need, but just copy and paste it from the list. And have a quick overview of all relevant information available for every specific Gravity Form on your site, copy it to Excel and use it in a way that suits your needs. … … 38 38 * **All Fields**: An alternative for the all_fields Merge Tag, which you can modify and customize. Option to select a table with or without fileuploads. 39 39 40 = How can I add merge tags of my own plugin to the Merge Tags Meta tab? = 41 42 By using the 'gwp_merge_tags_meta_merge_tags' filter, for example: 43 44 `add_filter( 'gwp_merge_tags_meta_merge_tags', 'my_plugin', 10, 1 ); 45 function my_plugin( $gwp_merge_tags ) { 46 $gwp_merge_tags['my_plugin']['name'] = 'My custom table'; 47 $gwp_merge_tags['my_plugin']['url'] = 'https://gravitywp.com'; 48 $gwp_merge_tags['my_plugin']['values'] = array( 49 'merge_tag_1', 50 'merge_tag_2', 51 ); 52 return $gwp_merge_tags; 53 }` 54 55 The $gwp_merge_tags variable is an associative array, which you can add your own merge tags to. 56 `$gwp_merge_tags['key']` a unique key for your plugin. 57 `$gwp_merge_tags['key']['name']` contains the title for the table header. 58 `$gwp_merge_tags['key']['url']` URL for the plugin website. 59 `$gwp_merge_tags['key']['values']` an array with merge tags. 40 60 41 61 … … 49 69 6. The menu link under Forms (admin menu) 50 70 7. Gravity Flow Step information for the current form (Step name, ID, Type, Active, Conditions) 51 8. Information about the conditional logic in your Form (shows an overview of fields with active conditional logic rules and an overview of fields used in conditional logic rules)52 71 53 72 == Changelog == 73 = 1.2.0 = 74 * Added filter for Meta tab. 75 * Added quick links to Merge Tags in top admin menu for recent forms. 76 * Added {today} merge tag to standard Merge Tags tab. 77 * Fix url query string excel formula template. 78 * Include ENCODEURL in excel formula template + localized version. 79 * Minor type fixes and code quality improvements. 80 * Updated Gravity View Merge Tags list for Meta tab. 54 81 55 82 = 1.1.4 = -
gravitywp-merge-tags/trunk/templates/template-gravity-flow.php
r2721960 r2848029 97 97 </td> 98 98 <td><?php echo esc_html( $next_step_str ); ?></td> 99 <td>[gravitywp_count formid=<?php echo esc_html( absint( $_GET['id'] ) ); ?> workflow_step=<?php echo esc_html($step->get_id() ); ?>]</td>99 <td>[gravitywp_count formid=<?php echo esc_html( (string) absint( $_GET['id'] ) ); ?> workflow_step=<?php echo esc_html( (string) $step->get_id() ); ?>]</td> 100 100 </tr> 101 101 <?php -
gravitywp-merge-tags/trunk/templates/template-merge-tags-advanced.php
r2786840 r2848029 119 119 if ( ! empty( $field['inputName'] ) ) { 120 120 $pre_fill_url .= $field['inputName'] . '=MERGETAG&'; 121 $pre_fill_url_excel .= $field['inputName'] . '="& CELL&"&';121 $pre_fill_url_excel .= $field['inputName'] . '="&ENCODEURL(CELL)&"&'; 122 122 } 123 123 } … … 138 138 <thead> 139 139 <tr> 140 <th colspan='6'><?php esc_html_e( 'Excel formula for generating url query string', 'gravitywp-merge-tags' ); ?></th>140 <th colspan='6'><?php esc_html_e( 'Excel formula for generating url (encoded) query string (International)', 'gravitywp-merge-tags' ); ?></th> 141 141 </tr> 142 142 </thead> 143 143 <tr> 144 <td colspan="6"><?php echo esc_html( rtrim( $pre_fill_url_excel, '&' ) ); ?></td> 144 <td colspan="6"><?php echo esc_html( rtrim( $pre_fill_url_excel, '&"&' ) ); ?></td> 145 </tr> 146 <thead> 147 <tr> 148 <th colspan='6'><?php esc_html_e( 'Excel formula for generating url (encoded) query string (Localized)', 'gravitywp-merge-tags' ); ?></th> 149 </tr> 150 </thead> 151 <tr> 152 <td colspan="6"><?php 153 /* translators: Translate to localized excel function. */ 154 $excel_replace = esc_html__( 'ENCODEURL', 'gravitywp-merge-tags' ); 155 echo esc_html( str_replace( 'ENCODEURL', $excel_replace, rtrim( $pre_fill_url_excel, '&"&' ) ) ); ?> 156 </td> 145 157 </tr> 146 158 </tbody> -
gravitywp-merge-tags/trunk/templates/template-standard-merge-tags.php
r2721960 r2848029 3 3 class_exists( 'GFForms' ) || die(); 4 4 5 $gwp_standard_mergetags = array( 5 $gwp_merge_tags = array(); 6 7 $gwp_merge_tags['gravity_forms_merge_tags']['name'] = 'Gravity Forms Merge Tags'; 8 $gwp_merge_tags['gravity_forms_merge_tags']['url'] = ''; 9 $gwp_merge_tags['gravity_forms_merge_tags']['values'] = array( 6 10 'all_fields', 7 11 'all_fields:admin', … … 46 50 'payment_action:note', 47 51 'payment_action:type', 52 'today', 53 'today:time', 54 'today:format:Y-m-d', 55 'today:timestamp', 48 56 'user:display_name', 49 57 'user:user_email', … … 52 60 ); 53 61 54 $gwp_gv_mergetags = array( 62 $gwp_merge_tags['gravity_view_merge_tags']['name'] = 'Gravity View'; 63 $gwp_merge_tags['gravity_view_merge_tags']['url'] = 'https://gravityview.co/?ref=115'; 64 $gwp_merge_tags['gravity_view_merge_tags']['values'] = array( 55 65 'get', 56 66 'approval_status', … … 67 77 'created_by', 68 78 'created_by:ID', 79 'current_post', 80 'current_post:ID', 81 'current_post:title', 82 'current_post:post_type', 83 'current_post:permalink', 84 'sequence', 85 'sequence start=[number]', 86 'sequence reverse', 87 'sequence reverse start=[number]', 88 'is_starred', 89 69 90 ); 70 91 71 $gwp_gv_mergetag_modifiers = array( 92 $gwp_merge_tags['gravity_view_modifiers']['name'] = 'Gravity View Modifiers'; 93 $gwp_merge_tags['gravity_view_modifiers']['url'] = 'https://gravityview.co/?ref=115'; 94 $gwp_merge_tags['gravity_view_modifiers']['values'] = array( 72 95 ':esc_html', 73 96 ':sanitize_title', … … 77 100 ); 78 101 79 $gwp_gflow_mergetags = array( 102 $gwp_merge_tags['gravity_flow_merge_tags']['name'] = 'Gravity Flow'; 103 $gwp_merge_tags['gravity_flow_merge_tags']['url'] = 'https://gravityflow.io/?ref=2'; 104 $gwp_merge_tags['gravity_flow_merge_tags']['values'] = array( 80 105 'workflow_entry_link', 81 106 'workflow_entry_url', … … 92 117 ); 93 118 94 $gwp_adv_mertag_modifiers = array( 119 $gwp_merge_tags['advanced_merge_tags_modifiers']['name'] = 'GravityWP Advanced Merge Tags - Modifiers'; 120 $gwp_merge_tags['advanced_merge_tags_modifiers']['url'] = 'https://gravitywp.com/add-on/advanced-merge-tags/?utm_source=merge-tag-plugin&utm_medium=plugin-ad&utm_campaign=meta-tab-addon-link'; 121 $gwp_merge_tags['advanced_merge_tags_modifiers']['values'] = array( 95 122 ':gwp_append', 96 123 ':gwp_case', … … 110 137 ':gwp_word_count', 111 138 ); 139 140 $gwp_merge_tags = apply_filters( 'gwp_merge_tags_meta_merge_tags', $gwp_merge_tags ) 112 141 ?> 113 142 114 <style>.gwp_div {width:32%; min-width: 300px; margin-right:1%; float:left !important;} .widefat {clear: none; }</style>115 143 <p></p> 116 <div class="inner-wrap"> 117 <table class='wp-list-table widefat striped gwp_div' cellspacing='0'> 144 <div class="inner-wrap" style="column-count: 3;"> 145 146 <?php foreach ( $gwp_merge_tags as $gwp_merge_tag ) { ?> 147 148 <table class='wp-list-table widefat striped gwp_div' cellspacing='0' style="break-inside: avoid-column;"> 118 149 <thead> 119 150 <tr> 120 <td>Gravity Forms Merge Tags</td> 151 <td><a href="<?php echo esc_attr( $gwp_merge_tag['url'] ) ?>" target="_blank"> 152 <span class="dashicons dashicons-external"></span><?php echo esc_html( $gwp_merge_tag['name'] ); ?></a></td> 121 153 </tr> 122 154 </thead> 123 155 <tbody> 124 <?php 125 foreach ( $gwp_standard_mergetags as $gwp_standard_mergetag ) { 126 ?> 127 <tr> 128 <td>{<?php echo esc_html( $gwp_standard_mergetag ); ?>}</td> 129 </tr> 130 <?php 131 } 132 ?> 156 <?php foreach ( $gwp_merge_tag['values'] as $value ) { ?> 157 <tr> 158 <td style="position:relative;"> 159 <?php echo esc_html( $value ); ?> 160 </td> 161 </tr> 162 <?php 163 } ?> 133 164 </tbody> 134 165 </table> 135 <table class='wp-list-table widefat striped gwp_div' cellspacing='0'>136 <thead>137 <tr>138 <td><a href='https://gravityview.co/?ref=115' target='_blank'><span class="dashicons dashicons-external"></span>GravityView</a></td>139 </tr>140 </thead>141 <tbody>142 166 <?php 143 foreach ( $gwp_gv_mergetags as $gwp_gv_mergetag ) { 144 ?> 145 <tr> 146 <td>{<?php echo esc_html( $gwp_gv_mergetag ); ?>}</td> 147 </tr> 148 <?php 149 } 150 ?> 151 </tbody> 152 </table> 153 154 <table class='wp-list-table widefat striped gwp_div' cellspacing='0'> 155 <thead> 156 <tr> 157 <td><a href='https://gravityview.co/?ref=115' target='_blank'><span class="dashicons dashicons-external"></span>GravityView</a> - Modifiers</td> 158 </tr> 159 </thead> 160 <tbody> 161 <?php 162 foreach ( $gwp_gv_mergetag_modifiers as $gwp_gv_mergetag_modifier ) { 163 ?> 164 <tr> 165 <td>{<?php echo esc_html( $gwp_gv_mergetag_modifier ); ?>}</td> 166 </tr> 167 <?php 168 } 169 ?> 170 </tbody> 171 </table> 172 173 <table class='wp-list-table widefat striped gwp_div' cellspacing='0'> 174 <thead> 175 <tr> 176 <td><a href='https://gravityflow.io/?ref=2' target='_blank'><span class="dashicons dashicons-external"></span>Gravity Flow</a></td> 177 </tr> 178 </thead> 179 <tbody> 180 <?php 181 foreach ( $gwp_gflow_mergetags as $gwp_gflow_mergetag ) { 182 ?> 183 <tr> 184 <td>{<?php echo esc_html( $gwp_gflow_mergetag ); ?>}</td> 185 </tr> 186 <?php 187 } 188 ?> 189 </tbody> 190 </table> 191 192 193 <table class='wp-list-table widefat striped gwp_div' cellspacing='0'> 194 <thead> 195 <tr> 196 <td><a href='https://gravitywp.com/add-on/advanced-merge-tags/?utm_source=merge-tag-plugin&utm_medium=plugin-ad&utm_campaign=meta-tab-addon-link' target='_blank'><span class="dashicons dashicons-external"></span>GravityWP - Advanced Merge Tags</a> - Modifiers</td> 197 </tr> 198 </thead> 199 <tbody> 200 <?php 201 foreach ( $gwp_adv_mertag_modifiers as $gwp_adv_mertag_modifier ) { 202 ?> 203 <tr> 204 <td>{<?php echo esc_html( $gwp_adv_mertag_modifier ); ?>}</td> 205 </tr> 206 <?php 207 } 208 ?> 209 </tbody> 210 </table> 211 167 } 168 ?> 212 169 213 170 </div> 214 171 <div class=clear></div> 172
Note: See TracChangeset
for help on using the changeset viewer.