Code Duplication    Length = 15-18 lines in 3 locations

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 1119-1135 (lines=17) @@
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
    }
1136
1137
1138
    /**

admin_pages/registration_form/Registration_Form_Admin_Page.core.php 1 location

@@ 329-343 (lines=15) @@
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'
341
                                                ) . '</strong>';
342
        $this->display_admin_caf_preview_page('question_groups_tab');
343
    }
344
345
346
    /**

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 2374-2391 (lines=18) @@
2371
2372
2373
    /*************        Templates        *************/
2374
    protected function _template_settings()
2375
    {
2376
        $this->_admin_page_title = esc_html__('Template Settings (Preview)', 'event_espresso');
2377
        $this->_template_args['preview_img'] = '<img src="'
2378
                                               . EVENTS_ASSETS_URL
2379
                                               . DS
2380
                                               . 'images'
2381
                                               . DS
2382
                                               . 'caffeinated_template_features.jpg" alt="'
2383
                                               . esc_attr__('Template Settings Preview screenshot', 'event_espresso')
2384
                                               . '" />';
2385
        $this->_template_args['preview_text'] = '<strong>'
2386
                                                . esc_html__(
2387
                                                    'Template Settings 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. Template Settings allow you to configure some of the appearance options for both the Event List and Event Details pages.',
2388
                                                    'event_espresso'
2389
                                                ) . '</strong>';
2390
        $this->display_admin_caf_preview_page('template_settings_tab');
2391
    }
2392
2393
2394
    /** Event Category Stuff **/