Files
web-discuz/template/bygsjw_sj/touch/home/space_menu.php
2025-06-27 21:04:18 +08:00

88 lines
4.8 KiB
PHP

<?php echo 'Discuz!应用中心开发者-简约设计';exit;?>
<style>
#uhd{ position: relative; background: $_G['style']['zhuti']; width: 3.75rem; overflow: hidden;}
#uhd_bg{ position: relative; z-index: 1; width: 4.75rem; height: 1.55rem; overflow: hidden; margin-top: -.2rem; margin-left: -1rem;}
.home_forum_header_js{ background: #fff !important; opacity: 0.15 !important;}
.uhd_content{ position: absolute; top: .1rem; left: 0; z-index: 10; width: 100%; text-align: center;}
.uhd_avatar img{ vertical-align: top; height: .8rem; width: .8rem; border-radius: 50%; box-shadow: 1px 2px 2px rgba(0, 0, 0, 0.3);}
.uhd_name{ margin-top: .02rem; color: #fff; text-shadow: 1px 1px 1px #000;}
.uhd_pm{ margin-top: .05rem;}
.uhd_pm a{ display: inline-block; height: .24rem; line-height: .24rem; margin: 0 .05rem; padding: 0 .08rem 0 .05rem; background: rgba(0,0,0,.3); border-radius: .04rem; color: #fff; font-size: .12rem; vertical-align: top;}
.uhd_pm img{ margin: .03rem .02rem 0; height: .18rem; vertical-align: top;}
#uhd_bg{ padding-bottom: .2rem;}
.portal_font_nav{ position: relative; z-index: 2; margin: -.2rem .08rem .1rem; width: 3.59rem; padding: .1rem 0; border-radius: .08rem; box-shadow: 0 1px 4px #ddd;}
</style>
<div id="uhd">
<div id="uhd_bg"></div>
<div class="uhd_content">
<div class="uhd_avatar"><img src="<!--{avatar($space['uid'], 'middle', true)}-->" alt="头像" /></div>
<h2 class="uhd_name">$space[username]</h2>
<!--{if $space['uid'] != $_G['uid']}-->
<div class="uhd_pm">
<style>
div#uhd_bg{ height: 1.8rem;}
.tip .button2{ font-size: 15px;}
</style>
<!--{if helper_access::check_module('follow') && isset($_G['setting']['mobile']['forum'])}-->
<!--{if !ckfollow($space['uid'])}-->
<a href="home.php?mod=spacecp&ac=follow&op=add&hash={FORMHASH}&fuid=$space[uid]" class="dialog"><img src="{$_G['style']['styleimgdir']}/bai_shoucang.png" alt="关注" />{lang follow_add}TA</a>
<!--{else}-->
<a href="home.php?mod=spacecp&ac=follow&op=del&fuid=$space[uid]" class="dialog"><img src="{$_G['style']['styleimgdir']}/bai_shoucang.png" alt="关注" />{lang follow_del}</a>
<!--{/if}-->
<!--{/if}-->
<!--{if helper_access::check_module('friend') || !isset($_G['setting']['mobile']['forum'])}-->
<!--{if !$isfriend}-->
<a href="home.php?mod=spacecp&ac=friend&op=add&uid=$space[uid]&handlekey=addfriendhk_{$space[uid]}" class="dialog"><img src="{$_G['style']['styleimgdir']}/bl_denglu.png" alt="好友" />{lang add_friend}</a>
<!--{else}-->
<a href="home.php?mod=spacecp&ac=friend&op=ignore&uid=$space[uid]&handlekey=ignorefriendhk_{$space[uid]}" class="dialog"><img src="{$_G['style']['styleimgdir']}/bl_denglu.png" alt="好友" />{lang ignore_friend}</a>
<!--{/if}-->
<!--{/if}-->
<a href="home.php?mod=space&do=pm&subop=view&touid={$space['uid']}"><img src="{$_G['style']['styleimgdir']}/faxiaoxi.png" alt="消息" />发消息</a>
</div>
<!--{/if}-->
</div>
</div>
<div class="portal_font_nav">
<div class="swiper-wrapper">
<a href="home.php?mod=space&uid=$space[uid]&do=profile" class="swiper-slide {if $do=='profile'}on{/if}">{lang memcp_profile}</a>
<!--{if helper_access::check_module('forum') || !isset($_G['setting']['mobile']['forum'])}-->
<a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space&type=thread" class="swiper-slide {if $do=='thread' && $_GET['type'] == 'thread'}on{/if}">{lang topic}</a>
<a href="home.php?mod=space&uid=$space[uid]&do=thread&view=me&from=space&type=reply" class="swiper-slide {if $do=='thread' && $_GET['type'] == 'reply'}on{/if}">{lang reply}</a>
<!--{/if}-->
<!--{if helper_access::check_module('follow') && isset($_G['setting']['mobile']['forum'])}-->
<a href="home.php?mod=follow&uid=$space[uid]&do=view&from=space" class="swiper-slide">{lang follow}</a>
<!--{/if}-->
<!--{if $_G['uid'] == $space['uid']}-->
<a href="home.php?mod=spacecp&ac=profile" class="swiper-slide">修改资料</a>
<!--{/if}-->
</div>
</div>
<link rel="stylesheet" type="text/css" href="{$_G['style']['styleimgdir']}/swiper.min.css">
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/swiper.jquery.min.js"></script>
<script type="text/javascript" src="{$_G['style']['styleimgdir']}/home_forum_header.js"></script>
<script type="text/javascript">
jQuery.firefly({
minPixel: 300,
maxPixel: 500,
total : 3,
on: '#uhd_bg',
namespace: 'home_forum_header_js'
});
if(jQuery(".portal_font_nav .on").length > 0) {
var font_nav_initial = jQuery(".portal_font_nav .on").offset().left + jQuery(".portal_font_nav .on").width() + 10 >= jQuery(window).width() ? jQuery(".portal_font_nav .on").index() : 0;
}else{
var font_nav_initial = 0;
}
var portal_font_nav = new Swiper('.portal_font_nav', {
initialSlide : font_nav_initial,
freeMode: true,
slidesPerView: 'auto',
});
</script>