Plugin Directory

Changeset 3322372


Ignore:
Timestamp:
07/04/2025 02:03:02 PM (8 months ago)
Author:
pinpointe
Message:

Minor fixes to conform to WordPress coding standards

Location:
pinpointe-form-integration/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • pinpointe-form-integration/trunk/includes/pinpointe-confirmation-email.inc.php

    r3065403 r3322372  
     1<?php // Silence is golden ?>
    12<div style="margin: 0; padding: 0; min-width: 100%; background-color: #d8dde4;">
    23   <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  
    1111        return array(
    1212            'pinpointe' => array(
    13                 'title' => __('Pinpointe', 'pinpointe'),
    14                 'page_title' => __('Pinpointe', 'pinpointe'),
     13                'title' => __('Pinpointe', 'pinpointe-form-integration'),
     14                'page_title' => __('Pinpointe', 'pinpointe-form-integration'),
    1515                'capability' => 'manage_options',
    1616                'slug' => 'pinpointe',
    1717                'children' => array(
    1818                    'settings' => array(
    19                         'title' => __('Settings', 'pinpointe'),
     19                        'title' => __('Settings', 'pinpointe-form-integration'),
    2020                        'icon' => '<i class="fa-solid fa-gear" style="font-size: 0.8em;"></i>',
    2121                        'children' => array(
    2222                            'integration' => array(
    23                                 'title' => __('Integration', 'pinpointe'),
     23                                'title' => __('Integration', 'pinpointe-form-integration'),
    2424                                'children' => array(
    2525                                    'api_url' => array(
    26                                         'title' => __('Pinpointe API URL', 'pinpointe'),
     26                                        'title' => __('Pinpointe API URL', 'pinpointe-form-integration'),
    2727                                        'type' => 'text',
    2828                                        'default' => '',
     
    3131                                            'empty' => true,
    3232                                        ),
    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')),
    3434                                    ),
    3535
    3636                                    'username' => array(
    37                                         'title' => __('Pinpointe Username', 'pinpointe'),
     37                                        'title' => __('Pinpointe Username', 'pinpointe-form-integration'),
    3838                                        'type' => 'text',
    3939                                        'default' => '',
     
    4242                                            'empty' => true,
    4343                                        ),
    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')),
    4545                                    ),
    4646
    4747                                    'api_key' => array(
    48                                         'title' => __('Pinpointe API key', 'pinpointe'),
     48                                        'title' => __('Pinpointe API key', 'pinpointe-form-integration'),
    4949                                        'type' => 'text',
    5050                                        'default' => '',
     
    5555                                        'hint' => sprintf(
    5656                                            "<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'),
    5959                                            esc_url('mailto:[email protected]'),
    60                                             esc_html__('[email protected]', 'pinpointe'),
     60                                            esc_html__('[email protected]', 'pinpointe-form-integration'),
    6161                                        ),
    6262                                    ),
     
    6464                            ),
    6565                            'general_settings' => array(
    66                                 'title' => __('General Settings', 'pinpointe'),
     66                                'title' => __('General Settings', 'pinpointe-form-integration'),
    6767                                'children' => array(
    6868                                    /*'double_optin' => array(
    69                                         'title' => __('Require double opt-in', 'pinpointe'),
     69                                        'title' => __('Require double opt-in', 'pinpointe-form-integration'),
    7070                                        'type' => 'checkbox',
    7171                                        'default' => 1,
     
    7474                                            'empty' => false
    7575                                        ),
    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'),
    7777                                    ),
    7878                                    'send_welcome' => array(
    79                                         'title' => __('Send welcome email', 'pinpointe'),
     79                                        'title' => __('Send welcome email', 'pinpointe-form-integration'),
    8080                                        'type' => 'checkbox',
    8181                                        'default' => 1,
     
    8484                                            'empty' => false
    8585                                        ),
    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'),
    8787                                    ),
    8888                                    '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'),
    9797                                    ),*/
    9898                                    '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')),
    107107                                    ),
    108108                                    'update_existing' => array(
    109                                         'title' => __('Update existing subscribers', 'pinpointe'),
     109                                        'title' => __('Update existing subscribers', 'pinpointe-form-integration'),
    110110                                        'type' => 'checkbox',
    111111                                        'default' => 1,
     
    114114                                            'empty' => false
    115115                                        ),
    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')),
    117117                                    ),
    118118                                ),
    119119                            ),
    120120                            'settings_styling' => array(
    121                                 'title' => __('Form Styling', 'pinpointe'),
     121                                'title' => __('Form Styling', 'pinpointe-form-integration'),
    122122                                'children' => array(
    123123                                    'labels_inline' => array(
    124                                         'title' => __('Display field labels inline', 'pinpointe'),
     124                                        'title' => __('Display field labels inline', 'pinpointe-form-integration'),
    125125                                        'type' => 'checkbox',
    126126                                        'default' => 1,
     
    129129                                            'empty' => false
    130130                                        ),
    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')),
    132132                                    ),
    133133                                    /*'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'),
    142142                                    ),*/
    143143                                    'width_limit' => array(
    144                                         'title' => __('Max form width in pixels', 'pinpointe'),
     144                                        'title' => __('Max form width in pixels', 'pinpointe-form-integration'),
    145145                                        'type' => 'text',
    146146                                        'default' => '',
     
    149149                                            'empty' => true,
    150150                                        ),
    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')),
    152152                                    ),
    153153                                    'css_override' => array(
    154                                         'title' => __('Override CSS', 'pinpointe'),
     154                                        'title' => __('Override CSS', 'pinpointe-form-integration'),
    155155                                        'type' => 'textarea',
    156156                                        'default' => '.pinpointe_custom_css {}',
     
    159159                                            'empty' => true
    160160                                        ),
    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')),
    162162                                    ),
    163163                                ),
     
    166166                    ),
    167167                    'forms' => array(
    168                         'title' => __('Forms', 'pinpointe'),
     168                        'title' => __('Forms', 'pinpointe-form-integration'),
    169169                        'icon' => '<i class="fa-solid fa-pen-to-square" style="font-size: 0.8em;"></i>',
    170170                        'children' => array(
    171171                            'forms' => array(
    172                                 'title' => __('Manage Signup Forms', 'pinpointe'),
     172                                'title' => __('Manage Signup Forms', 'pinpointe-form-integration'),
    173173                                'children' => array(
    174174                                ),
     
    177177                    ),
    178178                    'popup' => array(
    179                         'title' => __('Popup', 'pinpointe'),
     179                        'title' => __('Popup', 'pinpointe-form-integration'),
    180180                        'icon' => '<i class="fa-regular fa-comment" style="font-size: 0.8em;"></i>',
    181181                        'children' => array(
    182182                            'popup_general_settings' => array(
    183                                 'title' => __('Display Popup', 'pinpointe'),
     183                                'title' => __('Display Popup', 'pinpointe-form-integration'),
    184184                                'children' => array(
    185185                                    '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')),
    194194                                    ),
    195195                                    'popup_form' => array(
    196                                         'title' => __('Form to display', 'pinpointe'),
     196                                        'title' => __('Form to display', 'pinpointe-form-integration'),
    197197                                        'type' => 'dropdown',
    198198                                        'default' => 0,
     
    202202                                        ),
    203203                                        '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')),
    205205                                    ),
    206206                                    'popup_delay' => array(
    207                                         'title' => __('Open delay in seconds', 'pinpointe'),
     207                                        'title' => __('Open delay in seconds', 'pinpointe-form-integration'),
    208208                                        'type' => 'text',
    209209                                        'default' => '5',
     
    212212                                            'empty' => true,
    213213                                        ),
    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')),
    215215                                    ),
    216216                                    'popup_display_on' => array(
    217                                         'title' => __('Display in', 'pinpointe'),
     217                                        'title' => __('Display in', 'pinpointe-form-integration'),
    218218                                        'type' => 'checkbox_set',
    219219                                        'default' => array('1'),
     
    223223                                        ),
    224224                                        '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')),
    231231                                    ),
    232232                                ),
    233233                            ),
    234234                            'popup_frequency' => array(
    235                                 'title' => __('Frequency Capping', 'pinpointe'),
     235                                'title' => __('Frequency Capping', 'pinpointe-form-integration'),
    236236                                'children' => array(
    237237                                    'popup_page_limit' => array(
    238                                         'title' => __('Page frequency', 'pinpointe'),
     238                                        'title' => __('Page frequency', 'pinpointe-form-integration'),
    239239                                        'type' => 'text',
    240240                                        'default' => '1',
     
    243243                                            'empty' => true,
    244244                                        ),
    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')),
    246246                                    ),
    247247                                    'popup_time_limit' => array(
    248                                         'title' => __('Time frequency in minutes', 'pinpointe'),
     248                                        'title' => __('Time frequency in minutes', 'pinpointe-form-integration'),
    249249                                        'type' => 'text',
    250250                                        'default' => '5',
     
    253253                                            'empty' => true,
    254254                                        ),
    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')),
    256256                                    ),
    257257                                    'popup_allow_dismissing' => array(
    258                                         'title' => __('Allow dismissing', 'pinpointe'),
     258                                        'title' => __('Allow dismissing', 'pinpointe-form-integration'),
    259259                                        'type' => 'checkbox',
    260260                                        'default' => 1,
     
    263263                                            'empty' => false
    264264                                        ),
    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')),
    266266                                    ),
    267267                                    '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')),
    276276                                    ),
    277277                                ),
     
    280280                    ),
    281281                    'below' => array(
    282                         'title' => __('Form Display', 'pinpointe'),
     282                        'title' => __('Form Display', 'pinpointe-form-integration'),
    283283                        'icon' => '<i class="fa-regular fa-file-lines" style="font-size: 0.8em;"></i>',
    284284                        'children' => array(
    285285                            'below_settings' => array(
    286                                 'title' => __('Display Below Every Post', 'pinpointe'),
     286                                'title' => __('Display Below Every Post', 'pinpointe-form-integration'),
    287287                                'children' => array(
    288288                                    'after_posts_post_types' => array(
    289                                         'title' => __('Display signup form below', 'pinpointe'),
     289                                        'title' => __('Display signup form below', 'pinpointe-form-integration'),
    290290                                        'type' => 'checkbox_set',
    291291                                        'default' => array(),
     
    295295                                        ),
    296296                                        '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')),
    301301                                    ),
    302302                                    'after_posts_allowed_forms' => array(
    303                                         'title' => __('Allow only these forms', 'pinpointe'),
     303                                        'title' => __('Allow only these forms', 'pinpointe-form-integration'),
    304304                                        'type' => 'dropdown_multi',
    305305                                        'default' => array(),
     
    309309                                        ),
    310310                                        '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')),
    312312                                    ),
    313313                                ),
     
    316316                    ),
    317317                    'lock' => array(
    318                         'title' => __('Locking', 'pinpointe'),
     318                        'title' => __('Locking', 'pinpointe-form-integration'),
    319319                        'icon' => '<i class="fa-solid fa-lock" style="font-size: 0.8em;"></i>',
    320320                        'children' => array(
    321321                            'lock_general_settings' => array(
    322                                 'title' => __('Subscribe To Unlock', 'pinpointe'),
     322                                'title' => __('Subscribe To Unlock', 'pinpointe-form-integration'),
    323323                                'children' => array(
    324324                                    'lock_enabled' => array(
    325                                         'title' => __('Enable content locking', 'pinpointe'),
     325                                        'title' => __('Enable content locking', 'pinpointe-form-integration'),
    326326                                        'type' => 'checkbox',
    327327                                        'default' => 0,
     
    332332                                        'hint' => sprintf(
    333333                                            "<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')
    336336                                        ),
    337337                                    ),
    338338                                    'lock_form' => array(
    339                                         'title' => __('Form to display', 'pinpointe'),
     339                                        'title' => __('Form to display', 'pinpointe-form-integration'),
    340340                                        'type' => 'dropdown',
    341341                                        'default' => 0,
     
    345345                                        ),
    346346                                        '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')),
    348348                                    ),
    349349                                    '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')),
    358358                                    ),
    359359                                    'lock_message' => array(
    360                                         'title' => __('Message', 'pinpointe'),
     360                                        'title' => __('Message', 'pinpointe-form-integration'),
    361361                                        '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')),
    368368                                    ),
    369369                                ),
     
    372372                    ),
    373373                    'checkboxes' => array(
    374                         'title' => __('Checkbox', 'pinpointe'),
     374                        'title' => __('Checkbox', 'pinpointe-form-integration'),
    375375                        'icon' => '<i class="fa-regular fa-square-check" style="font-size: 0.8em;"></i>',
    376376                        'children' => array(
    377377                            'checkboxes_settings' => array(
    378                                 'title' => __('Display Checkbox Below Forms', 'pinpointe'),
     378                                'title' => __('Display Checkbox Below Forms', 'pinpointe-form-integration'),
    379379                                'children' => array(
    380380                                    'checkbox_add_to' => array(
    381                                         'title' => __('Add signup checkbox to', 'pinpointe'),
     381                                        'title' => __('Add signup checkbox to', 'pinpointe-form-integration'),
    382382                                        'type' => 'checkbox_set',
    383383                                        'default' => array(),
     
    387387                                        ),
    388388                                        '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')),
    393393                                    ),
    394394                                    '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')),
    403403                                    ),
    404404                                    'checkbox_state' => array(
    405                                         'title' => __('Default state', 'pinpointe'),
     405                                        'title' => __('Default state', 'pinpointe-form-integration'),
    406406                                        'type' => 'dropdown',
    407407                                        'default' => 0,
     
    411411                                        ),
    412412                                        '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')),
    417417                                    ),
    418418                                    'checkbox_list' => array(
    419                                         'title' => __('Mailing database', 'pinpointe'),
     419                                        'title' => __('Mailing database', 'pinpointe-form-integration'),
    420420                                        'type' => 'text',
    421421                                        'default' => '',
     
    424424                                            'empty' => true
    425425                                        ),
    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')),
    427427                                    ),
    428428                                ),
     
    431431                    ),
    432432                    'sync' => array(
    433                         'title' => __('Sync', 'pinpointe'),
     433                        'title' => __('Sync', 'pinpointe-form-integration'),
    434434                        'icon' => '<i class="fa-solid fa-rotate" style="font-size: 0.8em;"></i>',
    435435                        'children' => array(
    436436                            'sync_settings' => array(
    437                                 'title' => __('Synchronize User Data', 'pinpointe'),
     437                                'title' => __('Synchronize User Data', 'pinpointe-form-integration'),
    438438                                'children' => array(
    439439                                    'sync_roles' => array(
    440                                         'title' => __('User roles to sync', 'pinpointe'),
     440                                        'title' => __('User roles to sync', 'pinpointe-form-integration'),
    441441                                        'type' => 'checkbox_set',
    442442                                        'default' => array(),
     
    448448                                        'hint' => sprintf(
    449449                                            "<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')
    452452                                        )
    453453                                    ),
    454454                                    'sync_list' => array(
    455                                         'title' => __('Mailing database', 'pinpointe'),
     455                                        'title' => __('Mailing database', 'pinpointe-form-integration'),
    456456                                        'type' => 'text',
    457457                                        'default' => '',
     
    460460                                            'empty' => true
    461461                                        ),
    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')),
    463463                                    ),
    464464                                ),
     
    467467                    ),
    468468                    'localization' => array(
    469                         'title' => __('Localization', 'pinpointe'),
     469                        'title' => __('Localization', 'pinpointe-form-integration'),
    470470                        'icon' => '<i class="fa-solid fa-font" style="font-size: 0.8em;"></i>',
    471471                        'children' => array(
    472472                            'localization' => array(
    473                                 'title' => __('Date Format', 'pinpointe'),
     473                                'title' => __('Date Format', 'pinpointe-form-integration'),
    474474                                'children' => array(
    475475                                    'date_format' => array(
    476                                         'title' => __('Date field format', 'pinpointe'),
     476                                        'title' => __('Date field format', 'pinpointe-form-integration'),
    477477                                        'type' => 'dropdown',
    478478                                        'default' => 0,
     
    482482                                        ),
    483483                                        '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'),
    502502                                        ),
    503503                                    ),
    504504                                    'birthday_format' => array(
    505                                         'title' => __('Birthday field format', 'pinpointe'),
     505                                        'title' => __('Birthday field format', 'pinpointe-form-integration'),
    506506                                        'type' => 'dropdown',
    507507                                        'default' => 0,
     
    511511                                        ),
    512512                                        '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'),
    519519                                        ),
    520520                                    ),
     
    522522                            ),
    523523                            'labels_settings' => array(
    524                                 'title' => __('Labels', 'pinpointe'),
     524                                'title' => __('Labels', 'pinpointe-form-integration'),
    525525                                'children' => array(
    526526                                    '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'),
    530530                                        'validation' => array(
    531531                                            'rule' => 'string',
     
    534534                                    ),
    535535                                    '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'),
    539539                                        'validation' => array(
    540540                                            'rule' => 'string',
     
    543543                                    ),
    544544                                    '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'),
    548548                                        'validation' => array(
    549549                                            'rule' => 'string',
     
    552552                                    ),
    553553                                    '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'),
    557557                                        'validation' => array(
    558558                                            'rule' => 'string',
     
    561561                                    ),
    562562                                    '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'),
    566566                                        'validation' => array(
    567567                                            'rule' => 'string',
     
    570570                                    ),
    571571                                    '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'),
    575575                                        'validation' => array(
    576576                                            'rule' => 'string',
     
    587587                        'children' => array(
    588588                            'help_display' => array(
    589                                 'title' => __('Displaying Forms', 'pinpointe'),
     589                                'title' => __('Displaying Forms', 'pinpointe-form-integration'),
    590590                                'children' => array(
    591591                                ),
    592592                            ),
    593593                            /*'help_targeting' => array(
    594                                 'title' => __('Conditions & Targeting', 'pinpointe'),
     594                                'title' => __('Conditions & Targeting', 'pinpointe-form-integration'),
    595595                                'children' => array(
    596596                                ),
    597597                            ),*/
    598598                            'help_contact' => array(
    599                                 'title' => __('Get In Touch', 'pinpointe'),
     599                                'title' => __('Get In Touch', 'pinpointe-form-integration'),
    600600                                'children' => array(
    601601                                ),
  • pinpointe-form-integration/trunk/includes/pinpointe-service.class.php

    r3078519 r3322372  
    141141                }
    142142
    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                );
    146154            }
    147155
     
    155163            }
    156164
    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            );
    158175        }
    159176
  • pinpointe-form-integration/trunk/includes/pinpointe-widget.class.php

    r3078519 r3322372  
    2323            parent::__construct(
    2424                'pinpointe_form',
    25                 __('Pinpointe Signup Form', 'pinpointe'),
     25                __('Pinpointe Signup Form', 'pinpointe-form-integration'),
    2626                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'),
    2828                )
    2929            );
     
    110110
    111111            <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                ?>
    113116            </p>
    114117            <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>
    116119                <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); ?>" />
    117120            </p>
  • pinpointe-form-integration/trunk/pinpointe-signup-form.php

    r3318579 r3322372  
    44 * Plugin URI: https://help.pinpointe.com/support/solutions/articles/5000664320-wordpress-plugin-download
    55 * Description: Add Pinpointe forms to your WordPress site
    6  * Version: 1.7.1
     6 * Version: 1.7.2
    77 * Author: Pinpointe
    88 * Author URI: http://www.pinpointe.com/
     
    1010 * Tested up to: 6.8.1
    1111 *
    12  * Text Domain: pinpointe
     12 * Text Domain: pinpointe-form-integration
    1313 * Domain Path: /languages
    1414 *
     
    207207
    208208            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'),
    212213                        esc_html($shortcode)
    213214                    );
     
    396397                    'error_type',
    397398                    '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')
    399401                );
    400402            }
     
    582584
    583585                                    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>';
    585587                                    }
    586588                                    else if ($current_tab == 'help') {
     
    629631                 */
    630632                $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>',
    647649                );
    648650
     
    696698                    var pinpointe_forms_hints = <?php echo wp_json_encode($forms_page_hints); ?>;
    697699                    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');
    705707                    ?>';
    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'); ?>'; //
    711713                    // 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 from
     714                    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
    714716                    // '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'); ?>'; //
    717719                    // 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'); ?>';
    730732                    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'); ?>';
    733735
    734736                    <?php if ($current_tab == 'forms'): ?>
     
    767769                    ?>
    768770                    <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>
    770783                    </div>
    771784                    <?php
     
    887900                    $group_methods = array(
    888901                        array(
    889                             'title'     => __('Automatically', 'pinpointe'),
     902                            'title'     => __('Automatically', 'pinpointe-form-integration'),
    890903                            'children'  => array(
    891                                 'auto'  => __('All groups selected above', 'pinpointe'),
     904                                'auto'  => __('All groups selected above', 'pinpointe-form-integration'),
    892905                            ),
    893906                        ),
    894907                        array(
    895                             'title'     => __('Allow users to select (optional)', 'pinpointe'),
     908                            'title'     => __('Allow users to select (optional)', 'pinpointe-form-integration'),
    896909                            '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'),
    900913                            ),
    901914                        ),
    902915                        array(
    903                             'title'     => __('Require users to select (required)', 'pinpointe'),
     916                            'title'     => __('Require users to select (required)', 'pinpointe-form-integration'),
    904917                            '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'),
    907920                            ),
    908921                        )
     
    914927                    $condition_options = array(
    915928                        array(
    916                             'title'     => __('No condition', 'pinpointe'),
     929                            'title'     => __('No condition', 'pinpointe-form-integration'),
    917930                            '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'),
    920933                            ),
    921934                        ),
    922935                        array(
    923                             'title'     => __('Conditions', 'pinpointe'),
     936                            'title'     => __('Conditions', 'pinpointe-form-integration'),
    924937                            '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'),
    930943                            ),
    931944                        ),
    932945                        array(
    933                             'title'     => __('Inversed Conditions', 'pinpointe'),
     946                            'title'     => __('Inversed Conditions', 'pinpointe-form-integration'),
    934947                            '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'),
    939952                            ),
    940953                        ),
     
    945958                     */
    946959                    $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'),
    956969                    );
    957970
     
    10111024
    10121025                            <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>&nbsp;<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>&nbsp;<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>
    10141027                                <div style="clear:both;">
    10151028
    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>
    10171030                                    <table class="form-table"><tbody>
    10181031                                        <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>
    10201033                                            <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>
    10211034                                        </tr>
    10221035                                        <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>
    10241037                                            <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>
    10251038                                        </tr>
    10261039                                        <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>
    10281041                                            <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>
    10291042                                        </tr>
    10301043                                        <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>
    10321045                                            <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>
    10331046                                        </tr>
    10341047                                        <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>
    10361049                                            <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">
    10371050
     
    10461059                                        </tr>
    10471060                                        <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>
    10491062                                            <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>
    10501063                                        </tr>
    10511064                                        <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>
    10531066                                            <td>
    10541067                                                <?php
     
    10581071                                        </tr>
    10591072                                        <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>
    10611074                                            <td>
    10621075                                                <?php
     
    10661079                                        </tr>
    10671080                                        <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>
    10691082                                            <br/>
    10701083                                            <?php
     
    10881101                                        <span class="pinpointe_loading_icon"></span>
    10891102                                        <?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'); ?>
    10911104                                    </p>
    10921105
     
    10951108                                    <p id="pinpointe_forms_tag_<?php echo esc_attr($form_key); ?>" class="pinpointe_loading_tag pinpointe_forms_field_tag_groups">
    10961109                                        <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'); ?>
    10981111                                    </p>
    10991112                                    <?php wp_nonce_field('ajax_get_lists', 'pinpointe_get_lists'); ?>
     
    11021115                                          <tbody>
    11031116                                              <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>
    11051118                                                  <td>
    11061119                                                      <?php
     
    11171130                                        <span class="pinpointe_loading_icon"></span>
    11181131
    1119                                         <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe'); ?>
     1132                                        <?php esc_html_e('Connecting to Pinpointe...', 'pinpointe-form-integration'); ?>
    11201133                                    </p>
    11211134
     
    11231136                                    <table class="form-table"><tbody>
    11241137                                        <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>
    11261139                                            <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">
    11271140
     
    11421155                                        </tr>
    11431156                                        <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>
    11451158                                            <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">
    11461159
     
    11551168                                        </tr>
    11561169                                        <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>
    11581171                                            <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">
    11591172
     
    11681181                                        </tr>
    11691182                                        <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>
    11711184                                            <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">
    11721185
     
    11811194                                        </tr>
    11821195                                        <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>
    11841197                                            <td><input type="text" id="pinpointe_forms_condition_url_<?php echo
    11851198                                                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>
     
    11961209                        <div>
    11971210                            <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">&nbsp;&nbsp;<?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">&nbsp;&nbsp;<?php esc_html_e('Add Form', 'pinpointe-form-integration'); ?></i></button>
    12011214                            <div style="clear: both;"></div>
    12021215                        </div>
     
    12091222            else if ($section['id'] == 'help_display') {
    12101223                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')
    12121225                   . '</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')
    12151238                   . '</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                    )
    12181247                   . '</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                    )
    12211257                   . '</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                    )
    12241266                   . '</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'))))
    12301270                   . '</p></div>';
    12311271            }
    12321272            else if ($section['id'] == 'help_contact') {
    12331273                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]'))
    12351275                   . '</p><p>'
    12361276                   . '</p></div>';
     
    14551495                                            array(
    14561496                                                    '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                                                    )
    14581503                                            )
    14591504                                    );
     
    14781523                                array(
    14791524                                    '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                                    )
    14811531                                )
    14821532                            );
     
    18011851                'pinpointe_settings_updated',
    18021852                'pinpointe_settings_updated',
    1803                 __('Your settings have been saved.', 'pinpointe'),
     1853                __('Your settings have been saved.', 'pinpointe-form-integration'),
    18041854                'updated'
    18051855            );
     
    18071857            // Define error messages
    18081858            $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'),
    18151865            );
    18161866
    18171867            // Display errors
    18181868            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');
    18201870                $setting = $error['setting'];
    18211871
     
    18321882                    'pinpointe_settings_updated',
    18331883                    $code,
    1834                     __('Value of', 'pinpointe') . ' "' . $setting . '" ' . $message
     1884                    __('Value of', 'pinpointe-form-integration') . ' "' . $setting . '" ' . $message
    18351885                );
    18361886            }
     
    19762026            }
    19772027            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;
    19792029            }
    19802030        }
     
    19972047            }
    19982048            else {
    1999                 return __(' is not in a valid format', 'pinpointe');
     2049                return __(' is not in a valid format', 'pinpointe-form-integration');
    20002050            }
    20012051        }
     
    20902140            wp_enqueue_style('pinpointe-sky-forms-color-schemes');
    20912141
    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) {
    20942148                $ie = 6;
    20952149            }
    2096             else if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.') !== false) {
     2150            else if (strpos($browser_signature, 'MSIE 7.') !== false) {
    20972151                $ie = 7;
    20982152            }
    2099             else if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 8.') !== false) {
     2153            else if (strpos($browser_signature, 'MSIE 8.') !== false) {
    21002154                $ie = 8;
    21012155            }
    2102             else if (strpos($_SERVER['HTTP_USER_AGENT'], 'MSIE 9.') !== false) {
     2156            else if (strpos($browser_signature, 'MSIE 9.') !== false) {
    21032157                $ie = 9;
    2104             }
    2105             else {
    2106                 $ie = false;
    21072158            }
    21082159
     
    21432194        {
    21442195            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>';
    21462197                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>';
    21482199                array_unshift($links, $settings_link);
    21492200            }
     
    22782329            try {
    22792330                if (!$this->pinpointe) {
    2280                     throw new Exception(__('Unable to load lists', 'pinpointe'));
     2331                    throw new Exception(__('Unable to load lists', 'pinpointe-form-integration'));
    22812332                }
    22822333
     
    22842335
    22852336                if (count($lists) < 1) {
    2286                     throw new Exception(__('No lists found', 'pinpointe'));
     2337                    throw new Exception(__('No lists found', 'pinpointe-form-integration'));
    22872338                }
    22882339
     
    23282379            try {
    23292380                if (!$this->pinpointe) {
    2330                     throw new Exception(__('Unable to load tags', 'pinpointe'));
     2381                    throw new Exception(__('Unable to load tags', 'pinpointe-form-integration'));
    23312382                }
    23322383
     
    23342385
    23352386                if (count($tags) < 1) {
    2336                     throw new Exception(__('No tags found', 'pinpointe'));
     2387                    throw new Exception(__('No tags found', 'pinpointe-form-integration'));
    23372388                }
    23382389
     
    23842435
    23852436                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'));
    23872438                }
    23882439
     
    23902441
    23912442                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'));
    23932444                }
    23942445
     
    24362487
    24372488                if (!$this->pinpointe) {
    2438                     throw new Exception(__('Unable to load groups', 'pinpointe'));
     2489                    throw new Exception(__('Unable to load groups', 'pinpointe-form-integration'));
    24392490                }
    24402491
     
    24442495
    24452496                    if (!$groupings || empty($groupings)) {
    2446                         throw new Exception(__('No groups found', 'pinpointe'));
     2497                        throw new Exception(__('No groups found', 'pinpointe-form-integration'));
    24472498                    }
    24482499
     
    25242575            // Check if api key is set now
    25252576            if (empty($key)) {
    2526                 return __('No API key provided', 'pinpointe');
     2577                return __('No API key provided', 'pinpointe-form-integration');
    25272578            }
    25282579
    25292580            // Check if curl extension is loaded
    25302581            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');
    25322583            }
    25332584
     
    25452596            }
    25462597            catch (Exception $e) {
    2547                 return __('Unable to initialize Pinpointe service class', 'pinpointe');
     2598                return __('Unable to initialize Pinpointe service class', 'pinpointe-form-integration');
    25482599            }
    25492600
     
    25632614            }
    25642615
    2565             return __('Something went wrong...', 'pinpointe');
     2616            return __('Something went wrong...', 'pinpointe-form-integration');
    25662617        }
    25672618
     
    26252676            check_ajax_referer(__FUNCTION__, '_wpnonce');
    26262677            if (!$this->load_pinpointe()) {
    2627                 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-check" style="font-size: 1.5em; color: green;"></i>&nbsp;&nbsp;&nbsp;' . __('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>&nbsp;&nbsp;&nbsp;' . __('Pinpointe credentials could not be set', 'pinpointe-form-integration') .  '</h4>';
    26282679            }
    26292680            else if ( ($msg = $this->test_pinpointe()) !== true) {
     
    26312682            }
    26322683            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>&nbsp;&nbsp;&nbsp;' . __('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>&nbsp;&nbsp;&nbsp;' . __('Connected to account', 'pinpointe-form-integration') . ' ' . $account_info['username'] . '</h4>';
    26342685            }
    26352686            else {
    2636                 $message = '<h4 style="margin:0px;"><i class="fa-solid fa-xmark" style="font-size: 1.5em; color: red;"></i>&nbsp;&nbsp;&nbsp;' . __('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>&nbsp;&nbsp;&nbsp;' . __('Connection to Pinpointe failed.', 'pinpointe-form-integration') . '</h4>';
    26372688            }
    26382689
     
    28412892                     */
    28422893                    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}");
    28442898
    28452899                        if (preg_match('/' . preg_quote($form['condition']['value']) . '/i', $request_url)) {
     
    28532907                     */
    28542908                    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}");
    28562913
    28572914                        if (!preg_match('/' . preg_quote($form['condition']['value']) . '/i', $request_url)) {
     
    39213978                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/([0]?[1-9]|1[012])\/[0-9]{4}',
    39223979                        'mask'          => '99/99/9999',
    3923                         'placeholder'   => __('dd/mm/yyyy', 'pinpointe'),
     3980                        'placeholder'   => __('dd/mm/yyyy', 'pinpointe-form-integration'),
    39243981                        'date_format'   => '%d/%m/%Y',
    39253982                    ),
     
    39273984                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])-([0]?[1-9]|1[012])-[0-9]{4}',
    39283985                        'mask'          => '99-99-9999',
    3929                         'placeholder'   => __('dd-mm-yyyy', 'pinpointe'),
     3986                        'placeholder'   => __('dd-mm-yyyy', 'pinpointe-form-integration'),
    39303987                        'date_format'   => '%d-%m-%Y',
    39313988                    ),
     
    39333990                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.([0]?[1-9]|1[012])\.[0-9]{4}',
    39343991                        'mask'          => '99.99.9999',
    3935                         'placeholder'   => __('dd.mm.yyyy', 'pinpointe'),
     3992                        'placeholder'   => __('dd.mm.yyyy', 'pinpointe-form-integration'),
    39363993                        'date_format'   => '%d.%m.%Y',
    39373994                    ),
     
    39393996                        'pattern'       => '([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/[0-9]{4}',
    39403997                        'mask'          => '99/99/9999',
    3941                         'placeholder'   => __('mm/dd/yyyy', 'pinpointe'),
     3998                        'placeholder'   => __('mm/dd/yyyy', 'pinpointe-form-integration'),
    39423999                        'date_format'   => '%m/%d/%Y',
    39434000                    ),
     
    39454002                        'pattern'       => '([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])-[0-9]{4}',
    39464003                        'mask'          => '99-99-9999',
    3947                         'placeholder'   => __('mm-dd-yyyy', 'pinpointe'),
     4004                        'placeholder'   => __('mm-dd-yyyy', 'pinpointe-form-integration'),
    39484005                        'date_format'   => '%m-%d-%Y',
    39494006                    ),
     
    39514008                        'pattern'       => '([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.[0-9]{4}',
    39524009                        'mask'          => '99.99.9999',
    3953                         'placeholder'   => __('mm.dd.yyyy', 'pinpointe'),
     4010                        'placeholder'   => __('mm.dd.yyyy', 'pinpointe-form-integration'),
    39544011                        'date_format'   => '%m.%d.%Y',
    39554012                    ),
     
    39574014                        'pattern'       => '[0-9]{4}\/([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    39584015                        'mask'          => '9999/99/99',
    3959                         'placeholder'   => __('yyyy/mm/dd', 'pinpointe'),
     4016                        'placeholder'   => __('yyyy/mm/dd', 'pinpointe-form-integration'),
    39604017                        'date_format'   => '%Y/%m/%d',
    39614018                    ),
     
    39634020                        'pattern'       => '[0-9]{4}-([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    39644021                        'mask'          => '9999-99-99',
    3965                         'placeholder'   => __('yyyy-mm-dd', 'pinpointe'),
     4022                        'placeholder'   => __('yyyy-mm-dd', 'pinpointe-form-integration'),
    39664023                        'date_format'   => '%Y-%m-%d',
    39674024                    ),
     
    39694026                        'pattern'       => '[0-9]{4}\.([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    39704027                        'mask'          => '9999.99.99',
    3971                         'placeholder'   => __('yyyy.mm.dd', 'pinpointe'),
     4028                        'placeholder'   => __('yyyy.mm.dd', 'pinpointe-form-integration'),
    39724029                        'date_format'   => '%Y.%m.%d',
    39734030                    ),
     
    39754032                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/([0]?[1-9]|1[012])\/[0-9]{2}',
    39764033                        'mask'          => '99/99/99',
    3977                         'placeholder'   => __('dd/mm/yy', 'pinpointe'),
     4034                        'placeholder'   => __('dd/mm/yy', 'pinpointe-form-integration'),
    39784035                        'date_format'   => '%d/%m/%y',
    39794036                    ),
     
    39814038                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])-([0]?[1-9]|1[012])-[0-9]{2}',
    39824039                        'mask'          => '99-99-99',
    3983                         'placeholder'   => __('dd-mm-yy', 'pinpointe'),
     4040                        'placeholder'   => __('dd-mm-yy', 'pinpointe-form-integration'),
    39844041                        'date_format'   => '%d-%m-%y',
    39854042                    ),
     
    39874044                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.([0]?[1-9]|1[012])\.[0-9]{2}',
    39884045                        'mask'          => '99.99.99',
    3989                         'placeholder'   => __('dd.mm.yy', 'pinpointe'),
     4046                        'placeholder'   => __('dd.mm.yy', 'pinpointe-form-integration'),
    39904047                        'date_format'   => '%d.%m.%y',
    39914048                    ),
     
    39934050                        'pattern'       => '([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/[0-9]{2}',
    39944051                        'mask'          => '99/99/99',
    3995                         'placeholder'   => __('mm/dd/yy', 'pinpointe'),
     4052                        'placeholder'   => __('mm/dd/yy', 'pinpointe-form-integration'),
    39964053                        'date_format'   => '%m/%d/%y',
    39974054                    ),
     
    39994056                        'pattern'       => '([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])-[0-9]{2}',
    40004057                        'mask'          => '99-99-99',
    4001                         'placeholder'   => __('mm-dd-yy', 'pinpointe'),
     4058                        'placeholder'   => __('mm-dd-yy', 'pinpointe-form-integration'),
    40024059                        'date_format'   => '%m-%d-%y',
    40034060                    ),
     
    40054062                        'pattern'       => '([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.[0-9]{2}',
    40064063                        'mask'          => '99.99.99',
    4007                         'placeholder'   => __('mm.dd.yy', 'pinpointe'),
     4064                        'placeholder'   => __('mm.dd.yy', 'pinpointe-form-integration'),
    40084065                        'date_format'   => '%m.%d.%y',
    40094066                    ),
     
    40114068                        'pattern'       => '[0-9]{2}\/([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    40124069                        'mask'          => '99/99/99',
    4013                         'placeholder'   => __('yy/mm/dd', 'pinpointe'),
     4070                        'placeholder'   => __('yy/mm/dd', 'pinpointe-form-integration'),
    40144071                        'date_format'   => '%y/%m/%d',
    40154072                    ),
     
    40174074                        'pattern'       => '[0-9]{2}-([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    40184075                        'mask'          => '99-99-99',
    4019                         'placeholder'   => __('yy-mm-dd', 'pinpointe'),
     4076                        'placeholder'   => __('yy-mm-dd', 'pinpointe-form-integration'),
    40204077                        'date_format'   => '%y-%m-%d',
    40214078                    ),
     
    40234080                        'pattern'       => '[0-9]{2}\.([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    40244081                        'mask'          => '99.99.99',
    4025                         'placeholder'   => __('yy.mm.dd', 'pinpointe'),
     4082                        'placeholder'   => __('yy.mm.dd', 'pinpointe-form-integration'),
    40264083                        'date_format'   => '%y.%m.%d',
    40274084                    ),
     
    40314088                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\/([0]?[1-9]|1[012])',
    40324089                        'mask'          => '99/99',
    4033                         'placeholder'   => __('dd/mm', 'pinpointe'),
     4090                        'placeholder'   => __('dd/mm', 'pinpointe-form-integration'),
    40344091                        'date_format'   => '%d/%m',
    40354092                    ),
     
    40374094                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])-([0]?[1-9]|1[012])',
    40384095                        'mask'          => '99/99',
    4039                         'placeholder'   => __('dd-mm', 'pinpointe'),
     4096                        'placeholder'   => __('dd-mm', 'pinpointe-form-integration'),
    40404097                        'date_format'   => '%d-%m',
    40414098                    ),
     
    40434100                        'pattern'       => '([0]?[1-9]|1[0-9]|2[0-9]|3[01])\.([0]?[1-9]|1[012])',
    40444101                        'mask'          => '99/99',
    4045                         'placeholder'   => __('dd.mm', 'pinpointe'),
     4102                        'placeholder'   => __('dd.mm', 'pinpointe-form-integration'),
    40464103                        'date_format'   => '%d.%m',
    40474104                    ),
     
    40494106                        'pattern'       => '([0]?[1-9]|1[012])\/([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    40504107                        'mask'          => '99/99',
    4051                         'placeholder'   => __('mm/dd', 'pinpointe'),
     4108                        'placeholder'   => __('mm/dd', 'pinpointe-form-integration'),
    40524109                        'date_format'   => '%m/%d',
    40534110                    ),
     
    40554112                        'pattern'       => '([0]?[1-9]|1[012])-([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    40564113                        'mask'          => '99-99',
    4057                         'placeholder'   => __('mm-dd', 'pinpointe'),
     4114                        'placeholder'   => __('mm-dd', 'pinpointe-form-integration'),
    40584115                        'date_format'   => '%m-%d',
    40594116                    ),
     
    40614118                        'pattern'       => '([0]?[1-9]|1[012])\.([0]?[1-9]|1[0-9]|2[0-9]|3[01])',
    40624119                        'mask'          => '99.99',
    4063                         'placeholder'   => __('mm.dd', 'pinpointe'),
     4120                        'placeholder'   => __('mm.dd', 'pinpointe-form-integration'),
    40644121                        'date_format'   => '%m.%d',
    40654122                    ),
     
    46764733            }
    46774734            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);
    46794737            }
    46804738
  • pinpointe-form-integration/trunk/readme.txt

    r3318581 r3322372  
    33Tags: email marketing, forms, opt-in, mailing list, subscription
    44Requires at least: 6.5
    5 Tested up to: 6.8.1
    6 Stable tag: 1.7.1
     5Tested up to: 6.8
     6Stable tag: 1.7.2
    77Requires PHP: 7.0
    88License: GPLv3 or later
     
    6060
    6161== Changelog ==
     621.7.2
     63* Minor fixes to conform to WordPress coding standards.
     64
    62651.7.1
    6366* Tested with latest version of WordPress to bring up-to-date.
Note: See TracChangeset for help on using the changeset viewer.