User menu and misc fixes
This commit is contained in:
1 parent
d153240721
commit
79670d421a
10 files changed
+164
-32
No files matched your search
@@ -5,7 +5,11 @@
|
||||
# TODO
|
||||
|
||||
- [ ] member search
|
||||
- [x] user menu
|
||||
- [ ] calendar plugin (responsive calendar)
|
||||
- [ ] link to calendars (add to own calendar)
|
||||
- [ ] custom colors for popular categories
|
||||
- [ ] more UX/graphical design
|
||||
- [ ] relative dates and times
|
||||
- [ ] dismissable introduction text ($.cookie)
|
||||
- [ ] profile-cards
|
||||
- [x] dismissable introduction text ($.cookie)
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php get_header(); ?>
|
||||
|
||||
<div id="content"
|
||||
<div class="container">
|
||||
|
||||
<div id="content">
|
||||
|
||||
<article <?php neuf_post_class(); ?>>
|
||||
|
||||
@@ -14,5 +16,7 @@
|
||||
|
||||
</div> <!-- #content -->
|
||||
|
||||
</div> <!-- .container -->
|
||||
|
||||
<?php get_footer(); ?>
|
||||
|
||||
@@ -3,11 +3,9 @@
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" id="Untitled-2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||
width="18px" height="12px" viewBox="0 0 18 12" enable-background="new 0 0 18 12" xml:space="preserve">
|
||||
<path fill="none" d="z"/>
|
||||
<g id="Layer_x25_201">
|
||||
<rect width="18" height="2" fill="white"/>
|
||||
<rect y="5" width="18" height="2" fill="white"/>
|
||||
<rect y="10" width="18" height="2" fill="white"/>
|
||||
</g>
|
||||
<path fill="none" d="z"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 647 B |
@@ -56,7 +56,7 @@ jQuery(document).ready(function() {
|
||||
$('#menu [data-toggle-menu]').on('click', function(e) {
|
||||
e.preventDefault();
|
||||
// add open css class
|
||||
var menu = $('#menu .main-menu');
|
||||
var menu = $('#menu .main-menu, #menu .user-menu-wrap');
|
||||
menu.toggleClass('visible');
|
||||
});
|
||||
|
||||
|
||||
@@ -35,9 +35,9 @@ body {
|
||||
}
|
||||
|
||||
/* Header and menu */
|
||||
$menu-padding: rem-calc(18);
|
||||
|
||||
#site-header {
|
||||
padding-top: rem-calc(16);
|
||||
padding-bottom: rem-calc(16);
|
||||
background-color: $site-header-bg-color;
|
||||
box-shadow: rgba(0,0,0,0.3) 0px 1px 2px 0px;
|
||||
|
||||
@@ -45,36 +45,149 @@ body {
|
||||
@include grid-row();
|
||||
position: relative;
|
||||
}
|
||||
}
|
||||
.site-title {
|
||||
float: left;
|
||||
padding-left: rem-calc(16);
|
||||
.site-title {
|
||||
@include grid-column(3);
|
||||
a {
|
||||
display: block;
|
||||
padding-top: $menu-padding;
|
||||
padding-bottom: $menu-padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
#menu {
|
||||
float: right;
|
||||
padding-right: rem-calc(50);
|
||||
|
||||
@include grid-column(9);
|
||||
text-transform: uppercase;
|
||||
font-weight: 600;
|
||||
|
||||
.menu-toggle {
|
||||
display: none;
|
||||
position: absolute;
|
||||
right: rem-calc(16);
|
||||
right: rem-calc(4);
|
||||
top: rem-calc(14);
|
||||
|
||||
@media #{$large-up} {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg {
|
||||
width: 32px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
g {
|
||||
fill: $primary-color;
|
||||
}
|
||||
|
||||
&:hover g {
|
||||
fill: darken($primary-color, 5%);
|
||||
}
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
line-height: 1;
|
||||
li {
|
||||
li a {
|
||||
display: block;
|
||||
float: left;
|
||||
padding-right: rem-calc(20);
|
||||
}
|
||||
}
|
||||
.main-menu {
|
||||
text-align: right;
|
||||
display: none;
|
||||
padding-top: $menu-padding * 2 + rem-calc(6);
|
||||
|
||||
&:last-child {
|
||||
@media #{$large-up} {
|
||||
display: block;
|
||||
padding-top: 0;
|
||||
}
|
||||
|
||||
li {
|
||||
@media #{$large-up} { float: left; }
|
||||
|
||||
a {
|
||||
display: block;
|
||||
padding-left: rem-calc(20);
|
||||
padding-top: $menu-padding;
|
||||
padding-bottom: $menu-padding;
|
||||
|
||||
}
|
||||
&:first-child a {
|
||||
padding-left: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
.user-menu-wrap {
|
||||
display: none;
|
||||
|
||||
@media #{$large-up} {
|
||||
display: block;
|
||||
font-size: rem-calc(14);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: rem-calc(16);
|
||||
margin-top: rem-calc(5);
|
||||
}
|
||||
|
||||
.profile-badge {
|
||||
display: block;
|
||||
height: 40px;
|
||||
text-align: right;
|
||||
|
||||
@media #{$large-up} {
|
||||
background-color: #fff;
|
||||
border-radius: 50px;
|
||||
//@extend .card-z1;
|
||||
box-shadow: rgba(0,0,0,0.14902) 0px 1px 0px 0px, rgba(0,0,0,0.09804) 0px 1px 2px 0px;
|
||||
}
|
||||
|
||||
img {
|
||||
max-height: 100%;
|
||||
border-radius: 50%;
|
||||
padding: rem-calc(4);
|
||||
padding-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.user-menu {
|
||||
@media #{$large-up} {
|
||||
display: none;
|
||||
background-color: white;
|
||||
overflow: hidden;
|
||||
padding: 0 rem-calc(16);
|
||||
font-size: rem-calc(14);
|
||||
margin-top: rem-calc(5);
|
||||
}
|
||||
|
||||
//@extend .card-z1;
|
||||
box-shadow: rgba(0,0,0,0.14902) 0px 1px 0px 0px, rgba(0,0,0,0.09804) 0px 1px 2px 0px;
|
||||
@extend .radius;
|
||||
text-align: right;
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
|
||||
li a {
|
||||
padding-top: rem-calc(18);
|
||||
padding-bottom: rem-calc(18);
|
||||
}
|
||||
}
|
||||
&:hover .user-menu {
|
||||
display: block;
|
||||
}
|
||||
.icon-down {
|
||||
font-size: rem-calc(12);
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
padding-left: rem-calc(6);
|
||||
transform: rotate(90deg);
|
||||
top: -5px;
|
||||
position: relative;
|
||||
}
|
||||
.profile-inner {
|
||||
display: inline-block;
|
||||
padding-left: rem-calc(10);
|
||||
|
||||
@media #{$large-up} { padding: 0 rem-calc(10); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -113,13 +226,6 @@ body {
|
||||
}
|
||||
|
||||
/* Single */
|
||||
#content {
|
||||
.page-title,
|
||||
.page,
|
||||
.post {
|
||||
padding-left: rem-calc(16);
|
||||
}
|
||||
}
|
||||
|
||||
.text-body {
|
||||
@extend .card;
|
||||
@@ -322,3 +428,7 @@ input[type=submit]{
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.visible {
|
||||
display: block !important;
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="12" viewBox="0 0 18 12"><path d="z" fill="none"/><g fill="#fff"><path d="M0 0h18v2h-18zM0 5h18v2h-18zM0 10h18v2h-18z"/></g><path d="z" fill="none"/></svg>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="12" viewBox="0 0 18 12"><g fill="#fff"><path d="M0 0h18v2h-18zM0 5h18v2h-18zM0 10h18v2h-18z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 213 B After Width: | Height: | Size: 163 B |
+1
-1
@@ -1 +1 @@
|
||||
"use strict";function format_posts(t){var e="",n=0;if(0===t.length)return"";for(e+='<thead><tr class="fadein"><th width="53%">Arrangement</th><th>Sted</th><th>Tid</th></tr></thead>',n=0;n<t.length;n++){var r=t[n];e+='<tr class="fadein">',e+='<td class="entry-title"><a href="'+r.url+'">'+r.title+"</a></td>",e+='<td class="entry-venue">'+r.custom_fields._neuf_events_venue+"</td>",e+='<td class="entry-starttime">'+moment.unix(r.custom_fields._neuf_events_starttime).utc().format("DD. MMMM YYYY, HH.mm")+"</td></tr>"}return e}var program_endpoint="https://studentersamfundet.no/api/events/get_upcoming/",query_params={count:10},entrypoint=".program-list";jQuery(document).ready(function(){moment.lang("nb");var t=jQuery;t.getJSON(program_endpoint+"?callback=?",query_params,function(e){if(e&&e.events){var n=format_posts(e.events);t(entrypoint).html(n)}}),t("#menu [data-toggle-menu]").on("click",function(e){e.preventDefault();var n=t("#menu .main-menu");n.toggleClass("visible")}),t("[data-toggle-introduction]").on("click",function(){t(this).parent().fadeOut(600),t.cookie("introduction-dismissed","1")}),"1"!==t.cookie("introduction-dismissed")&&(t(".introduction").show(),t(".introduction").addClass("fadein"))});
|
||||
"use strict";function format_posts(t){var e="",n=0;if(0===t.length)return"";for(e+='<thead><tr class="fadein"><th width="53%">Arrangement</th><th>Sted</th><th>Tid</th></tr></thead>',n=0;n<t.length;n++){var r=t[n];e+='<tr class="fadein">',e+='<td class="entry-title"><a href="'+r.url+'">'+r.title+"</a></td>",e+='<td class="entry-venue">'+r.custom_fields._neuf_events_venue+"</td>",e+='<td class="entry-starttime">'+moment.unix(r.custom_fields._neuf_events_starttime).utc().format("DD. MMMM YYYY, HH.mm")+"</td></tr>"}return e}var program_endpoint="https://studentersamfundet.no/api/events/get_upcoming/",query_params={count:10},entrypoint=".program-list";jQuery(document).ready(function(){moment.lang("nb");var t=jQuery;t.getJSON(program_endpoint+"?callback=?",query_params,function(e){if(e&&e.events){var n=format_posts(e.events);t(entrypoint).html(n)}}),t("#menu [data-toggle-menu]").on("click",function(e){e.preventDefault();var n=t("#menu .main-menu, #menu .user-menu-wrap");n.toggleClass("visible")}),t("[data-toggle-introduction]").on("click",function(){t(this).parent().fadeOut(600),t.cookie("introduction-dismissed","1")}),"1"!==t.cookie("introduction-dismissed")&&(t(".introduction").show(),t(".introduction").addClass("fadein"))});
|
||||
+1
-1
@@ -1 +1 @@
|
||||
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}dfn{font-style:italic}mark{background:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-size:1em}kbd,pre,samp{font-family:monospace,monospace}button{font:inherit}input,optgroup{margin:0}input,optgroup,select,textarea{color:inherit;font:inherit}button{overflow:visible}button,select{text-transform:none}html input[type="button"],input[type="reset"]{-webkit-appearance:button;cursor:pointer}input[type="submit"]{cursor:pointer}html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}meta.foundation-version{font-family:"/5.2.3/"}meta.foundation-mq-small{font-family:"/only screen/";width:0}meta.foundation-mq-medium{font-family:"/only screen and (min-width:40.063em)/";width:40.063em}meta.foundation-mq-large{font-family:"/only screen and (min-width:64.063em)/";width:64.063em}meta.foundation-mq-xlarge{font-family:"/only screen and (min-width:90.063em)/";width:90.063em}meta.foundation-mq-xxlarge{font-family:"/only screen and (min-width:120.063em)/";width:120.063em}meta.foundation-data-attribute-namespace{font-family:false}html,body{height:100%}*,*:before,*:after{box-sizing:border-box}html,body{font-size:100%}body{background:#fafafa;color:#000;padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:default}a:hover{cursor:pointer}img{max-width:100%;height:auto;-ms-interpolation-mode:bicubic}#map_canvas img,#map_canvas embed,#map_canvas object,.map_canvas img,.map_canvas embed,.map_canvas object{max-width:none!important}.left{float:left!important}.right{float:right!important}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img{display:inline-block;vertical-align:middle}textarea{height:auto;min-height:50px}select,.row{width:100%}.row{margin:0 auto;max-width:62.5rem}.row:before,.row:after{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{width:auto;margin:0 -.9375rem;max-width:none}.row .row:before,.row .row:after{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{width:auto;margin:0;max-width:none}.row .row.collapse:before,.row .row.collapse:after{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:.9375rem;padding-right:.9375rem;width:100%;float:left}[class*="column"]+[class*="column"]:last-child{float:right}[class*="column"]+[class*="column"].end{float:left}@media only screen{.small-push-0{position:relative;left:0%;right:auto}.small-pull-0{position:relative;right:0%;left:auto}.small-push-1{position:relative;left:8.33333%;right:auto}.small-pull-1{position:relative;right:8.33333%;left:auto}.small-push-2{position:relative;left:16.66667%;right:auto}.small-pull-2{position:relative;right:16.66667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.33333%;right:auto}.small-pull-4{position:relative;right:33.33333%;left:auto}.small-push-5{position:relative;left:41.66667%;right:auto}.small-pull-5{position:relative;right:41.66667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.33333%;right:auto}.small-pull-7{position:relative;right:58.33333%;left:auto}.small-push-8{position:relative;left:66.66667%;right:auto}.small-pull-8{position:relative;right:66.66667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.33333%;right:auto}.small-pull-10{position:relative;right:83.3333Line truncated
|
||||
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */html{font-family:sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background:0 0}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}dfn{font-style:italic}mark{background:#ff0;color:#000}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-size:1em}kbd,pre,samp{font-family:monospace,monospace}button{font:inherit}input,optgroup{margin:0}input,optgroup,select,textarea{color:inherit;font:inherit}button{overflow:visible}button,select{text-transform:none}html input[type="button"],input[type="reset"]{-webkit-appearance:button;cursor:pointer}input[type="submit"]{cursor:pointer}html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{border:0;padding:0}input{line-height:normal}input[type="checkbox"],input[type="radio"]{box-sizing:border-box;padding:0}input[type="number"]::-webkit-inner-spin-button,input[type="number"]::-webkit-outer-spin-button{height:auto}input[type="search"]::-webkit-search-cancel-button,input[type="search"]::-webkit-search-decoration{-webkit-appearance:none}legend{border:0;padding:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-collapse:collapse;border-spacing:0}meta.foundation-version{font-family:"/5.2.3/"}meta.foundation-mq-small{font-family:"/only screen/";width:0}meta.foundation-mq-medium{font-family:"/only screen and (min-width:40.063em)/";width:40.063em}meta.foundation-mq-large{font-family:"/only screen and (min-width:64.063em)/";width:64.063em}meta.foundation-mq-xlarge{font-family:"/only screen and (min-width:90.063em)/";width:90.063em}meta.foundation-mq-xxlarge{font-family:"/only screen and (min-width:120.063em)/";width:120.063em}meta.foundation-data-attribute-namespace{font-family:false}html,body{height:100%}*,*:before,*:after{box-sizing:border-box}html,body{font-size:100%}body{background:#fafafa;color:#000;padding:0;margin:0;font-family:"Open Sans",sans-serif;font-weight:400;font-style:normal;line-height:1;position:relative;cursor:default}a:hover{cursor:pointer}img{max-width:100%;height:auto;-ms-interpolation-mode:bicubic}#map_canvas img,#map_canvas embed,#map_canvas object,.map_canvas img,.map_canvas embed,.map_canvas object{max-width:none!important}.left{float:left!important}.right{float:right!important}.clearfix:before,.clearfix:after{content:" ";display:table}.clearfix:after{clear:both}.hide{display:none}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}img{display:inline-block;vertical-align:middle}textarea{height:auto;min-height:50px}select,.row{width:100%}.row{margin:0 auto;max-width:62.5rem}.row:before,.row:after{content:" ";display:table}.row:after{clear:both}.row.collapse>.column,.row.collapse>.columns{padding-left:0;padding-right:0}.row.collapse .row{margin-left:0;margin-right:0}.row .row{width:auto;margin:0 -.9375rem;max-width:none}.row .row:before,.row .row:after{content:" ";display:table}.row .row:after{clear:both}.row .row.collapse{width:auto;margin:0;max-width:none}.row .row.collapse:before,.row .row.collapse:after{content:" ";display:table}.row .row.collapse:after{clear:both}.column,.columns{padding-left:.9375rem;padding-right:.9375rem;width:100%;float:left}[class*="column"]+[class*="column"]:last-child{float:right}[class*="column"]+[class*="column"].end{float:left}@media only screen{.small-push-0{position:relative;left:0%;right:auto}.small-pull-0{position:relative;right:0%;left:auto}.small-push-1{position:relative;left:8.33333%;right:auto}.small-pull-1{position:relative;right:8.33333%;left:auto}.small-push-2{position:relative;left:16.66667%;right:auto}.small-pull-2{position:relative;right:16.66667%;left:auto}.small-push-3{position:relative;left:25%;right:auto}.small-pull-3{position:relative;right:25%;left:auto}.small-push-4{position:relative;left:33.33333%;right:auto}.small-pull-4{position:relative;right:33.33333%;left:auto}.small-push-5{position:relative;left:41.66667%;right:auto}.small-pull-5{position:relative;right:41.66667%;left:auto}.small-push-6{position:relative;left:50%;right:auto}.small-pull-6{position:relative;right:50%;left:auto}.small-push-7{position:relative;left:58.33333%;right:auto}.small-pull-7{position:relative;right:58.33333%;left:auto}.small-push-8{position:relative;left:66.66667%;right:auto}.small-pull-8{position:relative;right:66.66667%;left:auto}.small-push-9{position:relative;left:75%;right:auto}.small-pull-9{position:relative;right:75%;left:auto}.small-push-10{position:relative;left:83.33333%;right:auto}.small-pull-10{position:relative;right:83.3333Line truncated
|
||||
@@ -42,7 +42,10 @@
|
||||
|
||||
</div> <!-- #content -->
|
||||
|
||||
<?php get_template_part( 'sidebar' ); ?>
|
||||
<?php if( !is_page() ) {
|
||||
get_template_part( 'sidebar' );
|
||||
// TODO Level 2 navigation
|
||||
} ?>
|
||||
|
||||
</div> <!-- .container-->
|
||||
|
||||
|
||||
@@ -1,11 +1,24 @@
|
||||
<nav id="menu">
|
||||
<a href="#" class="menu-toggle" data-toggle-menu><img src="<?php bloginfo( 'stylesheet_directory' ); ?>/app/images/icon-menu.svg" class="icon-menu" /></a>
|
||||
<a href="#" class="menu-toggle" data-toggle-menu><?php include(get_stylesheet_directory()."/dist/images/icon-menu.svg"); ?></a>
|
||||
<?php wp_nav_menu( array(
|
||||
'theme_location' => 'main-menu',
|
||||
'container' => 'false',
|
||||
'menu_class' => 'main-menu') ); ?>
|
||||
|
||||
<!-- TODO: User menu (logout, more) -->
|
||||
<?php if ( is_user_logged_in() ) { ?><ul><li><a href="<?php echo wp_logout_url("/"); ?>">Logg ut</a></li></ul><?php } ?>
|
||||
<?php if ( is_user_logged_in() ):
|
||||
$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;
|
||||
?>
|
||||
<div class="user-menu-wrap">
|
||||
<a href="#" class="profile-badge"><img src="<?php echo $grav_url; ?> " class="profile-picture" /><span class="profile-inner"><?php echo $user->user_firstname." ".$user->user_lastname; ?> <i class="icon-down">▶</i></span></a>
|
||||
<ul class="user-menu">
|
||||
<li><a href="<?php echo "/profil/" ?>">Profil</a></li>
|
||||
<li><a href="<?php echo wp_logout_url("/"); ?>">Logg ut</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
</nav> <!-- #menu -->
|
||||
Reference in new issue
Block a user