Changeset 3322372
- Timestamp:
- 07/04/2025 02:03:02 PM (8 months ago)
- Location:
- pinpointe-form-integration/trunk
- Files:
-
- 6 edited
-
includes/pinpointe-confirmation-email.inc.php (modified) (1 diff)
-
includes/pinpointe-plugin-structure.inc.php (modified) (42 diffs)
-
includes/pinpointe-service.class.php (modified) (2 diffs)
-
includes/pinpointe-widget.class.php (modified) (2 diffs)
-
pinpointe-signup-form.php (modified) (75 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pinpointe-form-integration/trunk/includes/pinpointe-confirmation-email.inc.php
r3065403 r3322372 1 <?php // Silence is golden ?> 1 2 <div style="margin: 0; padding: 0; min-width: 100%; background-color: #d8dde4;"> 2 3 <div class="email_body" style="padding: 32px 10px; text-align: center; background-color: #d8dde4;"> -
pinpointe-form-integration/trunk/includes/pinpointe-plugin-structure.inc.php
r3078519 r3322372 11 11 return array( 12 12 'pinpointe' => array( 13 'title' => __('Pinpointe', 'pinpointe '),14 'page_title' => __('Pinpointe', 'pinpointe '),13 'title' => __('Pinpointe', 'pinpointe-form-integration'), 14 'page_title' => __('Pinpointe', 'pinpointe-form-integration'), 15 15 'capability' => 'manage_options', 16 16 'slug' => 'pinpointe', 17 17 'children' => array( 18 18 'settings' => array( 19 'title' => __('Settings', 'pinpointe '),19 'title' => __('Settings', 'pinpointe-form-integration'), 20 20 'icon' => '<i class="fa-solid fa-gear" style="font-size: 0.8em;"></i>', 21 21 'children' => array( 22 22 'integration' => array( 23 'title' => __('Integration', 'pinpointe '),23 'title' => __('Integration', 'pinpointe-form-integration'), 24 24 'children' => array( 25 25 'api_url' => array( 26 'title' => __('Pinpointe API URL', 'pinpointe '),26 'title' => __('Pinpointe API URL', 'pinpointe-form-integration'), 27 27 'type' => 'text', 28 28 'default' => '', … … 31 31 'empty' => true, 32 32 ), 33 'hint' => sprintf("<p>%s</p>", esc_html__('Enter the URL to the Pinpointe XML API that was provided to you.', 'pinpointe ')),33 'hint' => sprintf("<p>%s</p>", esc_html__('Enter the URL to the Pinpointe XML API that was provided to you.', 'pinpointe-form-integration')), 34 34 ), 35 35 36 36 'username' => array( 37 'title' => __('Pinpointe Username', 'pinpointe '),37 'title' => __('Pinpointe Username', 'pinpointe-form-integration'), 38 38 'type' => 'text', 39 39 'default' => '', … … 42 42 'empty' => true, 43 43 ), 44 'hint' => sprintf("<p>%s</p>", esc_html__('Enter your Pinpointe username.', 'pinpointe ')),44 'hint' => sprintf("<p>%s</p>", esc_html__('Enter your Pinpointe username.', 'pinpointe-form-integration')), 45 45 ), 46 46 47 47 'api_key' => array( 48 'title' => __('Pinpointe API key', 'pinpointe '),48 'title' => __('Pinpointe API key', 'pinpointe-form-integration'), 49 49 'type' => 'text', 50 50 'default' => '', … … 55 55 'hint' => sprintf( 56 56 "<p>%s</p><p>%s <a href='%s'>%s</a></p>", 57 esc_html__('API key is required for this plugin to communicate with the Pinpointe servers.', 'pinpointe '),58 esc_html__('To get an API key, send an email to', 'pinpointe '),57 esc_html__('API key is required for this plugin to communicate with the Pinpointe servers.', 'pinpointe-form-integration'), 58 esc_html__('To get an API key, send an email to', 'pinpointe-form-integration'), 59 59 esc_url('mailto:[email protected]'), 60 esc_html__('[email protected]', 'pinpointe '),60 esc_html__('[email protected]', 'pinpointe-form-integration'), 61 61 ), 62 62 ), … … 64 64 ), 65 65 'general_settings' => array( 66 'title' => __('General Settings', 'pinpointe '),66 'title' => __('General Settings', 'pinpointe-form-integration'), 67 67 'children' => array( 68 68 /*'double_optin' => array( 69 'title' => __('Require double opt-in', 'pinpointe '),69 'title' => __('Require double opt-in', 'pinpointe-form-integration'), 70 70 'type' => 'checkbox', 71 71 'default' => 1, … … 74 74 'empty' => false 75 75 ), 76 'hint' => esc_html__('<p>Controls whether a double opt-in confirmation message is sent before user is actually subscribed.</p>', 'pinpointe '),76 'hint' => esc_html__('<p>Controls whether a double opt-in confirmation message is sent before user is actually subscribed.</p>', 'pinpointe-form-integration'), 77 77 ), 78 78 'send_welcome' => array( 79 'title' => __('Send welcome email', 'pinpointe '),79 'title' => __('Send welcome email', 'pinpointe-form-integration'), 80 80 'type' => 'checkbox', 81 81 'default' => 1, … … 84 84 'empty' => false 85 85 ), 86 'hint' => esc_html__('<p>If double opt-in is disabled and this setting is enabled, MailChimp will send your lists Welcome Email on user subscription. This has no effect if double opt-in is enabled.</p>', 'pinpointe '),86 'hint' => esc_html__('<p>If double opt-in is disabled and this setting is enabled, MailChimp will send your lists Welcome Email on user subscription. This has no effect if double opt-in is enabled.</p>', 'pinpointe-form-integration'), 87 87 ), 88 88 'replace_groups' => array( 89 'title' => __('Replace interest groups on update', 'pinpointe '),90 'type' => 'checkbox', 91 'default' => 0, 92 'validation' => array( 93 'rule' => 'bool', 94 'empty' => false 95 ), 96 'hint' => esc_html__('<p>Setting is used by MailChimp to determine whether interest groups are added to a set of existing interest groups of particular user or they are completely replaced with new interest groups. This is applicable when user is already subscribed to the list and profile is being updated.</p>', 'pinpointe '),89 'title' => __('Replace interest groups on update', 'pinpointe-form-integration'), 90 'type' => 'checkbox', 91 'default' => 0, 92 'validation' => array( 93 'rule' => 'bool', 94 'empty' => false 95 ), 96 'hint' => esc_html__('<p>Setting is used by MailChimp to determine whether interest groups are added to a set of existing interest groups of particular user or they are completely replaced with new interest groups. This is applicable when user is already subscribed to the list and profile is being updated.</p>', 'pinpointe-form-integration'), 97 97 ),*/ 98 98 'add_to_autoresponders' => array( 99 'title' => __('Add to autoresponders', 'pinpointe '),100 'type' => 'checkbox', 101 'default' => 0, 102 'validation' => array( 103 'rule' => 'bool', 104 'empty' => false 105 ), 106 'hint' => sprintf("<p>%s</p>", esc_html__('Control whether newly subscribed members will be added to autoresponders.', 'pinpointe ')),99 'title' => __('Add to autoresponders', 'pinpointe-form-integration'), 100 'type' => 'checkbox', 101 'default' => 0, 102 'validation' => array( 103 'rule' => 'bool', 104 'empty' => false 105 ), 106 'hint' => sprintf("<p>%s</p>", esc_html__('Control whether newly subscribed members will be added to autoresponders.', 'pinpointe-form-integration')), 107 107 ), 108 108 'update_existing' => array( 109 'title' => __('Update existing subscribers', 'pinpointe '),109 'title' => __('Update existing subscribers', 'pinpointe-form-integration'), 110 110 'type' => 'checkbox', 111 111 'default' => 1, … … 114 114 'empty' => false 115 115 ), 116 'hint' => sprintf("<p>%s</p>", esc_html__('Control whether existing subscribers are updated when they fill out the signup form again or error is displayed. This has no effect for Sync functionality.', 'pinpointe ')),116 'hint' => sprintf("<p>%s</p>", esc_html__('Control whether existing subscribers are updated when they fill out the signup form again or error is displayed. This has no effect for Sync functionality.', 'pinpointe-form-integration')), 117 117 ), 118 118 ), 119 119 ), 120 120 'settings_styling' => array( 121 'title' => __('Form Styling', 'pinpointe '),121 'title' => __('Form Styling', 'pinpointe-form-integration'), 122 122 'children' => array( 123 123 'labels_inline' => array( 124 'title' => __('Display field labels inline', 'pinpointe '),124 'title' => __('Display field labels inline', 'pinpointe-form-integration'), 125 125 'type' => 'checkbox', 126 126 'default' => 1, … … 129 129 'empty' => false 130 130 ), 131 'hint' => sprintf("<p>%s</p>", esc_html__('Controls whether signup form field labels are displayed inside fields as value placeholders (inline) or above fields.', 'pinpointe ')),131 'hint' => sprintf("<p>%s</p>", esc_html__('Controls whether signup form field labels are displayed inside fields as value placeholders (inline) or above fields.', 'pinpointe-form-integration')), 132 132 ), 133 133 /*'groups_hidden' => array( 134 'title' => __('Hide interest groups initially', 'pinpointe '),135 'type' => 'checkbox', 136 'default' => 0, 137 'validation' => array( 138 'rule' => 'bool', 139 'empty' => false 140 ), 141 'hint' => esc_html__('<p>Interest groups can take significant amount of space. If this option is enabled, interest group fields will be hidden until user starts filling in the form (clicks anywhere on the form).</p>', 'pinpointe '),134 'title' => __('Hide interest groups initially', 'pinpointe-form-integration'), 135 'type' => 'checkbox', 136 'default' => 0, 137 'validation' => array( 138 'rule' => 'bool', 139 'empty' => false 140 ), 141 'hint' => esc_html__('<p>Interest groups can take significant amount of space. If this option is enabled, interest group fields will be hidden until user starts filling in the form (clicks anywhere on the form).</p>', 'pinpointe-form-integration'), 142 142 ),*/ 143 143 'width_limit' => array( 144 'title' => __('Max form width in pixels', 'pinpointe '),144 'title' => __('Max form width in pixels', 'pinpointe-form-integration'), 145 145 'type' => 'text', 146 146 'default' => '', … … 149 149 'empty' => true, 150 150 ), 151 'hint' => sprintf("<p>%s</p>", esc_html__('If your website features a wide layout, you may wish to set the max width for the form to look better. This has no effect for forms displayed as popup.', 'pinpointe ')),151 'hint' => sprintf("<p>%s</p>", esc_html__('If your website features a wide layout, you may wish to set the max width for the form to look better. This has no effect for forms displayed as popup.', 'pinpointe-form-integration')), 152 152 ), 153 153 'css_override' => array( 154 'title' => __('Override CSS', 'pinpointe '),154 'title' => __('Override CSS', 'pinpointe-form-integration'), 155 155 'type' => 'textarea', 156 156 'default' => '.pinpointe_custom_css {}', … … 159 159 'empty' => true 160 160 ), 161 'hint' => sprintf("<p>%s</p>", esc_html__('You can further customize the appearance of your signup forms by adding custom CSS to this field. To make changes to the style, simply use CSS class pinpointe_custom_css as a basis.', 'pinpointe ')),161 'hint' => sprintf("<p>%s</p>", esc_html__('You can further customize the appearance of your signup forms by adding custom CSS to this field. To make changes to the style, simply use CSS class pinpointe_custom_css as a basis.', 'pinpointe-form-integration')), 162 162 ), 163 163 ), … … 166 166 ), 167 167 'forms' => array( 168 'title' => __('Forms', 'pinpointe '),168 'title' => __('Forms', 'pinpointe-form-integration'), 169 169 'icon' => '<i class="fa-solid fa-pen-to-square" style="font-size: 0.8em;"></i>', 170 170 'children' => array( 171 171 'forms' => array( 172 'title' => __('Manage Signup Forms', 'pinpointe '),172 'title' => __('Manage Signup Forms', 'pinpointe-form-integration'), 173 173 'children' => array( 174 174 ), … … 177 177 ), 178 178 'popup' => array( 179 'title' => __('Popup', 'pinpointe '),179 'title' => __('Popup', 'pinpointe-form-integration'), 180 180 'icon' => '<i class="fa-regular fa-comment" style="font-size: 0.8em;"></i>', 181 181 'children' => array( 182 182 'popup_general_settings' => array( 183 'title' => __('Display Popup', 'pinpointe '),183 'title' => __('Display Popup', 'pinpointe-form-integration'), 184 184 'children' => array( 185 185 'popup_enabled' => array( 186 'title' => __('Enable popup', 'pinpointe '),187 'type' => 'checkbox', 188 'default' => 0, 189 'validation' => array( 190 'rule' => 'bool', 191 'empty' => false 192 ), 193 'hint' => sprintf("<p>%s</p>", esc_html__('Displays popup with mailing database signup form as configured. You can use form conditions for more granual control.', 'pinpointe ')),186 'title' => __('Enable popup', 'pinpointe-form-integration'), 187 'type' => 'checkbox', 188 'default' => 0, 189 'validation' => array( 190 'rule' => 'bool', 191 'empty' => false 192 ), 193 'hint' => sprintf("<p>%s</p>", esc_html__('Displays popup with mailing database signup form as configured. You can use form conditions for more granual control.', 'pinpointe-form-integration')), 194 194 ), 195 195 'popup_form' => array( 196 'title' => __('Form to display', 'pinpointe '),196 'title' => __('Form to display', 'pinpointe-form-integration'), 197 197 'type' => 'dropdown', 198 198 'default' => 0, … … 202 202 ), 203 203 'values' => PinpointeSignupForm::get_list_of_forms(), 204 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of the forms created under tab Forms to display as a popup.', 'pinpointe ')),204 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of the forms created under tab Forms to display as a popup.', 'pinpointe-form-integration')), 205 205 ), 206 206 'popup_delay' => array( 207 'title' => __('Open delay in seconds', 'pinpointe '),207 'title' => __('Open delay in seconds', 'pinpointe-form-integration'), 208 208 'type' => 'text', 209 209 'default' => '5', … … 212 212 'empty' => true, 213 213 ), 214 'hint' => sprintf("<p>%s</p>", esc_html__('If set, form will be opened after a specified number of seconds counting from the complete page load.', 'pinpointe ')),214 'hint' => sprintf("<p>%s</p>", esc_html__('If set, form will be opened after a specified number of seconds counting from the complete page load.', 'pinpointe-form-integration')), 215 215 ), 216 216 'popup_display_on' => array( 217 'title' => __('Display in', 'pinpointe '),217 'title' => __('Display in', 'pinpointe-form-integration'), 218 218 'type' => 'checkbox_set', 219 219 'default' => array('1'), … … 223 223 ), 224 224 'values' => array( 225 '1' => __('Home page', 'pinpointe '),226 '2' => __('Pages', 'pinpointe '),227 '3' => __('Posts', 'pinpointe '),228 '4' => __('Everywhere else', 'pinpointe '),229 ), 230 'hint' => sprintf("<p>%s</p>", esc_html__('Page types where you want the popup to be fired.', 'pinpointe ')),225 '1' => __('Home page', 'pinpointe-form-integration'), 226 '2' => __('Pages', 'pinpointe-form-integration'), 227 '3' => __('Posts', 'pinpointe-form-integration'), 228 '4' => __('Everywhere else', 'pinpointe-form-integration'), 229 ), 230 'hint' => sprintf("<p>%s</p>", esc_html__('Page types where you want the popup to be fired.', 'pinpointe-form-integration')), 231 231 ), 232 232 ), 233 233 ), 234 234 'popup_frequency' => array( 235 'title' => __('Frequency Capping', 'pinpointe '),235 'title' => __('Frequency Capping', 'pinpointe-form-integration'), 236 236 'children' => array( 237 237 'popup_page_limit' => array( 238 'title' => __('Page frequency', 'pinpointe '),238 'title' => __('Page frequency', 'pinpointe-form-integration'), 239 239 'type' => 'text', 240 240 'default' => '1', … … 243 243 'empty' => true, 244 244 ), 245 'hint' => sprintf("<p>%s</p>", esc_html__('Popup will be displayed once in every X pages opened. Leaving blank or setting value to 1 will have the same effect.', 'pinpointe ')),245 'hint' => sprintf("<p>%s</p>", esc_html__('Popup will be displayed once in every X pages opened. Leaving blank or setting value to 1 will have the same effect.', 'pinpointe-form-integration')), 246 246 ), 247 247 'popup_time_limit' => array( 248 'title' => __('Time frequency in minutes', 'pinpointe '),248 'title' => __('Time frequency in minutes', 'pinpointe-form-integration'), 249 249 'type' => 'text', 250 250 'default' => '5', … … 253 253 'empty' => true, 254 254 ), 255 'hint' => sprintf("<p>%s</p>", esc_html__('Popup will be displayed once in every X minutes.', 'pinpointe ')),255 'hint' => sprintf("<p>%s</p>", esc_html__('Popup will be displayed once in every X minutes.', 'pinpointe-form-integration')), 256 256 ), 257 257 'popup_allow_dismissing' => array( 258 'title' => __('Allow dismissing', 'pinpointe '),258 'title' => __('Allow dismissing', 'pinpointe-form-integration'), 259 259 'type' => 'checkbox', 260 260 'default' => 1, … … 263 263 'empty' => false 264 264 ), 265 'hint' => sprintf("<p>%s</p>", esc_html__('If enabled, users will be provided with an option (a link to click) to hide the popup forever without filling in the form.', 'pinpointe ')),265 'hint' => sprintf("<p>%s</p>", esc_html__('If enabled, users will be provided with an option (a link to click) to hide the popup forever without filling in the form.', 'pinpointe-form-integration')), 266 266 ), 267 267 'label_dismiss_popup' => array( 268 'title' => __('Dismiss link text', 'pinpointe '),269 'type' => 'text', 270 'default' => __('Never display this again', 'pinpointe '),271 'validation' => array( 272 'rule' => 'string', 273 'empty' => true 274 ), 275 'hint' => sprintf("<p>%s</p>", esc_html__('If popup dismissing is enabled, this will be the text of the dismiss link.', 'pinpointe ')),268 'title' => __('Dismiss link text', 'pinpointe-form-integration'), 269 'type' => 'text', 270 'default' => __('Never display this again', 'pinpointe-form-integration'), 271 'validation' => array( 272 'rule' => 'string', 273 'empty' => true 274 ), 275 'hint' => sprintf("<p>%s</p>", esc_html__('If popup dismissing is enabled, this will be the text of the dismiss link.', 'pinpointe-form-integration')), 276 276 ), 277 277 ), … … 280 280 ), 281 281 'below' => array( 282 'title' => __('Form Display', 'pinpointe '),282 'title' => __('Form Display', 'pinpointe-form-integration'), 283 283 'icon' => '<i class="fa-regular fa-file-lines" style="font-size: 0.8em;"></i>', 284 284 'children' => array( 285 285 'below_settings' => array( 286 'title' => __('Display Below Every Post', 'pinpointe '),286 'title' => __('Display Below Every Post', 'pinpointe-form-integration'), 287 287 'children' => array( 288 288 'after_posts_post_types' => array( 289 'title' => __('Display signup form below', 'pinpointe '),289 'title' => __('Display signup form below', 'pinpointe-form-integration'), 290 290 'type' => 'checkbox_set', 291 291 'default' => array(), … … 295 295 ), 296 296 'values' => array( 297 '1' => __('Posts', 'pinpointe '),298 '2' => __('Pages', 'pinpointe '),299 ), 300 'hint' => sprintf("<p>%s</p>", esc_html__('Page types where you want the form to be displayed below the main content. You can use form conditions for more granular control.', 'pinpointe ')),297 '1' => __('Posts', 'pinpointe-form-integration'), 298 '2' => __('Pages', 'pinpointe-form-integration'), 299 ), 300 'hint' => sprintf("<p>%s</p>", esc_html__('Page types where you want the form to be displayed below the main content. You can use form conditions for more granular control.', 'pinpointe-form-integration')), 301 301 ), 302 302 'after_posts_allowed_forms' => array( 303 'title' => __('Allow only these forms', 'pinpointe '),303 'title' => __('Allow only these forms', 'pinpointe-form-integration'), 304 304 'type' => 'dropdown_multi', 305 305 'default' => array(), … … 309 309 ), 310 310 'values' => PinpointeSignupForm::get_list_of_forms(false), 311 'hint' => sprintf("<p>%s</p>", esc_html__('If a list of form IDs is specified, only those forms will be eligible to be displayed. The forms will be filtered based on their display conditions, then the first remaining form will be displayed.', 'pinpointe ')),311 'hint' => sprintf("<p>%s</p>", esc_html__('If a list of form IDs is specified, only those forms will be eligible to be displayed. The forms will be filtered based on their display conditions, then the first remaining form will be displayed.', 'pinpointe-form-integration')), 312 312 ), 313 313 ), … … 316 316 ), 317 317 'lock' => array( 318 'title' => __('Locking', 'pinpointe '),318 'title' => __('Locking', 'pinpointe-form-integration'), 319 319 'icon' => '<i class="fa-solid fa-lock" style="font-size: 0.8em;"></i>', 320 320 'children' => array( 321 321 'lock_general_settings' => array( 322 'title' => __('Subscribe To Unlock', 'pinpointe '),322 'title' => __('Subscribe To Unlock', 'pinpointe-form-integration'), 323 323 'children' => array( 324 324 'lock_enabled' => array( 325 'title' => __('Enable content locking', 'pinpointe '),325 'title' => __('Enable content locking', 'pinpointe-form-integration'), 326 326 'type' => 'checkbox', 327 327 'default' => 0, … … 332 332 'hint' => sprintf( 333 333 "<p>%s</p><p>%s</p>", 334 esc_html__('If enabled, posts or pages that match form display conditions will be locked. Only subscribers will be able to access that content. This functionality uses cookies for tracking. If subscriber clears browser cookies, content will be locked again.', 'pinpointe '),335 esc_html__('Use form conditions to control which pages will be locked.', 'pinpointe ')334 esc_html__('If enabled, posts or pages that match form display conditions will be locked. Only subscribers will be able to access that content. This functionality uses cookies for tracking. If subscriber clears browser cookies, content will be locked again.', 'pinpointe-form-integration'), 335 esc_html__('Use form conditions to control which pages will be locked.', 'pinpointe-form-integration') 336 336 ), 337 337 ), 338 338 'lock_form' => array( 339 'title' => __('Form to display', 'pinpointe '),339 'title' => __('Form to display', 'pinpointe-form-integration'), 340 340 'type' => 'dropdown', 341 341 'default' => 0, … … 345 345 ), 346 346 'values' => PinpointeSignupForm::get_list_of_forms(), 347 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of the forms created under tab Forms to display instead of locked content.', 'pinpointe ')),347 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of the forms created under tab Forms to display instead of locked content.', 'pinpointe-form-integration')), 348 348 ), 349 349 'lock_title' => array( 350 'title' => __('Title', 'pinpointe '),351 'type' => 'text', 352 'default' => __('Subscribe To Unlock', 'pinpointe '),353 'validation' => array( 354 'rule' => 'string', 355 'empty' => true 356 ), 357 'hint' => sprintf("<p>%s</p>", esc_html__('Title to display above signup form.', 'pinpointe ')),350 'title' => __('Title', 'pinpointe-form-integration'), 351 'type' => 'text', 352 'default' => __('Subscribe To Unlock', 'pinpointe-form-integration'), 353 'validation' => array( 354 'rule' => 'string', 355 'empty' => true 356 ), 357 'hint' => sprintf("<p>%s</p>", esc_html__('Title to display above signup form.', 'pinpointe-form-integration')), 358 358 ), 359 359 'lock_message' => array( 360 'title' => __('Message', 'pinpointe '),360 'title' => __('Message', 'pinpointe-form-integration'), 361 361 'type' => 'textarea', 362 'default' => __('Subscribe now to become a premium member and gain access to premium content.', 'pinpointe '),363 'validation' => array( 364 'rule' => 'string', 365 'empty' => true 366 ), 367 'hint' => sprintf("<p>%s</p>", esc_html__('Message to display above signup form.', 'pinpointe ')),362 'default' => __('Subscribe now to become a premium member and gain access to premium content.', 'pinpointe-form-integration'), 363 'validation' => array( 364 'rule' => 'string', 365 'empty' => true 366 ), 367 'hint' => sprintf("<p>%s</p>", esc_html__('Message to display above signup form.', 'pinpointe-form-integration')), 368 368 ), 369 369 ), … … 372 372 ), 373 373 'checkboxes' => array( 374 'title' => __('Checkbox', 'pinpointe '),374 'title' => __('Checkbox', 'pinpointe-form-integration'), 375 375 'icon' => '<i class="fa-regular fa-square-check" style="font-size: 0.8em;"></i>', 376 376 'children' => array( 377 377 'checkboxes_settings' => array( 378 'title' => __('Display Checkbox Below Forms', 'pinpointe '),378 'title' => __('Display Checkbox Below Forms', 'pinpointe-form-integration'), 379 379 'children' => array( 380 380 'checkbox_add_to' => array( 381 'title' => __('Add signup checkbox to', 'pinpointe '),381 'title' => __('Add signup checkbox to', 'pinpointe-form-integration'), 382 382 'type' => 'checkbox_set', 383 383 'default' => array(), … … 387 387 ), 388 388 'values' => array( 389 '1' => __('Registration Form', 'pinpointe '),390 '2' => __('Comments Form', 'pinpointe '),391 ), 392 'hint' => sprintf("<p>%s</p>", esc_html__('Select WordPress forms where you would like mailing database opt-in checkbox to appear.', 'pinpointe ')),389 '1' => __('Registration Form', 'pinpointe-form-integration'), 390 '2' => __('Comments Form', 'pinpointe-form-integration'), 391 ), 392 'hint' => sprintf("<p>%s</p>", esc_html__('Select WordPress forms where you would like mailing database opt-in checkbox to appear.', 'pinpointe-form-integration')), 393 393 ), 394 394 'checkbox_label' => array( 395 'title' => __('Checkbox label', 'pinpointe '),396 'type' => 'text', 397 'default' => __('Subscribe to our newsletter', 'pinpointe '),398 'validation' => array( 399 'rule' => 'string', 400 'empty' => true 401 ), 402 'hint' => sprintf("<p>%s</p>", esc_html__('Label to display next to the checkbox.', 'pinpointe ')),395 'title' => __('Checkbox label', 'pinpointe-form-integration'), 396 'type' => 'text', 397 'default' => __('Subscribe to our newsletter', 'pinpointe-form-integration'), 398 'validation' => array( 399 'rule' => 'string', 400 'empty' => true 401 ), 402 'hint' => sprintf("<p>%s</p>", esc_html__('Label to display next to the checkbox.', 'pinpointe-form-integration')), 403 403 ), 404 404 'checkbox_state' => array( 405 'title' => __('Default state', 'pinpointe '),405 'title' => __('Default state', 'pinpointe-form-integration'), 406 406 'type' => 'dropdown', 407 407 'default' => 0, … … 411 411 ), 412 412 'values' => array( 413 '0' => __('Not Checked', 'pinpointe '),414 '1' => __('Checked', 'pinpointe '),415 ), 416 'hint' => sprintf("<p>%s</p>", esc_html__('Default checkbox state.', 'pinpointe ')),413 '0' => __('Not Checked', 'pinpointe-form-integration'), 414 '1' => __('Checked', 'pinpointe-form-integration'), 415 ), 416 'hint' => sprintf("<p>%s</p>", esc_html__('Default checkbox state.', 'pinpointe-form-integration')), 417 417 ), 418 418 'checkbox_list' => array( 419 'title' => __('Mailing database', 'pinpointe '),419 'title' => __('Mailing database', 'pinpointe-form-integration'), 420 420 'type' => 'text', 421 421 'default' => '', … … 424 424 'empty' => true 425 425 ), 426 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of your Pinpointe mailing databases to subscribe visitors to.', 'pinpointe ')),426 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of your Pinpointe mailing databases to subscribe visitors to.', 'pinpointe-form-integration')), 427 427 ), 428 428 ), … … 431 431 ), 432 432 'sync' => array( 433 'title' => __('Sync', 'pinpointe '),433 'title' => __('Sync', 'pinpointe-form-integration'), 434 434 'icon' => '<i class="fa-solid fa-rotate" style="font-size: 0.8em;"></i>', 435 435 'children' => array( 436 436 'sync_settings' => array( 437 'title' => __('Synchronize User Data', 'pinpointe '),437 'title' => __('Synchronize User Data', 'pinpointe-form-integration'), 438 438 'children' => array( 439 439 'sync_roles' => array( 440 'title' => __('User roles to sync', 'pinpointe '),440 'title' => __('User roles to sync', 'pinpointe-form-integration'), 441 441 'type' => 'checkbox_set', 442 442 'default' => array(), … … 448 448 'hint' => sprintf( 449 449 "<p>%s</p><p>%s</p>", 450 esc_html__('Select user roles that you would like to synchronize with Pinpointe.', 'pinpointe '),451 esc_html__('This feature sends data to Pinpointe when one of the following actions occur - user is created, user is updated and user is deleted.', 'pinpointe ')450 esc_html__('Select user roles that you would like to synchronize with Pinpointe.', 'pinpointe-form-integration'), 451 esc_html__('This feature sends data to Pinpointe when one of the following actions occur - user is created, user is updated and user is deleted.', 'pinpointe-form-integration') 452 452 ) 453 453 ), 454 454 'sync_list' => array( 455 'title' => __('Mailing database', 'pinpointe '),455 'title' => __('Mailing database', 'pinpointe-form-integration'), 456 456 'type' => 'text', 457 457 'default' => '', … … 460 460 'empty' => true 461 461 ), 462 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of your Pinpointe mailing databases to sync user data with.', 'pinpointe ')),462 'hint' => sprintf("<p>%s</p>", esc_html__('Select one of your Pinpointe mailing databases to sync user data with.', 'pinpointe-form-integration')), 463 463 ), 464 464 ), … … 467 467 ), 468 468 'localization' => array( 469 'title' => __('Localization', 'pinpointe '),469 'title' => __('Localization', 'pinpointe-form-integration'), 470 470 'icon' => '<i class="fa-solid fa-font" style="font-size: 0.8em;"></i>', 471 471 'children' => array( 472 472 'localization' => array( 473 'title' => __('Date Format', 'pinpointe '),473 'title' => __('Date Format', 'pinpointe-form-integration'), 474 474 'children' => array( 475 475 'date_format' => array( 476 'title' => __('Date field format', 'pinpointe '),476 'title' => __('Date field format', 'pinpointe-form-integration'), 477 477 'type' => 'dropdown', 478 478 'default' => 0, … … 482 482 ), 483 483 'values' => array( 484 '0' => __('dd/mm/yyyy', 'pinpointe '),485 '1' => __('dd-mm-yyyy', 'pinpointe '),486 '2' => __('dd.mm.yyyy', 'pinpointe '),487 '3' => __('mm/dd/yyyy', 'pinpointe '),488 '4' => __('mm-dd-yyyy', 'pinpointe '),489 '5' => __('mm.dd.yyyy', 'pinpointe '),490 '6' => __('yyyy/mm/dd', 'pinpointe '),491 '7' => __('yyyy-mm-dd', 'pinpointe '),492 '8' => __('yyyy.mm.dd', 'pinpointe '),493 '9' => __('dd/mm/yy', 'pinpointe '),494 '10' => __('dd-mm-yy', 'pinpointe '),495 '11' => __('dd.mm.yy', 'pinpointe '),496 '12' => __('mm/dd/yy', 'pinpointe '),497 '13' => __('mm-dd-yy', 'pinpointe '),498 '14' => __('mm.dd.yy', 'pinpointe '),499 '15' => __('yy/mm/dd', 'pinpointe '),500 '16' => __('yy-mm-dd', 'pinpointe '),501 '17' => __('yy.mm.dd', 'pinpointe '),484 '0' => __('dd/mm/yyyy', 'pinpointe-form-integration'), 485 '1' => __('dd-mm-yyyy', 'pinpointe-form-integration'), 486 '2' => __('dd.mm.yyyy', 'pinpointe-form-integration'), 487 '3' => __('mm/dd/yyyy', 'pinpointe-form-integration'), 488 '4' => __('mm-dd-yyyy', 'pinpointe-form-integration'), 489 '5' => __('mm.dd.yyyy', 'pinpointe-form-integration'), 490 '6' => __('yyyy/mm/dd', 'pinpointe-form-integration'), 491 '7' => __('yyyy-mm-dd', 'pinpointe-form-integration'), 492 '8' => __('yyyy.mm.dd', 'pinpointe-form-integration'), 493 '9' => __('dd/mm/yy', 'pinpointe-form-integration'), 494 '10' => __('dd-mm-yy', 'pinpointe-form-integration'), 495 '11' => __('dd.mm.yy', 'pinpointe-form-integration'), 496 '12' => __('mm/dd/yy', 'pinpointe-form-integration'), 497 '13' => __('mm-dd-yy', 'pinpointe-form-integration'), 498 '14' => __('mm.dd.yy', 'pinpointe-form-integration'), 499 '15' => __('yy/mm/dd', 'pinpointe-form-integration'), 500 '16' => __('yy-mm-dd', 'pinpointe-form-integration'), 501 '17' => __('yy.mm.dd', 'pinpointe-form-integration'), 502 502 ), 503 503 ), 504 504 'birthday_format' => array( 505 'title' => __('Birthday field format', 'pinpointe '),505 'title' => __('Birthday field format', 'pinpointe-form-integration'), 506 506 'type' => 'dropdown', 507 507 'default' => 0, … … 511 511 ), 512 512 'values' => array( 513 '0' => __('dd/mm', 'pinpointe '),514 '1' => __('dd-mm', 'pinpointe '),515 '2' => __('dd.mm', 'pinpointe '),516 '3' => __('mm/dd', 'pinpointe '),517 '4' => __('mm-dd', 'pinpointe '),518 '5' => __('mm.dd', 'pinpointe '),513 '0' => __('dd/mm', 'pinpointe-form-integration'), 514 '1' => __('dd-mm', 'pinpointe-form-integration'), 515 '2' => __('dd.mm', 'pinpointe-form-integration'), 516 '3' => __('mm/dd', 'pinpointe-form-integration'), 517 '4' => __('mm-dd', 'pinpointe-form-integration'), 518 '5' => __('mm.dd', 'pinpointe-form-integration'), 519 519 ), 520 520 ), … … 522 522 ), 523 523 'labels_settings' => array( 524 'title' => __('Labels', 'pinpointe '),524 'title' => __('Labels', 'pinpointe-form-integration'), 525 525 'children' => array( 526 526 'label_success' => array( 527 'title' => __('Subscribed successfully', 'pinpointe '),528 'type' => 'text', 529 'default' => __('Thank you for signing up!', 'pinpointe '),527 'title' => __('Subscribed successfully', 'pinpointe-form-integration'), 528 'type' => 'text', 529 'default' => __('Thank you for signing up!', 'pinpointe-form-integration'), 530 530 'validation' => array( 531 531 'rule' => 'string', … … 534 534 ), 535 535 'label_empty_field' => array( 536 'title' => __('(Error) Required field empty', 'pinpointe '),537 'type' => 'text', 538 'default' => __('Please enter a value', 'pinpointe '),536 'title' => __('(Error) Required field empty', 'pinpointe-form-integration'), 537 'type' => 'text', 538 'default' => __('Please enter a value', 'pinpointe-form-integration'), 539 539 'validation' => array( 540 540 'rule' => 'string', … … 543 543 ), 544 544 'label_invalid_format' => array( 545 'title' => __('(Error) Invalid format', 'pinpointe '),546 'type' => 'text', 547 'default' => __('Invalid format', 'pinpointe '),545 'title' => __('(Error) Invalid format', 'pinpointe-form-integration'), 546 'type' => 'text', 547 'default' => __('Invalid format', 'pinpointe-form-integration'), 548 548 'validation' => array( 549 549 'rule' => 'string', … … 552 552 ), 553 553 'label_not_number' => array( 554 'title' => __('(Error) Value not a number', 'pinpointe '),555 'type' => 'text', 556 'default' => __('Please enter a valid number', 'pinpointe '),554 'title' => __('(Error) Value not a number', 'pinpointe-form-integration'), 555 'type' => 'text', 556 'default' => __('Please enter a valid number', 'pinpointe-form-integration'), 557 557 'validation' => array( 558 558 'rule' => 'string', … … 561 561 ), 562 562 'label_already_subscribed' => array( 563 'title' => __('(Error) Already subscribed', 'pinpointe '),564 'type' => 'text', 565 'default' => __('You are already subscribed to this database', 'pinpointe '),563 'title' => __('(Error) Already subscribed', 'pinpointe-form-integration'), 564 'type' => 'text', 565 'default' => __('You are already subscribed to this database', 'pinpointe-form-integration'), 566 566 'validation' => array( 567 567 'rule' => 'string', … … 570 570 ), 571 571 'label_error' => array( 572 'title' => __('(Error) Unknown error', 'pinpointe '),573 'type' => 'text', 574 'default' => __('Unknown error. Please try again later.', 'pinpointe '),572 'title' => __('(Error) Unknown error', 'pinpointe-form-integration'), 573 'type' => 'text', 574 'default' => __('Unknown error. Please try again later.', 'pinpointe-form-integration'), 575 575 'validation' => array( 576 576 'rule' => 'string', … … 587 587 'children' => array( 588 588 'help_display' => array( 589 'title' => __('Displaying Forms', 'pinpointe '),589 'title' => __('Displaying Forms', 'pinpointe-form-integration'), 590 590 'children' => array( 591 591 ), 592 592 ), 593 593 /*'help_targeting' => array( 594 'title' => __('Conditions & Targeting', 'pinpointe '),594 'title' => __('Conditions & Targeting', 'pinpointe-form-integration'), 595 595 'children' => array( 596 596 ), 597 597 ),*/ 598 598 'help_contact' => array( 599 'title' => __('Get In Touch', 'pinpointe '),599 'title' => __('Get In Touch', 'pinpointe-form-integration'), 600 600 'children' => array( 601 601 ), -
pinpointe-form-integration/trunk/includes/pinpointe-service.class.php
r3078519 r3322372 141 141 } 142 142 143 throw new \Exception( 144 sprintf('API call of type %s failed: %s', $type , $error_message) 145 ); 143 throw new \Exception( 144 esc_html( 145 /* translators: 1: API call type (e.g., GET, POST), 2: error message returned from the API */ 146 sprintf( 147 /* translators: 1: API call type (e.g., GET, POST), 2: error message returned from the API */ 148 __('API call of type %1$s failed: %2$s', 'pinpointe-form-integration'), 149 $type, 150 $error_message 151 ) 152 ) 153 ); 146 154 } 147 155 … … 155 163 } 156 164 157 throw new \Exception(sprintf('There was a problem: %s', $responseBody)); 165 throw new \Exception( 166 esc_html( 167 /* translators: %s is the error message returned from the API or server */ 168 sprintf( 169 /* translators: %s is the error message returned from the API or server */ 170 __('There was a problem: %s', 'pinpointe-form-integration'), 171 $responseBody 172 ) 173 ) 174 ); 158 175 } 159 176 -
pinpointe-form-integration/trunk/includes/pinpointe-widget.class.php
r3078519 r3322372 23 23 parent::__construct( 24 24 'pinpointe_form', 25 __('Pinpointe Signup Form', 'pinpointe '),25 __('Pinpointe Signup Form', 'pinpointe-form-integration'), 26 26 array( 27 'description' => __('Widget displays a signup form, if enabled under Pinpointe settings.', 'pinpointe '),27 'description' => __('Widget displays a signup form, if enabled under Pinpointe settings.', 'pinpointe-form-integration'), 28 28 ) 29 29 ); … … 110 110 111 111 <p> 112 <?php printf(esc_html__('This widget renders a Pinpointe signup form.<br />You can edit signup forms <a href="%s">here</a>.', 'pinpointe'), esc_url(site_url('/wp-admin/admin.php?page=pinpointe'))); ?> 112 <?php 113 /* translators: %s: URL to the Pinpointe signup forms page */ 114 printf(esc_html__('This widget renders a Pinpointe signup form.<br />You can edit signup forms <a href="%s">here</a>.', 'pinpointe-form-integration'), esc_url(site_url('/wp-admin/admin.php?page=pinpointe'))); 115 ?> 113 116 </p> 114 117 <p> 115 <label for="<?php echo esc_attr($this->get_field_id('allowed_forms')); ?>"><?php esc_html_e('Allow only these forms (comma-separated IDs):', 'pinpointe '); ?></label>118 <label for="<?php echo esc_attr($this->get_field_id('allowed_forms')); ?>"><?php esc_html_e('Allow only these forms (comma-separated IDs):', 'pinpointe-form-integration'); ?></label> 116 119 <input class="widefat" id="<?php echo esc_attr($this->get_field_id('allowed_forms')); ?>" name="<?php echo esc_attr($this->get_field_name('allowed_forms')); ?>" type="text" value="<?php echo esc_attr($allowed_forms); ?>" /> 117 120 </p> -
pinpointe-form-integration/trunk/pinpointe-signup-form.php
r3318579 r3322372 4 4 * Plugin URI: https://help.pinpointe.com/support/solutions/articles/5000664320-wordpress-plugin-download 5 5 * Description: Add Pinpointe forms to your WordPress site 6 * Version: 1.7. 16 * Version: 1.7.2 7 7 * Author: Pinpointe 8 8 * Author URI: http://www.pinpointe.com/ … … 10 10 * Tested up to: 6.8.1 11 11 * 12 * Text Domain: pinpointe 12 * Text Domain: pinpointe-form-integration 13 13 * Domain Path: /languages 14 14 * … … 207 207 208 208 foreach ($shortcodes_to_check as $shortcode){ 209 if (!shortcode_exists($shortcode)){ 210 $warning_message = sprintf( 211 esc_html__('Warning: Missing %s shortcode!', 'pinpointe'), 209 if (!shortcode_exists($shortcode)) { 210 $warning_message = sprintf( 211 /* translators: %s is the name of the missing shortcode */ 212 esc_html__('Warning: Missing %s shortcode!', 'pinpointe-form-integration'), 212 213 esc_html($shortcode) 213 214 ); … … 396 397 'error_type', 397 398 'general', 398 sprintf(__('Warning: PHP cURL extension is not enabled on this server. cURL is required for this plugin to function correctly. You can read more about cURL <a href="%s">here</a>.', 'pinpointe'), 'http://php.net/manual/en/book.curl.php') 399 /* translators: %s is a link to the PHP cURL documentation */ 400 sprintf(__('Warning: PHP cURL extension is not enabled on this server. cURL is required for this plugin to function correctly. You can read more about cURL <a href="%s">here</a>.', 'pinpointe-form-integration'), 'http://php.net/manual/en/book.curl.php') 399 401 ); 400 402 } … … 582 584 583 585 if ($current_tab == 'forms') { 584 echo '<div style="width:100%;text-align:center;border-top:1px solid #dfdfdf;padding:18px;"><a href="' . esc_url(admin_url('/options-general.php?page=pinpointe&tab=help')) . '">' . esc_html__('How do I display my forms?', 'pinpointe ') . '</a></div>';586 echo '<div style="width:100%;text-align:center;border-top:1px solid #dfdfdf;padding:18px;"><a href="' . esc_url(admin_url('/options-general.php?page=pinpointe&tab=help')) . '">' . esc_html__('How do I display my forms?', 'pinpointe-form-integration') . '</a></div>'; 585 587 } 586 588 else if ($current_tab == 'help') { … … 629 631 */ 630 632 $forms_page_hints = array( 631 'pinpointe_forms_title_field' => '<p>'. esc_html('Title of the form - will be displayed in a signup form header.', 'pinpointe ').'</p>',632 'pinpointe_forms_above_field' => '<p>'. esc_html('Message to display above form fields.', 'pinpointe ').'</p>',633 'pinpointe_forms_below_field' => '<p>'. esc_html('Message to display below form fields.', 'pinpointe ').'</p>',634 'pinpointe_forms_button_field' => '<p>'. esc_html('Form submit button label.', 'pinpointe ').'</p>',635 'pinpointe_forms_color_scheme' => '<p>'. esc_html('Select one of the predefined color schemes. You can further customize the look & feel of your forms by adding custom CSS rules to Settings > Override CSS.', 'pinpointe ').'</p>',636 'pinpointe_forms_redirect_url' => '<p>'. esc_html('Optionaly provide an URL where subscribers should be redirected to after successful signup.', 'pinpointe ').'</p><p>' . esc_html('Leave this field empty to simply display a thank you message.', 'pinpointe') . '</p>',637 'pinpointe_forms_mailing_list' => '<p>'. esc_html('Select one of your Pinpointe mailing databases for users to be subscribed to.', 'pinpointe ').'</p>',638 'pinpointe_forms_mailing_tag' => '<p>'. esc_html('Select one of your Pinpointe lists for users to be added to.', 'pinpointe ').'</p>',639 'pinpointe_forms_groups' => '<p>'. esc_html('Select interest groups that you want to add automatically or allow users to choose in the form.', 'pinpointe ').'</p><p>' .esc_html('If no interest groups are available, either mailing list has not been selected yet in the field above or you have no interest groups created for this list.', 'pinpointe'). '</p>',640 'pinpointe_form_group_method' => '<p>'. esc_html('Select how you would like interest groups to work with this form - you can either add all selected interest groups to subscribers profile by default or allow your visitors to manually select some.', 'pinpointe ').'</p>',641 'form_condition_key' => '<p>'. esc_html('Controls on which parts of the website this form will appear (or not appear).', 'pinpointe ').'</p>',642 'form_condition_value_pages' => '<p>'. esc_html('List of pages to check current page against.', 'pinpointe ').'</p>',643 'form_condition_value_posts' => '<p>'. esc_html('List of posts to check current post against.', 'pinpointe ').'</p>',644 'form_condition_value_post_categories' => '<p>'. esc_html('List of post categories to check current post against.', 'pinpointe ').'</p>',645 'form_condition_value_url' => '<p>'. esc_html('URL fragment to search in the URL of the page.', 'pinpointe ').'</p>',646 'pinpointe_forms_send_confirmation' => '<p>'. esc_html('Whether or not to send a confirmation email to subscribers when they submit a subscription form. If selected, subscriptions will be recorded, but subscribers will be marked as Unconfirmed until they receive and choose to confirm their subscription via email.', 'pinpointe ').'</p>',633 'pinpointe_forms_title_field' => '<p>'. esc_html('Title of the form - will be displayed in a signup form header.', 'pinpointe-form-integration').'</p>', 634 'pinpointe_forms_above_field' => '<p>'. esc_html('Message to display above form fields.', 'pinpointe-form-integration').'</p>', 635 'pinpointe_forms_below_field' => '<p>'. esc_html('Message to display below form fields.', 'pinpointe-form-integration').'</p>', 636 'pinpointe_forms_button_field' => '<p>'. esc_html('Form submit button label.', 'pinpointe-form-integration').'</p>', 637 'pinpointe_forms_color_scheme' => '<p>'. esc_html('Select one of the predefined color schemes. You can further customize the look & feel of your forms by adding custom CSS rules to Settings > Override CSS.', 'pinpointe-form-integration').'</p>', 638 'pinpointe_forms_redirect_url' => '<p>'. esc_html('Optionaly provide an URL where subscribers should be redirected to after successful signup.', 'pinpointe-form-integration').'</p><p>' . esc_html('Leave this field empty to simply display a thank you message.', 'pinpointe-form-integration') . '</p>', 639 'pinpointe_forms_mailing_list' => '<p>'. esc_html('Select one of your Pinpointe mailing databases for users to be subscribed to.', 'pinpointe-form-integration').'</p>', 640 'pinpointe_forms_mailing_tag' => '<p>'. esc_html('Select one of your Pinpointe lists for users to be added to.', 'pinpointe-form-integration').'</p>', 641 'pinpointe_forms_groups' => '<p>'. esc_html('Select interest groups that you want to add automatically or allow users to choose in the form.', 'pinpointe-form-integration').'</p><p>' .esc_html('If no interest groups are available, either mailing list has not been selected yet in the field above or you have no interest groups created for this list.', 'pinpointe-form-integration'). '</p>', 642 'pinpointe_form_group_method' => '<p>'. esc_html('Select how you would like interest groups to work with this form - you can either add all selected interest groups to subscribers profile by default or allow your visitors to manually select some.', 'pinpointe-form-integration').'</p>', 643 'form_condition_key' => '<p>'. esc_html('Controls on which parts of the website this form will appear (or not appear).', 'pinpointe-form-integration').'</p>', 644 'form_condition_value_pages' => '<p>'. esc_html('List of pages to check current page against.', 'pinpointe-form-integration').'</p>', 645 'form_condition_value_posts' => '<p>'. esc_html('List of posts to check current post against.', 'pinpointe-form-integration').'</p>', 646 'form_condition_value_post_categories' => '<p>'. esc_html('List of post categories to check current post against.', 'pinpointe-form-integration').'</p>', 647 'form_condition_value_url' => '<p>'. esc_html('URL fragment to search in the URL of the page.', 'pinpointe-form-integration').'</p>', 648 'pinpointe_forms_send_confirmation' => '<p>'. esc_html('Whether or not to send a confirmation email to subscribers when they submit a subscription form. If selected, subscriptions will be recorded, but subscribers will be marked as Unconfirmed until they receive and choose to confirm their subscription via email.', 'pinpointe-form-integration').'</p>', 647 649 ); 648 650 … … 696 698 var pinpointe_forms_hints = <?php echo wp_json_encode($forms_page_hints); ?>; 697 699 var pinpointe_home_url = '<?php echo esc_url(site_url()); ?>'; 698 var pinpointe_label_still_connecting_to_pinpointe = '<?php esc_html_e('Still connecting to Pinpointe...', 'pinpointe '); ?>';699 var pinpointe_label_mailing_list = '<?php esc_html_e('Mailing database', 'pinpointe '); ?>';700 var pinpointe_label_mailing_tag = '<?php esc_html_e('Mailing list', 'pinpointe '); ?>';701 var pinpointe_label_no_results_match_list = '<?php esc_html_e('There are no databases named', 'pinpointe '); ?>';702 var pinpointe_label_no_results_match_tag = '<?php esc_html_e('There are no lists named', 'pinpointe '); ?>';703 var pinpointe_label_select_mailing_list = '<?php esc_html_e('Select a mailing database', 'pinpointe '); ?>';704 var pinpointe_label_select_mailing_tag = '<?php esc_html_e('Select a mailing list', 'pinpointe ');700 var pinpointe_label_still_connecting_to_pinpointe = '<?php esc_html_e('Still connecting to Pinpointe...', 'pinpointe-form-integration'); ?>'; 701 var pinpointe_label_mailing_list = '<?php esc_html_e('Mailing database', 'pinpointe-form-integration'); ?>'; 702 var pinpointe_label_mailing_tag = '<?php esc_html_e('Mailing list', 'pinpointe-form-integration'); ?>'; 703 var pinpointe_label_no_results_match_list = '<?php esc_html_e('There are no databases named', 'pinpointe-form-integration'); ?>'; 704 var pinpointe_label_no_results_match_tag = '<?php esc_html_e('There are no lists named', 'pinpointe-form-integration'); ?>'; 705 var pinpointe_label_select_mailing_list = '<?php esc_html_e('Select a mailing database', 'pinpointe-form-integration'); ?>'; 706 var pinpointe_label_select_mailing_tag = '<?php esc_html_e('Select a mailing list', 'pinpointe-form-integration'); 705 707 ?>'; 706 var pinpointe_label_no_results_match_groups = '<?php esc_html_e('Selected database does not have groups named', 'pinpointe '); ?>';707 var pinpointe_label_select_some_groups = '<?php esc_html_e('Select some groups (optional)', 'pinpointe '); ?>';708 var pinpointe_label_groups = '<?php esc_html_e('Interest groups', 'pinpointe '); ?>';709 var pinpointe_label_fields_name = '<?php esc_html_e('Field Label', 'pinpointe '); ?>';710 var pinpointe_label_fields_tag = '<?php esc_html_e('Pinpointe Field', 'pinpointe '); ?>'; //708 var pinpointe_label_no_results_match_groups = '<?php esc_html_e('Selected database does not have groups named', 'pinpointe-form-integration'); ?>'; 709 var pinpointe_label_select_some_groups = '<?php esc_html_e('Select some groups (optional)', 'pinpointe-form-integration'); ?>'; 710 var pinpointe_label_groups = '<?php esc_html_e('Interest groups', 'pinpointe-form-integration'); ?>'; 711 var pinpointe_label_fields_name = '<?php esc_html_e('Field Label', 'pinpointe-form-integration'); ?>'; 712 var pinpointe_label_fields_tag = '<?php esc_html_e('Pinpointe Field', 'pinpointe-form-integration'); ?>'; // 711 713 // Changed from 'Pinpointe Tag' 712 var pinpointe_label_fields_icon = '<?php esc_html_e('Icon', 'pinpointe '); ?>';713 var pinpointe_label_add_new = '<?php esc_html_e('Add Field', 'pinpointe '); ?>'; // Changed from714 var pinpointe_label_fields_icon = '<?php esc_html_e('Icon', 'pinpointe-form-integration'); ?>'; 715 var pinpointe_label_add_new = '<?php esc_html_e('Add Field', 'pinpointe-form-integration'); ?>'; // Changed from 714 716 // 'Add Tag' 715 var pinpointe_label_no_results_match_tags = '<?php esc_html_e('Selected database does not have fields named', 'pinpointe '); ?>';716 var pinpointe_label_select_tag = '<?php esc_html_e('Select a field', 'pinpointe '); ?>'; //717 var pinpointe_label_no_results_match_tags = '<?php esc_html_e('Selected database does not have fields named', 'pinpointe-form-integration'); ?>'; 718 var pinpointe_label_select_tag = '<?php esc_html_e('Select a field', 'pinpointe-form-integration'); ?>'; // 717 719 // Changed from 'Select a tag' 718 var pinpointe_label_connecting_to_pinpointe = '<?php esc_html_e('Connecting to Pinpointe...', 'pinpointe '); ?>';719 var pinpointe_label_no_results_match_pages = '<?php esc_html_e('No pages named', 'pinpointe '); ?>';720 var pinpointe_label_select_some_pages = '<?php esc_html_e('Select some pages', 'pinpointe '); ?>';721 var pinpointe_label_no_results_match_posts = '<?php esc_html_e('No posts named', 'pinpointe '); ?>';722 var pinpointe_label_select_some_posts = '<?php esc_html_e('Select some posts', 'pinpointe '); ?>';723 var pinpointe_label_no_results_match_post_categories = '<?php esc_html_e('No post categories named', 'pinpointe '); ?>';724 var pinpointe_label_select_some_post_categories = '<?php esc_html_e('Select some post categories', 'pinpointe '); ?>';725 var pinpointe_label_no_results_match_forms = '<?php esc_html_e('No forms named', 'pinpointe '); ?>';726 var pinpointe_label_select_some_forms = '<?php esc_html_e('Select forms here', 'pinpointe '); ?>';727 var pinpointe_label_signup_form_no = '<?php esc_html_e('Signup Form #', 'pinpointe '); ?>';728 var pinpointe_label_email = '<?php esc_html_e('Email', 'pinpointe '); ?>';729 var pinpointe_label_button = '<?php esc_html_e('Submit', 'pinpointe '); ?>';720 var pinpointe_label_connecting_to_pinpointe = '<?php esc_html_e('Connecting to Pinpointe...', 'pinpointe-form-integration'); ?>'; 721 var pinpointe_label_no_results_match_pages = '<?php esc_html_e('No pages named', 'pinpointe-form-integration'); ?>'; 722 var pinpointe_label_select_some_pages = '<?php esc_html_e('Select some pages', 'pinpointe-form-integration'); ?>'; 723 var pinpointe_label_no_results_match_posts = '<?php esc_html_e('No posts named', 'pinpointe-form-integration'); ?>'; 724 var pinpointe_label_select_some_posts = '<?php esc_html_e('Select some posts', 'pinpointe-form-integration'); ?>'; 725 var pinpointe_label_no_results_match_post_categories = '<?php esc_html_e('No post categories named', 'pinpointe-form-integration'); ?>'; 726 var pinpointe_label_select_some_post_categories = '<?php esc_html_e('Select some post categories', 'pinpointe-form-integration'); ?>'; 727 var pinpointe_label_no_results_match_forms = '<?php esc_html_e('No forms named', 'pinpointe-form-integration'); ?>'; 728 var pinpointe_label_select_some_forms = '<?php esc_html_e('Select forms here', 'pinpointe-form-integration'); ?>'; 729 var pinpointe_label_signup_form_no = '<?php esc_html_e('Signup Form #', 'pinpointe-form-integration'); ?>'; 730 var pinpointe_label_email = '<?php esc_html_e('Email', 'pinpointe-form-integration'); ?>'; 731 var pinpointe_label_button = '<?php esc_html_e('Submit', 'pinpointe-form-integration'); ?>'; 730 732 var pinpointe_font_awesome_icons = <?php echo wp_json_encode($this->get_font_awesome_icons()); ?>; 731 var pinpointe_label_bad_ajax_response = '<?php printf(esc_html__('%s Response received from your server is malformed.', 'pinpointe'), '<i class="fa-solid fa-xmark" style="font-size: 1.5em; color: red;"></i>'); ?>';732 var pinpointe_label_integration_status = '<?php esc_html_e('Integration status', 'pinpointe '); ?>';733 var pinpointe_label_bad_ajax_response = '<?php /* translators: %s is an HTML icon indicating an error */ printf(esc_html__('%s Response received from your server is malformed.', 'pinpointe-form-integration'), '<i class="fa-solid fa-xmark" style="font-size: 1.5em; color: red;"></i>'); ?>'; 734 var pinpointe_label_integration_status = '<?php esc_html_e('Integration status', 'pinpointe-form-integration'); ?>'; 733 735 734 736 <?php if ($current_tab == 'forms'): ?> … … 767 769 ?> 768 770 <div class="pinpointe-forms"> 769 <p><?php printf(__('You must <a href="%s">enter</a> your Pinpointe API key to use this feature.', 'pinpointe'), esc_url(admin_url('/options-general.php?page=pinpointe&tab=settings'))); ?></p> 771 <p> 772 <?php 773 echo wp_kses_post( 774 /* translators: %s is a link to the Pinpointe settings page where the API key can be entered */ 775 sprintf( 776 /* translators: %s is a link to the Pinpointe settings page where the API key can be entered */ 777 __('You must <a href="%s">enter</a> your Pinpointe API key to use this feature.', 'pinpointe-form-integration'), 778 esc_url(admin_url('/options-general.php?page=pinpointe&tab=settings')) 779 ) 780 ); 781 ?> 782 </p> 770 783 </div> 771 784 <?php … … 887 900 $group_methods = array( 888 901 array( 889 'title' => __('Automatically', 'pinpointe '),902 'title' => __('Automatically', 'pinpointe-form-integration'), 890 903 'children' => array( 891 'auto' => __('All groups selected above', 'pinpointe '),904 'auto' => __('All groups selected above', 'pinpointe-form-integration'), 892 905 ), 893 906 ), 894 907 array( 895 'title' => __('Allow users to select (optional)', 'pinpointe '),908 'title' => __('Allow users to select (optional)', 'pinpointe-form-integration'), 896 909 'children' => array( 897 'multi' => __('Checkbox group for each grouping', 'pinpointe '),898 'single' => __('Radio button group for each grouping', 'pinpointe '),899 'select' => __('Select field (dropdown) for each grouping', 'pinpointe '),910 'multi' => __('Checkbox group for each grouping', 'pinpointe-form-integration'), 911 'single' => __('Radio button group for each grouping', 'pinpointe-form-integration'), 912 'select' => __('Select field (dropdown) for each grouping', 'pinpointe-form-integration'), 900 913 ), 901 914 ), 902 915 array( 903 'title' => __('Require users to select (required)', 'pinpointe '),916 'title' => __('Require users to select (required)', 'pinpointe-form-integration'), 904 917 'children' => array( 905 'single_req' => __('Radio button group for each grouping', 'pinpointe '),906 'select_req' => __('Select field (dropdown) for each grouping', 'pinpointe '),918 'single_req' => __('Radio button group for each grouping', 'pinpointe-form-integration'), 919 'select_req' => __('Select field (dropdown) for each grouping', 'pinpointe-form-integration'), 907 920 ), 908 921 ) … … 914 927 $condition_options = array( 915 928 array( 916 'title' => __('No condition', 'pinpointe '),929 'title' => __('No condition', 'pinpointe-form-integration'), 917 930 'children' => array( 918 'always' => __('Always allow this form to be displayed', 'pinpointe '),919 'disable' => __('Disable this form', 'pinpointe '),931 'always' => __('Always allow this form to be displayed', 'pinpointe-form-integration'), 932 'disable' => __('Disable this form', 'pinpointe-form-integration'), 920 933 ), 921 934 ), 922 935 array( 923 'title' => __('Conditions', 'pinpointe '),936 'title' => __('Conditions', 'pinpointe-form-integration'), 924 937 'children' => array( 925 'front' => __('Front page only', 'pinpointe '),926 'pages' => __('Specific pages', 'pinpointe '),927 'posts' => __('Specific posts', 'pinpointe '),928 'categories' => __('Specific post categories', 'pinpointe '),929 'url' => __('URL contains', 'pinpointe '),938 'front' => __('Front page only', 'pinpointe-form-integration'), 939 'pages' => __('Specific pages', 'pinpointe-form-integration'), 940 'posts' => __('Specific posts', 'pinpointe-form-integration'), 941 'categories' => __('Specific post categories', 'pinpointe-form-integration'), 942 'url' => __('URL contains', 'pinpointe-form-integration'), 930 943 ), 931 944 ), 932 945 array( 933 'title' => __('Inversed Conditions', 'pinpointe '),946 'title' => __('Inversed Conditions', 'pinpointe-form-integration'), 934 947 'children' => array( 935 'pages_not' => __('Pages not', 'pinpointe '),936 'posts_not' => __('Posts not', 'pinpointe '),937 'categories_not' => __('Post categories not', 'pinpointe '),938 'url_not' => __('URL does not contain', 'pinpointe '),948 'pages_not' => __('Pages not', 'pinpointe-form-integration'), 949 'posts_not' => __('Posts not', 'pinpointe-form-integration'), 950 'categories_not' => __('Post categories not', 'pinpointe-form-integration'), 951 'url_not' => __('URL does not contain', 'pinpointe-form-integration'), 939 952 ), 940 953 ), … … 945 958 */ 946 959 $color_schemes = array( 947 'cyan' => __('Cyan', 'pinpointe '),948 'red' => __('Red', 'pinpointe '),949 'orange' => __('Orange', 'pinpointe '),950 'green' => __('Green', 'pinpointe '),951 'purple' => __('Purple', 'pinpointe '),952 'pink' => __('Pink', 'pinpointe '),953 'yellow' => __('Yellow', 'pinpointe '),954 'blue' => __('Blue', 'pinpointe '),955 'black' => __('Black', 'pinpointe '),960 'cyan' => __('Cyan', 'pinpointe-form-integration'), 961 'red' => __('Red', 'pinpointe-form-integration'), 962 'orange' => __('Orange', 'pinpointe-form-integration'), 963 'green' => __('Green', 'pinpointe-form-integration'), 964 'purple' => __('Purple', 'pinpointe-form-integration'), 965 'pink' => __('Pink', 'pinpointe-form-integration'), 966 'yellow' => __('Yellow', 'pinpointe-form-integration'), 967 'blue' => __('Blue', 'pinpointe-form-integration'), 968 'black' => __('Black', 'pinpointe-form-integration'), 956 969 ); 957 970 … … 1011 1024 1012 1025 <div id="pinpointe_forms_list_<?php echo esc_attr($form_key); ?>"> 1013 <h4 class="pinpointe_forms_handle"><span class="pinpointe_forms_title" id="pinpointe_forms_title_<?php echo esc_attr($form_key); ?>"><?php esc_html_e('Signup Form #', 'pinpointe '); ?><?php echo esc_html($form_key); ?></span> <span class="pinpointe_forms_title_name"><?php echo (!empty($form['title'])) ? '- ' . esc_html($form['title']) : ''; ?></span><span class="pinpointe_forms_remove" id="pinpointe_forms_remove_<?php echo esc_attr($form_key); ?>" title="<?php esc_html_e('Remove', 'pinpointe'); ?>"><i class="fa-solid fa-xmark"></i></span></h4>1026 <h4 class="pinpointe_forms_handle"><span class="pinpointe_forms_title" id="pinpointe_forms_title_<?php echo esc_attr($form_key); ?>"><?php esc_html_e('Signup Form #', 'pinpointe-form-integration'); ?><?php echo esc_html($form_key); ?></span> <span class="pinpointe_forms_title_name"><?php echo (!empty($form['title'])) ? '- ' . esc_html($form['title']) : ''; ?></span><span class="pinpointe_forms_remove" id="pinpointe_forms_remove_<?php echo esc_attr($form_key); ?>" title="<?php esc_html_e('Remove', 'pinpointe-form-integration'); ?>"><i class="fa-solid fa-xmark"></i></span></h4> 1014 1027 <div style="clear:both;"> 1015 1028 1016 <div class="pinpointe_forms_section"><?php esc_html_e('Main Settings', 'pinpointe '); ?></div>1029 <div class="pinpointe_forms_section"><?php esc_html_e('Main Settings', 'pinpointe-form-integration'); ?></div> 1017 1030 <table class="form-table"><tbody> 1018 1031 <tr valign="top"> 1019 <th scope="row"><?php esc_html_e('Form title', 'pinpointe '); ?></th>1032 <th scope="row"><?php esc_html_e('Form title', 'pinpointe-form-integration'); ?></th> 1020 1033 <td><input type="text" id="pinpointe_forms_title_field_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][title]" value="<?php echo esc_attr($form['title']); ?>" class="pinpointe-field pinpointe_forms_title_field"></td> 1021 1034 </tr> 1022 1035 <tr valign="top"> 1023 <th scope="row"><?php esc_html_e('Text above form', 'pinpointe '); ?></th>1036 <th scope="row"><?php esc_html_e('Text above form', 'pinpointe-form-integration'); ?></th> 1024 1037 <td><input type="text" id="pinpointe_forms_above_field_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][above]" value="<?php echo esc_attr($form['above']); ?>" class="pinpointe-field pinpointe_forms_above_field"></td> 1025 1038 </tr> 1026 1039 <tr valign="top"> 1027 <th scope="row"><?php esc_html_e('Text below form', 'pinpointe '); ?></th>1040 <th scope="row"><?php esc_html_e('Text below form', 'pinpointe-form-integration'); ?></th> 1028 1041 <td><input type="text" id="pinpointe_forms_below_field_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][below]" value="<?php echo esc_attr($form['below']); ?>" class="pinpointe-field pinpointe_forms_below_field"></td> 1029 1042 </tr> 1030 1043 <tr valign="top"> 1031 <th scope="row"><?php esc_html_e('Submit button label', 'pinpointe '); ?></th>1044 <th scope="row"><?php esc_html_e('Submit button label', 'pinpointe-form-integration'); ?></th> 1032 1045 <td><input type="text" id="pinpointe_forms_button_field_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][button]" value="<?php echo isset($form['button']) ? esc_attr($form['button']) : ''; ?>" class="pinpointe-field pinpointe_forms_button_field"></td> 1033 1046 </tr> 1034 1047 <tr valign="top"> 1035 <th scope="row"><?php esc_html_e('Color scheme', 'pinpointe '); ?></th>1048 <th scope="row"><?php esc_html_e('Color scheme', 'pinpointe-form-integration'); ?></th> 1036 1049 <td><select id="pinpointe_forms_color_scheme_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][color_scheme]" class="pinpointe-field pinpointe_forms_color_scheme"> 1037 1050 … … 1046 1059 </tr> 1047 1060 <tr valign="top"> 1048 <th scope="row"><?php esc_html_e('Success redirect URL', 'pinpointe '); ?></th>1061 <th scope="row"><?php esc_html_e('Success redirect URL', 'pinpointe-form-integration'); ?></th> 1049 1062 <td><input type="text" id="pinpointe_forms_redirect_url_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][redirect_url]" value="<?php echo isset($form['redirect_url']) ? esc_attr($form['redirect_url']) : ''; ?>" class="pinpointe-field pinpointe_forms_redirect_url"></td> 1050 1063 </tr> 1051 1064 <tr valign="top"> 1052 <th scope="row"><?php esc_html_e('Send confirmation email', 'pinpointe '); ?></th>1065 <th scope="row"><?php esc_html_e('Send confirmation email', 'pinpointe-form-integration'); ?></th> 1053 1066 <td> 1054 1067 <?php … … 1058 1071 </tr> 1059 1072 <tr valign="top" class="pinpointe_forms_confirmation_email_trs"> 1060 <th scope="row"><?php esc_html_e('Override default confirmation email', 'pinpointe '); ?></th>1073 <th scope="row"><?php esc_html_e('Override default confirmation email', 'pinpointe-form-integration'); ?></th> 1061 1074 <td> 1062 1075 <?php … … 1066 1079 </tr> 1067 1080 <tr valign="top" class="pinpointe_forms_confirmation_email_trs pinpointe_forms_confirmation_email_tr"> 1068 <td scope="row" colspan="2" id="forms_confirmation_email_td_<?php echo esc_attr($form_key) ?>"><strong><?php esc_html_e('Confirmation email', 'pinpointe '); ?></strong>1081 <td scope="row" colspan="2" id="forms_confirmation_email_td_<?php echo esc_attr($form_key) ?>"><strong><?php esc_html_e('Confirmation email', 'pinpointe-form-integration'); ?></strong> 1069 1082 <br/> 1070 1083 <?php … … 1088 1101 <span class="pinpointe_loading_icon"></span> 1089 1102 <?php wp_nonce_field('ajax_get_lists_groups_fields', 'pinpointe_get_lists_groups_fields'); ?> 1090 <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe '); ?>1103 <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe-form-integration'); ?> 1091 1104 </p> 1092 1105 … … 1095 1108 <p id="pinpointe_forms_tag_<?php echo esc_attr($form_key); ?>" class="pinpointe_loading_tag pinpointe_forms_field_tag_groups"> 1096 1109 <span class="pinpointe_loading_icon"></span> 1097 <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe '); ?>1110 <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe-form-integration'); ?> 1098 1111 </p> 1099 1112 <?php wp_nonce_field('ajax_get_lists', 'pinpointe_get_lists'); ?> … … 1102 1115 <tbody> 1103 1116 <tr valign="top"> 1104 <th scope="row"><?php esc_html_e('Show Mailing lists', 'pinpointe '); ?></th>1117 <th scope="row"><?php esc_html_e('Show Mailing lists', 'pinpointe-form-integration'); ?></th> 1105 1118 <td> 1106 1119 <?php … … 1117 1130 <span class="pinpointe_loading_icon"></span> 1118 1131 1119 <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe '); ?>1132 <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe-form-integration'); ?> 1120 1133 </p> 1121 1134 … … 1123 1136 <table class="form-table"><tbody> 1124 1137 <tr valign="top"> 1125 <th scope="row"><?php esc_html_e('Display condition', 'pinpointe '); ?></th>1138 <th scope="row"><?php esc_html_e('Display condition', 'pinpointe-form-integration'); ?></th> 1126 1139 <td><select id="pinpointe_forms_condition_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][condition]" class="pinpointe-field form_condition_key"> 1127 1140 … … 1142 1155 </tr> 1143 1156 <tr valign="top"> 1144 <th scope="row"><?php esc_html_e('Pages', 'pinpointe '); ?></th>1157 <th scope="row"><?php esc_html_e('Pages', 'pinpointe-form-integration'); ?></th> 1145 1158 <td><select multiple id="pinpointe_forms_condition_pages_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][condition_pages][]" class="pinpointe-field form_condition_value form_condition_value_pages form_condition_value_pages_not"> 1146 1159 … … 1155 1168 </tr> 1156 1169 <tr valign="top"> 1157 <th scope="row"><?php esc_html_e('Posts', 'pinpointe '); ?></th>1170 <th scope="row"><?php esc_html_e('Posts', 'pinpointe-form-integration'); ?></th> 1158 1171 <td><select multiple id="pinpointe_forms_condition_posts_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][condition_posts][]" class="pinpointe-field form_condition_value form_condition_value_posts form_condition_value_posts_not"> 1159 1172 … … 1168 1181 </tr> 1169 1182 <tr valign="top"> 1170 <th scope="row"><?php esc_html_e('Post categories', 'pinpointe '); ?></th>1183 <th scope="row"><?php esc_html_e('Post categories', 'pinpointe-form-integration'); ?></th> 1171 1184 <td><select multiple id="pinpointe_forms_condition_categories_<?php echo esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][condition_categories][]" class="pinpointe-field form_condition_value form_condition_value_categories form_condition_value_categories_not"> 1172 1185 … … 1181 1194 </tr> 1182 1195 <tr valign="top"> 1183 <th scope="row"><?php esc_html_e('URL fragment', 'pinpointe '); ?></th>1196 <th scope="row"><?php esc_html_e('URL fragment', 'pinpointe-form-integration'); ?></th> 1184 1197 <td><input type="text" id="pinpointe_forms_condition_url_<?php echo 1185 1198 esc_attr($form_key); ?>" name="pinpointe_options[forms][<?php echo esc_attr($form_key); ?>][condition_url]" value="<?php echo ((isset($form['condition']['key']) && in_array($form['condition']['key'], array('url', 'url_not')) && isset($form['condition']['value'])) ? esc_attr($form['condition']['value']) : ''); ?>" class="pinpointe-field form_condition_value form_condition_value_url form_condition_value_url_not"></td> … … 1196 1209 <div> 1197 1210 <button type="button" name="pinpointe_add_set" id="pinpointe_add_set" disabled="disabled" 1198 class="button button-primary" value="<?php esc_html_e('Add Form', 'pinpointe ');1199 ?>" title="<?php esc_html_e('Still connecting to Pinpointe...', 'pinpointe ');1200 ?>"><i class="fa-solid fa-plus"> <?php esc_html_e('Add Form', 'pinpointe '); ?></i></button>1211 class="button button-primary" value="<?php esc_html_e('Add Form', 'pinpointe-form-integration'); 1212 ?>" title="<?php esc_html_e('Still connecting to Pinpointe...', 'pinpointe-form-integration'); 1213 ?>"><i class="fa-solid fa-plus"> <?php esc_html_e('Add Form', 'pinpointe-form-integration'); ?></i></button> 1201 1214 <div style="clear: both;"></div> 1202 1215 </div> … … 1209 1222 else if ($section['id'] == 'help_display') { 1210 1223 echo '<div class="pinpointe-section-info"><p style="line-height: 160%;">' 1211 . esc_html__('You can create multiple newsletter signup forms on the "Forms" page. Each can be displayed in one of the following ways:', 'pinpointe ')1224 . esc_html__('You can create multiple newsletter signup forms on the "Forms" page. Each can be displayed in one of the following ways:', 'pinpointe-form-integration') 1212 1225 . '</p><p style="line-height: 160%;">' 1213 . '<strong style="color:#222;">' . esc_html__('Widget', 'pinpointe') . '</strong><br />' 1214 . sprintf(__('Display any form on a sidebar of your choice by using a standard WordPress Widget. Go to the <a href="%s">Widgets page</a> and use the one named Pinpointe Signup. You can add as many instances of this widget as you like. You can optionally specify a comma-separated list of form IDs to limit which forms can be displayed on that particular spot.', 'pinpointe'), esc_url(admin_url('/widgets.php'))) 1226 . '<strong style="color:#222;">' . esc_html__('Widget', 'pinpointe-form-integration') . '</strong><br />' 1227 . wp_kses_post( 1228 /* translators: %s is a link to the WordPress Widgets admin page */ 1229 sprintf( 1230 /* translators: %s is a link to the WordPress Widgets admin page */ 1231 __('Display any form on a sidebar of your choice by using a standard WordPress Widget. Go to the <a href="%s">Widgets page</a> and use the one named Pinpointe Signup. You can add as many instances of this widget as you like. You can optionally specify a comma-separated list of form IDs to limit which forms can be displayed on that particular spot.', 'pinpointe-form-integration'), 1232 esc_url(admin_url('/widgets.php')) 1233 ) 1234 ) 1235 . '</p><p style="line-height: 160%;">' 1236 . '<strong style="color:#222;">' . esc_html__('Shortcode', 'pinpointe-form-integration') . ' <code>[pinpointe_form]</code></strong><br />' 1237 . esc_html__('Insert a form into individual posts or pages by placing a shortcode anywhere in the content. You can limit which forms are eligible to be displayed here by specifying <code>forms</code> with a comma-separated list of form IDs, e.g. <code>[pinpointe_form forms="1,3,4"]</code>. A single form will be chosen from the list of form IDs.', 'pinpointe-form-integration') 1215 1238 . '</p><p style="line-height: 160%;">' 1216 . '<strong style="color:#222;">' . esc_html__('Shortcode', 'pinpointe') . ' <code>[pinpointe_form]</code></strong><br />' 1217 . esc_html__('Insert a form into individual posts or pages by placing a shortcode anywhere in the content. You can limit which forms are eligible to be displayed here by specifying <code>forms</code> with a comma-separated list of form IDs, e.g. <code>[pinpointe_form forms="1,3,4"]</code>. A single form will be chosen from the list of form IDs.', 'pinpointe') 1239 . '<strong style="color:#222;">' . esc_html__('Function', 'pinpointe-form-integration') . ' <code>pinpointe_form()</code></strong><br />' 1240 . wp_kses_post( 1241 /* translators: Explains how to use the pinpointe_form() PHP function to display forms in custom locations, with an example of limiting form IDs */ 1242 __( 1243 'To display a form in nonstandard parts of your website, take advantage of the PHP function <code>pinpointe_form()</code>. To limit which forms can be displayed at that particular spot, pass a list of allowed form IDs in an array, e.g. <code>pinpointe_form(array(\'1\', \'3\', \'4\'))</code>', 1244 'pinpointe-form-integration' 1245 ) 1246 ) 1218 1247 . '</p><p style="line-height: 160%;">' 1219 . '<strong style="color:#222;">' . esc_html__('Function', 'pinpointe') . ' <code>pinpointe_form()</code></strong><br />' 1220 . __('To display a form in nonstandard parts of your website, take advantage of the PHP function <code>pinpointe_form()</code>. To limit which forms can be displayed at that particular spot, pass a list of allowed form IDs in an array, e.g. <code>pinpointe_form(array(\'1\', \'3\', \'4\'))</code>', 'pinpointe') 1248 . '<strong style="color:#222;">' . esc_html__('Popup', 'pinpointe-form-integration') . '</strong><br />' 1249 . wp_kses_post( 1250 /* translators: %s is a link to the Pinpointe popup settings page */ 1251 sprintf( 1252 /* translators: %s is a link to the Pinpointe popup settings page */ 1253 __('Increase the signup rate by displaying one of your signup forms in a <a href="%s">popup</a>. If you wish popup to be opened on click and not automatically on page load, simply assign ID <code>pinpointe_popup_open</code> to the element that you want to bind it to.', 'pinpointe-form-integration'), 1254 esc_url(admin_url('/options-general.php?page=pinpointe&tab=popup')) 1255 ) 1256 ) 1221 1257 . '</p><p style="line-height: 160%;">' 1222 . '<strong style="color:#222;">' . esc_html__('Popup', 'pinpointe') . '</strong><br />' 1223 . sprintf(__('Increase the signup rate by displaying one of your signup forms in a <a href="%s">popup</a>. If you wish popup to be opened on click and not automatically on page load, simply assign ID <code>pinpointe_popup_open</code> to the element that you want to bind it to.', 'pinpointe'), esc_url(admin_url('/options-general.php?page=pinpointe&tab=popup'))) 1258 . '<strong style="color:#222;">' . esc_html__('Under Post Content', 'pinpointe-form-integration') . '</strong><br />' 1259 . wp_kses_post( 1260 sprintf( 1261 /* translators: %s is the URL to the plugin settings page */ 1262 __('You can easily configure this plugin to display signup forms under each <a href="%s">post</a> that you publish. You can exclude (or include only particular posts) by setting appropriate form displaying conditions.', 'pinpointe-form-integration'), 1263 esc_url(admin_url('/options-general.php?page=pinpointe&tab=below')) 1264 ) 1265 ) 1224 1266 . '</p><p style="line-height: 160%;">' 1225 . '<strong style="color:#222;">' . esc_html__('Under Post Content', 'pinpointe') . '</strong><br />' 1226 . sprintf(__('You can easily configure this plugin to display signup forms under each <a href="%s">post</a> that you publish. You can exclude (or include only particular posts) by setting appropriate form displaying conditions.', 'pinpointe'), esc_url(admin_url('/options-general.php?page=pinpointe&tab=below'))) 1227 . '</p><p style="line-height: 160%;">' 1228 . '<strong style="color:#222;">' . esc_html__('As Content Lock', 'pinpointe') . '</strong><br />' 1229 . sprintf( __('If you have valuable content that your visitors are after, you may wish to <a href="%s">lock</a> some of it so only visitors who subscribe to your mailing list can access it.', 'pinpointe'), esc_url(admin_url('/options-general.php?page=pinpointe&tab=lock'))) 1267 . '<strong style="color:#222;">' . esc_html__('As Content Lock', 'pinpointe-form-integration') . '</strong><br />' 1268 . /* translators: %s is a link to the Pinpointe content locking settings page */ 1269 wp_kses_post(sprintf( __('If you have valuable content that your visitors are after, you may wish to <a href="%s">lock</a> some of it so only visitors who subscribe to your mailing list can access it.', 'pinpointe-form-integration'), esc_url(admin_url('/options-general.php?page=pinpointe&tab=lock')))) 1230 1270 . '</p></div>'; 1231 1271 } 1232 1272 else if ($section['id'] == 'help_contact') { 1233 1273 echo '<div class="pinpointe-section-info"><p>' 1234 . sprintf(__('If you\'ve got any questions, feel free to contact us at <a href="mailto:%s">%s</a>.', 'pinpointe'), '[email protected]', '[email protected]')1274 . /* translators: translators: 1: support email address (used in mailto), 2: support email address(displayed as link text) */ wp_kses_post(sprintf(__('If you\'ve got any questions, feel free to contact us at <a href="mailto:%1$s">%2$s</a>.', 'pinpointe-form-integration'), '[email protected]', '[email protected]')) 1235 1275 . '</p><p>' 1236 1276 . '</p></div>'; … … 1455 1495 array( 1456 1496 'setting' => 'html_confirmation_email', 1457 'custom' => printf(esc_html__('%s', 'pinpointe'), esc_html($error)) 1497 /* translators: %s is the error message to display in the custom field */ 1498 'custom' => sprintf( 1499 /* translators: %s is the error message to display in the custom field */ 1500 esc_html__('Error: %s', 'pinpointe-form-integration'), 1501 esc_html($error) 1502 ) 1458 1503 ) 1459 1504 ); … … 1478 1523 array( 1479 1524 'setting' => 'tags', 1480 'custom' => printf(esc_html__('%s', 'pinpointe'), esc_html("You must selected at least one mailing list")) 1525 /* translators: %s is the error message shown when no mailing list is selected */ 1526 'custom' => sprintf( 1527 /* translators: %s is the error message shown when no mailing list is selected */ 1528 esc_html__('Error: %s', 'pinpointe-form-integration'), 1529 esc_html__('You must select at least one mailing list.', 'pinpointe-form-integration') 1530 ) 1481 1531 ) 1482 1532 ); … … 1801 1851 'pinpointe_settings_updated', 1802 1852 'pinpointe_settings_updated', 1803 __('Your settings have been saved.', 'pinpointe '),1853 __('Your settings have been saved.', 'pinpointe-form-integration'), 1804 1854 'updated' 1805 1855 ); … … 1807 1857 // Define error messages 1808 1858 $messages = array( 1809 'number' => __('must be numeric', 'pinpointe '),1810 'bool' => __('must be either 0 or 1', 'pinpointe '),1811 'option' => __('is not allowed', 'pinpointe '),1812 'email' => __('is not a valid email address', 'pinpointe '),1813 'url' => __('is not a valid URL', 'pinpointe '),1814 'string' => __('is not a valid text string', 'pinpointe '),1859 'number' => __('must be numeric', 'pinpointe-form-integration'), 1860 'bool' => __('must be either 0 or 1', 'pinpointe-form-integration'), 1861 'option' => __('is not allowed', 'pinpointe-form-integration'), 1862 'email' => __('is not a valid email address', 'pinpointe-form-integration'), 1863 'url' => __('is not a valid URL', 'pinpointe-form-integration'), 1864 'string' => __('is not a valid text string', 'pinpointe-form-integration'), 1815 1865 ); 1816 1866 1817 1867 // Display errors 1818 1868 foreach ($errors as $error) { 1819 $message = (!isset($error['custom']) ? $messages[$error['code']] : $error['custom']) . '. ' . __('Reverted to a previous state.', 'pinpointe ');1869 $message = (!isset($error['custom']) ? $messages[$error['code']] : $error['custom']) . '. ' . __('Reverted to a previous state.', 'pinpointe-form-integration'); 1820 1870 $setting = $error['setting']; 1821 1871 … … 1832 1882 'pinpointe_settings_updated', 1833 1883 $code, 1834 __('Value of', 'pinpointe ') . ' "' . $setting . '" ' . $message1884 __('Value of', 'pinpointe-form-integration') . ' "' . $setting . '" ' . $message 1835 1885 ); 1836 1886 } … … 1976 2026 } 1977 2027 else { 1978 return __(' is not valid or something went wrong. More details: ', 'pinpointe ') . $test_results;2028 return __(' is not valid or something went wrong. More details: ', 'pinpointe-form-integration') . $test_results; 1979 2029 } 1980 2030 } … … 1997 2047 } 1998 2048 else { 1999 return __(' is not in a valid format', 'pinpointe ');2049 return __(' is not in a valid format', 'pinpointe-form-integration'); 2000 2050 } 2001 2051 } … … 2090 2140 wp_enqueue_style('pinpointe-sky-forms-color-schemes'); 2091 2141 2092 // Check browser version 2093 if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.') !== false) { 2142 $user_agent_raw = isset($_SERVER['HTTP_USER_AGENT']) ? wp_unslash($_SERVER['HTTP_USER_AGENT']) : ''; 2143 $browser_signature = sanitize_text_field($user_agent_raw); 2144 2145 $ie = false; 2146 // Check browser version 2147 if (strpos($browser_signature, 'MSIE 6.') !== false) { 2094 2148 $ie = 6; 2095 2149 } 2096 else if (strpos($ _SERVER['HTTP_USER_AGENT'], 'MSIE 7.') !== false) {2150 else if (strpos($browser_signature, 'MSIE 7.') !== false) { 2097 2151 $ie = 7; 2098 2152 } 2099 else if (strpos($ _SERVER['HTTP_USER_AGENT'], 'MSIE 8.') !== false) {2153 else if (strpos($browser_signature, 'MSIE 8.') !== false) { 2100 2154 $ie = 8; 2101 2155 } 2102 else if (strpos($ _SERVER['HTTP_USER_AGENT'], 'MSIE 9.') !== false) {2156 else if (strpos($browser_signature, 'MSIE 9.') !== false) { 2103 2157 $ie = 9; 2104 }2105 else {2106 $ie = false;2107 2158 } 2108 2159 … … 2143 2194 { 2144 2195 if ($file == plugin_basename(__FILE__)){ 2145 $settings_link = '<a href="https://help.pinpointe.com/support/tickets/new" target="_blank">'.__('Support', 'pinpointe ').'</a>';2196 $settings_link = '<a href="https://help.pinpointe.com/support/tickets/new" target="_blank">'.__('Support', 'pinpointe-form-integration').'</a>'; 2146 2197 array_unshift($links, $settings_link); 2147 $settings_link = '<a href="options-general.php?page=pinpointe">'.__('Settings', 'pinpointe ').'</a>';2198 $settings_link = '<a href="options-general.php?page=pinpointe">'.__('Settings', 'pinpointe-form-integration').'</a>'; 2148 2199 array_unshift($links, $settings_link); 2149 2200 } … … 2278 2329 try { 2279 2330 if (!$this->pinpointe) { 2280 throw new Exception(__('Unable to load lists', 'pinpointe '));2331 throw new Exception(__('Unable to load lists', 'pinpointe-form-integration')); 2281 2332 } 2282 2333 … … 2284 2335 2285 2336 if (count($lists) < 1) { 2286 throw new Exception(__('No lists found', 'pinpointe '));2337 throw new Exception(__('No lists found', 'pinpointe-form-integration')); 2287 2338 } 2288 2339 … … 2328 2379 try { 2329 2380 if (!$this->pinpointe) { 2330 throw new Exception(__('Unable to load tags', 'pinpointe '));2381 throw new Exception(__('Unable to load tags', 'pinpointe-form-integration')); 2331 2382 } 2332 2383 … … 2334 2385 2335 2386 if (count($tags) < 1) { 2336 throw new Exception(__('No tags found', 'pinpointe '));2387 throw new Exception(__('No tags found', 'pinpointe-form-integration')); 2337 2388 } 2338 2389 … … 2384 2435 2385 2436 if (!$this->pinpointe) { 2386 throw new Exception(__('Unable to load merge vars', 'pinpointe '));2437 throw new Exception(__('Unable to load merge vars', 'pinpointe-form-integration')); 2387 2438 } 2388 2439 … … 2390 2441 2391 2442 if (!$merge_vars || empty($merge_vars)) { 2392 throw new Exception(__('No merge vars found', 'pinpointe '));2443 throw new Exception(__('No merge vars found', 'pinpointe-form-integration')); 2393 2444 } 2394 2445 … … 2436 2487 2437 2488 if (!$this->pinpointe) { 2438 throw new Exception(__('Unable to load groups', 'pinpointe '));2489 throw new Exception(__('Unable to load groups', 'pinpointe-form-integration')); 2439 2490 } 2440 2491 … … 2444 2495 2445 2496 if (!$groupings || empty($groupings)) { 2446 throw new Exception(__('No groups found', 'pinpointe '));2497 throw new Exception(__('No groups found', 'pinpointe-form-integration')); 2447 2498 } 2448 2499 … … 2524 2575 // Check if api key is set now 2525 2576 if (empty($key)) { 2526 return __('No API key provided', 'pinpointe ');2577 return __('No API key provided', 'pinpointe-form-integration'); 2527 2578 } 2528 2579 2529 2580 // Check if curl extension is loaded 2530 2581 if (!function_exists('curl_exec')) { 2531 return __('PHP Curl extension not loaded on your server', 'pinpointe ');2582 return __('PHP Curl extension not loaded on your server', 'pinpointe-form-integration'); 2532 2583 } 2533 2584 … … 2545 2596 } 2546 2597 catch (Exception $e) { 2547 return __('Unable to initialize Pinpointe service class', 'pinpointe ');2598 return __('Unable to initialize Pinpointe service class', 'pinpointe-form-integration'); 2548 2599 } 2549 2600 … … 2563 2614 } 2564 2615 2565 return __('Something went wrong...', 'pinpointe ');2616 return __('Something went wrong...', 'pinpointe-form-integration'); 2566 2617 } 2567 2618 … … 2625 2676 check_ajax_referer(__FUNCTION__, '_wpnonce'); 2626 2677 if (!$this->load_pinpointe()) { 2627 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-check" style="font-size: 1.5em; color: green;"></i> ' . __('Pinpointe credentials could not be set', 'pinpointe ') . '</h4>';2678 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-check" style="font-size: 1.5em; color: green;"></i> ' . __('Pinpointe credentials could not be set', 'pinpointe-form-integration') . '</h4>'; 2628 2679 } 2629 2680 else if ( ($msg = $this->test_pinpointe()) !== true) { … … 2631 2682 } 2632 2683 else if ($account_info = $this->get_pinpointe_account_info()) { 2633 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-check" style="font-size: 1.5em; color: green;"></i> ' . __('Connected to account', 'pinpointe ') . ' ' . $account_info['username'] . '</h4>';2684 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-check" style="font-size: 1.5em; color: green;"></i> ' . __('Connected to account', 'pinpointe-form-integration') . ' ' . $account_info['username'] . '</h4>'; 2634 2685 } 2635 2686 else { 2636 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-xmark" style="font-size: 1.5em; color: red;"></i> ' . __('Connection to Pinpointe failed.', 'pinpointe ') . '</h4>';2687 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-xmark" style="font-size: 1.5em; color: red;"></i> ' . __('Connection to Pinpointe failed.', 'pinpointe-form-integration') . '</h4>'; 2637 2688 } 2638 2689 … … 2841 2892 */ 2842 2893 case 'url': 2843 $request_url = sanitize_url(($_SERVER['HTTPS'] ? 'https' : 'http') . '://' .$_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 2894 $host = isset($_SERVER['HTTP_HOST']) ? sanitize_text_field(wp_unslash($_SERVER['HTTP_HOST'])) : ''; 2895 $request_uri = isset($_SERVER['REQUEST_URI']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])) : ''; 2896 $is_https = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off'; 2897 $request_url = sanitize_url("{$scheme}://{$host}{$request_uri}"); 2844 2898 2845 2899 if (preg_match('/' . preg_quote($form['condition']['value']) . '/i', $request_url)) { … … 2853 2907 */ 2854 2908 case 'url_not': 2855 $request_url = sanitize_url(($_SERVER['HTTPS'] ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']); 2909 $host = isset($_SERVER['HTTP_HOST']) ? sanitize_text_field(wp_unslash($_SERVER['HTTP_HOST'])) : ''; 2910 $request_uri = isset($_SERVER['REQUEST_URI']) ? sanitize_text_field(wp_unslash($_SERVER['REQUEST_URI'])) : ''; 2911 $is_https = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off'; 2912 $request_url = sanitize_url("{$scheme}://{$host}{$request_uri}"); 2856 2913 2857 2914 if (!preg_match('/' . preg_quote($form['condition']['value']) . '/i', $request_url)) { … … 3921 3978 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/([0]?[1-9]|1[012])\/[0-9]{4}', 3922 3979 'mask' => '99/99/9999', 3923 'placeholder' => __('dd/mm/yyyy', 'pinpointe '),3980 'placeholder' => __('dd/mm/yyyy', 'pinpointe-form-integration'), 3924 3981 'date_format' => '%d/%m/%Y', 3925 3982 ), … … 3927 3984 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])-([0]?[1-9]|1[012])-[0-9]{4}', 3928 3985 'mask' => '99-99-9999', 3929 'placeholder' => __('dd-mm-yyyy', 'pinpointe '),3986 'placeholder' => __('dd-mm-yyyy', 'pinpointe-form-integration'), 3930 3987 'date_format' => '%d-%m-%Y', 3931 3988 ), … … 3933 3990 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.([0]?[1-9]|1[012])\.[0-9]{4}', 3934 3991 'mask' => '99.99.9999', 3935 'placeholder' => __('dd.mm.yyyy', 'pinpointe '),3992 'placeholder' => __('dd.mm.yyyy', 'pinpointe-form-integration'), 3936 3993 'date_format' => '%d.%m.%Y', 3937 3994 ), … … 3939 3996 'pattern' => '([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/[0-9]{4}', 3940 3997 'mask' => '99/99/9999', 3941 'placeholder' => __('mm/dd/yyyy', 'pinpointe '),3998 'placeholder' => __('mm/dd/yyyy', 'pinpointe-form-integration'), 3942 3999 'date_format' => '%m/%d/%Y', 3943 4000 ), … … 3945 4002 'pattern' => '([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])-[0-9]{4}', 3946 4003 'mask' => '99-99-9999', 3947 'placeholder' => __('mm-dd-yyyy', 'pinpointe '),4004 'placeholder' => __('mm-dd-yyyy', 'pinpointe-form-integration'), 3948 4005 'date_format' => '%m-%d-%Y', 3949 4006 ), … … 3951 4008 'pattern' => '([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.[0-9]{4}', 3952 4009 'mask' => '99.99.9999', 3953 'placeholder' => __('mm.dd.yyyy', 'pinpointe '),4010 'placeholder' => __('mm.dd.yyyy', 'pinpointe-form-integration'), 3954 4011 'date_format' => '%m.%d.%Y', 3955 4012 ), … … 3957 4014 'pattern' => '[0-9]{4}\/([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 3958 4015 'mask' => '9999/99/99', 3959 'placeholder' => __('yyyy/mm/dd', 'pinpointe '),4016 'placeholder' => __('yyyy/mm/dd', 'pinpointe-form-integration'), 3960 4017 'date_format' => '%Y/%m/%d', 3961 4018 ), … … 3963 4020 'pattern' => '[0-9]{4}-([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 3964 4021 'mask' => '9999-99-99', 3965 'placeholder' => __('yyyy-mm-dd', 'pinpointe '),4022 'placeholder' => __('yyyy-mm-dd', 'pinpointe-form-integration'), 3966 4023 'date_format' => '%Y-%m-%d', 3967 4024 ), … … 3969 4026 'pattern' => '[0-9]{4}\.([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 3970 4027 'mask' => '9999.99.99', 3971 'placeholder' => __('yyyy.mm.dd', 'pinpointe '),4028 'placeholder' => __('yyyy.mm.dd', 'pinpointe-form-integration'), 3972 4029 'date_format' => '%Y.%m.%d', 3973 4030 ), … … 3975 4032 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/([0]?[1-9]|1[012])\/[0-9]{2}', 3976 4033 'mask' => '99/99/99', 3977 'placeholder' => __('dd/mm/yy', 'pinpointe '),4034 'placeholder' => __('dd/mm/yy', 'pinpointe-form-integration'), 3978 4035 'date_format' => '%d/%m/%y', 3979 4036 ), … … 3981 4038 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])-([0]?[1-9]|1[012])-[0-9]{2}', 3982 4039 'mask' => '99-99-99', 3983 'placeholder' => __('dd-mm-yy', 'pinpointe '),4040 'placeholder' => __('dd-mm-yy', 'pinpointe-form-integration'), 3984 4041 'date_format' => '%d-%m-%y', 3985 4042 ), … … 3987 4044 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.([0]?[1-9]|1[012])\.[0-9]{2}', 3988 4045 'mask' => '99.99.99', 3989 'placeholder' => __('dd.mm.yy', 'pinpointe '),4046 'placeholder' => __('dd.mm.yy', 'pinpointe-form-integration'), 3990 4047 'date_format' => '%d.%m.%y', 3991 4048 ), … … 3993 4050 'pattern' => '([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/[0-9]{2}', 3994 4051 'mask' => '99/99/99', 3995 'placeholder' => __('mm/dd/yy', 'pinpointe '),4052 'placeholder' => __('mm/dd/yy', 'pinpointe-form-integration'), 3996 4053 'date_format' => '%m/%d/%y', 3997 4054 ), … … 3999 4056 'pattern' => '([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])-[0-9]{2}', 4000 4057 'mask' => '99-99-99', 4001 'placeholder' => __('mm-dd-yy', 'pinpointe '),4058 'placeholder' => __('mm-dd-yy', 'pinpointe-form-integration'), 4002 4059 'date_format' => '%m-%d-%y', 4003 4060 ), … … 4005 4062 'pattern' => '([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.[0-9]{2}', 4006 4063 'mask' => '99.99.99', 4007 'placeholder' => __('mm.dd.yy', 'pinpointe '),4064 'placeholder' => __('mm.dd.yy', 'pinpointe-form-integration'), 4008 4065 'date_format' => '%m.%d.%y', 4009 4066 ), … … 4011 4068 'pattern' => '[0-9]{2}\/([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 4012 4069 'mask' => '99/99/99', 4013 'placeholder' => __('yy/mm/dd', 'pinpointe '),4070 'placeholder' => __('yy/mm/dd', 'pinpointe-form-integration'), 4014 4071 'date_format' => '%y/%m/%d', 4015 4072 ), … … 4017 4074 'pattern' => '[0-9]{2}-([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 4018 4075 'mask' => '99-99-99', 4019 'placeholder' => __('yy-mm-dd', 'pinpointe '),4076 'placeholder' => __('yy-mm-dd', 'pinpointe-form-integration'), 4020 4077 'date_format' => '%y-%m-%d', 4021 4078 ), … … 4023 4080 'pattern' => '[0-9]{2}\.([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 4024 4081 'mask' => '99.99.99', 4025 'placeholder' => __('yy.mm.dd', 'pinpointe '),4082 'placeholder' => __('yy.mm.dd', 'pinpointe-form-integration'), 4026 4083 'date_format' => '%y.%m.%d', 4027 4084 ), … … 4031 4088 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/([0]?[1-9]|1[012])', 4032 4089 'mask' => '99/99', 4033 'placeholder' => __('dd/mm', 'pinpointe '),4090 'placeholder' => __('dd/mm', 'pinpointe-form-integration'), 4034 4091 'date_format' => '%d/%m', 4035 4092 ), … … 4037 4094 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])-([0]?[1-9]|1[012])', 4038 4095 'mask' => '99/99', 4039 'placeholder' => __('dd-mm', 'pinpointe '),4096 'placeholder' => __('dd-mm', 'pinpointe-form-integration'), 4040 4097 'date_format' => '%d-%m', 4041 4098 ), … … 4043 4100 'pattern' => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.([0]?[1-9]|1[012])', 4044 4101 'mask' => '99/99', 4045 'placeholder' => __('dd.mm', 'pinpointe '),4102 'placeholder' => __('dd.mm', 'pinpointe-form-integration'), 4046 4103 'date_format' => '%d.%m', 4047 4104 ), … … 4049 4106 'pattern' => '([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 4050 4107 'mask' => '99/99', 4051 'placeholder' => __('mm/dd', 'pinpointe '),4108 'placeholder' => __('mm/dd', 'pinpointe-form-integration'), 4052 4109 'date_format' => '%m/%d', 4053 4110 ), … … 4055 4112 'pattern' => '([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 4056 4113 'mask' => '99-99', 4057 'placeholder' => __('mm-dd', 'pinpointe '),4114 'placeholder' => __('mm-dd', 'pinpointe-form-integration'), 4058 4115 'date_format' => '%m-%d', 4059 4116 ), … … 4061 4118 'pattern' => '([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])', 4062 4119 'mask' => '99.99', 4063 'placeholder' => __('mm.dd', 'pinpointe '),4120 'placeholder' => __('mm.dd', 'pinpointe-form-integration'), 4064 4121 'date_format' => '%m.%d', 4065 4122 ), … … 4676 4733 } 4677 4734 else { 4678 $ip_address = sanitize_text_field($_SERVER['REMOTE_ADDR']); 4735 $ip_address_raw = isset($_SERVER['REMOTE_ADDR']) ? wp_unslash($_SERVER['REMOTE_ADDR']) : ''; 4736 $ip_address = sanitize_text_field($ip_address_raw); 4679 4737 } 4680 4738 -
pinpointe-form-integration/trunk/readme.txt
r3318581 r3322372 3 3 Tags: email marketing, forms, opt-in, mailing list, subscription 4 4 Requires at least: 6.5 5 Tested up to: 6.8 .16 Stable tag: 1.7. 15 Tested up to: 6.8 6 Stable tag: 1.7.2 7 7 Requires PHP: 7.0 8 8 License: GPLv3 or later … … 60 60 61 61 == Changelog == 62 1.7.2 63 * Minor fixes to conform to WordPress coding standards. 64 62 65 1.7.1 63 66 * Tested with latest version of WordPress to bring up-to-date.
Note: See TracChangeset
for help on using the changeset viewer.