Changeset 3361909
- Timestamp:
- 09/15/2025 03:43:17 PM (5 months ago)
- Location:
- mon-laboratoire/trunk
- Files:
-
- 8 added
- 4 deleted
- 23 edited
-
Admin/Edit_Members/class-edit-members-advanced.php (modified) (13 diffs)
-
Admin/Edit_Members/class-edit-members-generic.php (modified) (11 diffs)
-
Admin/Edit_Members/class-edit-members.php (modified) (24 diffs)
-
Admin/Forms (added)
-
Admin/Forms/class-forms-processing-advanced.php (added)
-
Admin/Forms/class-forms-processing-generic.php (added)
-
Admin/Forms/class-forms-processing.php (added)
-
Admin/Forms/class-forms-view.php (added)
-
Admin/Forms/class-generic-forms-view.php (added)
-
Admin/Forms/class-options-forms-view.php (added)
-
Admin/Forms/class-wp-post-forms-view.php (added)
-
Admin/Forms_Processing (deleted)
-
Admin/Import/class-import-main.php (modified) (5 diffs)
-
Admin/Import/class-import.php (modified) (4 diffs)
-
Admin/Import/class-post-import.php (modified) (2 diffs)
-
Admin/Import/class-pre-import.php (modified) (3 diffs)
-
Admin/class-admin-init-pages.php (modified) (1 diff)
-
Admin/class-admin-page.php (modified) (4 diffs)
-
Admin/class-admin.php (modified) (2 diffs)
-
Admin/class-html-forms.php (deleted)
-
Admin/class-settings-fields.php (deleted)
-
Admin/js/MonLabo-admin.js (modified) (5 diffs)
-
Frontend/Contact_Form/class-contact-form-processing.php (modified) (5 diffs)
-
Frontend/Contact_Form/class-contact-form-view.php (modified) (8 diffs)
-
Frontend/Shortcodes/class-generic-view.php (modified) (1 diff)
-
Lib/class-app.php (modified) (2 diffs)
-
Lib/class-db.php (modified) (5 diffs)
-
Lib/class-privacy.php (modified) (12 diffs)
-
languages/mon-laboratoire-fr_FR.l10n.php (deleted)
-
languages/mon-laboratoire-fr_FR.mo (modified) (previous)
-
languages/mon-laboratoire-fr_FR.po (modified) (70 diffs)
-
languages/mon-laboratoire.pot (modified) (69 diffs)
-
mon-laboratoire.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
todo.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
mon-laboratoire/trunk/Admin/Edit_Members/class-edit-members-advanced.php
r3355231 r3361909 5 5 use MonLabo\Admin\Import\Import_Main; 6 6 use MonLabo\Admin\Messages; 7 use MonLabo\Admin\Forms _Processing\Forms_Processing_Advanced;7 use MonLabo\Admin\Forms\Forms_Processing_Advanced; 8 8 use MonLabo\Frontend\Person_Or_Structure_View; 9 9 … … 119 119 return ''; 120 120 } 121 $retval = $this->_ html_forms->begin_form( $form_id );121 $retval = $this->_forms_view->begin_form( $form_id ); 122 122 //Establish list of export lines 123 123 $list_of_items = $this->_access_data->get_info_for_all( $type_of_items ); … … 126 126 } 127 127 $nb = count( $list_of_items ); 128 $retval .= $this->_ html_forms->end_form(128 $retval .= $this->_forms_view->end_form( 129 129 $form_id, 130 130 $button_text . ' (' . $nb . ')', … … 146 146 private function _items_without_page_form( string $form_id, string $type_of_items ) : string { 147 147 $button_text = __( 'Create missing pages', 'mon-laboratoire' ); 148 $retval = $this->_ html_forms->begin_form( $form_id );148 $retval = $this->_forms_view->begin_form( $form_id ); 149 149 //Establish list of members without page 150 150 $list_of_items = $this->_access_data->get_info_for_all( $type_of_items ); … … 173 173 $retval .= '<ul><li>' . implode( '</li><li>', $links ) . '</li></ul>'; 174 174 } 175 $retval .= $this->_ html_forms->silent_transmit_ids( $form_id, array_keys( $items_without_page ) );175 $retval .= $this->_forms_view->silent_transmit_ids( $form_id, array_keys( $items_without_page ) ); 176 176 $nb = count( $items_without_page ); 177 $retval .= $this->_ html_forms->end_form(177 $retval .= $this->_forms_view->end_form( 178 178 $form_id, 179 179 $button_text . ' (' . $nb . ')', … … 195 195 private function _items_without_translated_page_form( string $form_id, string $type_of_items ) : string { 196 196 $button_text = __( 'Create missing pages translations', 'mon-laboratoire' ); 197 $retval = $this->_ html_forms->begin_form( $form_id );197 $retval = $this->_forms_view->begin_form( $form_id ); 198 198 //Establish list of members without translated page 199 199 $list_of_items = $this->_access_data->get_info_for_all( $type_of_items ); … … 240 240 $retval .= '<ul><li>' . implode( '</li><li>', $links ) . '</li></ul>'; 241 241 } 242 $retval .= $this->_ html_forms->silent_transmit_ids( $form_id, $list_of_untranslated_pages_id );242 $retval .= $this->_forms_view->silent_transmit_ids( $form_id, $list_of_untranslated_pages_id ); 243 243 $nb = count( $items_without_translated_page ); 244 $retval .= $this->_ html_forms->end_form(244 $retval .= $this->_forms_view->end_form( 245 245 $form_id, 246 246 $button_text . ' (' . $nb . ')', … … 262 262 private function _items_with_invalid_page_form( string $form_id, string $type_of_items ) : string { 263 263 $button_text = __( 'Removes invalid page numbers', 'mon-laboratoire' ); 264 $retval = $this->_ html_forms->begin_form( $form_id );264 $retval = $this->_forms_view->begin_form( $form_id ); 265 265 //Establish list of members without page 266 266 $list_of_items = $this->_access_data->get_info_for_all( $type_of_items ); … … 293 293 $retval .= '<ul><li>' . implode( '</li><li>', $links ) . '</li></ul>'; 294 294 } 295 $retval .= $this->_ html_forms->silent_transmit_ids( $form_id, array_keys( $items_with_invalid_page ) );295 $retval .= $this->_forms_view->silent_transmit_ids( $form_id, array_keys( $items_with_invalid_page ) ); 296 296 $nb = count( $items_with_invalid_page ); 297 $retval .= $this->_ html_forms->end_form(297 $retval .= $this->_forms_view->end_form( 298 298 $form_id, 299 299 $button_text . ' (' . $nb . ')', … … 313 313 */ 314 314 private function _alumni_with_no_draft_page_form( string $form_id ) : string { 315 $retval = $this->_ html_forms->begin_form( $form_id );315 $retval = $this->_forms_view->begin_form( $form_id ); 316 316 //Establish list of alumni with published page 317 317 $list_of_alumni = $this->_access_data->get_info_for_all( 'alumni' ); … … 342 342 $retval .= '<ul>' . $temp_retval . '</ul>'; 343 343 } 344 $retval .= $this->_ html_forms->silent_transmit_ids( $form_id, array_keys( $page_list ) );344 $retval .= $this->_forms_view->silent_transmit_ids( $form_id, array_keys( $page_list ) ); 345 345 $nb = count( $page_list ); 346 $retval .= $this->_ html_forms->end_form(346 $retval .= $this->_forms_view->end_form( 347 347 $form_id, 348 348 __( 'Switch to draft alumni pages', 'mon-laboratoire' ) . ' (' . $nb . ')', … … 364 364 private function _items_with_bad_parent_page_form( string $form_id, string $type_of_items ) : string { 365 365 $button_text = __( 'Correct wrong parent pages', 'mon-laboratoire' ); 366 $retval = $this->_ html_forms->begin_form( $form_id );366 $retval = $this->_forms_view->begin_form( $form_id ); 367 367 //Establish list of members without page 368 368 $list_of_items = $this->_access_data->get_info_for_all( $type_of_items ); … … 388 388 $retval .= '<ul>' . $temp_retval . '</ul>'; 389 389 } 390 $retval .= $this->_ html_forms->silent_transmit_ids( $form_id, array_keys( $page_list ) );391 $retval .= $this->_ html_forms->silent_transmit_text( $form_id, strval( $parent ) );390 $retval .= $this->_forms_view->silent_transmit_ids( $form_id, array_keys( $page_list ) ); 391 $retval .= $this->_forms_view->silent_transmit_text( $form_id, strval( $parent ) ); 392 392 $nb = count( $page_list ); 393 $retval .= $this->_ html_forms->end_form(393 $retval .= $this->_forms_view->end_form( 394 394 $form_id, 395 395 $button_text . ' (' . $nb . ')', -
mon-laboratoire/trunk/Admin/Edit_Members/class-edit-members-generic.php
r3355231 r3361909 5 5 use MonLabo\Lib\Access_Data\{Access_Data}; 6 6 use MonLabo\Frontend\{Html}; 7 use MonLabo\Admin\{Html_Forms, Messages}; 7 use MonLabo\Admin\{Messages}; 8 use MonLabo\Admin\Forms\{Forms_View}; 8 9 use MonLabo\Lib\Person_Or_Structure\Person_Or_Structure; 9 10 … … 31 32 * 32 33 * @access protected 33 * @var Html_Forms34 */ 35 protected $_ html_forms;34 * @var Forms_View 35 */ 36 protected $_forms_view; 36 37 37 38 /** … … 57 58 */ 58 59 public function __construct() { 59 $this->_ html_forms = new Html_Forms();60 $this->_forms_view = new Forms_View(); 60 61 $this->_access_data = new Access_Data(); 61 62 $this->_html = new Html(); … … 74 75 $nonce = wp_nonce_field( "edit_{$item_type}_form", "edit_{$item_type}_form_wpnonce", true, false ); 75 76 if ( $creation_mode ) { 76 return $nonce . $this->_ html_forms->submit_button(77 return $nonce . $this->_forms_view->submit_button( 77 78 __( 'Create', 'mon-laboratoire' ), 78 79 "submit_new_{$item_type}", … … 81 82 ); 82 83 } 83 $retval = $nonce . $this->_ html_forms->submit_button(84 $retval = $nonce . $this->_forms_view->submit_button( 84 85 __( 'Modify', 'mon-laboratoire' ), 85 86 "submit_edit_{$item_type}", … … 88 89 'warning' 89 90 ); 90 return $retval . ' ' . $this->_ html_forms->submit_button(91 return $retval . ' ' . $this->_forms_view->submit_button( 91 92 __( 'Delete', 'mon-laboratoire' ), 92 93 "submit_delete_{$item_type}", … … 119 120 case 'informations': 120 121 $retval .= '<fieldset>' . $this->_get_fieldset_legend( $fieldset_type ); 121 $retval .= $this->_ html_forms->hidden_field( 'submit_id', $item_object->info->id );122 $retval .= $this->_ html_forms->hidden_field( 'action', '', 'action' );122 $retval .= $this->_forms_view->hidden_field( 'submit_id', $item_object->info->id ); 123 $retval .= $this->_forms_view->hidden_field( 'action', '', 'action' ); 123 124 124 125 if ( ! $item_object->is_empty() ) { 125 126 $retval .= 'Id : ' . $item_object->info->id . '<br />'; 126 127 } 127 $retval .= $this->_ html_forms->field( 'name_fr', true, __( 'Name in French', 'mon-laboratoire' ), $comment->get( 'name_fr' ),128 $retval .= $this->_forms_view->field( 'name_fr', true, __( 'Name in French', 'mon-laboratoire' ), $comment->get( 'name_fr' ), 128 129 $item_object->info->name_fr ); 129 $retval .= $this->_ html_forms->field( 'name_en', true, __( 'Name in English', 'mon-laboratoire' ), $comment->get( 'name_en' ),130 $retval .= $this->_forms_view->field( 'name_en', true, __( 'Name in English', 'mon-laboratoire' ), $comment->get( 'name_en' ), 130 131 $item_object->info->name_en ); 131 132 break; … … 136 137 $retval .= $messages->warning_if_necessary_unconfigured_parent( $item_type ); 137 138 $retval .= '<fieldset class="">' . $this->_get_fieldset_legend( $fieldset_type ); 138 $retval .= $this->_ html_forms->field( $fieldname, false, __( 'Page ID or ext. URL.', 'mon-laboratoire' ),139 $retval .= $this->_forms_view->field( $fieldname, false, __( 'Page ID or ext. URL.', 'mon-laboratoire' ), 139 140 $comment->get( 'wp_post_ids' ), $item_object->info->wp_post_ids ); 140 141 break; … … 142 143 case 'apparence': 143 144 $retval .= '<fieldset class="clear">' . $this->_get_fieldset_legend( $fieldset_type ); 144 $retval .= $this->_ html_forms->field( 'logo', false, __( 'Logo', 'mon-laboratoire' ),145 $retval .= $this->_forms_view->field( 'logo', false, __( 'Logo', 'mon-laboratoire' ), 145 146 $comment->get( 'logo' ), $item_object->info->logo ); 146 147 break; … … 154 155 $field = 'hal_publi_' . $field1 . '_id'; 155 156 $placeholder = ( 'person' === $item_type ) ? __( 'IdHAL', 'mon-laboratoire' ) : __( 'struct. Id', 'mon-laboratoire' ); 156 $retval .= $this->_ html_forms->field( $field, false, $placeholder, $comment->get( $field ), $item_object->info->{$field} );157 $retval .= $this->_forms_view->field( $field, false, $placeholder, $comment->get( $field ), $item_object->info->{$field} ); 157 158 } 158 159 if ( in_array( $options->publication_server_type, ['DescartesPubli', 'both'], true ) ) { 159 160 $field = 'descartes_publi_' . $field1 . '_id'; 160 $retval .= $this->_ html_forms->field( $field, false, __( 'Descartes Publi Id', 'mon-laboratoire' ),161 $retval .= $this->_forms_view->field( $field, false, __( 'Descartes Publi Id', 'mon-laboratoire' ), 161 162 $comment->get( $field ), $item_object->info->{$field} ); 162 163 } … … 221 222 ); 222 223 $retval .= '<fieldset>' . $this->_get_fieldset_legend( 'selection' ); 223 $retval .= $this->_ html_forms->select( 'item', $select_values, true, $legend, '', strval( $initial_value ), $onchange );224 $retval .= $this->_forms_view->select( 'item', $select_values, true, $legend, '', strval( $initial_value ), $onchange ); 224 225 $retval .= '</fieldset></div></form><hr />'; 225 226 $retval .= sprintf( -
mon-laboratoire/trunk/Admin/Edit_Members/class-edit-members.php
r3355231 r3361909 4 4 use MonLabo\Lib\{App, Translate, Options}; 5 5 use MonLabo\Lib\Person_Or_Structure\{Person, Team, Unit, Thematic}; 6 use MonLabo\Admin\Forms _Processing\{Forms_Processing};6 use MonLabo\Admin\Forms\{Forms_Processing}; 7 7 use MonLabo\Frontend\Person_Or_Structure_View; 8 8 … … 69 69 // Identity section 70 70 $retval .= '<fieldset class="clear">' . $this->_get_fieldset_legend( 'identity' ); 71 $retval .= $this->_ html_forms->hidden_field( 'submit_id', $member->info->id );72 $retval .= $this->_ html_forms->hidden_field( 'action', '', 'action' );71 $retval .= $this->_forms_view->hidden_field( 'submit_id', $member->info->id ); 72 $retval .= $this->_forms_view->hidden_field( 'action', '', 'action' ); 73 73 74 74 if ( ! $member->is_empty() ) { … … 80 80 $tiles_array['disabled'] = '--------'; 81 81 $tiles_array['edit'] = __( 'Edit / New', 'mon-laboratoire' ); 82 $retval .= $this->_ html_forms->select(82 $retval .= $this->_forms_view->select( 83 83 'title', 84 84 $tiles_array, … … 91 91 92 92 // Basic information fields 93 $retval .= $this->_ html_forms->field( 'first_name', true, _x( 'First name', 'personne', 'mon-laboratoire' ), $comment->get( 'first_name' ),93 $retval .= $this->_forms_view->field( 'first_name', true, _x( 'First name', 'personne', 'mon-laboratoire' ), $comment->get( 'first_name' ), 94 94 $member->info->first_name ); 95 $retval .= $this->_ html_forms->field( 'last_name', true, _x( 'Name', 'personne', 'mon-laboratoire' ), $comment->get( 'last_name' ),95 $retval .= $this->_forms_view->field( 'last_name', true, _x( 'Name', 'personne', 'mon-laboratoire' ), $comment->get( 'last_name' ), 96 96 $member->info->last_name ); 97 $retval .= $this->_ html_forms->field( 'image', false, __( 'Personal photo', 'mon-laboratoire' ), $comment->get( 'image' ), $member->info->image );97 $retval .= $this->_forms_view->field( 'image', false, __( 'Personal photo', 'mon-laboratoire' ), $comment->get( 'image' ), $member->info->image ); 98 98 99 99 // Title edit field 100 100 $retval .= '<br /><div id="edit-person-title-field"> '; 101 $retval .= $this->_ html_forms->field( 'title_edit', false,101 $retval .= $this->_forms_view->field( 'title_edit', false, 102 102 _x( 'Title', 'personne', 'mon-laboratoire' ), $comment->get( 'title_edit' ), 103 103 $member->info->title … … 150 150 $initial_text_director = array( '0' => $text_director ); 151 151 } 152 $retval .= $this->_ html_forms->checkboxes( 'is_director', array( 0 => $text_director ), true, __( 'Direction?', 'mon-laboratoire' ), '', $initial_text_director );152 $retval .= $this->_forms_view->checkboxes( 'is_director', array( 0 => $text_director ), true, __( 'Direction?', 'mon-laboratoire' ), '', $initial_text_director ); 153 153 } 154 154 … … 156 156 $retval .= '<br />'; 157 157 $member->info->category = mb_strtolower( $member->info->category, 'UTF-8' ); //On converti la catégorie en minuscule ( pour une compatibilité avec les anciennes versions de MonLabo ) 158 $retval .= $this->_ html_forms->select( 'category', App::PERSONS_CATEGORIES, true, _x( 'Category and function', 'personne', 'mon-laboratoire' ), $comment->get( 'category' ),158 $retval .= $this->_forms_view->select( 'category', App::PERSONS_CATEGORIES, true, _x( 'Category and function', 'personne', 'mon-laboratoire' ), $comment->get( 'category' ), 159 159 $member->info->category ); 160 $retval .= $this->_ html_forms->select(160 $retval .= $this->_forms_view->select( 161 161 'fonction', 162 162 $this->_access_data->get_multilingual_functions_by_category(), … … 174 174 $all_teams_name = $this->_access_data->get_teams_name( 'fr' ); 175 175 $teams_name = $member->is_empty() ? array() : $this->_access_data->get_teams_name_for_a_person( $member->info->id, 'fr' ); 176 $retval .= $this->_ html_forms->checkboxes( 'teams', $all_teams_name, true, __( 'Teams', 'mon-laboratoire' ), $comment->get( 'teams' ),176 $retval .= $this->_forms_view->checkboxes( 'teams', $all_teams_name, true, __( 'Teams', 'mon-laboratoire' ), $comment->get( 'teams' ), 177 177 $teams_name ); 178 178 … … 188 188 } 189 189 $retval .= '<div id="' . $id_mentors_field . '">'; 190 $retval .= $this->_ html_forms->select_multiple(190 $retval .= $this->_forms_view->select_multiple( 191 191 'mentors', 192 192 array( 'Actifs' => $members_name_actif , 'Alumni' => $members_name_alumni ), … … 213 213 } 214 214 $retval .= '<div id="' . $id_students_field . '">'; 215 $retval .= $this->_ html_forms->select_multiple(215 $retval .= $this->_forms_view->select_multiple( 216 216 'students', 217 217 array( 'Actifs' => $members_name_actif , 'Alumni' => $members_name_alumni ), … … 236 236 $comment = new Edit_Members_Comment( 'person' ); 237 237 $retval = '<fieldset>' . $this->_get_fieldset_legend( 'coordinates_p' ); 238 $retval .= $this->_ html_forms->field( 'mail', false, __( 'E-mail(s)', 'mon-laboratoire' ), $comment->get( 'mail' ),238 $retval .= $this->_forms_view->field( 'mail', false, __( 'E-mail(s)', 'mon-laboratoire' ), $comment->get( 'mail' ), 239 239 $member->info->mail ); 240 $retval .= $this->_ html_forms->field( 'room', false, __( 'Door', 'mon-laboratoire' ), $comment->get( 'room' ),240 $retval .= $this->_forms_view->field( 'room', false, __( 'Door', 'mon-laboratoire' ), $comment->get( 'room' ), 241 241 $member->info->room ); 242 $retval .= $this->_ html_forms->field( 'external_url', false, __( 'Personal external website', 'mon-laboratoire' ) , $comment->get( 'external_url' ),242 $retval .= $this->_forms_view->field( 'external_url', false, __( 'Personal external website', 'mon-laboratoire' ) , $comment->get( 'external_url' ), 243 243 $member->info->external_url ); 244 $retval .= $this->_ html_forms->field( 'phone', false, __( 'Phone extension number', 'mon-laboratoire' ), $comment->get( 'phone' ),244 $retval .= $this->_forms_view->field( 'phone', false, __( 'Phone extension number', 'mon-laboratoire' ), $comment->get( 'phone' ), 245 245 $member->info->phone ); 246 246 $retval .= '<br />'; 247 $retval .= $this->_ html_forms->field( 'address_alt', false, __( 'Alternative address', 'mon-laboratoire' ), $comment->get( 'address_alt' ),247 $retval .= $this->_forms_view->field( 'address_alt', false, __( 'Alternative address', 'mon-laboratoire' ), $comment->get( 'address_alt' ), 248 248 $member->info->address_alt ); 249 249 $retval .= '</fieldset>'; … … 261 261 $comment = new Edit_Members_Comment( 'person' ); 262 262 $retval = '<fieldset>' . $this->_get_fieldset_legend( 'situation_p' ); 263 $retval .= $this->_ html_forms->select( 'status', array( 'actif'=>__( 'active', 'mon-laboratoire' ), 'alumni'=>__( 'former member', 'mon-laboratoire' ) ), true, _x( 'Status', 'personne', 'mon-laboratoire' ),263 $retval .= $this->_forms_view->select( 'status', array( 'actif'=>__( 'active', 'mon-laboratoire' ), 'alumni'=>__( 'former member', 'mon-laboratoire' ) ), true, _x( 'Status', 'personne', 'mon-laboratoire' ), 264 264 $comment->get( 'status' ), $member->info->status ); 265 265 266 266 $retval .= "<div id='MonLabo-date-departure-form'>" 267 . $this->_ html_forms->field( 'date_departure', false, __( 'Departure date from the unit', 'mon-laboratoire' ),267 . $this->_forms_view->field( 'date_departure', false, __( 'Departure date from the unit', 'mon-laboratoire' ), 268 268 $comment->get( 'date_departure' ), $member->info->date_departure ) 269 . $this->_ html_forms->select( 'pages_to_draft', array( 'oui'=>__( 'yes', 'mon-laboratoire' ), 'non'=>__( 'no', 'mon-laboratoire' ) ),269 . $this->_forms_view->select( 'pages_to_draft', array( 'oui'=>__( 'yes', 'mon-laboratoire' ), 'non'=>__( 'no', 'mon-laboratoire' ) ), 270 270 true, __( 'Convert pages to draft?', 'mon-laboratoire' ), '', 'non' ) 271 271 . '</div>'; 272 $retval .= $this->_ html_forms->select( 'visible', array( 'oui'=>__( 'yes', 'mon-laboratoire' ), 'non'=>__( 'no', 'mon-laboratoire' ) ), true, __( 'Visible person?', 'mon-laboratoire' ),272 $retval .= $this->_forms_view->select( 'visible', array( 'oui'=>__( 'yes', 'mon-laboratoire' ), 'non'=>__( 'no', 'mon-laboratoire' ) ), true, __( 'Visible person?', 'mon-laboratoire' ), 273 273 $comment->get( 'visible' ), $member->info->visible ); 274 274 … … 297 297 for ( $i=1; $i <= $nb_fields; $i++ ) { 298 298 $nom_variable = 'custom' . $i; 299 $retval .= $this->_ html_forms->field( $nom_variable, false, $nom_variable,299 $retval .= $this->_forms_view->field( $nom_variable, false, $nom_variable, 300 300 'custom_' . $options3['MonLabo_custom_field' . $i . '_title'], $member->info->{$nom_variable} ); 301 301 } … … 338 338 // Appearance with color field 339 339 $appearance_end = '<div class="input-group"><label for="">' . __( 'Color', 'mon-laboratoire' ) . ' : </label>'; 340 $appearance_end .= $this->_ html_forms->field( 'color', false, __( 'Color', 'mon-laboratoire' ), $comment->get( 'color' ), $team->info->color );340 $appearance_end .= $this->_forms_view->field( 'color', false, __( 'Color', 'mon-laboratoire' ), $comment->get( 'color' ), $team->info->color ); 341 341 $appearance_end .= '</div>'; 342 342 $retval .= $this->_generate_generic_fieldset( 'apparence', 'team', $team, $appearance_end ); … … 357 357 $id_unit_initval = App::MAIN_STRUCT_NO_UNIT; 358 358 } 359 $retval .= $this->_ html_forms->radio_buttons( 'id_unit', $units_name, true, __( 'Structure', 'mon-laboratoire' ), $comment->get( 'id_unit' ), $units_name[ $id_unit_initval ] );359 $retval .= $this->_forms_view->radio_buttons( 'id_unit', $units_name, true, __( 'Structure', 'mon-laboratoire' ), $comment->get( 'id_unit' ), $units_name[ $id_unit_initval ] ); 360 360 if ( $options->uses['thematics'] ) { 361 361 $all_thematics_name = $this->_access_data->get_thematics_name( 'fr' ); 362 362 $thematics_id = $this->_access_data->get_thematics_id_for_a_team( $team->info->id ); 363 363 $translate = new Translate(); 364 $retval .= $this->_ html_forms->select_multiple( 'thematics', $all_thematics_name, false, $translate->tr__( 'Thematics' ),364 $retval .= $this->_forms_view->select_multiple( 'thematics', $all_thematics_name, false, $translate->tr__( 'Thematics' ), 365 365 $comment->get( 'thematics' ), $thematics_id ); 366 366 } … … 389 389 //$alumni_id = $this->_access_data->get_persons_id_for_a_team( $team->info->id, 'alumni' ); 390 390 } 391 $retval .= $this->_ html_forms->select_multiple( 'persons', $all_persons_struct, false, __( 'Persons', 'mon-laboratoire' ), $comment->get( 'members' ), $persons_id );392 $retval .= $this->_ html_forms->select_multiple( 'leaders', $members_struct, false, __( 'Team leaders', 'mon-laboratoire' ), $comment->get( 'leaders' ), $leaders_id );393 //$retval .= $this->_ html_forms->select_multiple( 'alumni', $all_persons_struct, false, __( 'Alumni', 'mon-laboratoire' ), $comment->get( 'alumni' ), $alumni_id );391 $retval .= $this->_forms_view->select_multiple( 'persons', $all_persons_struct, false, __( 'Persons', 'mon-laboratoire' ), $comment->get( 'members' ), $persons_id ); 392 $retval .= $this->_forms_view->select_multiple( 'leaders', $members_struct, false, __( 'Team leaders', 'mon-laboratoire' ), $comment->get( 'leaders' ), $leaders_id ); 393 //$retval .= $this->_forms_view->select_multiple( 'alumni', $all_persons_struct, false, __( 'Alumni', 'mon-laboratoire' ), $comment->get( 'alumni' ), $alumni_id ); 394 394 $retval .= '</fieldset>'; 395 395 … … 463 463 464 464 // Information section with additional fields 465 $end_of_fieldset = '<br />' . $this->_ html_forms->field( 'affiliations', true, 'Affiliations',465 $end_of_fieldset = '<br />' . $this->_forms_view->field( 'affiliations', true, 'Affiliations', 466 466 $comment->get( 'affiliations' ), $unit->info->affiliations ); 467 $end_of_fieldset .= $this->_ html_forms->field( 'code', false, _x( 'Code', 'unité', 'mon-laboratoire' ), $comment->get( 'code' ), $unit->info->code );467 $end_of_fieldset .= $this->_forms_view->field( 'code', false, _x( 'Code', 'unité', 'mon-laboratoire' ), $comment->get( 'code' ), $unit->info->code ); 468 468 $end_of_fieldset .= '<br />'; 469 469 $members_name_actif = $item_view->persons_names( $this->_access_data->get_persons_info( 'actif' ), 'simple_text' ); 470 470 $members_name_alumni = $item_view->persons_names( $this->_access_data->get_persons_info( 'alumni' ), 'simple_text' ); 471 $end_of_fieldset .= $this->_ html_forms->select_multiple(471 $end_of_fieldset .= $this->_forms_view->select_multiple( 472 472 'directors', 473 473 array( 'Actifs' => $members_name_actif , 'Alumni' => $members_name_alumni ), … … 486 486 // Alternate coordinates 487 487 $retval .= '<fieldset>' . $this->_get_fieldset_legend( 'alt_coord' ); 488 $retval .= $this->_ html_forms->field( 'address_alt', false, __( 'Alternative address', 'mon-laboratoire' ), $comment->get( 'address_alt' ),488 $retval .= $this->_forms_view->field( 'address_alt', false, __( 'Alternative address', 'mon-laboratoire' ), $comment->get( 'address_alt' ), 489 489 $unit->info->address_alt ); 490 $retval .= $this->_ html_forms->field( 'contact_alt', false, __( 'Alternate contact', 'mon-laboratoire' ), $comment->get( 'contact_alt' ),490 $retval .= $this->_forms_view->field( 'contact_alt', false, __( 'Alternate contact', 'mon-laboratoire' ), $comment->get( 'contact_alt' ), 491 491 $unit->info->contact_alt ); 492 492 $retval .= '</fieldset>'; … … 535 535 if ( 'hal' === $options->publication_server_type ) { 536 536 $retval .= '<fieldset>' . $this->_get_fieldset_legend( 'publications' ); 537 $retval .= '<br />' . $this->_ html_forms->field( 'hal_publi_struct_id', false, __( 'struct. Id', 'mon-laboratoire' ),537 $retval .= '<br />' . $this->_forms_view->field( 'hal_publi_struct_id', false, __( 'struct. Id', 'mon-laboratoire' ), 538 538 $comment->get( 'hal_publi_struct_id' ), $options1['MonLabo_hal_publi_struct_id'] ); 539 539 $retval .= '</fieldset>'; … … 547 547 $values = array( 'Actifs' => $members_name_actif , 'Alumni' => $members_name_alumni ); 548 548 $directors_id = $this->_access_data->get_directors_id_for_an_unit( App::MAIN_STRUCT_NO_UNIT, 'all' ); 549 $retval .= $this->_ html_forms->select_multiple( 'directors', $values, false, __( 'Directors', 'mon-laboratoire' ),549 $retval .= $this->_forms_view->select_multiple( 'directors', $values, false, __( 'Directors', 'mon-laboratoire' ), 550 550 $comment->get( 'directors' ), $directors_id ); 551 551 $retval .= '</fieldset>'; … … 555 555 556 556 // Validation 557 $retval .= $this->_ html_forms->submit_button( __( 'Modify', 'mon-laboratoire' ), 'submit_edit_mainstruct', '', 'edit', 'warning' );557 $retval .= $this->_forms_view->submit_button( __( 'Modify', 'mon-laboratoire' ), 'submit_edit_mainstruct', '', 'edit', 'warning' ); 558 558 $retval .= '</div></form>'; 559 559 … … 584 584 } 585 585 $required = $config['required'] ?? false; 586 $retval .= $this->_ html_forms->field( $field, $required, $config['label'], $comment->get( $field ), $options1["MonLabo_{$field}"] );586 $retval .= $this->_forms_view->field( $field, $required, $config['label'], $comment->get( $field ), $options1["MonLabo_{$field}"] ); 587 587 } 588 588 return $retval . '</fieldset>'; … … 599 599 $comment = new Edit_Members_Comment( 'person' ); 600 600 return '<div id="edit-functions-fields"> ' . 601 $this->_ html_forms->field(601 $this->_forms_view->field( 602 602 'function_en', 603 603 true, … … 606 606 $member->info->function_en 607 607 ) . 608 $this->_ html_forms->field(608 $this->_forms_view->field( 609 609 'function_fr', 610 610 true, … … 637 637 $type, 638 638 __( '+ External persons', 'mon-laboratoire' ), 639 $this->_ html_forms->field( $property, false, $text, $comment->get( $property ), $member->info->{$property}, $css_id )639 $this->_forms_view->field( $property, false, $text, $comment->get( $property ), $member->info->{$property}, $css_id ) 640 640 ); 641 641 } -
mon-laboratoire/trunk/Admin/Import/class-import-main.php
r3355231 r3361909 4 4 use MonLabo\Frontend\Html; 5 5 use MonLabo\Lib\Options; 6 use MonLabo\Admin\{Html_Forms,Csv}; 7 use MonLabo\Admin\Forms_Processing\Forms_Processing_Generic; 6 use MonLabo\Admin\{Csv}; 7 use MonLabo\Admin\Forms\Forms_Processing_Generic; 8 use MonLabo\Admin\Forms\{Forms_View}; 8 9 9 10 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); … … 55 56 */ 56 57 private function _input_one_file( string $form_name, string $label, string $description ): string { 57 $ html_forms = new Html_Forms();58 $forms_view = new Forms_View(); 58 59 $retval = '<div class="input-group">'; 59 60 $retval .= '<label for="' . esc_attr( $form_name ) . '">' . $label . '</label>'; 60 61 $retval .= '<input type="file" name="submit_' . esc_attr( $form_name ) . '" id="' . esc_attr( $form_name ) . '" accept=".csv">'; 61 $retval .= $ html_forms->description( $description );62 $retval .= $forms_view->description( $description ); 62 63 $retval .= '</div>'; 63 64 … … 75 76 */ 76 77 public function render_main_form(): string { 77 $ html_forms = new Html_Forms();78 $forms_view = new Forms_View(); 78 79 $html = new Html(); 79 80 … … 84 85 } 85 86 86 $retval = $ html_forms->begin_form( 'import_cvs_files' );87 $retval = $forms_view->begin_form( 'import_cvs_files' ); 87 88 88 89 // Persons import section. … … 128 129 ); 129 130 130 $retval .= '<br />' . $ html_forms->end_form(131 $retval .= '<br />' . $forms_view->end_form( 131 132 'import_cvs_files', 132 133 __( 'Import persons, teams or teams members table from CVS files', 'mon-laboratoire' ), -
mon-laboratoire/trunk/Admin/Import/class-import.php
r3355231 r3361909 4 4 use MonLabo\Lib\Access_Data\{Access_Data}; 5 5 use MonLabo\Frontend\{Html, Person_Or_Structure_View}; 6 use MonLabo\Admin\{Html_Forms,Messages}; 6 use MonLabo\Admin\{Messages}; 7 use MonLabo\Admin\Forms\{Forms_View}; 7 8 use MonLabo\Lib\Person_Or_Structure\{Person, Team, Person_Or_Structure}; 8 9 … … 128 129 */ 129 130 private function _retrieve_action_list() { 130 $ html_forms = new Html_Forms();131 $ html_forms->get_silent_transmited_ids(131 $forms_view = new Forms_View(); 132 $forms_view->get_silent_transmited_ids( 132 133 'persons_to_delete_submit_ids', 133 134 $this->_action_list['person']['id_to_delete'] 134 135 ); 135 $ html_forms->get_silent_transmited_array_of_struct(136 $forms_view->get_silent_transmited_array_of_struct( 136 137 'persons_to_modify_submit', 137 138 $this->_action_list['person']['item_to_modify'] 138 139 ); 139 $ html_forms->get_silent_transmited_array_of_struct(140 $forms_view->get_silent_transmited_array_of_struct( 140 141 'persons_to_create_submit', 141 142 $this->_action_list['person']['item_to_create'] 142 143 ); 143 $ html_forms->get_silent_transmited_ids(144 $forms_view->get_silent_transmited_ids( 144 145 'teams_to_delete_submit_ids', 145 146 $this->_action_list['team']['id_to_delete'] 146 147 ); 147 $ html_forms->get_silent_transmited_array_of_struct(148 $forms_view->get_silent_transmited_array_of_struct( 148 149 'teams_to_modify_submit', 149 150 $this->_action_list['team']['item_to_modify'] 150 151 ); 151 $ html_forms->get_silent_transmited_array_of_struct(152 $forms_view->get_silent_transmited_array_of_struct( 152 153 'teams_to_create_submit', 153 154 $this->_action_list['team']['item_to_create'] 154 155 ); 155 $ html_forms->get_silent_transmited_array_of_struct(156 $forms_view->get_silent_transmited_array_of_struct( 156 157 'teams_members_submit', 157 158 $this->_action_list['teams_members']['item_to_create'] … … 403 404 } 404 405 $message_txt .= '</ul>'; 405 $ html_forms = new Html_Forms();406 $message_txt .= $ html_forms->begin_form( 'confirm_post_import' );407 $message_txt .= $ html_forms->silent_transmit_ids( 'new_persons_ids', $new_persons_ids );408 $message_txt .= $ html_forms->silent_transmit_ids( 'new_teams_ids', $new_teams_ids );409 $message_txt .= $ html_forms->submit_button(406 $forms_view = new Forms_View(); 407 $message_txt .= $forms_view->begin_form( 'confirm_post_import' ); 408 $message_txt .= $forms_view->silent_transmit_ids( 'new_persons_ids', $new_persons_ids ); 409 $message_txt .= $forms_view->silent_transmit_ids( 'new_teams_ids', $new_teams_ids ); 410 $message_txt .= $forms_view->submit_button( 410 411 __( 'Cancel', 'mon-laboratoire' ), 411 412 'MonLaboHideDivButton', … … 414 415 'secondary' 415 416 ); 416 $message_txt .= ' ' . $ html_forms->end_form(417 $message_txt .= ' ' . $forms_view->end_form( 417 418 'confirm_post_import', 418 419 __( 'Create missing pages for new items', 'mon-laboratoire' ) . ' (' . strval( $creation_count ) . ')', -
mon-laboratoire/trunk/Admin/Import/class-post-import.php
r3355231 r3361909 1 1 <?php 2 2 namespace MonLabo\Admin\Import; 3 use MonLabo\Admin\ Html_Forms;4 use MonLabo\Admin\Forms _Processing\Forms_Processing_Advanced;3 use MonLabo\Admin\Forms\{Forms_View}; 4 use MonLabo\Admin\Forms\Forms_Processing_Advanced; 5 5 6 6 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); … … 33 33 public function processing() : string { 34 34 $retval = ''; 35 $ html_forms = new Html_Forms();35 $forms_view = new Forms_View(); 36 36 37 37 // Retrieve list of new persons and teams. 38 38 $new_persons_ids = array(); 39 39 $new_teams_ids = array(); 40 $ html_forms->get_silent_transmited_ids( 'new_persons_ids_submit_ids', $new_persons_ids );41 $ html_forms->get_silent_transmited_ids( 'new_teams_ids_submit_ids', $new_teams_ids );40 $forms_view->get_silent_transmited_ids( 'new_persons_ids_submit_ids', $new_persons_ids ); 41 $forms_view->get_silent_transmited_ids( 'new_teams_ids_submit_ids', $new_teams_ids ); 42 42 43 43 // Process page creation. -
mon-laboratoire/trunk/Admin/Import/class-pre-import.php
r3355231 r3361909 4 4 use MonLabo\Lib\Access_Data\Access_Data; 5 5 use MonLabo\Frontend\{Html, Person_Or_Structure_View}; 6 use MonLabo\Admin\{Html_Forms, Messages}; 6 use MonLabo\Admin\{Messages}; 7 use MonLabo\Admin\Forms\{Forms_View}; 7 8 8 9 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); … … 500 501 return $retval; 501 502 } 502 $htmlForms = new Html_Forms();503 $htmlForms = new Forms_View(); 503 504 $this->_fill_action_list( 'person' ); 504 505 $this->_fill_action_list( 'team' ); … … 570 571 */ 571 572 private function _silent_transmit_action_list() : string { 572 $htmlForms = new Html_Forms();573 $htmlForms = new Forms_View(); 573 574 $retval = ''; 574 575 $retval .= $htmlForms->silent_transmit_ids( -
mon-laboratoire/trunk/Admin/class-admin-init-pages.php
r3355231 r3361909 359 359 $privacy = Privacy::getInstance(); 360 360 $page = Admin_Page::init( 'MonLaboPagePrivacy', 'MonLabo_settings_group11' ); 361 $page->add_simple_html( '<p>' . __( 'This page is managing data privacy of persons. Please fill carrefully these fields to comply with the GDPR and individuals\' consent to dissemination.', 'mon-laboratoire' ) . '</p>' ); 361 $page->add_simple_html( '<p>' . __( 'This page is managing data privacy of persons. Please fill carrefully these fields to comply with the GDPR, individuals\' consent to dissemination and phishing precautions.', 'mon-laboratoire' ) . '</p>' ); 362 363 $page->add_section( 364 'MonLabo_pluginPage_section_data_privacy_common', 365 $this->_html->dashicon( 'admin-generic' ) . __( 'Trusted visitors who can view all personal data', 'mon-laboratoire' ) 366 ); 367 $page->add_simple_html( '<p>' . __( 'Define here the trusted visitors who will be able to view personal data (for example, from your institution\'s IP addresses).', 'mon-laboratoire' ) . '</p>' ); 368 $page->add_section( 'MonLabo_pluginPage_section_data_privacy_common2', '' ); 369 $page->add_field( 'radio', 'MonLabo_trusted_visitors', __( 'Trusted visitors', 'mon-laboratoire' ), ' ' ); 370 $page->show_fields( $privacy->is_display_trusted_IP_form() ); 371 $page->add_field( 372 'text_field', 373 'MonLabo_confidence_IPs', 374 __( 'Ranges of trusted IP addresses', 'mon-laboratoire' ), 375 __( 'Can be empty. Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP address/subnet mask. For several network ranges, separate them with commas.)', 'mon-laboratoire' ) 376 ); 377 $page->show_fields( true ); 362 378 363 379 $page->add_simple_html( '<fieldset id="group" class="MonLabo-fieldset">' ); 364 380 $page->add_section( 365 381 'MonLabo_pluginPage_section_data_privacy_email', 366 $this->_html->dashicon( 'email' ) . __( 'Person\'s emails', 'mon-laboratoire' ) 367 ); 368 $page->add_field( 369 'checkbox2', 370 'MonLabo_hide_persons_email', 371 __( 'Filter emails', 'mon-laboratoire' ), 372 __( 'Check this box to hide emails on the website.', 'mon-laboratoire' ) 373 ); 382 $this->_html->dashicon( 'admin-users' ) . __( 'Personal data', 'mon-laboratoire' ) 383 ); 384 374 385 $page->enable_fields( true ); 375 $page->show_fields( $privacy->is_filter_email() ); 376 $page->add_field( 'radio', 'MonLabo_email_privacy', '', ' ' ); 377 $page->show_fields( $privacy->is_email_replaced_by_form() ); 386 $page->add_field( 'radio', 'MonLabo_email_privacy', $this->_html->dashicon( 'email' ) . __( 'Email', 'mon-laboratoire' ), ' ' ); 387 $page->show_fields( $privacy->is_display_email_test() ); 378 388 $page->add_field( 'email_field', 'MonLabo_data_privacy_test_email', __( 'Test destination email', 'mon-laboratoire' ) ); 379 389 $page->add_field( 'button_test_send_email', 'MonLabo_do_test_email', '', '' ); 380 390 $page->show_fields( true ); 381 $page->add_simple_html( '</fieldset>' ); 382 //$page->add_section( 'MonLabo_pluginPage_section_data_privacy2', __( 'Data privacy of persons', 'mon-laboratoire' )); 391 $page->add_field( 'radio', 'MonLabo_room_privacy', $this->_html->dashicon( 'location' ) . __( 'Room or office', 'mon-laboratoire' ), ' ' ); 383 392 384 $page->add_simple_html( '<fieldset id="group" class="MonLabo-fieldset">' ); 385 $page->add_section( 386 'MonLabo_pluginPage_section_data_privacy_room', 387 $this->_html->dashicon( 'admin-home' ) . __( 'Person\'s rooms or offices', 'mon-laboratoire' ) 388 ); 389 $page->add_field( 390 'checkbox2', 391 'MonLabo_hide_persons_room', 392 __( 'Filter rooms', 'mon-laboratoire' ), 393 __( 'Check this box to hide rooms on the website.', 'mon-laboratoire' ) 394 ); 395 $page->show_fields( $privacy->is_filter_room() ); 396 $page->add_field( 'radio', 'MonLabo_room_privacy', '', ' ' ); 397 $page->show_fields( true ); 398 $page->add_simple_html( '</fieldset>' ); 399 400 $page->add_simple_html( '<fieldset id="group" class="MonLabo-fieldset">' ); 401 $page->add_section( 402 'MonLabo_pluginPage_section_data_privacy_phone', 403 $this->_html->dashicon( 'phone' ) . __( 'Person\'s phones', 'mon-laboratoire' ) 404 ); 405 $page->add_field( 406 'checkbox2', 407 'MonLabo_hide_persons_phone', 408 __( 'Filter phones', 'mon-laboratoire' ), 409 __( 'Check this box to hide phones on the website.', 'mon-laboratoire' ) 410 ); 411 $page->show_fields( $privacy->is_filter_phone() ); 412 $page->add_field( 'radio', 'MonLabo_phone_privacy', '', ' ' ); 393 $page->add_section( 'MonLabo_pluginPage_section_data_privacy2',' '); 394 395 $page->add_field( 'radio', 'MonLabo_phone_privacy', $this->_html->dashicon( 'phone' ) . __( 'Phone', 'mon-laboratoire' ), ' ' ); 413 396 $page->show_fields( $privacy->is_display_switchboard_fields() ); 414 397 $page->add_field( 'text_field', 'MonLabo_switchboard_number', __( 'Switchboard number', 'mon-laboratoire' ), __( 'Ex: +33 1 00 00 00 00', 'mon-laboratoire' ) ); 415 398 $page->add_field( 'two_text_fields', 'MonLabo_switchboard_nature', __( 'Type of switchboard number to be indicated', 'mon-laboratoire' ) . ' (en/fr)', '', '', 'MonLabo_switchboard_nature' ); 416 399 $page->show_fields( true ); 417 $page->add_simple_html( '</fieldset>' ); 418 419 $page->add_simple_html( '<fieldset id="group" class="MonLabo-fieldset">' ); 420 $page->add_section( 421 'MonLabo_pluginPage_section_data_privacy_photo', 422 $this->_html->dashicon( 'camera' ) . __( 'Personal pictures', 'mon-laboratoire' ) 423 ); 424 $page->add_field( 425 'checkbox2', 426 'MonLabo_hide_persons_photo', 427 __( 'Filter person\'s photo', 'mon-laboratoire' ), 428 __( 'Check this box to hide personal pictures on the website.', 'mon-laboratoire' ) 429 ); 430 $page->show_fields( $privacy->is_filter_photo() ); 431 $page->add_field( 'radio', 'MonLabo_photo_privacy', '', ' ' ); 400 $page->add_field( 'radio', 'MonLabo_photo_privacy', $this->_html->dashicon( 'businessperson' ) . __( 'Photo', 'mon-laboratoire' ), ' ' ); 432 401 $page->show_fields( true ); 433 402 $page->add_simple_html( '</fieldset>' ); 434 435 $page->show_fields( $privacy->is_display_trusted_range_ip_field() );436 $page->add_section(437 'MonLabo_pluginPage_section_data_privacy_common',438 $this->_html->dashicon( 'admin-generic' ) . __( 'Common parameters', 'mon-laboratoire' )439 );440 $page->add_field(441 'text_field',442 'MonLabo_confidence_IPs',443 __( 'Ranges of trusted IP addresses', 'mon-laboratoire' ),444 __( 'Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP address/subnet mask. For several network ranges, separate them with commas.)', 'mon-laboratoire' )445 );446 $page->show_fields( true );447 403 } 448 404 -
mon-laboratoire/trunk/Admin/class-admin-page.php
r3355231 r3361909 3 3 4 4 use MonLabo\Lib\App; 5 use MonLabo\Admin\Forms\Options_Forms_View; 5 6 6 7 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); … … 51 52 52 53 /** 53 * Instance of Settings_Fieldsclass for managing form fields.54 * 55 * @var Settings_Fields56 * @access private 57 */ 58 private $_ adminSettingsField= null;54 * Instance of Options_Forms_View class for managing form fields. 55 * 56 * @var Options_Forms_View 57 * @access private 58 */ 59 private $_optionsFormsView = null; 59 60 60 61 /** … … 81 82 */ 82 83 private function __construct() { 83 $this->_ adminSettingsField = new Settings_Fields();84 $this->_optionsFormsView = new Options_Forms_View(); 84 85 } 85 86 … … 201 202 $titletext = ( $this->_hide_fields === true ) ? '<span class="MonLabo_hide">' . $title . '</span>' : $title; 202 203 // Add the field using Settings API 203 $this->_ adminSettingsField->add(204 $this->_optionsFormsView->add( 204 205 $type, 205 206 $titletext /*$this->_disable_display ? '' : $titletext*/, -
mon-laboratoire/trunk/Admin/class-admin.php
r3355231 r3361909 3 3 4 4 use MonLabo\Lib\Person_Or_Structure\{Person, Team, Unit}; 5 use MonLabo\Admin\Forms_Processing\{Forms_Processing}; 5 use MonLabo\Admin\Forms\{Forms_Processing}; 6 use MonLabo\Admin\Forms\{Wp_Post_Forms_View}; 6 7 use MonLabo\Frontend\{Contact_Webservices}; 7 8 … … 161 162 $page_number = $forms_processing->get_POST_number( 'page_number' ); 162 163 $type = $forms_processing->get_POST_simple_string( 'type' ); 163 $ html_forms = new Html_Forms();164 $text = $ html_forms->update_page_infobox( $item_id, $page_number, $wp_post_id, $type );164 $multipost_forms_view = new Wp_Post_Forms_View(); 165 $text = $multipost_forms_view->update_page_infobox( $item_id, $page_number, $wp_post_id, $type ); 165 166 $response = array( 166 167 'type' => 'success', -
mon-laboratoire/trunk/Admin/js/MonLabo-admin.js
r3355231 r3361909 131 131 function ajaxLoadPostThumbnailNow( pageNumber, selectName ) { 132 132 var divId, wpPostId, radioStatus, type, itemId; 133 134 133 // Set default values 135 pageNumber = pageNumber || '__no_change__'; 134 if (pageNumber === '') { 135 pageNumber = '__no_change__'; 136 } 136 137 selectName = selectName || ''; 137 138 … … 613 614 + ',.MonLabo_data_privacy_test_email span.MonLabo_hide' /*test mail title*/ 614 615 + ',.MonLabo_test_send_email'; /*test mail button*/ 615 if ( 616 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_email]"]' ).is( ':checked' ) && 617 ( 'form' === emailPrivacyVal || 'form_local_show' === emailPrivacyVal ) 618 ) { 616 if ( 'form_local_show' === emailPrivacyVal ) { 619 617 $( objectsToToggle ).show(); 620 618 } else { … … 636 634 + ',.MonLabo_switchboard_nature span.MonLabo_hide' /*switchboard nature title*/ 637 635 + ',.MonLabo_switchboard_nature table.MonLabo_hide'; /*switchboard nature */ 638 if ( 639 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_phone]"]' ).is( ':checked' ) && 640 ( 'switchboard_local_show' === phonePrivacyVal || 'switchboard' === phonePrivacyVal ) 641 ) { 636 if ( 'switchboard_local_show' === phonePrivacyVal ) { 642 637 $( objectsToToggle ).show(); 643 638 } else { … … 652 647 */ 653 648 function toggleIpOptions() { 654 var emailPrivacyVal = $( 'input[name="MonLabo_settings_group11[MonLabo_email_privacy]"]:checked' ).val(), 655 roomPrivacyVal = $( 'input[name="MonLabo_settings_group11[MonLabo_room_privacy]"]:checked' ).val(), 656 phonePrivacyVal = $( 'input[name="MonLabo_settings_group11[MonLabo_phone_privacy]"]:checked' ).val(), 657 photoPrivacyVal = $( 'input[name="MonLabo_settings_group11[MonLabo_photo_privacy]"]:checked' ).val(), 658 emailPrivacyIpCondition = $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_email]"]' ).is( ':checked' ) && ( 'local_show' === emailPrivacyVal || 'form_local_show' === emailPrivacyVal ), 659 roomPrivacyIpCondition = $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_room]"]' ).is( ':checked' ) && ( 'local_show' === roomPrivacyVal ), 660 phonePrivacyIpCondition = $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_phone]"]' ).is( ':checked' ) && ( 'local_show' === phonePrivacyVal || 'switchboard_local_show' === phonePrivacyVal ), 661 photoPrivacyIpCondition = $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_photo]"]' ).is( ':checked' ) && ( 'local_show' === photoPrivacyVal ), 662 objectsToToggle = '.MonLabo_confidence_IPs' /*IP form*/ 663 + ',.MonLabo_confidence_IPs span.MonLabo_hide'; /*IP title*/ 664 665 if ( emailPrivacyIpCondition || roomPrivacyIpCondition || phonePrivacyIpCondition || photoPrivacyIpCondition ) { 649 var trustedVisitorVal = $( 'input[name="MonLabo_settings_group11[MonLabo_trusted_visitors]"]:checked' ).val(), 650 objectsToToggle = '.MonLabo_confidence_IPs' //IP form 651 + ',.MonLabo_confidence_IPs span.MonLabo_hide'; //IP title 652 if ( 'trust_ip_zone' === trustedVisitorVal ) { 666 653 $( objectsToToggle ).show(); 667 654 } else { … … 669 656 } 670 657 } 671 672 // Bind events for privacy options673 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_email]"]' ).on( 'change', { field: 'MonLabo_email_privacy' }, toggleClosestInputGroup11 );674 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_email]"]' ).on( 'change', toggleEmailOptions );675 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_room]"]' ).on( 'change', { field: 'MonLabo_room_privacy' }, toggleClosestInputGroup11 );676 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_phone]"]' ).on( 'change', { field: 'MonLabo_phone_privacy' }, toggleClosestInputGroup11 );677 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_photo]"]' ).on( 'change', { field: 'MonLabo_photo_privacy' }, toggleClosestInputGroup11 );678 679 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_phone]"]' ).on( 'change', toggleSwitchboardOptions );680 658 $( 'input[name="MonLabo_settings_group11[MonLabo_phone_privacy]"]' ).on( 'change', toggleSwitchboardOptions ); 681 682 $( 'input[name="MonLabo_settings_group11[MonLabo_email_privacy]"]' ).on( 'change', toggleIpOptions ); 659 $( 'input[name="MonLabo_settings_group11[MonLabo_trusted_visitors]"]' ).on( 'change', toggleIpOptions ); 683 660 $( 'input[name="MonLabo_settings_group11[MonLabo_email_privacy]"]' ).on( 'change', toggleEmailOptions ); 684 $( 'input[name="MonLabo_settings_group11[MonLabo_room_privacy]"]' ).on( 'change', toggleIpOptions );685 $( 'input[name="MonLabo_settings_group11[MonLabo_phone_privacy]"]' ).on( 'change', toggleIpOptions );686 $( 'input[name="MonLabo_settings_group11[MonLabo_photo_privacy]"]' ).on( 'change', toggleIpOptions );687 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_email]"]' ).on( 'change', toggleIpOptions );688 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_room]"]' ).on( 'change', toggleIpOptions );689 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_phone]"]' ).on( 'change', toggleIpOptions );690 $( 'input[name="MonLabo_settings_group11[MonLabo_hide_persons_photo]"]' ).on( 'change', toggleIpOptions );691 661 } 692 662 -
mon-laboratoire/trunk/Frontend/Contact_Form/class-contact-form-processing.php
r3355504 r3361909 2 2 namespace MonLabo\Frontend\Contact_Form; 3 3 4 use MonLabo\Lib\ Lib;4 use MonLabo\Lib\{Lib,Translate}; 5 5 6 6 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); … … 37 37 38 38 /** 39 * Instance of Translate helper. 40 * 41 * @access protected 42 * @var Translate 43 */ 44 protected $_translate; 45 46 /** 39 47 * Constructor. 40 48 * 49 * @param string $language Display language code. 41 50 * @param array<string,mixed> $post_data Data for form processing. 42 51 */ 43 public function __construct( array $post_data = array() ) { 52 public function __construct( string $language = '', array $post_data = array() ) { 53 $this->_translate = new Translate( $language ); 44 54 if ( empty( $post_data ) ) { 45 55 if ( ! empty( $_POST ) ) { … … 183 193 return ''; 184 194 } 185 $contact_form_view = new Contact_Form_View( );195 $contact_form_view = new Contact_Form_View( $this->_translate->get_lang() ); 186 196 return $contact_form_view->contact_form( $person_id ); 187 197 } … … 231 241 return ''; 232 242 } 233 $contact_form_view = new Contact_Form_View( );243 $contact_form_view = new Contact_Form_View( $this->_translate->get_lang() ); 234 244 235 245 if( ! $contact_form_view->verify_math_captcha( $this->post ) ){ … … 266 276 return __( 'ERROR : The email could not be sent.', 'mon-laboratoire' ); 267 277 } 268 return sprintf( __( 'Mail sent to %s.', 'mon-laboratoire' ) , esc_attr( $person_first_name . ' ' . $person_last_name ) ); 278 return sprintf( 279 $this->_translate->tr__( 'Mail sent to' ) . ' %s.', 280 esc_attr( $person_first_name . ' ' . $person_last_name ) 281 ); 269 282 } 270 283 } -
mon-laboratoire/trunk/Frontend/Contact_Form/class-contact-form-view.php
r3355231 r3361909 3 3 4 4 use MonLabo\Frontend\Person_Or_Structure_View; 5 use MonLabo\Lib\{Translate}; 5 6 6 7 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); … … 25 26 26 27 /** 28 * Instance of Translate helper. 29 * 30 * @access protected 31 * @var Translate 32 */ 33 protected $_translate; 34 35 /** 36 * Initialize the class and set its properties. 37 * 38 * @param string $language Display language code. 39 * @access public 40 */ 41 public function __construct( string $language = '' ) { 42 $this->_translate = new Translate( $language ); 43 } 44 45 /** 27 46 * Gets the button for calling contact form for replacing email in privacy filtering conditions. 28 47 * … … 33 52 */ 34 53 public function call_button( $person_info, $mode = 'button' ) : string { 35 $contact_form_processing = new Contact_Form_Processing( );54 $contact_form_processing = new Contact_Form_Processing( $this->_translate->get_lang() ); 36 55 $output = $contact_form_processing->form_call_mail_processing( $person_info->id ); 37 56 if ( ! empty( $output ) ) { … … 62 81 "submit_{$item_type}", 63 82 $class2, 64 __( 'Write email', 'mon-laboratoire' )83 $this->_translate->tr__( 'Write email' ) 65 84 ); 66 85 … … 77 96 public function contact_form( int $person_id ) : string { 78 97 $output = ''; 79 // $contact_form_processing = new Contact_Form_Processing();80 // $output = $contact_form_processing->form_call_mail_processing( $person_id );81 82 98 $output .= '<form method="post" action="#" class="MonLaboMailForm">'; 83 99 $output .= sprintf( '<input type="hidden" name="person_id" value="%d" />', $person_id ); … … 86 102 //$output .= '<label for="mail">' . __( 'Your email', 'mon-laboratoire' ) . '</label>'; 87 103 $output .= '<input type="email" id="mail" name="MonLao_MailFrom" placeholder="'; 88 $output .= __( 'Your email', 'mon-laboratoire' ) . '">';104 $output .= $this->_translate->tr__( 'Your email' ) . '">'; 89 105 90 106 // Subject field 91 107 $output .= '<input type="text" id="subject" name="MonLabo_MailSubject" placeholder="'; 92 $output .= __( 'Subject of your message', 'mon-laboratoire' ) . '">';108 $output .= $this->_translate->tr__( 'Subject of your message' ) . '">'; 93 109 94 110 // Message content 95 111 //$output .= '<label for="content">' . __( 'Content...', 'mon-laboratoire' ) . '</label>'; 96 112 $output .= '<textarea id="subject" name="MonLabo_MailContent" placeholder="'; 97 $output .= __( 'Write something...', 'mon-laboratoire' );113 $output .= $this->_translate->tr__( 'Write something' ) . '...'; 98 114 $output .= '" style="height:200px"></textarea>'; 99 115 … … 107 123 '<button id="%s" class="MonLaboMailForm btn btn-oldstyle">%s</button>', 108 124 "submit_{$item_type}", 109 __( 'Send email', 'mon-laboratoire' )125 $this->_translate->tr__( 'Send email' ) 110 126 ); 111 127 … … 131 147 . '</div>', 132 148 $math_question, 133 __( 'Answer', 'mon-laboratoire' ),149 $this->_translate->tr__( 'Answer' ), 134 150 $num1, 135 151 $num2 -
mon-laboratoire/trunk/Frontend/Shortcodes/class-generic-view.php
r3355231 r3361909 244 244 } 245 245 if ( $privacy->is_email_replaced_by_form() ){ 246 $contact_form_view = new Contact_Form_View( );246 $contact_form_view = new Contact_Form_View( $this->_translate->get_lang() ); 247 247 if ( $is_contact_form_embeded ) { 248 248 return $contact_form_view->call_button( $person_info, 'button' ); -
mon-laboratoire/trunk/Lib/class-app.php
r3355231 r3361909 188 188 'MonLabo_custom_text_Supervisors_fr' => 'Encadrant⋅e⋅s', 189 189 'MonLabo_custom_text_Write_email_en' => 'Write email', 190 'MonLabo_custom_text_Write_email_fr' => 'Écrire un courriel', 190 'MonLabo_custom_text_Write_email_fr' => 'Écrire un courriel', 191 'MonLabo_custom_text_Send_email_en' => 'Send email', 192 'MonLabo_custom_text_Send_email_fr' => 'Envoyer le courriel', 193 'MonLabo_custom_text_Your_email_en' => 'Your email', 194 'MonLabo_custom_text_Your_email_fr' => 'Votre courriel', 195 'MonLabo_custom_text_Subject_of_your_message_en' => 'Subject of your message', 196 'MonLabo_custom_text_Subject_of_your_message_fr' => 'Objet de votre message', 197 'MonLabo_custom_text_Write_something_en' => 'Write something', 198 'MonLabo_custom_text_Write_something_fr' => 'Écrire quelquchose', 199 'MonLabo_custom_text_Answer_en' => 'Answer', 200 'MonLabo_custom_text_Answer_fr' => 'Réponse', 201 'MonLabo_custom_text_Mail_sent_to_en' => 'Mail sent to', 202 'MonLabo_custom_text_Mail_sent_to_fr' => 'Courriel envoyé à', 191 203 ); 192 204 … … 248 260 * Option 11 values 249 261 */ 262 const PRIVACY_SHOW = 'show'; 250 263 const PRIVACY_HIDE = 'hide'; 251 const PRIVACY_FORM = 'form';252 264 const PRIVACY_LOCAL_SHOW = 'local_show'; 253 265 const PRIVACY_FORM_LOCAL_SHOW = 'form_local_show'; 254 const PRIVACY_SWITCHBOARD = 'switchboard';255 266 const PRIVACY_SWITCHBOARD_LOCAL_SHOW = 'switchboard_local_show'; 267 const PRIVACY_TRUST_EVERYBODY = 'no_trust_zone'; 268 const PRIVACY_TRUST_LOGGED_IN_USERS = 'trust_logged_in_users'; 269 const PRIVACY_TRUST_IP_ZONE = 'trust_ip_zone'; 270 256 271 257 272 /** 258 273 * Default options for privacy settings 259 274 * 260 * @var non-empty-array {MonLabo_hide_persons_email:string}275 * @var non-empty-array<string,string> 261 276 */ 262 277 const OPTIONS11_DEFAULT = array( 263 'MonLabo_hide_persons_email' => '0', 264 'MonLabo_hide_persons_room' => '0', 265 'MonLabo_hide_persons_phone' => '0', 266 'MonLabo_hide_persons_photo' => '0', 267 'MonLabo_email_privacy' => self::PRIVACY_HIDE, 268 'MonLabo_room_privacy' => self::PRIVACY_HIDE, 269 'MonLabo_phone_privacy' => self::PRIVACY_HIDE, 270 'MonLabo_photo_privacy' => self::PRIVACY_HIDE, 278 'MonLabo_trusted_visitors' => 'no_trust_zone', 279 'MonLabo_email_privacy' => self::PRIVACY_SHOW, 280 'MonLabo_room_privacy' => self::PRIVACY_SHOW, 281 'MonLabo_phone_privacy' => self::PRIVACY_SHOW, 282 'MonLabo_photo_privacy' => self::PRIVACY_SHOW, 271 283 'MonLabo_confidence_IPs' => '', 272 284 'MonLabo_switchboard_number' => '', -
mon-laboratoire/trunk/Lib/class-db.php
r3355376 r3361909 26 26 * fill_options_with_custom_values_if_empty( array $options_DEFAULT ) 27 27 * function fill_options_with_default_values_if_empty() 28 * _convert_version_string_into_float( string $version_string ): float 28 29 * migrate() 29 30 * migrate_to_version_3_1() … … 416 417 417 418 /** 419 * Convert text version of software into float 420 * Convert "XX.YY.ZZ" into X.YYZZ 421 * 422 * @param string $version_string 423 * @return float 424 * @access private 425 */ 426 private function _convert_version_string_into_float( string $version_string ): float { 427 $parts = explode( '.', $version_string ); 428 return 429 round( 430 floatval( 431 10000 * ( (int)$parts[0] ) 432 + 100 * (int)( $parts[1] ?? 0 ) 433 + (int)( $parts[2] ?? 0 ) ) 434 / 10000, 435 4 436 ); 437 } 438 439 440 /** 418 441 * Test if database needs updates, and do if necessary 419 442 * … … 427 450 if ( '0' === $options->activated_version ) { 428 451 //Enter here only if MonLabo_activated_version does not exist => new db 429 $plugin_version = \MONLABO_VERSION;430 $options->set( 'activated_version', $plugin_version);452 $plugin_version = $this->_convert_version_string_into_float( \MONLABO_VERSION ); 453 $options->set( 'activated_version', \MONLABO_VERSION ); 431 454 } else { 432 $plugin_version = floatval( $options->activated_version ); //To compare455 $plugin_version = $this->_convert_version_string_into_float( $options->activated_version ); //To compare 433 456 } 434 457 if ( $plugin_version < 3.1 ) { … … 447 470 if ( $plugin_version < 4.8 ) { 448 471 $this->migrate_to_version_4_8(); 472 } 473 if ( $plugin_version < 5.1 ) { 474 $this->migrate_to_version_5_1(); 449 475 } 450 476 $options->set( 'activated_version', \MONLABO_VERSION ); … … 699 725 700 726 /** 727 * Migrate options from version 5.0 to 5.1 728 * 729 * @return Db For method chaining 730 */ 731 public function migrate_to_version_5_1() : self { 732 $options11 = get_option( 'MonLabo_settings_group11' ); 733 if ( empty( $options11 ) ) { 734 $options11 = App::OPTIONS11_DEFAULT; 735 update_option( 'MonLabo_settings_group11', $options11 ); 736 return $this; 737 } 738 if( empty( $options11['MonLabo_hide_persons_email'] ) 739 and empty( $options11['MonLabo_hide_persons_room'] ) 740 and empty( $options11['MonLabo_hide_persons_phone'] ) 741 and empty( $options11['MonLabo_hide_persons_photo'] ) 742 ) { 743 $options11['MonLabo_trusted_visitors'] = 'no_trust_zone'; 744 } 745 if( empty( $options11['MonLabo_hide_persons_email'] ) ) { 746 $options11['MonLabo_email_privacy'] = 'show'; 747 } else { 748 switch ( $options11['MonLabo_email_privacy'] ) { 749 //case 'hide': // no change 750 case 'form': 751 $options11['MonLabo_email_privacy'] = 'form_local_show'; 752 break; 753 case 'local_show': 754 case 'form_local_show': 755 if ( ! empty( $options11['MonLabo_confidence_IPs'] ) ) { 756 $options11['MonLabo_trusted_visitors'] = 'trust_ip_zone'; 757 } 758 break; 759 } 760 } 761 if( empty( $options11['MonLabo_hide_persons_room'] ) ) { 762 $options11['MonLabo_room_privacy'] = 'show'; 763 } else { 764 switch ( $options11['MonLabo_hide_persons_room'] ) { 765 //case 'hide': // no change 766 case 'local_show': 767 if ( ! empty( $options11['MonLabo_confidence_IPs'] ) ) { 768 $options11['MonLabo_trusted_visitors'] = 'trust_ip_zone'; 769 } 770 break; 771 } 772 } 773 if( empty( $options11['MonLabo_hide_persons_phone'] ) ) { 774 $options11['MonLabo_phone_privacy'] = 'show'; 775 } else { 776 switch ( $options11['MonLabo_hide_persons_phone'] ) { 777 //case 'hide': // no change 778 case 'switchboard': 779 $options11['MonLabo_hide_persons_phone'] = 'switchboard_local_show'; 780 break; 781 case 'local_show': 782 case 'switchboard_local_show': 783 if ( ! empty( $options11['MonLabo_confidence_IPs'] ) ) { 784 $options11['MonLabo_trusted_visitors'] = 'trust_ip_zone'; 785 } 786 break; 787 } 788 } 789 if( empty( $options11['MonLabo_hide_persons_photo'] ) ) { 790 $options11['MonLabo_photo_privacy'] = 'show'; 791 } else { 792 switch ( $options11['MonLabo_hide_persons_photo'] ) { 793 //case 'hide': // no change 794 case 'local_show': 795 if ( ! empty( $options11['MonLabo_confidence_IPs'] ) ) { 796 $options11['MonLabo_trusted_visitors'] = 'trust_ip_zone'; 797 } 798 break; 799 } 800 } 801 if ( empty( $options11['MonLabo_trusted_visitors'] ) ) { 802 $options11['MonLabo_trusted_visitors'] = 'no_trust_zone'; 803 } 804 unset( $options11['MonLabo_hide_persons_email'] ); 805 unset( $options11['MonLabo_hide_persons_room'] ); 806 unset( $options11['MonLabo_hide_persons_phone'] ); 807 unset( $options11['MonLabo_hide_persons_photo'] ); 808 update_option( 'MonLabo_settings_group11', $options11 ); 809 return $this; 810 } 811 812 813 /** 701 814 * Delete all options 702 815 * -
mon-laboratoire/trunk/Lib/class-privacy.php
r3355231 r3361909 15 15 * Methods: 16 16 * __construct() 17 * is_filter_email() 18 * is_filter_room() 19 * is_filter_phone() 20 * is_filter_photo() 17 * _is_hide_generic( string $privacy_option ) 21 18 * is_hide_email() 22 19 * is_hide_room() 23 20 * is_hide_phone() 24 21 * is_hide_photo() 25 * _is_hide_param( string $checkbox_field, string $radio_field )26 22 * _calculate_trust_status() 27 * is_display_trusted_range_ip_field()28 23 * is_display_switchboard_fields() 29 24 * is_phone_replaced_with_switchboard() … … 63 58 private function __construct() { 64 59 $this->_options = get_option( 'MonLabo_settings_group11' ); 65 if ( $this->is_display_trusted_range_ip_field() ) { 66 $this->_is_trusted_user = $this->_calculate_trust_status(); 67 } 68 } 69 70 /** 71 * Checks if email filtering is enabled. 72 * 73 * @return bool True if email filtering is enabled, false otherwise. 74 */ 75 public function is_filter_email(): bool { 76 return ! empty( $this->_options['MonLabo_hide_persons_email'] ); 77 } 78 79 /** 80 * Checks if room filtering is enabled. 81 * 82 * @return bool True if room filtering is enabled, false otherwise. 83 */ 84 public function is_filter_room(): bool { 85 return ! empty( $this->_options['MonLabo_hide_persons_room'] ); 86 } 87 88 /** 89 * Checks if phone filtering is enabled. 90 * 91 * @return bool True if phone filtering is enabled, false otherwise. 92 */ 93 public function is_filter_phone(): bool { 94 return ! empty( $this->_options['MonLabo_hide_persons_phone'] ); 95 } 96 97 /** 98 * Checks if photo filtering is enabled. 99 * 100 * @return bool True if photo filtering is enabled, false otherwise. 101 */ 102 public function is_filter_photo(): bool { 103 return ! empty( $this->_options['MonLabo_hide_persons_photo'] ); 104 } 60 $this->_is_trusted_user = $this->_calculate_trust_status(); 61 } 62 63 /** 64 * Generic function for is_hide_email(), is_hide_room(), is_hide_phone() and is_hide_photo() 65 * 66 * @param string $privacy_option Name of the privacy option 67 * @return bool True if item should be hidden, false otherwise. 68 */ 69 public function _is_hide_generic( string $privacy_option ): bool { 70 if ( 71 ! isset( $this->_options[ $privacy_option ] ) 72 || App::PRIVACY_SHOW === $this->_options[ $privacy_option ] 73 ) { 74 return false; 75 } 76 if ( App::PRIVACY_HIDE === $this->_options[ $privacy_option ] ) { 77 return true; 78 } 79 return ! $this->_is_trusted_user; 80 } 81 105 82 106 83 /** … … 110 87 */ 111 88 public function is_hide_email(): bool { 112 return $this->_is_hide_ param( 'MonLabo_hide_persons_email','MonLabo_email_privacy' );89 return $this->_is_hide_generic( 'MonLabo_email_privacy' ); 113 90 } 114 91 … … 119 96 */ 120 97 public function is_hide_room(): bool { 121 return $this->_is_hide_ param( 'MonLabo_hide_persons_room','MonLabo_room_privacy' );98 return $this->_is_hide_generic( 'MonLabo_room_privacy' ); 122 99 } 123 100 … … 128 105 */ 129 106 public function is_hide_phone(): bool { 130 return $this->_is_hide_ param( 'MonLabo_hide_persons_phone','MonLabo_phone_privacy' );107 return $this->_is_hide_generic( 'MonLabo_phone_privacy' ); 131 108 } 132 109 … … 137 114 */ 138 115 public function is_hide_photo(): bool { 139 return $this->_is_hide_param( 'MonLabo_hide_persons_photo', 'MonLabo_photo_privacy' ); 140 } 141 142 /** 143 * Internal helper to check if a parameter should be hidden based on settings. 144 * 145 * @param string $checkbox_field The checkbox field name in options. 146 * @param string $radio_field The radio field name in options. 147 * @return bool True if the parameter should be hidden, false otherwise. 148 * @access private 149 */ 150 private function _is_hide_param( string $checkbox_field, string $radio_field ): bool { 151 return ! empty( $this->_options[ $checkbox_field ] ) 152 && ( 153 in_array( 154 $this->_options[ $radio_field ] ?? App::PRIVACY_HIDE, 155 array( App::PRIVACY_HIDE, App::PRIVACY_FORM, App::PRIVACY_SWITCHBOARD ) 156 ) 157 || ! $this->_is_trusted_user 158 ); 116 return $this->_is_hide_generic( 'MonLabo_photo_privacy' ); 159 117 } 160 118 … … 168 126 */ 169 127 private function _calculate_trust_status(): bool { 128 if ( 129 ! isset( $this->_options['MonLabo_trusted_visitors'] ) 130 || App::PRIVACY_TRUST_EVERYBODY === $this->_options['MonLabo_trusted_visitors'] 131 ) { 132 return true; 133 } 134 170 135 // First: test if user logged-in 171 136 if ( is_user_logged_in() ) { … … 198 163 return false; 199 164 } 200 201 /**202 * Determines if trusted IP range field should be displayed.203 *204 * @return bool True if the trusted IP range field should be displayed.205 */206 public function is_display_trusted_range_ip_field() : bool {207 $display = false;208 $fields = array(209 'MonLabo_hide_persons_email' => 'MonLabo_email_privacy',210 'MonLabo_hide_persons_room' => 'MonLabo_room_privacy',211 'MonLabo_hide_persons_phone' => 'MonLabo_phone_privacy',212 'MonLabo_hide_persons_photo' => 'MonLabo_photo_privacy',213 );214 foreach ( $fields as $checkbox_field => $radio_field ) {215 $display += ! empty( $this->_options[ $checkbox_field ] )216 && ! empty( $this->_options[ $radio_field ] )217 && in_array(218 $this->_options[ $radio_field ],219 array( App::PRIVACY_LOCAL_SHOW, App::PRIVACY_FORM_LOCAL_SHOW, App::PRIVACY_SWITCHBOARD_LOCAL_SHOW )220 );221 }222 return (bool) $display;223 }224 165 225 166 /** … … 229 170 */ 230 171 public function is_display_switchboard_fields() : bool { 231 if ( empty( $this->_options['MonLabo_hide_persons_phone'] ) || empty( $this->_options['MonLabo_phone_privacy'] ) ) { 232 return false; 233 } 234 if ( App::PRIVACY_SWITCHBOARD === $this->_options['MonLabo_phone_privacy'] 235 || App::PRIVACY_SWITCHBOARD_LOCAL_SHOW === $this->_options['MonLabo_phone_privacy'] 172 if( ! isset( $this->_options['MonLabo_phone_privacy'] ) ) { 173 return false; 174 } 175 if ( App::PRIVACY_SWITCHBOARD_LOCAL_SHOW === $this->_options['MonLabo_phone_privacy'] 236 176 ) { 237 177 return true; … … 240 180 } 241 181 182 183 /** 184 * Determines if switcboard and nature fields should be displayed. 185 * 186 * @return bool True if fields have to be displayed 187 */ 188 public function is_display_email_test() : bool { 189 if( ! isset( $this->_options['MonLabo_email_privacy'] ) ) { 190 return false; 191 } 192 if ( App::PRIVACY_FORM_LOCAL_SHOW === $this->_options['MonLabo_email_privacy'] 193 ) { 194 return true; 195 } 196 return false; 197 } 198 199 200 /** 201 * Determines if switcboard and nature fields should be displayed. 202 * 203 * @return bool True if fields have to be displayed 204 */ 205 public function is_display_trusted_IP_form() : bool { 206 if( ! isset( $this->_options['MonLabo_trusted_visitors'] ) ) { 207 return false; 208 } 209 if ( App::PRIVACY_TRUST_IP_ZONE === $this->_options['MonLabo_trusted_visitors'] ) { 210 return true; 211 } 212 return false; 213 } 242 214 243 215 /** … … 247 219 */ 248 220 public function is_phone_replaced_with_switchboard() : bool { 249 if ( empty( $this->_options['MonLabo_hide_persons_phone'] ) || empty( $this->_options['MonLabo_phone_privacy']) ) {221 if( ! isset( $this->_options['MonLabo_phone_privacy'] ) ) { 250 222 return false; 251 223 } 252 224 if ( 253 App::PRIVACY_SWITCHBOARD === $this->_options['MonLabo_phone_privacy'] 254 || ( 255 App::PRIVACY_SWITCHBOARD_LOCAL_SHOW === $this->_options['MonLabo_phone_privacy'] 256 && ! $this->_is_trusted_user 257 ) 225 App::PRIVACY_SWITCHBOARD_LOCAL_SHOW === $this->_options['MonLabo_phone_privacy'] 226 && ! $this->_is_trusted_user 258 227 ) { 259 228 return true; … … 268 237 */ 269 238 public function is_email_replaced_by_form() : bool { 270 if ( empty( $this->_options['MonLabo_hide_persons_email'] ) || empty( $this->_options['MonLabo_email_privacy']) ) {239 if( ! isset( $this->_options['MonLabo_email_privacy'] ) ) { 271 240 return false; 272 241 } 273 242 if ( 274 App::PRIVACY_FORM === $this->_options['MonLabo_email_privacy'] 275 || ( 276 App::PRIVACY_FORM_LOCAL_SHOW === $this->_options['MonLabo_email_privacy'] 277 && ! $this->_is_trusted_user 278 ) 243 App::PRIVACY_FORM_LOCAL_SHOW === $this->_options['MonLabo_email_privacy'] 244 && ! $this->_is_trusted_user 279 245 ) { 280 246 return true; -
mon-laboratoire/trunk/languages/mon-laboratoire-fr_FR.po
r3355231 r3361909 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2020-10-08 18:05+0000\n" 6 "PO-Revision-Date: 2025-0 8-29 16:10+0000\n"6 "PO-Revision-Date: 2025-09-12 16:08+0000\n" 7 7 "Last-Translator: \n" 8 "Language-Team: Fr ench (France)\n"8 "Language-Team: Français\n" 9 9 "Language: fr_FR\n" 10 10 "Plural-Forms: nplurals=2; plural=n > 1;\n" … … 19 19 msgstr " page(s) dans le cache." 20 20 21 #: Admin/MonLabo-doc.php:51 321 #: Admin/MonLabo-doc.php:511 22 22 #, php-format 23 23 msgid "%s Displaying teams by list %s" 24 24 msgstr "%s Affichage des équipes par liste %s" 25 25 26 #: Admin/MonLabo-doc.php:53 326 #: Admin/MonLabo-doc.php:531 27 27 #, php-format 28 28 #| msgid "" … … 39 39 msgstr "(co)directeur ou (co)directrice de l’unité" 40 40 41 #: Admin/MonLabo-doc.php:4 71 Admin/MonLabo-doc.php:52441 #: Admin/MonLabo-doc.php:469 Admin/MonLabo-doc.php:522 42 42 msgid "(disabled)" 43 43 msgstr "(désactivé)" … … 75 75 msgstr "--- Pas de changement ---" 76 76 77 #: Admin/MonLabo-doc.php:49 377 #: Admin/MonLabo-doc.php:491 78 78 #, php-format 79 79 msgid "" … … 243 243 msgstr "Alumni :" 244 244 245 #: Admin/class-settings-fields.php:24 0 Admin/class-settings-fields.php:249246 #: Admin/class-settings-fields.php:2 59245 #: Admin/class-settings-fields.php:249 Admin/class-settings-fields.php:258 246 #: Admin/class-settings-fields.php:268 247 247 msgid "Always hide" 248 248 msgstr "Toujours cacher" 249 249 250 #: Admin/MonLabo-doc.php:558 250 #: Admin/class-settings-fields.php:248 Admin/class-settings-fields.php:257 251 #: Admin/class-settings-fields.php:267 252 msgid "Always show" 253 msgstr "Toujours afficher" 254 255 #: Admin/MonLabo-doc.php:556 251 256 msgid "Announcements MonLabo" 252 257 msgstr "Annonces MonLabo" … … 318 323 msgstr "Durée du cache" 319 324 320 #: Admin/class-settings-fields.php: 594325 #: Admin/class-settings-fields.php:603 321 326 msgid "Cache emptied!" 322 327 msgstr "Cache vidé !" 328 329 #: Admin/class-admin-init-pages.php:375 330 #| msgid "" 331 #| "Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP " 332 #| "address/subnet mask. For several network ranges, separate them with " 333 #| "commas.)" 334 msgid "" 335 "Can be empty. Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP " 336 "address/subnet mask. For several network ranges, separate them with commas.)" 337 msgstr "" 338 "Champs vide possible. Ex : 192.168.0.0/16,172.20.50.0/24 (Chaque plage est " 339 "définie par une adresse IP/un masque de sous-réseau. Pour plusieurs plages " 340 "de réseaux, séparez-les par des virgules)." 323 341 324 342 #: Admin/Import/class-import.php:410 Admin/Import/class-pre-import.php:545 … … 330 348 msgstr "Action annulée" 331 349 332 #: Admin/class-admin-init-pages.php:5 27350 #: Admin/class-admin-init-pages.php:513 333 351 msgid "Categories" 334 352 msgstr "Catégories" … … 345 363 "savez ce que fous faites!" 346 364 347 #: Admin/class-admin-init-pages.php:372348 msgid "Check this box to hide emails on the website."349 msgstr "Cocher cette option pour cacher les courriels sur le site public."350 351 #: Admin/class-admin-init-pages.php:428352 msgid "Check this box to hide personal pictures on the website."353 msgstr ""354 "Cocher cette option pour cacher les photos personnelles sur le site public."355 356 #: Admin/class-admin-init-pages.php:409357 msgid "Check this box to hide phones on the website."358 msgstr ""359 "Cocher cette option pour cacher les numéros de téléphone sur le site public."360 361 #: Admin/class-admin-init-pages.php:393362 msgid "Check this box to hide rooms on the website."363 msgstr ""364 "Cocher cette option pour cacher les numéros de bureau sur le site public."365 366 365 #: Admin/class-html-forms.php:936 367 366 msgid "Choose" … … 369 368 370 369 #: Admin/class-html-forms.php:1220 Admin/class-html-forms.php:1269 371 #: Admin/class-settings-fields.php:5 07370 #: Admin/class-settings-fields.php:516 372 371 msgid "Choose a picture" 373 372 msgstr "Choisir une image" 374 373 375 374 #: Admin/class-html-forms.php:1219 Admin/class-html-forms.php:1268 376 #: Admin/class-settings-fields.php:5 06375 #: Admin/class-settings-fields.php:515 377 376 #| msgid "Chose media" 378 377 msgid "Choose media" … … 383 382 msgstr "Effacer le cache" 384 383 385 #: Admin/class-settings-fields.php:6 05384 #: Admin/class-settings-fields.php:623 386 385 msgid "Clear publications cache" 387 386 msgstr "Efface le cache de publications" … … 413 412 msgstr "Couleur des liens et des contours photo" 414 413 415 #: Admin/class-admin-init-pages.php:438416 msgid "Common parameters"417 msgstr "Paramètres communs"418 419 414 #: Admin/Edit_Members/class-edit-members-generic.php:194 420 415 msgid "Composition:" 421 416 msgstr "Composition:" 422 417 423 #: Admin/class-settings-fields.php:242 Admin/class-settings-fields.php:251 424 #: Admin/class-settings-fields.php:260 425 msgid "Conditional display (for logged-in users or trusted IP addresses)" 426 msgstr "" 427 "Affichage sous conditions (pour les utilisateurs connectés ou les adresses " 428 "IP de confiance)" 429 430 #: Admin/class-settings-fields.php:243 431 msgid "Conditional display otherwise contact form" 432 msgstr "Affichage sous conditions ou sinon formulaire" 433 434 #: Admin/class-settings-fields.php:252 435 msgid "Conditional display otherwise switchboard number" 436 msgstr "Affichage sous conditions ou sinon numéro de standard" 437 438 #: class-mon-laboratoire.php:221 418 #: class-mon-laboratoire.php:222 439 419 msgid "Configuration" 440 420 msgstr "Configuration" … … 464 444 "(0) 1 42 86 20 80</em>)." 465 445 466 #: Admin/MonLabo-doc.php:56 5446 #: Admin/MonLabo-doc.php:563 467 447 msgid "Contributions for version 5.0:" 468 448 msgstr "Contributions pour la version 5.0 :" 469 449 470 #: Admin/MonLabo-doc.php:56 4450 #: Admin/MonLabo-doc.php:562 471 451 msgid "Contributions for versions 0.6 up to 1.6:" 472 452 msgstr "Contributions pour les versions 0.6 à 1.6 :" 473 453 474 #: Admin/MonLabo-doc.php:56 2454 #: Admin/MonLabo-doc.php:560 475 455 msgid "Contributors:" 476 456 msgstr "Contributrices et contributeurs :" … … 514 494 msgstr "Création ou remplacement réussi de %s élément(s)." 515 495 516 #: Admin/MonLabo-doc.php:56 3496 #: Admin/MonLabo-doc.php:561 517 497 msgid "Creator and maintainer:" 518 498 msgstr "Créateur et mainteneur :" … … 522 502 msgstr "Site actuel" 523 503 524 #: Admin/class-settings-fields.php:2 75504 #: Admin/class-settings-fields.php:284 525 505 msgid "currently" 526 506 msgstr "actuellement" … … 562 542 msgstr "Image par défaut" 563 543 564 #: Admin/class-admin-init-pages.php:4 95544 #: Admin/class-admin-init-pages.php:481 565 545 msgid "Default title before the list of publications" 566 546 msgstr "Titre par défaut devant la liste des publications" 567 547 568 #: Admin/class-admin-init-pages.php:5 26548 #: Admin/class-admin-init-pages.php:512 569 549 msgid "Default title for current members" 570 550 msgstr "Titre par défaut pour les membres courants" 571 551 572 #: Admin/class-admin-init-pages.php:5 25552 #: Admin/class-admin-init-pages.php:511 573 553 msgid "Default title for list of direction members" 574 554 msgstr "Titre par défaut pour les membres de la direction" 575 555 576 #: Admin/class-admin-init-pages.php:5 24556 #: Admin/class-admin-init-pages.php:510 577 557 msgid "Default title for list of team leaders" 578 558 msgstr "Titre par défaut pour les chefs d’équipe" 579 559 580 #: Admin/class-settings-fields.php:277 560 #: Admin/class-admin-init-pages.php:367 561 #| msgid "" 562 #| "Define here the trusted visitor that will be shown personal data (for " 563 #| "example, from your institution's IP addresses)." 564 msgid "" 565 "Define here the trusted visitors who will be able to view personal data (for " 566 "example, from your institution's IP addresses)." 567 msgstr "" 568 "Définissez ici les visiteurs de confiance qui pourront afficher les données " 569 "personnelles (par exemple, à partir des adresses IP de votre institution)." 570 571 #: Admin/class-settings-fields.php:286 581 572 msgid "defined by Polylang" 582 573 msgstr "définie par Polylang" … … 635 626 msgstr "Directeurs" 636 627 637 #: Admin/MonLabo-doc.php:5 60628 #: Admin/MonLabo-doc.php:558 638 629 msgid "discussions of the plugin users" 639 630 msgstr "discussions des utilisateurs de l’extension" … … 647 638 msgstr "Langue d’affichage" 648 639 649 #: Admin/class-admin-init-pages.php:4 63 Admin/class-admin-init-pages.php:493640 #: Admin/class-admin-init-pages.php:449 Admin/class-admin-init-pages.php:479 650 641 msgid "Display of publications" 651 642 msgstr "Affichage des publications" 652 643 653 #: Admin/MonLabo-doc.php: 501644 #: Admin/MonLabo-doc.php:499 654 645 #, php-format 655 646 #| msgid "" … … 667 658 "%8$s </li></ul>" 668 659 669 #: Admin/MonLabo-doc.php:52 7660 #: Admin/MonLabo-doc.php:525 670 661 #, php-format 671 662 msgid "" … … 739 730 msgstr "Édite les personnels et les structures" 740 731 741 #: Admin/class-admin.php:19 5732 #: Admin/class-admin.php:197 742 733 msgid "Edit this person" 743 734 msgstr "Édite cette personne" 744 735 745 #: Admin/class-admin.php:20 0736 #: Admin/class-admin.php:202 746 737 msgid "Edit this team" 747 738 msgstr "Édite cette équipe" 748 739 749 #: Admin/class-admin.php:20 4740 #: Admin/class-admin.php:206 750 741 msgid "Edit this unit" 751 742 msgstr "Édite cette unité" 752 743 753 #: Admin/MonLabo-doc.php:549 Admin/class-admin-table-view.php:111 744 #: Admin/class-admin-table-view.php:111 Admin/MonLabo-doc.php:547 745 #: Admin/class-admin-init-pages.php:393 754 746 msgid "Email" 755 747 msgstr "Courriel" … … 763 755 msgstr "Emploi, fonction de la personne en français" 764 756 765 #: Admin/class-settings-fields.php:2 65 Admin/class-settings-fields.php:432757 #: Admin/class-settings-fields.php:274 Admin/class-settings-fields.php:441 766 758 msgid "English" 767 759 msgstr "Anglais" … … 771 763 msgstr "Nom anglais du groupe d’équipes" 772 764 773 #: Admin/class-settings-fields.php:4 12765 #: Admin/class-settings-fields.php:421 774 766 msgid "English plural" 775 767 msgstr "anglais pluriel" 776 768 777 #: Admin/class-settings-fields.php:41 0769 #: Admin/class-settings-fields.php:419 778 770 msgid "English singular" 779 771 msgstr "anglais singulier" 780 772 781 #: Frontend/Contact_Form/class-contact-form-processing.php:2 57773 #: Frontend/Contact_Form/class-contact-form-processing.php:266 782 774 msgid "ERROR : The email could not be sent." 783 775 msgstr "ERREUR : Le courriel n'a pas pu être envoyé." 784 776 785 #: Admin/class-settings-fields.php:6 42777 #: Admin/class-settings-fields.php:660 786 778 msgid "" 787 779 "ERROR : The email could not be sent. Possible reason: your host may have " … … 795 787 msgstr "Erreur dans l’exportation" 796 788 797 #: Frontend/Contact_Form/class-contact-form-processing.php:23 4789 #: Frontend/Contact_Form/class-contact-form-processing.php:236 798 790 msgid "ERROR: Bad Capcha." 799 791 msgstr "ERREUR : Mauvais Capcha." 800 792 801 #: Admin/class-admin-init-pages.php:414 793 #: Admin/class-settings-fields.php:240 794 msgid "Everybody" 795 msgstr "Tout le monde" 796 797 #: Admin/class-admin-init-pages.php:419 802 798 msgid "Ex: +33 1 00 00 00 00" 803 799 msgstr "Ex: +33 1 00 00 00 00" 804 800 805 #: Admin/class-admin-init-pages.php:444 806 msgid "" 807 "Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP " 808 "address/subnet mask. For several network ranges, separate them with commas.)" 809 msgstr "" 810 "Ex : 192.168.0.0/16,172.20.50.0/24 (Chaque plage est définie par une adresse " 811 "IP/un masque de sous-réseau. Pour plusieurs plages de réseaux, séparez-les " 812 "par des virgules)." 813 814 #: Admin/MonLabo-doc.php:558 801 #: Admin/MonLabo-doc.php:556 815 802 msgid "ex: new versions" 816 803 msgstr "ex: nouvelles versions" … … 870 857 msgstr "Fonctionnalités" 871 858 872 #: Admin/class-admin-init-pages.php:5 74859 #: Admin/class-admin-init-pages.php:560 873 860 msgid "Field title #%u" 874 861 msgstr "Titre du champs n°%u" 875 876 #: Admin/class-admin-init-pages.php:371877 msgid "Filter emails"878 msgstr "Filtrer les emails"879 880 #: Admin/class-admin-init-pages.php:427881 msgid "Filter person's photo"882 msgstr "Filtrer les photos des personnes"883 884 #: Admin/class-admin-init-pages.php:408885 msgid "Filter phones"886 msgstr "Filtrer les numéros de téléphone"887 888 #: Admin/class-admin-init-pages.php:392889 msgid "Filter rooms"890 msgstr "FIltrer les pièces"891 862 892 863 #: Admin/class-admin-init-pages.php:132 … … 907 878 msgstr "ancien membre" 908 879 909 #: Admin/class-settings-fields.php:2 66 Admin/class-settings-fields.php:433880 #: Admin/class-settings-fields.php:275 Admin/class-settings-fields.php:442 910 881 msgid "French" 911 882 msgstr "Français" … … 915 886 msgstr "Nom français du groupe d’équipes" 916 887 917 #: Admin/class-settings-fields.php:4 13888 #: Admin/class-settings-fields.php:422 918 889 msgid "French plural" 919 890 msgstr "français pluriel" 920 891 921 #: Admin/class-settings-fields.php:4 11892 #: Admin/class-settings-fields.php:420 922 893 msgid "French singular" 923 894 msgstr "français singulier" … … 943 914 msgstr "Generate default parent page (\"Unités\")" 944 915 945 #: Admin/MonLabo-doc.php:55 5916 #: Admin/MonLabo-doc.php:553 946 917 msgid "Get informed" 947 918 msgstr "Informez-vous" … … 1004 975 msgstr "Aide pour l’importation de teams_members" 1005 976 1006 #: Admin/MonLabo-doc.php:54 6977 #: Admin/MonLabo-doc.php:544 1007 978 msgid "Help us by reporting that you are a user" 1008 979 msgstr "Aidez-nous en signalant que vous êtes utilisateur" 1009 980 1010 #: Admin/class-settings-fields.php:2 67981 #: Admin/class-settings-fields.php:276 1011 982 msgid "here" 1012 983 msgstr "ici" … … 1126 1097 msgstr "Structures d’affiliation du laboratoire" 1127 1098 1128 #: Admin/class-settings-fields.php:2 711099 #: Admin/class-settings-fields.php:280 1129 1100 #, php-format 1130 1101 msgid "Language configured %1$s in WordPress %2$s or by a translation plugin" … … 1148 1119 msgstr "lien" 1149 1120 1150 #: Admin/class-admin-init-pages.php: 5081121 #: Admin/class-admin-init-pages.php:494 1151 1122 msgid "Link to contact form" 1152 1123 msgstr "Lien vers le formulaire de contact" … … 1164 1135 msgstr "Liens" 1165 1136 1166 #: Admin/class-admin-init-pages.php: 5121137 #: Admin/class-admin-init-pages.php:498 1167 1138 msgid "Links to an external site" 1168 1139 msgstr "Liens vers un site extérieur" … … 1171 1142 msgid "List of groups to which the team belongs (multiple selection)" 1172 1143 msgstr "Liste des groupes auxquels appartient l’équipe (sélection multiple)" 1144 1145 #: Admin/class-settings-fields.php:241 1146 msgid "Logged-in users" 1147 msgstr "Utilisateurs connectés" 1148 1149 #: Admin/class-settings-fields.php:242 1150 msgid "Logged-in users and visitors from trusted IP addresses" 1151 msgstr "" 1152 "Utilisateurs connectés et visiteurs provenant d'adresses IP de confiance" 1173 1153 1174 1154 #: Admin/class-admin-table-view.php:202 Admin/class-admin-table-view.php:277 … … 1203 1183 msgstr "logo HAL" 1204 1184 1205 #: Admin/class-settings-fields.php:6 451206 #: Frontend/Contact_Form/class-contact-form-processing.php:2 591185 #: Admin/class-settings-fields.php:663 1186 #: Frontend/Contact_Form/class-contact-form-processing.php:268 1207 1187 #, php-format 1208 1188 msgid "Mail sent to %s." … … 1217 1197 msgstr "Page principale" 1218 1198 1219 #: Admin/class-admin- menu.php:182 Admin/class-admin-table-view.php:2401199 #: Admin/class-admin-table-view.php:240 Admin/class-admin-menu.php:182 1220 1200 #: Admin/Edit_Members/class-edit-members.php:353 1221 1201 msgid "Main structure" … … 1231 1211 msgstr "Membre" 1232 1212 1233 #: Admin/class-admin-init-pages.php:4 65 Admin/class-admin-init-pages.php:5211213 #: Admin/class-admin-init-pages.php:451 Admin/class-admin-init-pages.php:507 1234 1214 msgid "Members list" 1235 1215 msgstr "Liste de personnels" … … 1243 1223 msgstr "Tuteurs" 1244 1224 1245 #: Admin/class-admin-init-pages.php:5 161225 #: Admin/class-admin-init-pages.php:502 1246 1226 msgid "Mentors and supervised students" 1247 1227 msgstr "Mentors et étudiants supervisés" 1248 1228 1249 #: Admin/MonLabo-doc.php:48 71229 #: Admin/MonLabo-doc.php:485 1250 1230 msgid "Mini documentation" 1251 1231 msgstr "Mini documentation" … … 1271 1251 msgstr "Mon Laboratoire" 1272 1252 1273 #: Admin/MonLabo-doc.php:5 601253 #: Admin/MonLabo-doc.php:558 1274 1254 msgid "MonLabo mailing list" 1275 1255 msgstr "Liste MonLabo" 1276 1256 1277 #: Admin/class-settings-fields.php:2 681257 #: Admin/class-settings-fields.php:277 1278 1258 msgid "Multilingual, using the Polylang translation plugin" 1279 1259 msgstr "Multilingue, par l’extension de traduction Polylang" … … 1305 1285 msgstr "Nom du laboratoire en français" 1306 1286 1307 #: Admin/class-admin-init-pages.php:4 881287 #: Admin/class-admin-init-pages.php:474 1308 1288 msgid "Name of the grouping" 1309 1289 msgstr "Nom du regroupement" … … 1339 1319 msgstr "NOM,ADRESSE_WEB" 1340 1320 1341 #: Admin/class-admin-init-pages.php:4 851321 #: Admin/class-admin-init-pages.php:471 1342 1322 #| msgid "Name of the groups of teams (thematic, research group, axis...)" 1343 1323 msgid "Names of the groups of teams (thematic, research group, axis...)" … … 1414 1394 msgstr "Actifs" 1415 1395 1416 #: Admin/class-admin-init-pages.php:5 541396 #: Admin/class-admin-init-pages.php:540 1417 1397 msgid "Number of custom fields (1 to 10)" 1418 1398 msgstr "Nombre champs personnalisés (de 1 à 10)" … … 1440 1420 msgstr "Une personne par ligne." 1441 1421 1442 #: class-mon-laboratoire.php:221 1422 #: Admin/class-settings-fields.php:250 Admin/class-settings-fields.php:259 1423 #: Admin/class-settings-fields.php:269 1424 msgid "Only show to trusted visitors" 1425 msgstr "N'afficher qu'aux visiteurs de confiance" 1426 1427 #: Admin/class-settings-fields.php:251 1428 msgid "Only show to trusted visitors, replace with contact form for others" 1429 msgstr "" 1430 "N'afficher qu'aux visiteurs de confiance, remplacer par un formulaire de " 1431 "contact pour les autres" 1432 1433 #: Admin/class-settings-fields.php:260 1434 msgid "Only show to trusted visitors, replace with switchboard for others" 1435 msgstr "" 1436 "N'afficher qu'aux visiteurs de confiance, remplacer par le numéro du " 1437 "standard pour les autres" 1438 1439 #: class-mon-laboratoire.php:222 1443 1440 msgid "Open the configuration page for this plugin" 1444 1441 msgstr "Ouvre la page de configuration pour cette extension" … … 1449 1446 msgstr "Aucun" 1450 1447 1451 #: Admin/ MonLabo-doc.php:549 Admin/class-html-forms.php:6471452 #: Admin/class-html-forms.php:1 116 Admin/class-html-forms.php:13201448 #: Admin/class-html-forms.php:647 Admin/class-html-forms.php:1116 1449 #: Admin/class-html-forms.php:1320 Admin/MonLabo-doc.php:547 1453 1450 msgid "optional" 1454 1451 msgstr "facultatif" … … 1481 1478 msgstr "Page %s crée." 1482 1479 1483 #: Admin/class-settings-fields.php:7 021480 #: Admin/class-settings-fields.php:720 1484 1481 msgid "Page created!" 1485 1482 msgstr "Page créée !" … … 1494 1491 msgstr "Page de %1$s crée (%2$s - %3$s)" 1495 1492 1496 #: Admin/class-admin- menu.php:323 Admin/class-admin-table-view.php:1061497 #: Admin/class-admin-table-view.php:2 02 Admin/class-admin-table-view.php:2761498 #: Admin/class-admin- table-view.php:3321493 #: Admin/class-admin-table-view.php:106 Admin/class-admin-table-view.php:202 1494 #: Admin/class-admin-table-view.php:276 Admin/class-admin-table-view.php:332 1495 #: Admin/class-admin-menu.php:323 1499 1496 msgid "Pages" 1500 1497 msgstr "Pages" … … 1557 1554 msgstr "Identifiant ParisDescartes (peut servir d’identifiant de connexion)" 1558 1555 1559 #: Admin/class-admin-init-pages.php:4 64 Admin/class-admin-init-pages.php:5011556 #: Admin/class-admin-init-pages.php:450 Admin/class-admin-init-pages.php:487 1560 1557 msgid "Person panel" 1561 1558 msgstr "Panneau personnel" 1562 1563 #: Admin/class-admin-init-pages.php:3661564 msgid "Person's emails"1565 msgstr "Courriels des personnes"1566 1567 #: Admin/class-admin-init-pages.php:4031568 msgid "Person's phones"1569 msgstr "Numéros de téléphone des personnes"1570 1571 #: Admin/class-admin-init-pages.php:3871572 msgid "Person's rooms or offices"1573 msgstr "Bureaux des personnes"1574 1559 1575 1560 #: Admin/class-html-forms.php:457 … … 1581 1566 msgstr "Bandeau personnel (perso panel)" 1582 1567 1568 #: Admin/class-admin-init-pages.php:382 1569 msgid "Personal data" 1570 msgstr "Données personnelles" 1571 1583 1572 #: Admin/Edit_Members/class-edit-members.php:242 1584 1573 msgid "Personal external website" … … 1589 1578 msgstr "Photo personnelle" 1590 1579 1591 #: Admin/class-admin-init-pages.php:335 Admin/class-admin-init-pages.php:4221580 #: Admin/class-admin-init-pages.php:335 1592 1581 msgid "Personal pictures" 1593 1582 msgstr "Photos personnelles" 1594 1583 1595 #: Admin/class-admin-init-pages.php:5 521584 #: Admin/class-admin-init-pages.php:538 1596 1585 msgid "Personalized fields for the personal table" 1597 1586 msgstr "Champs personnalisés pour la table des personnels" … … 1666 1655 msgstr "Titre" 1667 1656 1668 #: Admin/class-admin- menu.php:148 Admin/class-admin-table-view.php:3951669 #: Admin/class-admin- table-view.php:405Admin/Import/class-import.php:3961657 #: Admin/class-admin-table-view.php:395 Admin/class-admin-table-view.php:405 1658 #: Admin/class-admin-menu.php:148 Admin/Import/class-import.php:396 1670 1659 #: Admin/Edit_Members/class-edit-members-advanced.php:517 1671 1660 #: Admin/Edit_Members/class-edit-members-advanced.php:554 … … 1682 1671 msgstr "Personnels et équipes" 1683 1672 1684 #: Admin/class-admin-table-view.php:112 1673 #: Admin/class-admin-table-view.php:112 Admin/class-admin-init-pages.php:417 1685 1674 msgid "Phone" 1686 1675 msgstr "Téléphone" … … 1698 1687 msgstr "Préfixe téléphonique de la structure<br />(ex: <em>+33 1 42 86 </em>)." 1699 1688 1700 #: Admin/class-admin-table-view.php:107 1689 #: Admin/class-admin-table-view.php:107 Admin/class-admin-init-pages.php:430 1701 1690 #: Admin/Edit_Members/class-edit-members-comment.php:102 1702 1691 msgid "Photo" … … 1745 1734 msgstr "Extension Mon-laboratoire :" 1746 1735 1747 #: Admin/class-settings-fields.php:2 681736 #: Admin/class-settings-fields.php:277 1748 1737 msgid "Polylang plugin status" 1749 1738 msgstr "État de l’extension Polylang" … … 1753 1742 msgstr "Adresse éventuelle de remplacement de celle de la structure." 1754 1743 1755 #: Admin/class-settings-fields.php:6 431744 #: Admin/class-settings-fields.php:661 1756 1745 msgid "" 1757 1746 "Possible solution : Try to install a plugin for reconfiguring wp_mail() " … … 1769 1758 msgstr "Préfixe :" 1770 1759 1771 #: Admin/MonLabo-doc.php:4 911760 #: Admin/MonLabo-doc.php:489 1772 1761 msgid "Presentation of functionalities in video" 1773 1762 msgstr "Présentation des fonctionnalités en vidéo:" … … 1793 1782 msgstr "Publications :" 1794 1783 1795 #: Admin/class-admin-init-pages.php: 4431784 #: Admin/class-admin-init-pages.php:374 1796 1785 #| msgid "Range of trusted IP addresses" 1797 1786 msgid "Ranges of trusted IP addresses" … … 1807 1796 msgstr "Supprime les numéros de page non valides" 1808 1797 1809 #: Admin/class-settings-fields.php:241 1810 msgid "Replace with a contact form" 1811 msgstr "Remplacer avec un formulaire de contact" 1812 1813 #: Admin/class-settings-fields.php:250 1814 msgid "Replace with a switchboard number" 1815 msgstr "Remplacer avec un numéro de standard téléphonique" 1816 1817 #: Admin/class-admin-init-pages.php:510 Admin/class-admin-table-view.php:113 1798 #: Admin/class-admin-table-view.php:113 Admin/class-admin-init-pages.php:496 1818 1799 msgid "Room" 1819 1800 msgstr "Bureau" 1801 1802 #: Admin/class-admin-init-pages.php:406 1803 msgid "Room or office" 1804 msgstr "Bureau ou pièce" 1820 1805 1821 1806 #: Admin/class-admin-init-pages.php:336 … … 1835 1820 msgstr "Envoyer le courriel" 1836 1821 1837 #: Admin/class-settings-fields.php:6 521822 #: Admin/class-settings-fields.php:670 1838 1823 msgid "Send test email" 1839 1824 msgstr "Envoyer le courriel de test" … … 1843 1828 msgstr "Unités multiples" 1844 1829 1845 #: Admin/MonLabo-doc.php:49 51830 #: Admin/MonLabo-doc.php:493 1846 1831 msgid "Shortcodes" 1847 1832 msgstr "Shotcodes" 1848 1833 1849 #: Admin/class-admin- init-pages.php:475 Admin/class-admin-table-view.php:3941834 #: Admin/class-admin-table-view.php:394 Admin/class-admin-init-pages.php:461 1850 1835 #: Admin/Edit_Members/class-edit-members-advanced.php:471 1851 1836 msgid "Shortcuts:" … … 1889 1874 msgstr "Objet de votre message" 1890 1875 1891 #: Admin/MonLabo-doc.php:55 8 Admin/MonLabo-doc.php:5601876 #: Admin/MonLabo-doc.php:556 Admin/MonLabo-doc.php:558 1892 1877 msgid "Subscribe now" 1893 1878 msgstr "S’abonner" … … 1898 1883 msgstr "Basculer en brouillon les pages des alumni" 1899 1884 1900 #: Admin/class-admin-init-pages.php:41 41885 #: Admin/class-admin-init-pages.php:419 1901 1886 msgid "Switchboard number" 1902 1887 msgstr "Numéro de standard téléphonique" … … 1916 1901 "[team_panel])" 1917 1902 1918 #: Admin/class-admin-init-pages.php:120 Admin/class-admin-init-pages.php:4 621903 #: Admin/class-admin-init-pages.php:120 Admin/class-admin-init-pages.php:448 1919 1904 msgid "Team groups" 1920 1905 msgstr "Groupes d’équipes" … … 1941 1926 msgstr "Équipe(s) :" 1942 1927 1943 #: Admin/class-admin- menu.php:155 Admin/class-admin-table-view.php:1221944 #: Admin/class-admin-table-view.php: 279 Admin/class-admin-table-view.php:3961945 #: Admin/class-admin- table-view.php:412Admin/Import/class-import.php:4011928 #: Admin/class-admin-table-view.php:122 Admin/class-admin-table-view.php:279 1929 #: Admin/class-admin-table-view.php:396 Admin/class-admin-table-view.php:412 1930 #: Admin/class-admin-menu.php:155 Admin/Import/class-import.php:401 1946 1931 #: Admin/Edit_Members/class-edit-members-advanced.php:521 1947 1932 #: Admin/Edit_Members/class-edit-members-advanced.php:586 … … 1958 1943 "soit pas utilisé)" 1959 1944 1960 #: Admin/MonLabo-doc.php:55 31945 #: Admin/MonLabo-doc.php:551 1961 1946 msgid "Tell the authors that you are using the plugin on" 1962 1947 msgstr "Indiquez aux auteurs que vous utilisez l’extension sur" 1963 1948 1964 #: Admin/class-admin-init-pages.php:3 781949 #: Admin/class-admin-init-pages.php:395 1965 1950 msgid "Test destination email" 1966 1951 msgstr "Courriel de destination pour le test" … … 2033 2018 2034 2019 #: Admin/class-admin-init-pages.php:361 2020 #| msgid "" 2021 #| "This page is managing data privacy of persons. Please fill carrefully " 2022 #| "these fields to comply with the GDPR and individuals' consent to " 2023 #| "dissemination." 2035 2024 msgid "" 2036 2025 "This page is managing data privacy of persons. Please fill carrefully these " 2037 "fields to comply with the GDPR and individuals' consent to dissemination." 2026 "fields to comply with the GDPR, individuals' consent to dissemination and " 2027 "phishing precautions." 2038 2028 msgstr "" 2039 2029 "Cette page gère la confidentialité des données des personnes. Veuillez " … … 2041 2031 "consentement des personnes à la diffusion." 2042 2032 2043 #: Admin/MonLabo-doc.php:49 62033 #: Admin/MonLabo-doc.php:494 2044 2034 msgid "" 2045 2035 "This plugin adds the below shortcodes. These \"shortcodes\" are to be " … … 2049 2039 "sont à insérer dans les pages pour générer automatiquement des contenus." 2050 2040 2051 #: Admin/MonLabo-doc.php:48 82041 #: Admin/MonLabo-doc.php:486 2052 2042 msgid "" 2053 2043 "This WordPress plugin allows, on a unified interface, to manage the pages of " … … 2086 2076 msgstr "Traduction de pages de %1$s crées (%2$s)" 2087 2077 2088 #: Admin/class-admin-init-pages.php:415 2078 #: Admin/class-admin-init-pages.php:369 2079 msgid "Trusted visitors" 2080 msgstr "Visiteurs de confiance" 2081 2082 #: Admin/class-admin-init-pages.php:365 2083 msgid "Trusted visitors who can view all personal data" 2084 msgstr "Visiteurs de confiance qui peuvent afficher les données personnelles" 2085 2086 #: Admin/class-admin-init-pages.php:420 2089 2087 msgid "Type of switchboard number to be indicated" 2090 2088 msgstr "Type de numéro de standard" … … 2110 2108 msgstr "Unité(s) :" 2111 2109 2112 #: Admin/class-admin- menu.php:174 Admin/class-admin-table-view.php:4012113 #: Admin/class-admin- table-view.php:4232110 #: Admin/class-admin-table-view.php:401 Admin/class-admin-table-view.php:423 2111 #: Admin/class-admin-menu.php:174 2114 2112 #: Admin/Edit_Members/class-edit-members-advanced.php:528 2115 2113 #: Admin/Edit_Members/class-edit-members-advanced.php:637 … … 2128 2126 2129 2127 #: Admin/class-html-forms.php:1221 Admin/class-html-forms.php:1270 2130 #: Admin/class-settings-fields.php:5 082128 #: Admin/class-settings-fields.php:517 2131 2129 msgid "use this picture" 2132 2130 msgstr "utiliser cette image" … … 2146 2144 msgstr "Personnel visible ?" 2147 2145 2148 #: Admin/class-settings-fields.php:2 672146 #: Admin/class-settings-fields.php:276 2149 2147 msgid "Visitor's browser language" 2150 2148 msgstr "Langue du navigateur du visiteur" … … 2185 2183 msgstr "oui" 2186 2184 2187 #: Admin/MonLabo-doc.php:54 72185 #: Admin/MonLabo-doc.php:545 2188 2186 #, php-format 2189 2187 msgid "" … … 2196 2194 "grandement service pour montrer que cette extension est utilisée." 2197 2195 2198 #: Admin/MonLabo-doc.php:55 62196 #: Admin/MonLabo-doc.php:554 2199 2197 msgid "You can also subscribe to the following mailing lists" 2200 2198 msgstr "Vous pouvez également vous inscrire aux listes de diffusion suivantes" -
mon-laboratoire/trunk/languages/mon-laboratoire.pot
r3355231 r3361909 4 4 "Project-Id-Version: Mon Laboratoire\n" 5 5 "Report-Msgid-Bugs-To: \n" 6 "POT-Creation-Date: 2025-0 8-29 16:03+0000\n"6 "POT-Creation-Date: 2025-09-12 16:02+0000\n" 7 7 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 8 8 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 21 21 msgstr "" 22 22 23 #: Admin/MonLabo-doc.php:51 323 #: Admin/MonLabo-doc.php:511 24 24 #, php-format 25 25 msgid "%s Displaying teams by list %s" 26 26 msgstr "" 27 27 28 #: Admin/MonLabo-doc.php:53 328 #: Admin/MonLabo-doc.php:531 29 29 #, php-format 30 30 msgid "" … … 36 36 msgstr "" 37 37 38 #: Admin/MonLabo-doc.php:4 71 Admin/MonLabo-doc.php:52438 #: Admin/MonLabo-doc.php:469 Admin/MonLabo-doc.php:522 39 39 msgid "(disabled)" 40 40 msgstr "" … … 69 69 msgstr "" 70 70 71 #: Admin/MonLabo-doc.php:49 371 #: Admin/MonLabo-doc.php:491 72 72 #, php-format 73 73 msgid "" … … 200 200 msgstr "" 201 201 202 #: Admin/class-settings-fields.php:24 0 Admin/class-settings-fields.php:249203 #: Admin/class-settings-fields.php:2 59202 #: Admin/class-settings-fields.php:249 Admin/class-settings-fields.php:258 203 #: Admin/class-settings-fields.php:268 204 204 msgid "Always hide" 205 205 msgstr "" 206 206 207 #: Admin/MonLabo-doc.php:558 207 #: Admin/class-settings-fields.php:248 Admin/class-settings-fields.php:257 208 #: Admin/class-settings-fields.php:267 209 msgid "Always show" 210 msgstr "" 211 212 #: Admin/MonLabo-doc.php:556 208 213 msgid "Announcements MonLabo" 209 214 msgstr "" … … 267 272 msgstr "" 268 273 269 #: Admin/class-settings-fields.php: 594274 #: Admin/class-settings-fields.php:603 270 275 msgid "Cache emptied!" 276 msgstr "" 277 278 #: Admin/class-admin-init-pages.php:375 279 msgid "" 280 "Can be empty. Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP " 281 "address/subnet mask. For several network ranges, separate them with commas.)" 271 282 msgstr "" 272 283 … … 279 290 msgstr "" 280 291 281 #: Admin/class-admin-init-pages.php:5 27292 #: Admin/class-admin-init-pages.php:513 282 293 msgid "Categories" 283 294 msgstr "" … … 289 300 msgstr "" 290 301 291 #: Admin/class-admin-init-pages.php:372292 msgid "Check this box to hide emails on the website."293 msgstr ""294 295 #: Admin/class-admin-init-pages.php:428296 msgid "Check this box to hide personal pictures on the website."297 msgstr ""298 299 #: Admin/class-admin-init-pages.php:409300 msgid "Check this box to hide phones on the website."301 msgstr ""302 303 #: Admin/class-admin-init-pages.php:393304 msgid "Check this box to hide rooms on the website."305 msgstr ""306 307 302 #: Admin/class-html-forms.php:936 308 303 msgid "Choose" … … 310 305 311 306 #: Admin/class-html-forms.php:1220 Admin/class-html-forms.php:1269 312 #: Admin/class-settings-fields.php:5 07307 #: Admin/class-settings-fields.php:516 313 308 msgid "Choose a picture" 314 309 msgstr "" 315 310 316 311 #: Admin/class-html-forms.php:1219 Admin/class-html-forms.php:1268 317 #: Admin/class-settings-fields.php:5 06312 #: Admin/class-settings-fields.php:515 318 313 msgid "Choose media" 319 314 msgstr "" … … 323 318 msgstr "" 324 319 325 #: Admin/class-settings-fields.php:6 05320 #: Admin/class-settings-fields.php:623 326 321 msgid "Clear publications cache" 327 322 msgstr "" … … 353 348 msgstr "" 354 349 355 #: Admin/class-admin-init-pages.php:438356 msgid "Common parameters"357 msgstr ""358 359 350 #: Admin/Edit_Members/class-edit-members-generic.php:194 360 351 msgid "Composition:" 361 352 msgstr "" 362 353 363 #: Admin/class-settings-fields.php:242 Admin/class-settings-fields.php:251 364 #: Admin/class-settings-fields.php:260 365 msgid "Conditional display (for logged-in users or trusted IP addresses)" 366 msgstr "" 367 368 #: Admin/class-settings-fields.php:243 369 msgid "Conditional display otherwise contact form" 370 msgstr "" 371 372 #: Admin/class-settings-fields.php:252 373 msgid "Conditional display otherwise switchboard number" 374 msgstr "" 375 376 #: class-mon-laboratoire.php:221 354 #: class-mon-laboratoire.php:222 377 355 msgid "Configuration" 378 356 msgstr "" … … 400 378 msgstr "" 401 379 402 #: Admin/MonLabo-doc.php:56 5380 #: Admin/MonLabo-doc.php:563 403 381 msgid "Contributions for version 5.0:" 404 382 msgstr "" 405 383 406 #: Admin/MonLabo-doc.php:56 4384 #: Admin/MonLabo-doc.php:562 407 385 msgid "Contributions for versions 0.6 up to 1.6:" 408 386 msgstr "" 409 387 410 #: Admin/MonLabo-doc.php:56 2388 #: Admin/MonLabo-doc.php:560 411 389 msgid "Contributors:" 412 390 msgstr "" … … 450 428 msgstr "" 451 429 452 #: Admin/MonLabo-doc.php:56 3430 #: Admin/MonLabo-doc.php:561 453 431 msgid "Creator and maintainer:" 454 432 msgstr "" … … 458 436 msgstr "" 459 437 460 #: Admin/class-settings-fields.php:2 75438 #: Admin/class-settings-fields.php:284 461 439 msgid "currently" 462 440 msgstr "" … … 498 476 msgstr "" 499 477 500 #: Admin/class-admin-init-pages.php:4 95478 #: Admin/class-admin-init-pages.php:481 501 479 msgid "Default title before the list of publications" 502 480 msgstr "" 503 481 504 #: Admin/class-admin-init-pages.php:5 26482 #: Admin/class-admin-init-pages.php:512 505 483 msgid "Default title for current members" 506 484 msgstr "" 507 485 508 #: Admin/class-admin-init-pages.php:5 25486 #: Admin/class-admin-init-pages.php:511 509 487 msgid "Default title for list of direction members" 510 488 msgstr "" 511 489 512 #: Admin/class-admin-init-pages.php:5 24490 #: Admin/class-admin-init-pages.php:510 513 491 msgid "Default title for list of team leaders" 514 492 msgstr "" 515 493 516 #: Admin/class-settings-fields.php:277 494 #: Admin/class-admin-init-pages.php:367 495 msgid "" 496 "Define here the trusted visitors who will be able to view personal data (for " 497 "example, from your institution's IP addresses)." 498 msgstr "" 499 500 #: Admin/class-settings-fields.php:286 517 501 msgid "defined by Polylang" 518 502 msgstr "" … … 567 551 msgstr "" 568 552 569 #: Admin/MonLabo-doc.php:5 60553 #: Admin/MonLabo-doc.php:558 570 554 msgid "discussions of the plugin users" 571 555 msgstr "" … … 579 563 msgstr "" 580 564 581 #: Admin/class-admin-init-pages.php:4 63 Admin/class-admin-init-pages.php:493565 #: Admin/class-admin-init-pages.php:449 Admin/class-admin-init-pages.php:479 582 566 msgid "Display of publications" 583 567 msgstr "" 584 568 585 #: Admin/MonLabo-doc.php: 501569 #: Admin/MonLabo-doc.php:499 586 570 #, php-format 587 571 msgid "" … … 591 575 msgstr "" 592 576 593 #: Admin/MonLabo-doc.php:52 7577 #: Admin/MonLabo-doc.php:525 594 578 #, php-format 595 579 msgid "" … … 655 639 msgstr "" 656 640 657 #: Admin/class-admin.php:19 5641 #: Admin/class-admin.php:197 658 642 msgid "Edit this person" 659 643 msgstr "" 660 644 661 #: Admin/class-admin.php:20 0645 #: Admin/class-admin.php:202 662 646 msgid "Edit this team" 663 647 msgstr "" 664 648 665 #: Admin/class-admin.php:20 4649 #: Admin/class-admin.php:206 666 650 msgid "Edit this unit" 667 651 msgstr "" 668 652 669 #: Admin/MonLabo-doc.php:549 Admin/class-admin-table-view.php:111 653 #: Admin/class-admin-table-view.php:111 Admin/MonLabo-doc.php:547 654 #: Admin/class-admin-init-pages.php:393 670 655 msgid "Email" 671 656 msgstr "" … … 679 664 msgstr "" 680 665 681 #: Admin/class-settings-fields.php:2 65 Admin/class-settings-fields.php:432666 #: Admin/class-settings-fields.php:274 Admin/class-settings-fields.php:441 682 667 msgid "English" 683 668 msgstr "" … … 687 672 msgstr "" 688 673 689 #: Admin/class-settings-fields.php:4 12674 #: Admin/class-settings-fields.php:421 690 675 msgid "English plural" 691 676 msgstr "" 692 677 693 #: Admin/class-settings-fields.php:41 0678 #: Admin/class-settings-fields.php:419 694 679 msgid "English singular" 695 680 msgstr "" 696 681 697 #: Frontend/Contact_Form/class-contact-form-processing.php:2 57682 #: Frontend/Contact_Form/class-contact-form-processing.php:266 698 683 msgid "ERROR : The email could not be sent." 699 684 msgstr "" 700 685 701 #: Admin/class-settings-fields.php:6 42686 #: Admin/class-settings-fields.php:660 702 687 msgid "" 703 688 "ERROR : The email could not be sent. Possible reason: your host may have " … … 709 694 msgstr "" 710 695 711 #: Frontend/Contact_Form/class-contact-form-processing.php:23 4696 #: Frontend/Contact_Form/class-contact-form-processing.php:236 712 697 msgid "ERROR: Bad Capcha." 713 698 msgstr "" 714 699 715 #: Admin/class-admin-init-pages.php:414 700 #: Admin/class-settings-fields.php:240 701 msgid "Everybody" 702 msgstr "" 703 704 #: Admin/class-admin-init-pages.php:419 716 705 msgid "Ex: +33 1 00 00 00 00" 717 706 msgstr "" 718 707 719 #: Admin/class-admin-init-pages.php:444 720 msgid "" 721 "Ex: 192.168.0.0/16,172.20.50.0/24 (Each range is defined by IP " 722 "address/subnet mask. For several network ranges, separate them with commas.)" 723 msgstr "" 724 725 #: Admin/MonLabo-doc.php:558 708 #: Admin/MonLabo-doc.php:556 726 709 msgid "ex: new versions" 727 710 msgstr "" … … 779 762 msgstr "" 780 763 781 #: Admin/class-admin-init-pages.php:5 74764 #: Admin/class-admin-init-pages.php:560 782 765 msgid "Field title #%u" 783 msgstr ""784 785 #: Admin/class-admin-init-pages.php:371786 msgid "Filter emails"787 msgstr ""788 789 #: Admin/class-admin-init-pages.php:427790 msgid "Filter person's photo"791 msgstr ""792 793 #: Admin/class-admin-init-pages.php:408794 msgid "Filter phones"795 msgstr ""796 797 #: Admin/class-admin-init-pages.php:392798 msgid "Filter rooms"799 766 msgstr "" 800 767 … … 813 780 msgstr "" 814 781 815 #: Admin/class-settings-fields.php:2 66 Admin/class-settings-fields.php:433782 #: Admin/class-settings-fields.php:275 Admin/class-settings-fields.php:442 816 783 msgid "French" 817 784 msgstr "" … … 821 788 msgstr "" 822 789 823 #: Admin/class-settings-fields.php:4 13790 #: Admin/class-settings-fields.php:422 824 791 msgid "French plural" 825 792 msgstr "" 826 793 827 #: Admin/class-settings-fields.php:4 11794 #: Admin/class-settings-fields.php:420 828 795 msgid "French singular" 829 796 msgstr "" … … 849 816 msgstr "" 850 817 851 #: Admin/MonLabo-doc.php:55 5818 #: Admin/MonLabo-doc.php:553 852 819 msgid "Get informed" 853 820 msgstr "" … … 893 860 msgstr "" 894 861 895 #: Admin/MonLabo-doc.php:54 6862 #: Admin/MonLabo-doc.php:544 896 863 msgid "Help us by reporting that you are a user" 897 864 msgstr "" 898 865 899 #: Admin/class-settings-fields.php:2 67866 #: Admin/class-settings-fields.php:276 900 867 msgid "here" 901 868 msgstr "" … … 1004 971 msgstr "" 1005 972 1006 #: Admin/class-settings-fields.php:2 71973 #: Admin/class-settings-fields.php:280 1007 974 #, php-format 1008 975 msgid "Language configured %1$s in WordPress %2$s or by a translation plugin" … … 1025 992 msgstr "" 1026 993 1027 #: Admin/class-admin-init-pages.php: 508994 #: Admin/class-admin-init-pages.php:494 1028 995 msgid "Link to contact form" 1029 996 msgstr "" … … 1041 1008 msgstr "" 1042 1009 1043 #: Admin/class-admin-init-pages.php: 5121010 #: Admin/class-admin-init-pages.php:498 1044 1011 msgid "Links to an external site" 1045 1012 msgstr "" … … 1047 1014 #: Admin/Edit_Members/class-edit-members-comment.php:148 1048 1015 msgid "List of groups to which the team belongs (multiple selection)" 1016 msgstr "" 1017 1018 #: Admin/class-settings-fields.php:241 1019 msgid "Logged-in users" 1020 msgstr "" 1021 1022 #: Admin/class-settings-fields.php:242 1023 msgid "Logged-in users and visitors from trusted IP addresses" 1049 1024 msgstr "" 1050 1025 … … 1079 1054 msgstr "" 1080 1055 1081 #: Admin/class-settings-fields.php:6 451082 #: Frontend/Contact_Form/class-contact-form-processing.php:2 591056 #: Admin/class-settings-fields.php:663 1057 #: Frontend/Contact_Form/class-contact-form-processing.php:268 1083 1058 #, php-format 1084 1059 msgid "Mail sent to %s." … … 1093 1068 msgstr "" 1094 1069 1095 #: Admin/class-admin- menu.php:182 Admin/class-admin-table-view.php:2401070 #: Admin/class-admin-table-view.php:240 Admin/class-admin-menu.php:182 1096 1071 #: Admin/Edit_Members/class-edit-members.php:353 1097 1072 msgid "Main structure" … … 1107 1082 msgstr "" 1108 1083 1109 #: Admin/class-admin-init-pages.php:4 65 Admin/class-admin-init-pages.php:5211084 #: Admin/class-admin-init-pages.php:451 Admin/class-admin-init-pages.php:507 1110 1085 msgid "Members list" 1111 1086 msgstr "" … … 1119 1094 msgstr "" 1120 1095 1121 #: Admin/class-admin-init-pages.php:5 161096 #: Admin/class-admin-init-pages.php:502 1122 1097 msgid "Mentors and supervised students" 1123 1098 msgstr "" 1124 1099 1125 #: Admin/MonLabo-doc.php:48 71100 #: Admin/MonLabo-doc.php:485 1126 1101 msgid "Mini documentation" 1127 1102 msgstr "" … … 1147 1122 msgstr "" 1148 1123 1149 #: Admin/MonLabo-doc.php:5 601124 #: Admin/MonLabo-doc.php:558 1150 1125 msgid "MonLabo mailing list" 1151 1126 msgstr "" 1152 1127 1153 #: Admin/class-settings-fields.php:2 681128 #: Admin/class-settings-fields.php:277 1154 1129 msgid "Multilingual, using the Polylang translation plugin" 1155 1130 msgstr "" … … 1181 1156 msgstr "" 1182 1157 1183 #: Admin/class-admin-init-pages.php:4 881158 #: Admin/class-admin-init-pages.php:474 1184 1159 msgid "Name of the grouping" 1185 1160 msgstr "" … … 1212 1187 msgstr "" 1213 1188 1214 #: Admin/class-admin-init-pages.php:4 851189 #: Admin/class-admin-init-pages.php:471 1215 1190 msgid "Names of the groups of teams (thematic, research group, axis...)" 1216 1191 msgstr "" … … 1283 1258 msgstr "" 1284 1259 1285 #: Admin/class-admin-init-pages.php:5 541260 #: Admin/class-admin-init-pages.php:540 1286 1261 msgid "Number of custom fields (1 to 10)" 1287 1262 msgstr "" … … 1307 1282 msgstr "" 1308 1283 1309 #: class-mon-laboratoire.php:221 1284 #: Admin/class-settings-fields.php:250 Admin/class-settings-fields.php:259 1285 #: Admin/class-settings-fields.php:269 1286 msgid "Only show to trusted visitors" 1287 msgstr "" 1288 1289 #: Admin/class-settings-fields.php:251 1290 msgid "Only show to trusted visitors, replace with contact form for others" 1291 msgstr "" 1292 1293 #: Admin/class-settings-fields.php:260 1294 msgid "Only show to trusted visitors, replace with switchboard for others" 1295 msgstr "" 1296 1297 #: class-mon-laboratoire.php:222 1310 1298 msgid "Open the configuration page for this plugin" 1311 1299 msgstr "" … … 1316 1304 msgstr "" 1317 1305 1318 #: Admin/ MonLabo-doc.php:549 Admin/class-html-forms.php:6471319 #: Admin/class-html-forms.php:1 116 Admin/class-html-forms.php:13201306 #: Admin/class-html-forms.php:647 Admin/class-html-forms.php:1116 1307 #: Admin/class-html-forms.php:1320 Admin/MonLabo-doc.php:547 1320 1308 msgid "optional" 1321 1309 msgstr "" … … 1347 1335 msgstr "" 1348 1336 1349 #: Admin/class-settings-fields.php:7 021337 #: Admin/class-settings-fields.php:720 1350 1338 msgid "Page created!" 1351 1339 msgstr "" … … 1360 1348 msgstr "" 1361 1349 1362 #: Admin/class-admin- menu.php:323 Admin/class-admin-table-view.php:1061363 #: Admin/class-admin-table-view.php:2 02 Admin/class-admin-table-view.php:2761364 #: Admin/class-admin- table-view.php:3321350 #: Admin/class-admin-table-view.php:106 Admin/class-admin-table-view.php:202 1351 #: Admin/class-admin-table-view.php:276 Admin/class-admin-table-view.php:332 1352 #: Admin/class-admin-menu.php:323 1365 1353 msgid "Pages" 1366 1354 msgstr "" … … 1419 1407 msgstr "" 1420 1408 1421 #: Admin/class-admin-init-pages.php:4 64 Admin/class-admin-init-pages.php:5011409 #: Admin/class-admin-init-pages.php:450 Admin/class-admin-init-pages.php:487 1422 1410 msgid "Person panel" 1423 msgstr ""1424 1425 #: Admin/class-admin-init-pages.php:3661426 msgid "Person's emails"1427 msgstr ""1428 1429 #: Admin/class-admin-init-pages.php:4031430 msgid "Person's phones"1431 msgstr ""1432 1433 #: Admin/class-admin-init-pages.php:3871434 msgid "Person's rooms or offices"1435 1411 msgstr "" 1436 1412 … … 1443 1419 msgstr "" 1444 1420 1421 #: Admin/class-admin-init-pages.php:382 1422 msgid "Personal data" 1423 msgstr "" 1424 1445 1425 #: Admin/Edit_Members/class-edit-members.php:242 1446 1426 msgid "Personal external website" … … 1451 1431 msgstr "" 1452 1432 1453 #: Admin/class-admin-init-pages.php:335 Admin/class-admin-init-pages.php:4221433 #: Admin/class-admin-init-pages.php:335 1454 1434 msgid "Personal pictures" 1455 1435 msgstr "" 1456 1436 1457 #: Admin/class-admin-init-pages.php:5 521437 #: Admin/class-admin-init-pages.php:538 1458 1438 msgid "Personalized fields for the personal table" 1459 1439 msgstr "" … … 1528 1508 msgstr "" 1529 1509 1530 #: Admin/class-admin- menu.php:148 Admin/class-admin-table-view.php:3951531 #: Admin/class-admin- table-view.php:405Admin/Import/class-import.php:3961510 #: Admin/class-admin-table-view.php:395 Admin/class-admin-table-view.php:405 1511 #: Admin/class-admin-menu.php:148 Admin/Import/class-import.php:396 1532 1512 #: Admin/Edit_Members/class-edit-members-advanced.php:517 1533 1513 #: Admin/Edit_Members/class-edit-members-advanced.php:554 … … 1544 1524 msgstr "" 1545 1525 1546 #: Admin/class-admin-table-view.php:112 1526 #: Admin/class-admin-table-view.php:112 Admin/class-admin-init-pages.php:417 1547 1527 msgid "Phone" 1548 1528 msgstr "" … … 1560 1540 msgstr "" 1561 1541 1562 #: Admin/class-admin-table-view.php:107 1542 #: Admin/class-admin-table-view.php:107 Admin/class-admin-init-pages.php:430 1563 1543 #: Admin/Edit_Members/class-edit-members-comment.php:102 1564 1544 msgid "Photo" … … 1605 1585 msgstr "" 1606 1586 1607 #: Admin/class-settings-fields.php:2 681587 #: Admin/class-settings-fields.php:277 1608 1588 msgid "Polylang plugin status" 1609 1589 msgstr "" … … 1613 1593 msgstr "" 1614 1594 1615 #: Admin/class-settings-fields.php:6 431595 #: Admin/class-settings-fields.php:661 1616 1596 msgid "" 1617 1597 "Possible solution : Try to install a plugin for reconfiguring wp_mail() " … … 1627 1607 msgstr "" 1628 1608 1629 #: Admin/MonLabo-doc.php:4 911609 #: Admin/MonLabo-doc.php:489 1630 1610 msgid "Presentation of functionalities in video" 1631 1611 msgstr "" … … 1651 1631 msgstr "" 1652 1632 1653 #: Admin/class-admin-init-pages.php: 4431633 #: Admin/class-admin-init-pages.php:374 1654 1634 msgid "Ranges of trusted IP addresses" 1655 1635 msgstr "" … … 1664 1644 msgstr "" 1665 1645 1666 #: Admin/class-settings-fields.php:241 1667 msgid "Replace with a contact form" 1668 msgstr "" 1669 1670 #: Admin/class-settings-fields.php:250 1671 msgid "Replace with a switchboard number" 1672 msgstr "" 1673 1674 #: Admin/class-admin-init-pages.php:510 Admin/class-admin-table-view.php:113 1646 #: Admin/class-admin-table-view.php:113 Admin/class-admin-init-pages.php:496 1675 1647 msgid "Room" 1648 msgstr "" 1649 1650 #: Admin/class-admin-init-pages.php:406 1651 msgid "Room or office" 1676 1652 msgstr "" 1677 1653 … … 1692 1668 msgstr "" 1693 1669 1694 #: Admin/class-settings-fields.php:6 521670 #: Admin/class-settings-fields.php:670 1695 1671 msgid "Send test email" 1696 1672 msgstr "" … … 1700 1676 msgstr "" 1701 1677 1702 #: Admin/MonLabo-doc.php:49 51678 #: Admin/MonLabo-doc.php:493 1703 1679 msgid "Shortcodes" 1704 1680 msgstr "" 1705 1681 1706 #: Admin/class-admin- init-pages.php:475 Admin/class-admin-table-view.php:3941682 #: Admin/class-admin-table-view.php:394 Admin/class-admin-init-pages.php:461 1707 1683 #: Admin/Edit_Members/class-edit-members-advanced.php:471 1708 1684 msgid "Shortcuts:" … … 1744 1720 msgstr "" 1745 1721 1746 #: Admin/MonLabo-doc.php:55 8 Admin/MonLabo-doc.php:5601722 #: Admin/MonLabo-doc.php:556 Admin/MonLabo-doc.php:558 1747 1723 msgid "Subscribe now" 1748 1724 msgstr "" … … 1752 1728 msgstr "" 1753 1729 1754 #: Admin/class-admin-init-pages.php:41 41730 #: Admin/class-admin-init-pages.php:419 1755 1731 msgid "Switchboard number" 1756 1732 msgstr "" … … 1768 1744 msgstr "" 1769 1745 1770 #: Admin/class-admin-init-pages.php:120 Admin/class-admin-init-pages.php:4 621746 #: Admin/class-admin-init-pages.php:120 Admin/class-admin-init-pages.php:448 1771 1747 msgid "Team groups" 1772 1748 msgstr "" … … 1791 1767 msgstr "" 1792 1768 1793 #: Admin/class-admin- menu.php:155 Admin/class-admin-table-view.php:1221794 #: Admin/class-admin-table-view.php: 279 Admin/class-admin-table-view.php:3961795 #: Admin/class-admin- table-view.php:412Admin/Import/class-import.php:4011769 #: Admin/class-admin-table-view.php:122 Admin/class-admin-table-view.php:279 1770 #: Admin/class-admin-table-view.php:396 Admin/class-admin-table-view.php:412 1771 #: Admin/class-admin-menu.php:155 Admin/Import/class-import.php:401 1796 1772 #: Admin/Edit_Members/class-edit-members-advanced.php:521 1797 1773 #: Admin/Edit_Members/class-edit-members-advanced.php:586 … … 1806 1782 msgstr "" 1807 1783 1808 #: Admin/MonLabo-doc.php:55 31784 #: Admin/MonLabo-doc.php:551 1809 1785 msgid "Tell the authors that you are using the plugin on" 1810 1786 msgstr "" 1811 1787 1812 #: Admin/class-admin-init-pages.php:3 781788 #: Admin/class-admin-init-pages.php:395 1813 1789 msgid "Test destination email" 1814 1790 msgstr "" … … 1879 1855 msgid "" 1880 1856 "This page is managing data privacy of persons. Please fill carrefully these " 1881 "fields to comply with the GDPR and individuals' consent to dissemination." 1882 msgstr "" 1883 1884 #: Admin/MonLabo-doc.php:496 1857 "fields to comply with the GDPR, individuals' consent to dissemination and " 1858 "phishing precautions." 1859 msgstr "" 1860 1861 #: Admin/MonLabo-doc.php:494 1885 1862 msgid "" 1886 1863 "This plugin adds the below shortcodes. These \"shortcodes\" are to be " … … 1888 1865 msgstr "" 1889 1866 1890 #: Admin/MonLabo-doc.php:48 81867 #: Admin/MonLabo-doc.php:486 1891 1868 msgid "" 1892 1869 "This WordPress plugin allows, on a unified interface, to manage the pages of " … … 1917 1894 msgstr "" 1918 1895 1919 #: Admin/class-admin-init-pages.php:415 1896 #: Admin/class-admin-init-pages.php:369 1897 msgid "Trusted visitors" 1898 msgstr "" 1899 1900 #: Admin/class-admin-init-pages.php:365 1901 msgid "Trusted visitors who can view all personal data" 1902 msgstr "" 1903 1904 #: Admin/class-admin-init-pages.php:420 1920 1905 msgid "Type of switchboard number to be indicated" 1921 1906 msgstr "" … … 1940 1925 msgstr "" 1941 1926 1942 #: Admin/class-admin- menu.php:174 Admin/class-admin-table-view.php:4011943 #: Admin/class-admin- table-view.php:4231927 #: Admin/class-admin-table-view.php:401 Admin/class-admin-table-view.php:423 1928 #: Admin/class-admin-menu.php:174 1944 1929 #: Admin/Edit_Members/class-edit-members-advanced.php:528 1945 1930 #: Admin/Edit_Members/class-edit-members-advanced.php:637 … … 1958 1943 1959 1944 #: Admin/class-html-forms.php:1221 Admin/class-html-forms.php:1270 1960 #: Admin/class-settings-fields.php:5 081945 #: Admin/class-settings-fields.php:517 1961 1946 msgid "use this picture" 1962 1947 msgstr "" … … 1975 1960 msgstr "" 1976 1961 1977 #: Admin/class-settings-fields.php:2 671962 #: Admin/class-settings-fields.php:276 1978 1963 msgid "Visitor's browser language" 1979 1964 msgstr "" … … 2012 1997 msgstr "" 2013 1998 2014 #: Admin/MonLabo-doc.php:54 71999 #: Admin/MonLabo-doc.php:545 2015 2000 #, php-format 2016 2001 msgid "" … … 2020 2005 msgstr "" 2021 2006 2022 #: Admin/MonLabo-doc.php:55 62007 #: Admin/MonLabo-doc.php:554 2023 2008 msgid "You can also subscribe to the following mailing lists" 2024 2009 msgstr "" -
mon-laboratoire/trunk/mon-laboratoire.php
r3355524 r3361909 16 16 * Plugin URI: http://www.monlabo.org 17 17 * Description: Simplify the management of a research unit's website 18 * Version: 5. 0.418 * Version: 5.1 19 19 * Requires at least: 5.6 20 20 * Requires PHP: 7.2 … … 42 42 43 43 defined( 'ABSPATH' ) or die( 'No direct script access allowed' ); 44 define( 'MONLABO_VERSION', '5. 0.4' ); //Currently plugin version, use SemVer - https://semver.org44 define( 'MONLABO_VERSION', '5.1' ); //Currently plugin version, use SemVer - https://semver.org 45 45 46 46 require_once ( __DIR__ . '/polyfill.php' ); -
mon-laboratoire/trunk/readme.txt
r3355524 r3361909 5 5 Requires at least: 5.6 6 6 Tested up to: 6.7 7 Stable tag: 5. 0.47 Stable tag: 5.1 8 8 Requires PHP: 7.2 9 9 License: GPLv3 or later … … 46 46 == Changelog == 47 47 48 = 5.1 = 49 *Release Date - 15 september 2025* 50 51 * New Features: 52 * - EVOL : simplify privacy configuration page for managing personal data protection 53 * 54 * Bug Fixes & Reliability: 55 * - CODE : class refactoring for improved maintainability: 56 * - Html_Forms -> Forms\{Generic_Forms_View, Forms_View, Wp_Post_Forms_View} 57 * - Settings_Fields -> Forms\Options_Forms_View 58 * - Forms_Processing\Forms_Processing -> Forms\Forms_Processing 59 * - Forms_Processing\Forms_Processing_Generic -> Forms\Forms_Processing_Generic 60 * - Forms_Processing\Forms_Processing_Advanced -> Forms\Forms_Processing_Advanced 61 * - BUG : mail form was not translated 62 * - BUG : In admin menu for editing person or other item, first page links and translation were not displayed 63 48 64 = 5.0.4 = 49 65 *Release Date - 3 September 2025* -
mon-laboratoire/trunk/todo.txt
r3355231 r3361909 57 57 Divers : 58 58 TODO: Ajouter la configuration du serveur SMTP https://www.alpixi.com/configurer-smtp-dans-wordpress-sans-plugin/ 59 TODO: suppress use of class Edit_Members_Comment int class-edit-members.php ( suppress comment comment field in >_ html_forms->field)59 TODO: suppress use of class Edit_Members_Comment int class-edit-members.php ( suppress comment comment field in >_forms_view->field) 60 60 TODO: voir si l'on peut retirer l'affichage du titre de la page des personnels. 61 61 TODO: explorer plus à fond les retours d'expérience : https://wiki.ccsd.cnrs.fr/wikis/hal/index.php/Retours_d%27exp%C3%A9rience
Note: See TracChangeset
for help on using the changeset viewer.