Code Duplication    Length = 9-14 lines in 2 locations

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 1119-1132 (lines=14) @@
1116
    }
1117
1118
1119
    protected function _custom_mtps_preview()
1120
    {
1121
        $this->_admin_page_title = esc_html__('Custom Message Templates (Preview)', 'event_espresso');
1122
        $this->_template_args['preview_img'] = '<img src="' . EE_MSG_ASSETS_URL . 'images/custom_mtps_preview.png"'
1123
                                               . ' alt="' . esc_attr__(
1124
                                                   'Preview Custom Message Templates screenshot',
1125
                                                   'event_espresso'
1126
                                               ) . '" />';
1127
        $this->_template_args['preview_text'] = '<strong>'
1128
                                                . esc_html__(
1129
                                                    'Custom Message Templates is a feature that is only available in the premium version of Event Espresso 4 which is available with a support license purchase on EventEspresso.com. With the Custom Message Templates feature, you are able to create custom message templates and assign them on a per-event basis.',
1130
                                                    'event_espresso'
1131
                                                )
1132
                                                . '</strong>';
1133
1134
        $this->display_admin_caf_preview_page('custom_message_types', false);
1135
    }

admin_pages/registration_form/Registration_Form_Admin_Page.core.php 1 location

@@ 329-337 (lines=9) @@
326
     *
327
     * @return string html
328
     */
329
    protected function _questions_groups_preview()
330
    {
331
        $this->_admin_page_title = esc_html__('Question Groups (Preview)', 'event_espresso');
332
        $this->_template_args['preview_img'] = '<img src="' . REGISTRATION_FORM_ASSETS_URL . 'caf_reg_form_preview.jpg" alt="'
333
                                               . esc_attr__(
334
                                                   'Preview Question Groups Overview List Table screenshot',
335
                                                   'event_espresso'
336
                                               ) . '" />';
337
        $this->_template_args['preview_text'] = '<strong>'
338
                                                . esc_html__(
339
                                                    'Question Groups is a feature that is only available in the premium version of Event Espresso 4 which is available with a support license purchase on EventEspresso.com. With the Question Groups feature you are able to create new question groups, edit existing question groups, and create and edit new questions and add them to question groups.',
340
                                                    'event_espresso'