0dd30e79 by Jeff Balicki

login

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 079268b3
......@@ -14960,6 +14960,10 @@ input[type=checkbox] {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33.996' height='33.996' viewBox='0 0 33.996 33.996'%3E%3Cg id='Group_1499' data-name='Group 1499' transform='translate(2.121 2.121)' opacity='0.997'%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M0 0 29.754 29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3Cline id='Line_4' data-name='Line 4' x1='29.754' y2='29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
.admin-bar .search {
top: 90px;
}
.search .search-form label::before {
content: "";
opacity: 0;
......@@ -15056,6 +15060,45 @@ input[type=checkbox] {
transform: translateY(-11px) rotate(-45deg);
}
.logged-in .sign-up.mobile.menu-item,
.logged-in .log-in-button,
.logged-in .sign-up.menu-item {
display: none !important;
visibility: hidden !important;
}
#login-menu .user-menu {
display: block;
padding-bottom: 0px;
padding-top: 0px;
text-align: right !important;
}
#login-menu .menu-item-type-user {
margin-right: 50px;
}
#login-menu .menu-item-type-user::after {
content: url("data:image/svg+xml,%3Csvg id='Group_1360' data-name='Group 1360' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='42.064' height='42.049' viewBox='0 0 42.064 42.049'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_242' data-name='Rectangle 242' width='42.064' height='42.049' fill='%23156570'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Group_1359' data-name='Group 1359' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_1390' data-name='Path 1390' d='M20.087 0h1.245A1.368 1.368 0 0 0 21.5.024a21.19 21.19 0 0 1 3.893.444A20.321 20.321 0 0 1 36.729 7.033a20.5 20.5 0 0 1 5.305 12.884 20.8 20.8 0 0 1-7.98 17.638 20.188 20.188 0 0 1-12.389 4.488 20.74 20.74 0 0 1-6.526-.8 21.057 21.057 0 0 1-11.58-8.517A20.512 20.512 0 0 1 .123 23.19c-.045-.432-.082-.865-.123-1.3v-1.8c.026-.262.055-.524.077-.786A20.206 20.206 0 0 1 2.007 12.1 20.8 20.8 0 0 1 15.265.823 17.258 17.258 0 0 1 19.92.029 1.053 1.053 0 0 0 20.087 0M21.24 25.906v.023c-1.695 0-3.39-.006-5.085 0a17.691 17.691 0 0 0-4.366.38A10.475 10.475 0 0 0 6.324 29.5c-.132.15-.246.315-.366.475a.349.349 0 0 0-.024.42c.112.191.213.389.335.573a17.792 17.792 0 0 0 17.552 7.649A17.591 17.591 0 0 0 34 33.246a15.948 15.948 0 0 0 2.049-2.637.621.621 0 0 0-.045-.827 9.178 9.178 0 0 0-1.632-1.575 11.333 11.333 0 0 0-6.612-2.232c-2.174-.039-4.348-.047-6.521-.068m-.222-3.25a8.088 8.088 0 1 0-8.046-8.115 8.133 8.133 0 0 0 8.046 8.115' fill='%23156570'/%3E%3C/g%3E%3C/svg%3E");
height: 42px;
width: 42px;
display: block;
position: absolute;
right: 0px;
top: 0px;
margin-left: 50px;
}
#main-menu .hide-on-main {
display: none;
visibility: hidden;
}
@media only screen and (max-width: 768px) {
#main-menu .hide-on-main {
display: block;
visibility: visible;
}
}
#wrapper-footer-full {
background-color: #fff;
padding-bottom: 0px;
......@@ -15536,7 +15579,7 @@ input[type=checkbox] {
}
.admin-bar .custom-addtoany {
top: 217px;
top: 229px;
}
.jssocials-share-logo {
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -65,4 +65,3 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
<?php echo do_shortcode('[share-this]'); ?>
</header><!-- #wrapper-navbar -->
\ No newline at end of file
......
......@@ -35,4 +35,24 @@ function understrap_add_site_child_info() {
</div>
<?php endif;
}
add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2);
function add_login_logout_link($items, $args) {
ob_start(); ?>
<?php
if (is_user_logged_in()) {
$user = get_userdata( get_current_user_id() );?>
<li itemscope="itemscope" itemtype="https://www.schema.org/SiteNavigationElement" class="menu-item menu-item-type-user menu-item-type-custom menu-item-object-custom nav-item"><a href="/my-account/" class="nav-link user-menu hide-on-main"><?php echo $user->first_name." ".$user->last_name ?></a><a href="/dashboard/" class="nav-link user-menu hide-on-main">My Dashboard</a></li>
<?php }
$loginoutlink = ob_get_contents();
ob_end_clean();
if ($args->menu->name === 'login') {
$items .= $loginoutlink;
}else if ($args->menu->name === 'main') {
$items = $loginoutlink.$items;
}
return $items;
}
\ No newline at end of file
......
......@@ -33672,11 +33672,6 @@
$('.search').attr('id', 'search');
$('.search-button').attr('id', 'search-button');
$('#navbarNavDropdown').prepend($search);
// $( ".product-name" ).each(function() {
// $( this ).addClass( "foo" );
// });
$(document).on("click", ".search-button a, .close", function (e) {
e.preventDefault();
$('.search-button').toggleClass('open');
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -80,18 +80,11 @@ $('.search-button').attr('id','search-button');
$('#navbarNavDropdown').prepend($search);
// $( ".product-name" ).each(function() {
// $( this ).addClass( "foo" );
// });
$(document).on("click", ".search-button a, .close", function(e) {
e.preventDefault();
$('.search-button').toggleClass('open');
$('.search').toggleClass('open');
});
......
......@@ -320,6 +320,11 @@
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='33.996' height='33.996' viewBox='0 0 33.996 33.996'%3E%3Cg id='Group_1499' data-name='Group 1499' transform='translate(2.121 2.121)' opacity='0.997'%3E%3Cpath id='Path_1922' data-name='Path 1922' d='M0 0 29.754 29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3Cline id='Line_4' data-name='Line 4' x1='29.754' y2='29.754' transform='translate(0 0)' fill='none' stroke='%232c2c2c' stroke-linecap='round' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E");
}
}
.admin-bar{
.search{
top:90px;
}
}
.search .search-form label::before{
content: "";
opacity: 0;
......@@ -424,4 +429,48 @@ max-width: unset !important;
.hamburger .line:nth-child(3){
transform: translateY(-11px) rotate(-45deg);
}
}
.logged-in{
.sign-up.mobile.menu-item,
.log-in-button,
.sign-up.menu-item{
display: none !important;
visibility: hidden !important;
}
}
#login-menu{
.user-menu {
display: block;
padding-bottom: 0px;
padding-top: 0px;
text-align: right !important;
}
}
#login-menu{
.menu-item-type-user{
margin-right: 50px;
}
.menu-item-type-user::after{
content: url("data:image/svg+xml,%3Csvg id='Group_1360' data-name='Group 1360' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='42.064' height='42.049' viewBox='0 0 42.064 42.049'%3E%3Cdefs%3E%3CclipPath id='clip-path'%3E%3Crect id='Rectangle_242' data-name='Rectangle 242' width='42.064' height='42.049' fill='%23156570'/%3E%3C/clipPath%3E%3C/defs%3E%3Cg id='Group_1359' data-name='Group 1359' clip-path='url(%23clip-path)'%3E%3Cpath id='Path_1390' data-name='Path 1390' d='M20.087 0h1.245A1.368 1.368 0 0 0 21.5.024a21.19 21.19 0 0 1 3.893.444A20.321 20.321 0 0 1 36.729 7.033a20.5 20.5 0 0 1 5.305 12.884 20.8 20.8 0 0 1-7.98 17.638 20.188 20.188 0 0 1-12.389 4.488 20.74 20.74 0 0 1-6.526-.8 21.057 21.057 0 0 1-11.58-8.517A20.512 20.512 0 0 1 .123 23.19c-.045-.432-.082-.865-.123-1.3v-1.8c.026-.262.055-.524.077-.786A20.206 20.206 0 0 1 2.007 12.1 20.8 20.8 0 0 1 15.265.823 17.258 17.258 0 0 1 19.92.029 1.053 1.053 0 0 0 20.087 0M21.24 25.906v.023c-1.695 0-3.39-.006-5.085 0a17.691 17.691 0 0 0-4.366.38A10.475 10.475 0 0 0 6.324 29.5c-.132.15-.246.315-.366.475a.349.349 0 0 0-.024.42c.112.191.213.389.335.573a17.792 17.792 0 0 0 17.552 7.649A17.591 17.591 0 0 0 34 33.246a15.948 15.948 0 0 0 2.049-2.637.621.621 0 0 0-.045-.827 9.178 9.178 0 0 0-1.632-1.575 11.333 11.333 0 0 0-6.612-2.232c-2.174-.039-4.348-.047-6.521-.068m-.222-3.25a8.088 8.088 0 1 0-8.046-8.115 8.133 8.133 0 0 0 8.046 8.115' fill='%23156570'/%3E%3C/g%3E%3C/svg%3E");
height: 42px;
width: 42px;
display: block;
position: absolute;
right: 0px;
top: 0px;
margin-left: 50px;
}
}
#main-menu{
.hide-on-main
{
display: none;
visibility: hidden;
@media only screen and (max-width: 768px) {
display: block;
visibility: visible;
}
}
}
\ No newline at end of file
......
......@@ -13,7 +13,8 @@
}
.admin-bar .custom-addtoany{
top: 217px;
top: 229px;
}
......