Code Duplication    Length = 24-24 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 70-93 (lines=24) @@
67
    }
68
69
70
    protected function _define_page_props()
71
    {
72
        $this->_admin_page_title = $this->page_label;
73
        $this->_labels = array(
74
            'buttons'      => array(
75
                'add'             => __('Add New Venue', 'event_espresso'),
76
                'edit'            => __('Edit Venue', 'event_espresso'),
77
                'delete'          => __('Delete Venue', 'event_espresso'),
78
                'add_category'    => __('Add New Category', 'event_espresso'),
79
                'edit_category'   => __('Edit Category', 'event_espresso'),
80
                'delete_category' => __('Delete Category', 'event_espresso'),
81
            ),
82
            'editor_title' => array(
83
                'espresso_venues' => __('Enter Venue name here', 'event_espresso'),
84
            ),
85
            'publishbox'   => array(
86
                'create_new'          => __('Save New Venue', 'event_espresso'),
87
                'edit'                => __('Update Venue', 'event_espresso'),
88
                'add_category'        => __('Save New Category', 'event_espresso'),
89
                'edit_category'       => __('Update Category', 'event_espresso'),
90
                'google_map_settings' => __('Update Settings', 'event_espresso'),
91
            ),
92
        );
93
    }
94
95
96
    protected function _set_page_routes()

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 95-118 (lines=24) @@
92
    /**
93
     * Sets the page properties for this admin page group.
94
     */
95
    protected function _define_page_props()
96
    {
97
        $this->_admin_page_title = EVENTS_LABEL;
98
        $this->_labels = array(
99
            'buttons'      => array(
100
                'add'             => esc_html__('Add New Event', 'event_espresso'),
101
                'edit'            => esc_html__('Edit Event', 'event_espresso'),
102
                'delete'          => esc_html__('Delete Event', 'event_espresso'),
103
                'add_category'    => esc_html__('Add New Category', 'event_espresso'),
104
                'edit_category'   => esc_html__('Edit Category', 'event_espresso'),
105
                'delete_category' => esc_html__('Delete Category', 'event_espresso'),
106
            ),
107
            'editor_title' => array(
108
                'espresso_events' => esc_html__('Enter event title here', 'event_espresso'),
109
            ),
110
            'publishbox'   => array(
111
                'create_new'        => esc_html__('Save New Event', 'event_espresso'),
112
                'edit'              => esc_html__('Update Event', 'event_espresso'),
113
                'add_category'      => esc_html__('Save New Category', 'event_espresso'),
114
                'edit_category'     => esc_html__('Update Category', 'event_espresso'),
115
                'template_settings' => esc_html__('Update Settings', 'event_espresso'),
116
            ),
117
        );
118
    }
119
120
121
    /**