diff --git a/functions.php b/functions.php
index 9880156..69ad13f 100644
--- a/functions.php
+++ b/functions.php
@@ -142,3 +142,43 @@ function misha_save_term_fields( $term_id ) {
);
}
+
+// ---------------------------------------------
+// Ajout des champs custom pour l'utilisateur
+// ---------------------------------------------
+
+
+add_action( 'show_user_profile', 'crf_show_extra_profile_fields' );
+add_action( 'edit_user_profile', 'crf_show_extra_profile_fields' );
+
+function crf_show_extra_profile_fields( $user ) {
+ $year = get_the_author_meta( 'infodata', $user->ID );
+ ?>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scss/components/_previews.scss b/scss/components/_previews.scss
index 20dc9df..976f37b 100644
--- a/scss/components/_previews.scss
+++ b/scss/components/_previews.scss
@@ -225,15 +225,18 @@ $preview-height: 8*$lineheight;
margin:auto;
}
-.mwarea {
- padding-bottom: $lineheight;
+.avatar {
+ background: transparent;
}
-.mwaimg {
- width:100%;
- height:auto;
- display:block;
- margin:auto;
+.mwarea {
+ padding-bottom: $lineheight;
+ .avatar {
+ width:80%;
+ height:auto;
+ display:block;
+ margin:auto;
+ }
}
.cover {
diff --git a/style.css b/style.css
index 3431b4f..0046edd 100644
--- a/style.css
+++ b/style.css
@@ -1934,14 +1934,16 @@ ul.breadcrumb, ol.breadcrumb, .breadcrumb {
height: auto;
margin: auto; }
+.avatar {
+ background: transparent; }
+
.mwarea {
padding-bottom: 1.5rem; }
-
-.mwaimg {
- width: 100%;
- height: auto;
- display: block;
- margin: auto; }
+ .mwarea .avatar {
+ width: 80%;
+ height: auto;
+ display: block;
+ margin: auto; }
.cover {
width: 100%;