LinkStack/resources/views/linkstack/modules/admin-bar.blade.php

137 lines
30 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@if(auth()->check() && theme('disable_admin_bar') != "true" && EnvEditor::getKey('ENABLE_ADMIN_BAR', $default = 'true') != "false")
@php
if(Auth::user()->id == $userinfo->id){
$isUser = true;
} else {
$isUser = false;
}
@endphp
@if(($isUser || auth()->user()->role == 'admin') && (EnvEditor::getKey('ENABLE_ADMIN_BAR_USERS', $default = 'false') != "false" || auth()->user()->role == 'admin'))
<style>#linkstack-adminbar,#linkstack-adminbar *,.rtl #linkstack-adminbar *,html:lang(he-il) .rtl #linkstack-adminbar *{font-family:"Open Sans",sans-serif,sans!important}#linkstack-adminbar,#linkstack-adminbar *{font-size:13px;font-weight:400;line-height:32px}#linkstack-adminbar *{height:auto;width:auto;margin:0;padding:0;position:static;text-shadow:none;text-transform:none;letter-spacing:normal;border-radius:0;box-sizing:content-box;transition:none;-webkit-font-smoothing:subpixel-antialiased;-moz-osx-font-smoothing:auto}#linkstack-adminbar .ab-empty-item{cursor:default;outline:0}#linkstack-adminbar .ab-empty-item,#linkstack-adminbar a.ab-item,#linkstack-adminbar>#linkstack-toolbar span.ab-label,#linkstack-adminbar>#linkstack-toolbar span.noticon{color:#eee}#linkstack-adminbar #linkstack-admin-bar-my-sites a.ab-item,#linkstack-adminbar #linkstack-admin-bar-site-name a.ab-item{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#linkstack-adminbar ul li:after,#linkstack-adminbar ul li:before{content:normal}#linkstack-adminbar a,#linkstack-adminbar a img,#linkstack-adminbar a img:hover,#linkstack-adminbar a:hover{outline:0;border:none;text-decoration:none;background:0 0}#linkstack-adminbar a:active,#linkstack-adminbar a:focus,#linkstack-adminbar div,#linkstack-adminbar input[type=email],#linkstack-adminbar input[type=number],#linkstack-adminbar input[type=password],#linkstack-adminbar input[type=search],#linkstack-adminbar input[type=text],#linkstack-adminbar input[type=url],#linkstack-adminbar select,#linkstack-adminbar textarea{box-shadow:none;outline:0}body{margin-top:32px}#linkstack-adminbar{direction:ltr;color:#ccc;height:32px;position:fixed;top:0;left:0;width:100%;min-width:600px;z-index:99999;background:#23282d}#linkstack-adminbar .ab-sub-wrapper,#linkstack-adminbar ul,#linkstack-adminbar ul li{background:0 0;clear:none;list-style:none;margin:0;padding:0;position:relative;text-indent:0;z-index:99999}#linkstack-adminbar ul#linkstack-admin-bar-root-default>li{margin-right:0}#linkstack-adminbar .quicklinks ul{text-align:left}#linkstack-adminbar li,* html #linkstack-adminbar .quicklinks ul li a{float:left}#linkstack-adminbar .ab-top-secondary,#linkstack-adminbar .quicklinks .ab-top-secondary>li{float:right}#linkstack-adminbar .quicklinks .ab-empty-item,#linkstack-adminbar .quicklinks a,#linkstack-adminbar .shortlink-input{height:32px;display:block;padding:0 10px;margin:0}#linkstack-adminbar .quicklinks>ul>li>a{padding:0 8px 0 7px}#linkstack-adminbar .menupop .ab-sub-wrapper,#linkstack-adminbar .shortlink-input{margin:0;padding:0;box-shadow:0 3px 5px rgba(0,0,0,.2);background:#32373c;display:none;position:absolute;float:none}#linkstack-adminbar #linkstack-admin-bar-user-info .display-name,#linkstack-adminbar #linkstack-admin-bar-user-info .username,#linkstack-adminbar .selected .shortlink-input,#linkstack-adminbar li.hover>.ab-sub-wrapper,#linkstack-adminbar.nojs li:hover>.ab-sub-wrapper{display:block}#linkstack-adminbar.ie7 .menupop .ab-sub-wrapper,#linkstack-adminbar.ie7 .shortlink-input{top:32px;left:0}#linkstack-adminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:100%}#linkstack-adminbar .ab-top-secondary .menupop .ab-sub-wrapper{right:0;left:auto}#linkstack-adminbar .ab-submenu{padding:6px 0}#linkstack-adminbar .quicklinks .menupop ul li{float:none}#linkstack-adminbar .quicklinks .menupop ul li a strong{font-weight:600}#linkstack-adminbar .quicklinks .menupop ul li .ab-item,#linkstack-adminbar .quicklinks .menupop ul li a strong,#linkstack-adminbar .quicklinks .menupop.hover ul li .ab-item,#linkstack-adminbar .shortlink-input,#linkstack-adminbar.nojs .quicklinks .menupop:hover ul li .ab-item{line-height:26px;height:26px;white-space:nowrap;min-width:140px}#linkstack-adminbar .shortlink-input{width:200px}#linkstack-adminbar .menupop li.hover>.ab-sub-wrapper,#linkstack-adminbar .menupop li:hover>.ab-sub-wrapper{margin-left:100%;margin-top:-32px}#linkstack-adminbar .ab-top-secondary .menupop li.hover>.ab-sub-wrapper,#linkstack-adminbar .ab-top-secondary .menupop li:hover>.ab-sub-wrapper{margin-left:0;left:inherit;right:100%}#linkstack-adminbar .ab-top-menu>li.hover>.ab-item,#linkstack-adminbar.nojq .quicklinks .ab-top-menu>li>.ab-item:focus,#linkstack-adminbar:not(.mobile) .ab-top-menu>li:hover>.ab-item,#linkstack-adminbar:not(.mobile) .ab-top-menu>li>.ab-item:focus{background:#32373c;color:#00b9eb}#linkstack-adminbar .quicklinks .ab-sub-wrapper .menupop.hover>a,#linkstack-adminbar .quicklinks .ab-sub-wrapper .menupop.hover>a .blavatar,#linkstack-adminbar .quicklinks .menupop .ab-sub-secondary>li .ab-item:focus a,#linkstack-adminbar .quicklinks .menupop .ab-sub-secondary>li>a:hover,#linkstack-adminbar .quicklinks .menupop ul li a:focus,#linkstack-adminbar .quicklinks .menupop ul li a:focus strong,#linkstack-adminbar .quicklinks .menupop ul li a:hover,#linkstack-adminbar .quicklinks .menupop ul li a:hover strong,#linkstack-adminbar .quicklinks .menupop.hover ul li a:focus,#linkstack-adminbar .quicklinks .menupop.hover ul li a:hover,#linkstack-adminbar .quicklinks .menupop.hover ul li div[tabindex]:focus,#linkstack-adminbar .quicklinks .menupop.hover ul li div[tabindex]:hover,#linkstack-adminbar .quicklinks li a:focus .blavatar,#linkstack-adminbar .quicklinks li a:hover .blavatar,#linkstack-adminbar li #adminbarsearch.adminbar-focused:before,#linkstack-adminbar li .ab-item:focus .ab-icon:before,#linkstack-adminbar li .ab-item:focus:before,#linkstack-adminbar li a:focus .ab-icon:before,#linkstack-adminbar li.hover .ab-icon:before,#linkstack-adminbar li.hover .ab-item:before,#linkstack-adminbar li:hover #adminbarsearch:before,#linkstack-adminbar li:hover .ab-icon:before,#linkstack-adminbar li:hover .ab-item:before,#linkstack-adminbar.mobile .quicklinks .hover .ab-icon:before,#linkstack-adminbar.mobile .quicklinks .hover .ab-item:before,#linkstack-adminbar.nojs .quicklinks .menupop:hover ul li a:focus,#linkstack-adminbar.nojs .quicklinks .menupop:hover ul li a:hover,#linkstack-adminbar:not(.mobile)>#linkstack-toolbar a:focus span.ab-label,#linkstack-adminbar:not(.mobile)>#linkstack-toolbar li:hover span.ab-label,#linkstack-adminbar>#linkstack-toolbar li.hover span.ab-label{color:#00b9eb}#linkstack-adminbar .ab-icon,#linkstack-adminbar .ab-item:before,#linkstack-adminbar>#linkstack-toolbar>#linkstack-admin-bar-root-default .ab-icon{position:relative;float:left;font:400 20px/1 dashicons;speak:none;padding:4px 0;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-image:none!important;margin-right:6px}#linkstack-adminbar #adminbarsearch:before,#linkstack-adminbar .ab-icon:before,#linkstack-adminbar .ab-item:before{color:rgba(240,245,250,.6);position:relative;transition:.1s ease-in-out}#linkstack-adminbar .ab-label{display:inline-block;height:32px}#linkstack-adminbar .ab-submenu .ab-item,#linkstack-adminbar .quicklinks .menupop ul li a,#linkstack-adminbar .quicklinks .menupop ul li a strong,#linkstack-adminbar .quicklinks .menupop.hover ul li a,#linkstack-adminbar.nojs .quicklinks .menupop:hover ul li a{color:rgba(240,245,250,.7)}#linkstack-adminbar.mobile .quicklinks .ab-icon:before,#linkstack-adminbar.mobile .quicklinks .ab-item:before{color:#b4b9be}#linkstack-adminbar .ab-top-secondary .menupop .menupop>.ab-item:before,#linkstack-adminbar .menupop .menupop>.ab-item:before{position:absolute;font:400 17px/1 dashicons;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#linkstack-adminbar .menupop .menupop>.ab-item{display:block;padding-right:2em}#linkstack-adminbar .menupop .menupop>.ab-item:before{top:1px;right:4px;content:"\f139";color:inherit}#linkstack-adminbar .ab-top-secondary .menupop .menupop>.ab-item{padding-left:2em;padding-right:1em}#linkstack-adminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:1px;left:6px;content:"\f141"}#linkstack-adminbar .quicklinks .menupop ul.ab-sub-secondary{display:block;position:relative;right:auto;margin:0;box-shadow:none}#linkstack-adminbar .quicklinks .menupop ul.ab-sub-secondary,#linkstack-adminbar .quicklinks .menupop ul.ab-sub-secondary .ab-submenu{background:#464b50}#linkstack-adminbar .quicklinks a span#ab-updates{background:#eee;color:#32373c;display:inline;padding:2px 5px;font-size:10px;font-weight:600;border-radius:10px}#linkstack-adminbar .quicklinks a:hover span#ab-updates{background:#fff;color:#000}#linkstack-adminbar ul li:last-child,#linkstack-adminbar ul li:last-child .ab-item{box-shadow:none}#linkstack-admin-bar-my-account>ul{min-width:198px}#linkstack-admin-bar-my-account>.ab-item:before{content:"\f110";top:3px;float:right;margin-left:6px;margin-right:0}#linkstack-admin-bar-my-account.with-avatar>.ab-item:before{display:none;content:none}#linkstack-admin-bar-my-account.with-avatar>ul{min-width:270px}#linkstack-adminbar.ie8 #linkstack-admin-bar-my-account.with-avatar .ab-item{white-space:nowrap}#linkstack-adminbar #linkstack-admin-bar-user-actions>li{margin-left:16px;margin-right:16px}#linkstack-adminbar #linkstack-admin-bar-user-actions.ab-submenu{padding:6px 0 12px}#linkstack-adminbar #linkstack-admin-bar-my-account.with-avatar #linkstack-admin-bar-user-actions>li{margin-left:88px}#linkstack-adminbar #linkstack-admin-bar-user-info{margin-top:6px;margin-bottom:15px;height:auto;background:0 0}#linkstack-admin-bar-user-info .avatar{position:absolute;left:-72px;top:4px;width:64px;height:64px}#linkstack-adminbar #linkstack-admin-bar-user-info a{background:0 0;height:auto}#linkstack-adminbar #linkstack-admin-bar-user-info span{background:0 0;padding:0;height:18px}#linkstack-adminbar #linkstack-admin-bar-user-info .username{color:#a0a5aa;font-size:11px}#linkstack-adminbar #linkstack-admin-bar-my-account.with-avatar>.ab-empty-item img,#linkstack-adminbar #linkstack-admin-bar-my-account.with-avatar>a img{width:auto;height:16px;padding:0;line-height:24px;vertical-align:middle;margin:-4px 0 0 6px;float:none;display:inline}#linkstack-adminbar.ie8 #linkstack-admin-bar-my-account.with-avatar>.ab-empty-item img,#linkstack-adminbar.ie8 #linkstack-admin-bar-my-account.with-avatar>a img{width:auto}#linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item .ab-icon{width:15px;height:20px;margin-right:0;padding:6px 0 5px}#linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item{padding:0 7px}#linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item .ab-icon:before{content:"\f120";top:2px}#linkstack-adminbar .quicklinks li .blavatar{float:left;font:400 16px/1 dashicons!important;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#eee}#linkstack-adminbar .quicklinks li .blavatar:before{content:"\f120";height:16px;width:16px;display:inline-block;margin:6px 8px 0 -2px}#linkstack-adminbar #linkstack-admin-bar-appearance{margin-top:-12px}#linkstack-adminbar #linkstack-admin-bar-search .ab-item{padding:0;background:0 0}#linkstack-adminbar #adminbarsearch{position:relative;height:32px;padding:0 2px;z-index:1}#linkstack-adminbar #adminbarsearch:before{position:absolute;top:6px;left:5px;z-index:20;speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#linkstack-adminbar>#linkstack-toolbar>#linkstack-admin-bar-top-secondary>#linkstack-admin-bar-search #adminbarsearch input.adminbar-input{display:inline-block;float:none;position:relative;z-index:30;font-size:13px;font-family:"Open Sans",sans-serif,sans!important;line-height:24px;text-indent:0;height:24px;width:24px;max-width:none;padding:0 3px 0 24px;margin:0;color:#ccc;background-color:rgba(255,255,255,0);border:none;outline:0;cursor:pointer;box-shadow:none;box-sizing:border-box;transition-duration:.4s;transition-property:width,background;transition-timing-function:ease}#linkstack-adminbar>#linkstack-toolbar>#linkstack-admin-bar-top-secondary>#linkstack-admin-bar-search #adminbarsearch input.adminbar-input:focus{z-index:10;color:#000;width:200px;background-color:rgba(255,255,255,.9);cursor:text;border:0}#linkstack-adminbar.ie7>#linkstack-toolbar>#linkstack-admin-bar-top-secondary>#linkstack-admin-bar-search #adminbarsearch input.adminbar-input{margin-top:3px;width:120px}#linkstack-adminbar.ie8>#linkstack-toolbar>#linkstack-admin-bar-top-secondary>#linkstack-admin-bar-search #adminbarsearch input.adminbar-input{background:url(data:image/gif; base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBR‌â€AA7)}#linkstack-adminbar.ie8>#linkstack-toolbar>#linkstack-admin-bar-top-secondary>#linkstack-admin-bar-search #adminbarsearch input.adminbar-input:focus{background:#fff;z-index:-1}#linkstack-adminbar #adminbarsearch .adminbar-button,.customize-support #linkstack-adminbar .hide-if-customize,.customize-support .hide-if-customize,.customize-support .linkstack-core-ui .hide-if-customize,.customize-support.linkstack-core-ui .hide-if-customize,.no-customize-support #linkstack-adminbar .hide-if-no-customize,.no-customize-support .hide-if-no-customize,.no-customize-support .linkstack-core-ui .hide-if-no-customize,.no-customize-support.linkstack-core-ui .hide-if-no-customize{display:none}#linkstack-adminbar .screen-reader-text,#linkstack-adminbar .screen-reader-text span{border:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}#linkstack-adminbar .screen-reader-shortcut{position:absolute;top:-1000em}#linkstack-adminbar .screen-reader-shortcut:focus{left:6px;top:7px;height:auto;width:auto;display:block;font-size:14px;font-weight:600;padding:15px 23px 14px;background:#f1f1f1;color:#0073aa;z-index:100000;line-height:normal;text-decoration:none;box-shadow:0 0 2px 2px rgba(0,0,0,.6)}* html #linkstack-adminbar{overflow:hidden;position:absolute}* html #linkstack-adminbar .menupop a span{background-image:none}.no-font-face #linkstack-adminbar ul.ab-top-menu>li>a.ab-item{display:block;width:45px;text-align:center;overflow:hidden;margin:0 3px}.no-font-face #linkstack-adminbar #linkstack-admin-bar-edit>.ab-item,.no-font-face #linkstack-adminbar #linkstack-admin-bar-my-sites>.ab-item,.no-font-face #linkstack-adminbar #linkstack-admin-bar-site-name>.ab-item{text-indent:0}.no-font-face #linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item,.no-font-face #linkstack-adminbar .ab-icon,.no-font-face #linkstack-adminbar .ab-icon:before,.no-font-face #linkstack-adminbar a.ab-item:before{display:none!important}.no-font-face #linkstack-adminbar ul.ab-top-menu>li>a>span.ab-label{display:inline}.no-font-face #linkstack-adminbar #linkstack-admin-bar-menu-toggle span.ab-icon{display:inline!important}.no-font-face #linkstack-adminbar #linkstack-admin-bar-site-name a.ab-item{color:#fff}@media screen and (max-width:782px){.display-name{display:none!important}li .ab-item{padding:0 10px!important}#linkstack-adminbar ul#linkstack-admin-bar-root-default>li,.network-admin #linkstack-adminbar ul#linkstack-admin-bar-top-secondary>li#linkstack-admin-bar-my-account{margin-right:0}body{margin-top:46px}html #linkstack-adminbar{height:46px;min-width:300px}#linkstack-adminbar *{font-size:14px;font-weight:400;font-family:"Open Sans",sans-serif,sans!important;line-height:32px}#linkstack-adminbar .quicklinks .ab-empty-item,#linkstack-adminbar .quicklinks>ul>li>a{padding:0;height:46px;line-height:46px;width:auto}#linkstack-adminbar .ab-icon{font:40px/1 dashicons!important;margin:0;width:52px;height:46px;text-align:center}#linkstack-adminbar #linkstack-admin-bar-updates,#linkstack-adminbar .ab-icon:before{text-align:center}#linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item,#linkstack-adminbar #linkstack-admin-bar-user-actions.ab-submenu,#linkstack-adminbar .ab-submenu{padding:0}#linkstack-adminbar #linkstack-admin-bar-my-account a.ab-item,#linkstack-adminbar #linkstack-admin-bar-my-sites a.ab-item,#linkstack-adminbar #linkstack-admin-bar-site-name a.ab-item{text-overflow:clip}#linkstack-adminbar #linkstack-admin-bar-search,#linkstack-adminbar #linkstack-admin-bar-user-actions.ab-submenu img.avatar,#linkstack-adminbar .ab-label,#linkstack-adminbar .ab-top-menu>.menupop>.ab-sub-wrapper a:empty,#linkstack-adminbar .quicklinks li .blavatar:before,#linkstack-toolbar>ul>li{display:none}#linkstack-adminbar .menupop li.hover>.ab-sub-wrapper,#linkstack-adminbar .menupop li:hover>.ab-sub-wrapper{margin-top:-46px}#linkstack-adminbar #linkstack-admin-bar-comments .ab-icon,#linkstack-adminbar #linkstack-admin-bar-my-account.with-avatar #linkstack-admin-bar-user-actions>li{margin:0}#linkstack-adminbar .ab-top-menu .menupop .ab-sub-wrapper .menupop>.ab-item{padding-right:30px}#linkstack-adminbar .menupop .menupop>.ab-item:before{top:10px;right:6px}#linkstack-adminbar .ab-top-menu>.menupop>.ab-sub-wrapper .ab-item{font-size:16px;padding:8px 16px}#linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item .ab-icon{padding:0;width:52px;height:46px;text-align:center;vertical-align:top}#linkstack-adminbar #linkstack-admin-bar-defaultsp>.ab-item .ab-icon:before{font:28px/1 dashicons!important;top:-3px}#linkstack-adminbar #linkstack-admin-bar-customize>.ab-item,#linkstack-adminbar #linkstack-admin-bar-edit>.ab-item,#linkstack-adminbar #linkstack-admin-bar-my-account>.ab-item,#linkstack-adminbar #linkstack-admin-bar-my-sites>.ab-item,#linkstack-adminbar #linkstack-admin-bar-site-name>.ab-item{text-indent:100%;white-space:nowrap;overflow:hidden;width:52px;padding:0;color:#a0a5aa;position:relative}#linkstack-adminbar .ab-icon,#linkstack-adminbar .ab-item:before,#linkstack-adminbar>#linkstack-toolbar>#linkstack-admin-bar-root-default .ab-icon{padding:0;margin-right:0}#linkstack-adminbar #linkstack-admin-bar-customize>.ab-item:before,#linkstack-adminbar #linkstack-admin-bar-edit>.ab-item:before,#linkstack-adminbar #linkstack-admin-bar-my-account>.ab-item:before,#linkstack-adminbar #linkstack-admin-bar-my-sites>.ab-item:before,#linkstack-adminbar #linkstack-admin-bar-site-name>.ab-item:before{display:block;text-indent:0;font:400 32px/1 dashicons;speak:none;top:7px;width:52px;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}#linkstack-adminbar #linkstack-admin-bar-appearance{margin-top:0}#linkstack-adminbar #linkstack-admin-bar-new-content .ab-icon:before{top:0;line-height:53px;height:46px!important;text-align:center;width:52px;display:block}#linkstack-adminbar #linkstack-admin-bar-updates .ab-icon:before{top:3px}#linkstack-adminbar #linkstack-admin-bar-comments .ab-icon:before{display:block;font-size:34px;height:46px;line-height:47px;top:0}#linkstack-adminbar #linkstack-admin-bar-my-account>a{position:relative;white-space:nowrap;text-indent:150%;width:28px;padding:0 10px;overflow:hidden}#linkstack-adminbar .quicklinks li#linkstack-admin-bar-my-account.with-avatar>a img{position:absolute;top:13px;right:10px;width:26px;height:26px}#linkstack-adminbar #linkstack-admin-bar-user-info .display-name{height:auto;font-size:16px;line-height:24px;color:#eee}#linkstack-adminbar #linkstack-admin-bar-user-info a{padding-top:4px}#linkstack-adminbar #linkstack-admin-bar-user-info .username{line-height:.8!important;margin-bottom:-2px}#linkstack-adminbar li#linkstack-admin-bar-comments,#linkstack-adminbar li#linkstack-admin-bar-customize,#linkstack-adminbar li#linkstack-admin-bar-defaultsp,#linkstack-adminbar li#linkstack-admin-bar-edit,#linkstack-adminbar li#linkstack-admin-bar-menu-toggle,#linkstack-adminbar li#linkstack-admin-bar-my-account,#linkstack-adminbar li#linkstack-admin-bar-my-sites,#linkstack-adminbar li#linkstack-admin-bar-new-content,#linkstack-adminbar li#linkstack-admin-bar-site-name,#linkstack-adminbar li#linkstack-admin-bar-updates{display:block}#linkstack-adminbar li.hover ul li,#linkstack-adminbar li:hover ul li,#linkstack-adminbar li:hover ul li:hover ul li{display:list-item}#linkstack-adminbar .ab-top-menu>.menupop>.ab-sub-wrapper{min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}#linkstack-adminbar #linkstack-admin-bar-comments,#linkstack-adminbar #linkstack-admin-bar-defaultsp,#linkstack-adminbar #linkstack-admin-bar-edit,#linkstack-adminbar #linkstack-admin-bar-my-account,#linkstack-adminbar #linkstack-admin-bar-my-sites,#linkstack-adminbar #linkstack-admin-bar-new-content,#linkstack-adminbar #linkstack-admin-bar-site-name,#linkstack-adminbar #linkstack-admin-bar-updates,#linkstack-adminbar .ab-top-menu,#linkstack-adminbar .ab-top-secondary{position:static}#linkstack-adminbar #linkstack-admin-bar-my-account{float:right}#linkstack-adminbar .ab-top-secondary .menupop .menupop>.ab-item:before{top:10px;left:0}}@media screen and (max-width:600px){.display-name{display:none!important}#linkstack-adminbar{position:absolute}#linkstack-responsive-overlay{position:fixed;top:0;left:0;width:100%;height:100%;z-index:400}#linkstack-adminbar .ab-top-menu>.menupop>.ab-sub-wrapper{width:100%;left:0}#linkstack-adminbar .menupop .menupop>.ab-item:before,#linkstack-adminbar li#linkstack-admin-bar-defaultsp,#linkstack-adminbar li#linkstack-admin-bar-updates{display:none}#linkstack-adminbar #linkstack-admin-bar-defaultsp.menupop .ab-sub-wrapper{margin-left:0}#linkstack-adminbar .ab-top-menu>.menupop li>.ab-sub-wrapper{margin:0;width:100%;top:auto;left:auto;position:static;box-shadow:none}#linkstack-adminbar .ab-top-menu>.menupop li>.ab-sub-wrapper .ab-item{font-size:16px;padding:6px 15px 19px 30px}#linkstack-adminbar li:hover ul li ul li{display:list-item}}@media screen and (max-width:400px){.display-name{display:none!important}#linkstack-adminbar li#linkstack-admin-bar-comments{display:none}}</style>
<script>
$(document).ready(function() {
$('.menupop').click(function() {
$(this).find('.ab-sub-wrapper').toggle();
});
$(document).click(function(event) {
if (!$(event.target).closest('.menupop').length) {
$('.ab-sub-wrapper').hide();
}
});
});
</script>
<script>
if (window.self !== window.top) {
document.addEventListener("DOMContentLoaded", function() {
var adminBar = document.getElementById("linkstack-adminbar");
if (adminBar) {
adminBar.style.display = "none";
}
document.body.style.marginTop = "0";
});
}
</script>
<div>
<div>
<div id="linkstack-adminbar">
<div class="quicklinks" id="linkstack-toolbar" role="navigation" aria-label="Toolbar" tabindex="0">
<ul id="linkstack-admin-bar-root-default" class="ab-top-menu">
<li id="linkstack-admin-bar-new-content">
<a class="ab-item" href="{{url('dashboard')}}">
<svg style="top:2px;position:relative;fill:white;" xmlns="http://www.w3.org/2000/svg" height="16" width="18" viewBox="0 0 576 512"><path d="M575.8 255.5c0 18-15 32.1-32 32.1h-32l.7 160.2c0 2.7-.2 5.4-.5 8.1V472c0 22.1-17.9 40-40 40H456c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1H416 392c-22.1 0-40-17.9-40-40V448 384c0-17.7-14.3-32-32-32H256c-17.7 0-32 14.3-32 32v64 24c0 22.1-17.9 40-40 40H160 128.1c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2H104c-22.1 0-40-17.9-40-40V360c0-.9 0-1.9 .1-2.8V287.6H32c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"/></svg>
<span class="ab-label">{{__('messages.Home')}}</span>
<span class="screen-reader-text">{{__('messages.Home')}}</span></a>
</li>
<li id="linkstack-admin-bar-defaultsp">
<a class="ab-item" href="@if($isUser){{url('/studio/links')}}@else {{ route('editUser', $userinfo->id ) }}@endif">
<svg style="top:3px;position:relative;fill:white;" xmlns="http://www.w3.org/2000/svg" height="16" width="16" viewBox="0 0 512 512"><path d="M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"/></svg>
<span class="ab-label">{{__('messages.Edit')}}</span>
<span class="screen-reader-text">{{__('messages.Edit')}}</span></a>
</li>
@if($isUser)
<li id="linkstack-admin-bar-defaultsp">
<a class="ab-item" href="{{url('/studio/add-link')}}">
<svg style="top:3px;position:relative;fill:white;" xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><path d="M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"/></svg>
<span class="ab-label">{{__('messages.Add Link')}}</span>
<span class="screen-reader-text">{{__('messages.Add Link')}}</span></a>
</li>
@endif
@if(auth()->user()->role == 'admin')
<li id="linkstack-admin-bar-defaultsp" class="menupop">
<a class="ab-item" aria-haspopup="true" href="#">
<svg style="top:4px;position:relative;fill:white;" xmlns="http://www.w3.org/2000/svg" height="16" width="14" viewBox="0 0 448 512"><path d="M201.4 342.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 274.7 86.6 137.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"/></svg>
</a>
<div class="ab-sub-wrapper">
<ul id="linkstack-admin-bar-new-content-default" class="ab-submenu">
@if(!$isUser)
<li><a class="ab-item" href="{{route('deleteUser', ['id' => $userinfo->id])}}" id="confirmationLink">{{__('messages.Delete User')}}</a></li>
<li><a class="ab-item" href="{{route('blockUser', ['block' => 'no', 'id' => $userinfo->id])}}">{{__('messages.Block User')}}</a></li>
<li><a class="ab-item" href="{{ route('editUser', $userinfo->id ) }}">{{__('messages.Edit User')}}</a></li>
@endif
@if($info->theme != '' and $info->theme != 'default')<li><a class="ab-item" href="{{url('/theme').'/@'.$userinfo->littlelink_name}}">{{__('messages.Users Theme')}}</a></li>@endif
<li><a class="ab-item" href="{{url('admin/users')."?table[search]=".$userinfo->littlelink_name}}">{{__('messages.Search User')}}</a></li>
@if(!$userinfo->adminUser && !$isUser && $userinfo->block !== 'yes' && ($userinfo->email_verified_at != '' || env('REGISTER_AUTH') == 'auth'))<li><a class="ab-item" href="{{ route('authAsID', $userinfo->id ) }}" >Impersonate</a></li>@endif
</ul>
</div>
</li>
@endif
</ul>
<ul id="linkstack-admin-bar-top-secondary" class="ab-top-secondary ab-top-menu">
<li id="linkstack-admin-bar-my-account" class="menupop with-avatar">
<a class="ab-item" aria-haspopup="true" href="#"><span class="display-name">{{Auth::user()->name}}</span>
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
<img src="{{ url(findAvatar(Auth::user()->id)) }}" class="avatar avatar-26 photo" height="26" width="26" style="object-fit:cover;">
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" class="avatar avatar-26 photo" height="26" width="26" style="width:auto;height:30px;">
@else
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="avatar avatar-26 photo avatar-rounded" height="26" width="26" height="64" width="64">
@endif
</a>
<div class="ab-sub-wrapper">
<ul id="linkstack-admin-bar-user-actions" class="ab-submenu">
<li id="linkstack-admin-bar-user-info"><a class="ab-item" tabindex="-1" href="{{ url('/studio/page') }}">
@if(file_exists(base_path(findAvatar(Auth::user()->id))))
<img src="{{ url(findAvatar(Auth::user()->id)) }}" class="avatar avatar-64 photo" height="64" width="64" style="object-fit:cover;">
@elseif(file_exists(base_path("assets/linkstack/images/").findFile('avatar')))
<img src="{{ url("assets/linkstack/images/")."/".findFile('avatar') }}" class="avatar avatar-64 photo" height="64" width="64" style="width:auto;height:30px;">
@else
<img src="{{ asset('assets/linkstack/images/logo.svg') }}" class="avatar avatar-64 photo avatar-rounded" height="64" width="64">
@endif
<span class="display-name">{{Auth::user()->name}}</span></a></li>
<li><a class="ab-item" href="{{ url('/studio/page') }}">{{__('messages.Edit my profile')}}</a></li>
<li><a class="ab-item" onclick="submitForm()" style="cursor:pointer">{{__('messages.Log out')}}</a></li>
</ul>
</div>
</li>
</ul>
</div>
<a class="screen-reader-shortcut" onclick="submitForm()" style="cursor:pointer">{{__('messages.Log out')}}</a>
</div>
</div>
<script>
function submitForm() {
document.getElementById('logoutForm').submit();
}
</script>
<script>
function showConfirmation() {
var isConfirmed = confirm("{{__('messages.confirm.delete.user')}}");
if (isConfirmed) {
window.location.href = document.getElementById("confirmationLink").getAttribute("href");
}
}
document.getElementById("confirmationLink").addEventListener("click", function(event) {
event.preventDefault();
showConfirmation();
});
</script>
<form id="logoutForm" action="{{ route('logout') }}" method="post">
<input type="hidden" name="_token" value="{{ csrf_token() }}">
</form>
@endif
@endif