#--
Bolo - A stable and beautiful blogging system based in Solo.
Copyright (c) 2020, https://github.com/adlered
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
-->
<#macro userSite dir>
<#if usite??>
<#if hacpaiUser != ''>
title<#else>aria-label#if>="https://${hacpaiDomain}/member/${adminUser.userName}"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
target="_blank" rel="noopener nofollow">
#if>
<#if usite.usiteGitHub != ''>
title<#else>aria-label#if>="https://github.com/${usite.usiteGitHub}"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
target="_blank" rel="noopener nofollow">
#if>
<#if usite.usiteStackOverflow != ''>
title<#else>aria-label#if>="https://stackoverflow.com/users/${usite.usiteStackOverflow}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteDribbble != ''>
title<#else>aria-label#if>="https://dribbble.com/${usite.usiteDribbble}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteBehance != ''>
title<#else>aria-label#if>="https://www.behance.net/${usite.usiteBehance}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteTwitter != ''>
title<#else>aria-label#if>="https://twitter.com/${usite.usiteTwitter}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteFacebook != ''>
title<#else>aria-label#if>="https://www.facebook.com/${usite.usiteFacebook}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteInstagram != ''>
title<#else>aria-label#if>="https://www.instagram.com/${usite.usiteInstagram}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteMedium != ''>
title<#else>aria-label#if>="https://medium.com/@${usite.usiteMedium}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteLinkedIn != ''>
title<#else>aria-label#if>="https://www.linkedin.com/in/${usite.usiteLinkedIn}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteTelegram != ''>
title<#else>aria-label#if>="https://telegram.me/${usite.usiteTelegram}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteWeiBo != ''>
title<#else>aria-label#if>="https://weibo.com/${usite.usiteWeiBo}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteZhiHu != ''>
title<#else>aria-label#if>="https://www.zhihu.com/people/${usite.usiteZhiHu}"
target="_blank"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteQQ != ''>
title<#else>aria-label#if>="${usite.usiteQQ}"
class="<#if dir!=''>vditor-tooltipped__${dir} vditor-tooltipped #if>user__site"
rel="noopener nofollow">
#if>
<#if usite.usiteWeChat != ''>
title<#else>aria-label#if>="${usite.usiteWeChat}">
#if>
<#if usite.usiteWYMusic != ''>
title<#else>aria-label#if>="${usite.usiteWYMusic}">
#if>
#if>
#macro>