Code Duplication    Length = 6-6 lines in 2 locations

admin_pages/messages/Messages_Admin_Page.core.php 1 location

@@ 651-656 (lines=6) @@
648
649
650
651
	protected function _custom_mtps_preview() {
652
		$this->_admin_page_title = __('Custom Message Templates (Preview)', 'event_espresso');
653
		$this->_template_args['preview_img'] = '<img src="' . EE_MSG_ASSETS_URL . 'images/custom_mtps_preview.png" alt="' . esc_attr__('Preview Custom Message Templates screenshot', 'event_espresso' ) . '" />';
654
		$this->_template_args['preview_text'] = '<strong>'.__('Custom Message Templates is a feature that is only available in the caffeinated version of Event Espresso.  With the Custom Message Templates feature, you are able to create custom templates and set them per event.', 'event_espresso').'</strong>';
655
		$this->display_admin_caf_preview_page( 'custom_message_types', FALSE );
656
	}
657
658
659

admin_pages/registration_form/Registration_Form_Admin_Page.core.php 1 location

@@ 298-303 (lines=6) @@
295
	 * This just previews the question groups tab that comes in caffeinated.
296
	 * @return string html
297
	 */
298
	protected function _questions_groups_preview() {
299
		$this->_admin_page_title = __('Question Groups (Preview)', 'event_espresso');
300
		$this->_template_args['preview_img'] = '<img src="' . REGISTRATION_FORM_ASSETS_URL . 'caf_reg_form_preview.jpg" alt="' . esc_attr__( 'Preview Question Groups Overview List Table screenshot', 'event_espresso' ) . '" />';
301
		$this->_template_args['preview_text'] = '<strong>'.__( 'Question Groups is a feature that is only available in the Caffeinated version of Event Espresso.  With the Question Groups feature you are able to: create new question groups, edit existing question groups, and also create and edit new questions and add them to question groups.', 'event_espresso' ).'</strong>';
302
		$this->display_admin_caf_preview_page( 'question_groups_tab' );
303
	}
304
305
306