array( 'url' ), ); } /** * Method for setting the title for each translatable field. * * @since 1.2.2 * * @param string $field The name of the field. * @return string */ protected function get_title( $field ) { if ( 'timeline_single_date' === $field ) { return __( 'Timeline: Date', 'uael' ); } if ( 'timeline_single_heading' === $field ) { return __( 'Timeline: Heading', 'uael' ); } if ( 'timeline_single_content' === $field ) { return __( 'Timeline: Description', 'uael' ); } if ( 'timeline_single_link' === $field ) { return __( 'Timeline: Link', 'uael' ); } return ''; } /** * Method for determining the editor type for each field. * * @since 1.2.2 * * @param string $field Name of the field. * @return string */ protected function get_editor_type( $field ) { switch ( $field ) { case 'timeline_single_date': case 'timeline_single_heading': case 'timeline_single_content': case 'timeline_single_link': return 'LINE'; default: return ''; } } }