add_help_tab( array( 'id' => 'tp_import_publication_page_help', 'title' => __('Import'), 'content' => '
' . __('Import') . '
' . __("Use the file upload or add your BibTeX entries directly in the textfield. Restrictions: teachPress can't convert not numeric month and day attributes.",'teachpress') . '
' . __('Supported file types', 'teachpress') . ': .txt, .bib
', ) ); } /** * The controller for the import page of teachPress * @since 6.0.0 */ function tp_show_import_publication_page() { $tab = isset( $_GET['tab'] ) ? $_GET['tab'] : ''; $import_id = isset( $_GET['import_id'] ) ? intval($_GET['import_id']) : 0; $delete_import = isset ( $_GET['teachpress_delete_import'] ) ? $_GET['teachpress_delete_import'] : ''; $checkbox = isset ( $_GET['checkbox'] ) ? $_GET['checkbox'] : ''; $set_menu_1 = ( $tab === 'import' || $tab === '' ) ? 'nav-tab nav-tab-active' : 'nav-tab'; $set_menu_2 = ( $tab === 'export' ) ? 'nav-tab nav-tab-active' : 'nav-tab'; $set_menu_3 = ( $tab === 'exist' ) ? 'nav-tab nav-tab-active' : 'nav-tab'; echo '← ' . __('Back','teachpress') . '
'; } echo '