login
Signed-off-by: Jeff <jeff@gotenzing.com>
Showing
12 changed files
with
115 additions
and
15 deletions
| ... | @@ -14960,6 +14960,10 @@ input[type=checkbox] { | ... | @@ -14960,6 +14960,10 @@ input[type=checkbox] { |
| 14960 | 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"); | 14960 | 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"); |
| 14961 | } | 14961 | } |
| 14962 | 14962 | ||
| 14963 | .admin-bar .search { | ||
| 14964 | top: 90px; | ||
| 14965 | } | ||
| 14966 | |||
| 14963 | .search .search-form label::before { | 14967 | .search .search-form label::before { |
| 14964 | content: ""; | 14968 | content: ""; |
| 14965 | opacity: 0; | 14969 | opacity: 0; |
| ... | @@ -15056,6 +15060,45 @@ input[type=checkbox] { | ... | @@ -15056,6 +15060,45 @@ input[type=checkbox] { |
| 15056 | transform: translateY(-11px) rotate(-45deg); | 15060 | transform: translateY(-11px) rotate(-45deg); |
| 15057 | } | 15061 | } |
| 15058 | 15062 | ||
| 15063 | .logged-in .sign-up.mobile.menu-item, | ||
| 15064 | .logged-in .log-in-button, | ||
| 15065 | .logged-in .sign-up.menu-item { | ||
| 15066 | display: none !important; | ||
| 15067 | visibility: hidden !important; | ||
| 15068 | } | ||
| 15069 | |||
| 15070 | #login-menu .user-menu { | ||
| 15071 | display: block; | ||
| 15072 | padding-bottom: 0px; | ||
| 15073 | padding-top: 0px; | ||
| 15074 | text-align: right !important; | ||
| 15075 | } | ||
| 15076 | |||
| 15077 | #login-menu .menu-item-type-user { | ||
| 15078 | margin-right: 50px; | ||
| 15079 | } | ||
| 15080 | #login-menu .menu-item-type-user::after { | ||
| 15081 | 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"); | ||
| 15082 | height: 42px; | ||
| 15083 | width: 42px; | ||
| 15084 | display: block; | ||
| 15085 | position: absolute; | ||
| 15086 | right: 0px; | ||
| 15087 | top: 0px; | ||
| 15088 | margin-left: 50px; | ||
| 15089 | } | ||
| 15090 | |||
| 15091 | #main-menu .hide-on-main { | ||
| 15092 | display: none; | ||
| 15093 | visibility: hidden; | ||
| 15094 | } | ||
| 15095 | @media only screen and (max-width: 768px) { | ||
| 15096 | #main-menu .hide-on-main { | ||
| 15097 | display: block; | ||
| 15098 | visibility: visible; | ||
| 15099 | } | ||
| 15100 | } | ||
| 15101 | |||
| 15059 | #wrapper-footer-full { | 15102 | #wrapper-footer-full { |
| 15060 | background-color: #fff; | 15103 | background-color: #fff; |
| 15061 | padding-bottom: 0px; | 15104 | padding-bottom: 0px; |
| ... | @@ -15536,7 +15579,7 @@ input[type=checkbox] { | ... | @@ -15536,7 +15579,7 @@ input[type=checkbox] { |
| 15536 | } | 15579 | } |
| 15537 | 15580 | ||
| 15538 | .admin-bar .custom-addtoany { | 15581 | .admin-bar .custom-addtoany { |
| 15539 | top: 217px; | 15582 | top: 229px; |
| 15540 | } | 15583 | } |
| 15541 | 15584 | ||
| 15542 | .jssocials-share-logo { | 15585 | .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' ); | ... | @@ -65,4 +65,3 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' ); |
| 65 | <?php echo do_shortcode('[share-this]'); ?> | 65 | <?php echo do_shortcode('[share-this]'); ?> |
| 66 | 66 | ||
| 67 | </header><!-- #wrapper-navbar --> | 67 | </header><!-- #wrapper-navbar --> |
| 68 | |||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -36,3 +36,23 @@ function understrap_add_site_child_info() { | ... | @@ -36,3 +36,23 @@ function understrap_add_site_child_info() { |
| 36 | 36 | ||
| 37 | <?php endif; | 37 | <?php endif; |
| 38 | } | 38 | } |
| 39 | |||
| 40 | |||
| 41 | add_filter('wp_nav_menu_items', 'add_login_logout_link', 10, 2); | ||
| 42 | function add_login_logout_link($items, $args) { | ||
| 43 | ob_start(); ?> | ||
| 44 | <?php | ||
| 45 | if (is_user_logged_in()) { | ||
| 46 | $user = get_userdata( get_current_user_id() );?> | ||
| 47 | <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> | ||
| 48 | <?php } | ||
| 49 | $loginoutlink = ob_get_contents(); | ||
| 50 | ob_end_clean(); | ||
| 51 | if ($args->menu->name === 'login') { | ||
| 52 | $items .= $loginoutlink; | ||
| 53 | }else if ($args->menu->name === 'main') { | ||
| 54 | $items = $loginoutlink.$items; | ||
| 55 | } | ||
| 56 | |||
| 57 | return $items; | ||
| 58 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -33672,11 +33672,6 @@ | ... | @@ -33672,11 +33672,6 @@ |
| 33672 | $('.search').attr('id', 'search'); | 33672 | $('.search').attr('id', 'search'); |
| 33673 | $('.search-button').attr('id', 'search-button'); | 33673 | $('.search-button').attr('id', 'search-button'); |
| 33674 | $('#navbarNavDropdown').prepend($search); | 33674 | $('#navbarNavDropdown').prepend($search); |
| 33675 | |||
| 33676 | // $( ".product-name" ).each(function() { | ||
| 33677 | // $( this ).addClass( "foo" ); | ||
| 33678 | // }); | ||
| 33679 | |||
| 33680 | $(document).on("click", ".search-button a, .close", function (e) { | 33675 | $(document).on("click", ".search-button a, .close", function (e) { |
| 33681 | e.preventDefault(); | 33676 | e.preventDefault(); |
| 33682 | $('.search-button').toggleClass('open'); | 33677 | $('.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'); | ... | @@ -80,18 +80,11 @@ $('.search-button').attr('id','search-button'); |
| 80 | $('#navbarNavDropdown').prepend($search); | 80 | $('#navbarNavDropdown').prepend($search); |
| 81 | 81 | ||
| 82 | 82 | ||
| 83 | |||
| 84 | // $( ".product-name" ).each(function() { | ||
| 85 | // $( this ).addClass( "foo" ); | ||
| 86 | // }); | ||
| 87 | |||
| 88 | |||
| 89 | $(document).on("click", ".search-button a, .close", function(e) { | 83 | $(document).on("click", ".search-button a, .close", function(e) { |
| 90 | e.preventDefault(); | 84 | e.preventDefault(); |
| 91 | $('.search-button').toggleClass('open'); | 85 | $('.search-button').toggleClass('open'); |
| 92 | $('.search').toggleClass('open'); | 86 | $('.search').toggleClass('open'); |
| 93 | 87 | ||
| 94 | |||
| 95 | }); | 88 | }); |
| 96 | 89 | ||
| 97 | 90 | ... | ... |
| ... | @@ -320,6 +320,11 @@ | ... | @@ -320,6 +320,11 @@ |
| 320 | 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"); | 320 | 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"); |
| 321 | } | 321 | } |
| 322 | } | 322 | } |
| 323 | .admin-bar{ | ||
| 324 | .search{ | ||
| 325 | top:90px; | ||
| 326 | } | ||
| 327 | } | ||
| 323 | .search .search-form label::before{ | 328 | .search .search-form label::before{ |
| 324 | content: ""; | 329 | content: ""; |
| 325 | opacity: 0; | 330 | opacity: 0; |
| ... | @@ -425,3 +430,47 @@ max-width: unset !important; | ... | @@ -425,3 +430,47 @@ max-width: unset !important; |
| 425 | transform: translateY(-11px) rotate(-45deg); | 430 | transform: translateY(-11px) rotate(-45deg); |
| 426 | } | 431 | } |
| 427 | } | 432 | } |
| 433 | |||
| 434 | .logged-in{ | ||
| 435 | .sign-up.mobile.menu-item, | ||
| 436 | .log-in-button, | ||
| 437 | .sign-up.menu-item{ | ||
| 438 | display: none !important; | ||
| 439 | visibility: hidden !important; | ||
| 440 | } | ||
| 441 | } | ||
| 442 | #login-menu{ | ||
| 443 | .user-menu { | ||
| 444 | display: block; | ||
| 445 | padding-bottom: 0px; | ||
| 446 | padding-top: 0px; | ||
| 447 | text-align: right !important; | ||
| 448 | } | ||
| 449 | } | ||
| 450 | #login-menu{ | ||
| 451 | .menu-item-type-user{ | ||
| 452 | margin-right: 50px; | ||
| 453 | } | ||
| 454 | .menu-item-type-user::after{ | ||
| 455 | 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"); | ||
| 456 | height: 42px; | ||
| 457 | width: 42px; | ||
| 458 | display: block; | ||
| 459 | position: absolute; | ||
| 460 | right: 0px; | ||
| 461 | top: 0px; | ||
| 462 | margin-left: 50px; | ||
| 463 | } | ||
| 464 | } | ||
| 465 | |||
| 466 | #main-menu{ | ||
| 467 | .hide-on-main | ||
| 468 | { | ||
| 469 | display: none; | ||
| 470 | visibility: hidden; | ||
| 471 | @media only screen and (max-width: 768px) { | ||
| 472 | display: block; | ||
| 473 | visibility: visible; | ||
| 474 | } | ||
| 475 | } | ||
| 476 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment