Code Duplication    Length = 15-17 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

@@ 2383-2398 (lines=16) @@
2380
2381
2382
    /*************        Templates        *************/
2383
    protected function _template_settings()
2384
    {
2385
        $this->_admin_page_title = esc_html__('Template Settings (Preview)', 'event_espresso');
2386
        $this->_template_args['preview_img'] = '<img src="'
2387
                                               . EVENTS_ASSETS_URL
2388
                                               . '/images/'
2389
                                               . 'caffeinated_template_features.jpg" alt="'
2390
                                               . esc_attr__('Template Settings Preview screenshot', 'event_espresso')
2391
                                               . '" />';
2392
        $this->_template_args['preview_text'] = '<strong>'
2393
                                                . esc_html__(
2394
                                                    '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.',
2395
                                                    'event_espresso'
2396
                                                ) . '</strong>';
2397
        $this->display_admin_caf_preview_page('template_settings_tab');
2398
    }
2399
2400
2401
    /** Event Category Stuff **/