diff --git a/assets/lang/fr_FR.mo b/assets/lang/fr_FR.mo index 4a43054..7184b27 100644 Binary files a/assets/lang/fr_FR.mo and b/assets/lang/fr_FR.mo differ diff --git a/assets/lang/fr_FR.po b/assets/lang/fr_FR.po index 8e9f753..0e4b6d6 100644 --- a/assets/lang/fr_FR.po +++ b/assets/lang/fr_FR.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Beflex Sensei 2.2.0\n" -"POT-Creation-Date: 2023-03-03 15:48+0100\n" -"PO-Revision-Date: 2023-03-03 15:53+0100\n" +"POT-Creation-Date: 2024-05-23 16:12+0200\n" +"PO-Revision-Date: 2024-05-23 16:16+0200\n" "Last-Translator: \n" "Language-Team: contact@eoxia.com\n" "Language: fr_FR\n" @@ -10,7 +10,7 @@ msgstr "" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n" -"X-Generator: Poedit 3.2.2\n" +"X-Generator: Poedit 3.4.4\n" "X-Poedit-Basepath: ../..\n" "X-Poedit-SourceCharset: UTF-8\n" "X-Poedit-KeywordsList: esc_html__;__;_e;esc_html_e;_n;_x;_ex\n" @@ -32,9 +32,9 @@ msgstr "Type d'animation" msgid "Hide on mobile" msgstr "Masquer sur mobile" -#: inc/block-blocks.php:31 -msgid "Beflex" -msgstr "Beflex" +#: functions.php:90 functions.php:91 +msgid "BeFlex Settings" +msgstr "Options Beflex" #: inc/block-patterns.php:11 msgid "Design" @@ -52,103 +52,55 @@ msgstr "Pieds de page" msgid "Query" msgstr "Requête" -#: inc/blocks/bfs-course-completion/bfs-course-completion.php:16 -msgid "Course completion" -msgstr "Complétion du cours" - -#: inc/blocks/bfs-course-completion/bfs-course-completion.php:17 -msgid "Display completion length of a course" -msgstr "Affiche la durée complétion d'un cours" - -#: inc/blocks/bfs-course-completion/view.php:14 -msgid "Display course completion" -msgstr "Affiche la complétion d'un cours" - -#: inc/blocks/bfs-course-lessons/bfs-course-lessons.php:16 -msgid "Course lessons" -msgstr "Leçons du cours" - -#: inc/blocks/bfs-course-lessons/bfs-course-lessons.php:17 -msgid "Display lessons associated to a course" -msgstr "Afficher les leçons associées à un cours" +#: inc/blocks.php:29 +msgid "Beflex" +msgstr "Beflex" -#: inc/blocks/bfs-course-lessons/view.php:14 +#: inc/blocks/bfs-course-lesson/view.php:33 msgid "Display course lessons" msgstr "Affiche les leçons du cours" -#: inc/blocks/bfs-course-lessons/view.php:40 sensei/content-course.php:68 +#: inc/blocks/bfs-course-lesson/view.php:50 sensei/content-course.php:68 msgid "lessons" msgstr "Leçons" -#: inc/blocks/bfs-course-signup/bfs-course-signup.php:16 -msgid "Sensei Course signup" -msgstr "Sensei inscription au cours" - -#: inc/blocks/bfs-course-signup/bfs-course-signup.php:17 -msgid "Display button to take course" -msgstr "Affiche le bouton d'inscription au cours" - -#: inc/blocks/bfs-course-signup/view.php:14 +#: inc/blocks/bfs-course-signup/view.php:33 msgid "Display course signup button" msgstr "Affiche le bouton d'enregistrement" -#: inc/blocks/bfs-course-signup/view.php:26 +#: inc/blocks/bfs-course-signup/view.php:47 msgid "Start course" msgstr "Commencer le cours" -#: inc/blocks/bfs-course-signup/view.php:29 +#: inc/blocks/bfs-course-signup/view.php:50 msgid "Take course" msgstr "S'inscrire au cours" -#: inc/blocks/bfs-course-tax/bfs-course-tax.php:16 -msgid "Course categories" -msgstr "Catégories de cours" - -#: inc/blocks/bfs-course-tax/bfs-course-tax.php:17 -msgid "Display categories associated to a course" -msgstr "Affiche les catégories associées à un cours" +#: inc/blocks/bfs-course-tax/view.php:33 +msgid "Display course taxonomies" +msgstr "Afficher les catégories du cours" -#: inc/blocks/bfs-course-tax/view.php:14 -msgid "Display course categories" -msgstr "Affiche les catégories de cours" - -#: inc/blocks/bfs-course-time/bfs-course-time.php:16 -msgid "Course time" -msgstr "Durée du cours" - -#: inc/blocks/bfs-course-time/bfs-course-time.php:17 -msgid "Display time length of a course" -msgstr "Affiche la durée d'un cours" - -#: inc/blocks/bfs-course-time/view.php:14 +#: inc/blocks/bfs-course-time/view.php:33 msgid "Display course time" msgstr "Afficher la durée du cours" -#: inc/blocks/bfs-course-time/view.php:40 sensei/content-course.php:84 +#: inc/blocks/bfs-course-time/view.php:50 sensei/content-course.php:84 msgid "min" msgstr "min" -#: inc/blocks/bfs-login/bfs-login.php:16 -msgid "Sensei login navigation" -msgstr "Sensei login navigation" - -#: inc/blocks/bfs-login/bfs-login.php:17 -msgid "Display login and profile link" -msgstr "Affiche le bouton connexion et profile" - -#: inc/blocks/bfs-login/view.php:19 sensei/functions.php:76 -msgid "My courses" -msgstr "Mes cours" +#: inc/blocks/bfs-login/view.php:33 +msgid "Display Sensei login navigation" +msgstr "Afficher le bloc Connexion" -#: inc/blocks/bfs-login/view.php:25 sensei/functions.php:84 -msgid "Logout" -msgstr "Deconnexion" +#: inc/blocks/bfs-login/view.php:47 +msgid "Check my profile" +msgstr "Voir mon profile" -#: inc/blocks/bfs-login/view.php:38 +#: inc/blocks/bfs-login/view.php:69 msgid "Login" msgstr "Connexion" -#: inc/patterns/course-default.php:6 +#: inc/patterns/course-default.php:7 msgid "BFS Sensei - course template" msgstr "BFS Sensei - course template" @@ -176,11 +128,11 @@ msgstr "Sensei course grid" msgid "Call To Action - Standard" msgstr "Call To Action - Standard" -#: sensei/archive-message.php:40 +#: sensei/archive-message.php:37 msgid "Messages" msgstr "Messages" -#: sensei/archive-message.php:48 +#: sensei/archive-message.php:45 msgid "You do not have any messages." msgstr "Vous n'avez pas de messages." @@ -188,10 +140,18 @@ msgstr "Vous n'avez pas de messages." msgid "Beflex style" msgstr "Beflex style" +#: sensei/functions.php:76 +msgid "My courses" +msgstr "Mes cours" + #: sensei/functions.php:81 msgid "My messages" msgstr "Mes messages" +#: sensei/functions.php:84 +msgid "Logout" +msgstr "Deconnexion" + #: sensei/functions.php:139 msgid "Your informations can no longer be modified" msgstr "Vos informations ne peuvent plus êtres modifiées" @@ -220,11 +180,56 @@ msgstr "Email" msgid "The user requested does not exist." msgstr "L'utilisateur demandé n'existe pas" -#: sensei/loop-message.php:51 sensei/single-message.php:40 +#: sensei/loop-message.php:51 #, php-format msgid "Conversation du cours : %s" msgstr "Conversation du cours : %s" +#: sensei/single-message.php:43 +#, php-format +msgid "Conversation de : %s" +msgstr "Conversation de : %s" + +#: sensei/single-message.php:52 +msgid "Cours" +msgstr "Cours" + +#~ msgid "Course completion" +#~ msgstr "Complétion du cours" + +#~ msgid "Display completion length of a course" +#~ msgstr "Affiche la durée complétion d'un cours" + +#~ msgid "Display course completion" +#~ msgstr "Affiche la complétion d'un cours" + +#~ msgid "Course lessons" +#~ msgstr "Leçons du cours" + +#~ msgid "Display lessons associated to a course" +#~ msgstr "Afficher les leçons associées à un cours" + +#~ msgid "Sensei Course signup" +#~ msgstr "Sensei inscription au cours" + +#~ msgid "Display button to take course" +#~ msgstr "Affiche le bouton d'inscription au cours" + +#~ msgid "Course categories" +#~ msgstr "Catégories de cours" + +#~ msgid "Display categories associated to a course" +#~ msgstr "Affiche les catégories associées à un cours" + +#~ msgid "Display course categories" +#~ msgstr "Affiche les catégories de cours" + +#~ msgid "Display time length of a course" +#~ msgstr "Affiche la durée d'un cours" + +#~ msgid "Display login and profile link" +#~ msgstr "Affiche le bouton connexion et profile" + #~ msgid "Write a new message..." #~ msgstr "Écrire un nouveau message..." diff --git a/inc/blocks/bfs-login/assets/css/style.css b/inc/blocks/bfs-login/assets/css/style.css index 67126ba..d5776fa 100644 --- a/inc/blocks/bfs-login/assets/css/style.css +++ b/inc/blocks/bfs-login/assets/css/style.css @@ -10,7 +10,28 @@ -webkit-box-align: center; -ms-flex-align: center; align-items: center; - gap: 10px; + gap: 30px; +} +.bfs-login .bfs-login__profile { + display: -webkit-box; + display: -ms-flexbox; + display: flex; + -webkit-box-align: center; + -ms-flex-align: center; + align-items: center; + line-height: 1.2; +} +.bfs-login .bfs-login__profile .avatar { + border-radius: 50%; + margin-right: 0.6em; +} +.bfs-login .bfs-login__profile .bfs-login__profile-name { + color: var(--wp--preset--color--black); + font-weight: 600; +} +.bfs-login .bfs-login__profile .bfs-login__profile-label { + font-size: 12px; + color: rgba(0, 0, 0, 0.4); } .bfs-login .bf-button__style-outline { background-color: transparent; @@ -35,12 +56,20 @@ -webkit-box-sizing: border-box; box-sizing: border-box; } +.bfs-login .bf-button.bf-button__square { + width: 40px; + height: 40px; + padding: 0; + -webkit-box-pack: center; + -ms-flex-pack: center; + justify-content: center; + border-radius: 50%; +} .bfs-login .bf-button .bfs-login__icon, .bfs-login .bf-button .bfs-login__label { display: inline-block; } .bfs-login .bf-button .bfs-login__icon { width: 15px; - margin-right: 6px; } .bfs-login .bf-button .bfs-login__icon.bfs-login__courses-icon { fill: var(--wp--preset--color--primary); diff --git a/inc/blocks/bfs-login/assets/css/style.min.css b/inc/blocks/bfs-login/assets/css/style.min.css index 8ec6905..5d39e8c 100644 --- a/inc/blocks/bfs-login/assets/css/style.min.css +++ b/inc/blocks/bfs-login/assets/css/style.min.css @@ -1 +1 @@ -.bfs-login{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:10px}.bfs-login .bf-button__style-outline{background-color:transparent;padding:calc(.6em - 2px) calc(1em - 2px);border:2px solid}.bfs-login .bf-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;font-size:var(--wp--preset--font-size--normal);-webkit-box-shadow:none;box-shadow:none;cursor:pointer;text-align:center;text-decoration:none;word-break:break-word;-webkit-box-sizing:border-box;box-sizing:border-box}.bfs-login .bf-button .bfs-login__icon,.bfs-login .bf-button .bfs-login__label{display:inline-block}.bfs-login .bf-button .bfs-login__icon{width:15px;margin-right:6px}.bfs-login .bf-button .bfs-login__icon.bfs-login__courses-icon{fill:var(--wp--preset--color--primary)}.bfs-login .bf-button .bfs-login__icon.bfs-login__login-icon{fill:var(--wp--preset--color--primary)} \ No newline at end of file +.bfs-login{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:30px}.bfs-login .bfs-login__profile{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1.2}.bfs-login .bfs-login__profile .avatar{border-radius:50%;margin-right:.6em}.bfs-login .bfs-login__profile .bfs-login__profile-name{color:var(--wp--preset--color--black);font-weight:600}.bfs-login .bfs-login__profile .bfs-login__profile-label{font-size:12px;color:rgba(0,0,0,.4)}.bfs-login .bf-button__style-outline{background-color:transparent;padding:calc(.6em - 2px) calc(1em - 2px);border:2px solid}.bfs-login .bf-button{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:4px;font-size:var(--wp--preset--font-size--normal);-webkit-box-shadow:none;box-shadow:none;cursor:pointer;text-align:center;text-decoration:none;word-break:break-word;-webkit-box-sizing:border-box;box-sizing:border-box}.bfs-login .bf-button.bf-button__square{width:40px;height:40px;padding:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;border-radius:50%}.bfs-login .bf-button .bfs-login__icon,.bfs-login .bf-button .bfs-login__label{display:inline-block}.bfs-login .bf-button .bfs-login__icon{width:15px}.bfs-login .bf-button .bfs-login__icon.bfs-login__courses-icon{fill:var(--wp--preset--color--primary)}.bfs-login .bf-button .bfs-login__icon.bfs-login__login-icon{fill:var(--wp--preset--color--primary)} \ No newline at end of file diff --git a/inc/blocks/bfs-login/assets/scss/style.scss b/inc/blocks/bfs-login/assets/scss/style.scss index a3c7ad4..fb0bf8d 100644 --- a/inc/blocks/bfs-login/assets/scss/style.scss +++ b/inc/blocks/bfs-login/assets/scss/style.scss @@ -5,7 +5,26 @@ display: flex; flex-wrap: wrap; align-items: center; - gap: 10px; + gap: 30px; + + .bfs-login__profile { + display: flex; + align-items: center; + line-height: 1.2; + + .avatar { + border-radius: 50%; + margin-right: 0.6em; + } + .bfs-login__profile-name { + color: var(--wp--preset--color--black); + font-weight: 600; + } + .bfs-login__profile-label { + font-size: 12px; + color: rgba(0,0,0,0.4); + } + } .bf-button__style-outline { background-color: transparent; @@ -25,13 +44,19 @@ word-break: break-word; box-sizing: border-box; + &.bf-button__square { + width: 40px; + height: 40px; + padding: 0; + justify-content: center; + border-radius: 50%; + } .bfs-login__icon, .bfs-login__label { display: inline-block; } .bfs-login__icon { width: 15px; - margin-right: 6px; &.bfs-login__courses-icon { fill: var(--wp--preset--color--primary); diff --git a/inc/blocks/bfs-login/view.php b/inc/blocks/bfs-login/view.php index 0873aa1..4893311 100644 --- a/inc/blocks/bfs-login/view.php +++ b/inc/blocks/bfs-login/view.php @@ -35,18 +35,22 @@ if ( is_user_logged_in() ) : $profile_url = Sensei()->learner_profiles->get_permalink( get_current_user_id() ); + $user = wp_get_current_user(); ?> +