@@ 1176-1183 (lines=8) @@ | ||
1173 | } |
|
1174 | } |
|
1175 | $datetime = $datetime instanceof EE_Datetime ? $datetime : EEM_Datetime::instance()->get_one_by_ID($DTT_ID); |
|
1176 | if ($datetime instanceof EE_Datetime && $this->_template_args['before_list_table'] !== '') { |
|
1177 | $this->_template_args['before_list_table'] = substr($this->_template_args['before_list_table'], 0, -5); |
|
1178 | $this->_template_args['before_list_table'] .= ' <span class="drk-grey-text">'; |
|
1179 | $this->_template_args['before_list_table'] .= '<span class="dashicons dashicons-calendar"></span>'; |
|
1180 | $this->_template_args['before_list_table'] .= $datetime->name(); |
|
1181 | $this->_template_args['before_list_table'] .= ' ( ' . $datetime->date_and_time_range() . ' )'; |
|
1182 | $this->_template_args['before_list_table'] .= '</span></h2>'; |
|
1183 | } |
|
1184 | //if no datetime, then we're on the initial view, so let's give some helpful instructions on what the status |
|
1185 | // column represents |
|
1186 | if (! $datetime instanceof EE_Datetime) { |
@@ 1084-1091 (lines=8) @@ | ||
1081 | } |
|
1082 | $DTT_ID = ! empty($this->_req_data['datetime_id']) ? absint($this->_req_data['datetime_id']) : 0; |
|
1083 | $datetime = EEM_Datetime::instance()->get_one_by_ID($DTT_ID); |
|
1084 | if ($datetime instanceof EE_Datetime && $this->_template_args['admin_page_header'] !== '') { |
|
1085 | $this->_template_args['admin_page_header'] = substr( |
|
1086 | $this->_template_args['admin_page_header'], |
|
1087 | 0, |
|
1088 | -5 |
|
1089 | ); |
|
1090 | $this->_template_args['admin_page_header'] .= ' <span class="drk-grey-text">'; |
|
1091 | $this->_template_args['admin_page_header'] .= '<span class="dashicons dashicons-calendar"></span>'; |
|
1092 | $this->_template_args['admin_page_header'] .= $datetime->name(); |
|
1093 | $this->_template_args['admin_page_header'] .= ' ( ' . $datetime->start_date() . ' )'; |
|
1094 | $this->_template_args['admin_page_header'] .= '</span></h3>'; |