diff --git a/wp-content/themes/aktiv2014/functions.php b/wp-content/themes/aktiv2014/functions.php index 28cf95a..ee0b3bc 100644 --- a/wp-content/themes/aktiv2014/functions.php +++ b/wp-content/themes/aktiv2014/functions.php @@ -385,4 +385,12 @@ function neuf_show_admin_bar($content) { } add_filter( 'show_admin_bar' , 'neuf_show_admin_bar'); +function get_grav_url($user) { + $default = "mm"; + $size = 50; + $grav_url = "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $user->user_email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; + + return $grav_url; +} + ?> diff --git a/wp-content/themes/aktiv2014/menu.php b/wp-content/themes/aktiv2014/menu.php index a52f8f3..f289999 100644 --- a/wp-content/themes/aktiv2014/menu.php +++ b/wp-content/themes/aktiv2014/menu.php @@ -10,9 +10,7 @@ // User menu $user = wp_get_current_user(); - $default = "mm"; - $size = 50; - $grav_url = "https://www.gravatar.com/avatar/" . md5( strtolower( trim( $user->user_email ) ) ) . "?d=" . urlencode( $default ) . "&s=" . $size; + $grav_url = get_grav_url($user); ?>
display_name; ?> ▶ diff --git a/wp-content/themes/aktiv2014/page-profile.php b/wp-content/themes/aktiv2014/page-profile.php new file mode 100644 index 0000000..dd18794 --- /dev/null +++ b/wp-content/themes/aktiv2014/page-profile.php @@ -0,0 +1,32 @@ + +
+ +
+
display_name; ?>
+
    +
  • Epost: user_email; ?>
  • +
  • Rolle på aktiv.neuf.no: roles[0]; ?>
  • +
+
Profilbilde
+
+ Endre profilbildet ditt på gravatar.com. + +
Passord
+ Endre passordet ditt via Brukerinfo. + +
Profil og medlemskap
+ Se status på medlemskapet, endre navn, epost, med mer via Inside. +
+ +
+ + diff --git a/wp-content/themes/aktiv2014/sidebar.php b/wp-content/themes/aktiv2014/sidebar.php index a954a1d..15689c9 100644 --- a/wp-content/themes/aktiv2014/sidebar.php +++ b/wp-content/themes/aktiv2014/sidebar.php @@ -4,7 +4,7 @@

Dagens program

- + Vis hele programmet