Add files via upload
This commit is contained in:
parent
d3add663a7
commit
ed7db38abd
10
z_postajax/conf.json
Normal file
10
z_postajax/conf.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"name": "POST",
|
||||||
|
"brief": "这是针对有大图(横向全屏的 页面制作的显隐导航, 如果不打算放置顶部图片 可以注释掉footer_jsafter.htm的第三行",
|
||||||
|
"version": "1.0",
|
||||||
|
"bbs_version": "4.0",
|
||||||
|
"installed": 1,
|
||||||
|
"enable": 0,
|
||||||
|
"hooks_rank": [],
|
||||||
|
"dependencies": []
|
||||||
|
}
|
41
z_postajax/hook/footer_js_after.htm
Normal file
41
z_postajax/hook/footer_js_after.htm
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<script>
|
||||||
|
//延时150ms? 先删掉影响样式效果的 .bg-inverse
|
||||||
|
$('.navbar').removeClass('bg-inverse');
|
||||||
|
//setTimeout("$('.navbar').removeClass('bg-inverse')",150)
|
||||||
|
|
||||||
|
|
||||||
|
//依赖JQ,应该放在页面最后加载
|
||||||
|
var home = location.href,
|
||||||
|
s = $('#bgvideo')[0],
|
||||||
|
Siren = {
|
||||||
|
|
||||||
|
// 显示&隐藏导航栏
|
||||||
|
NH: function(){
|
||||||
|
var h1 = 0,
|
||||||
|
h2 = 400,
|
||||||
|
ss = $(document).scrollTop();
|
||||||
|
$(window).scroll(function(){
|
||||||
|
var s = $(document).scrollTop();
|
||||||
|
if(s== h1){
|
||||||
|
$('.navbar').removeClass('yya');
|
||||||
|
}if(s > h1){
|
||||||
|
$('.navbar').addClass('yya');
|
||||||
|
}if(s > h2){
|
||||||
|
$('.navbar').addClass('gizle');
|
||||||
|
if(s > ss){
|
||||||
|
$('.navbar').removeClass('sabit');
|
||||||
|
}else{
|
||||||
|
$('.navbar').addClass('sabit');
|
||||||
|
}
|
||||||
|
ss = s;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
$(function() {
|
||||||
|
|
||||||
|
Siren.NH(); // 显示&隐藏导航栏
|
||||||
|
|
||||||
|
})
|
||||||
|
</script>
|
28
z_postajax/hook/header_link_after.htm
Normal file
28
z_postajax/hook/header_link_after.htm
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<style>
|
||||||
|
/* 全局的动态导航条样式 可以打包到css文件 不是很重要,也可以放到页面最后加载 */
|
||||||
|
.navbar {
|
||||||
|
width: 100%;
|
||||||
|
background: none;
|
||||||
|
-webkit-transition: all .4s ease;
|
||||||
|
transition: all .4s ease;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 9999;
|
||||||
|
top: 0
|
||||||
|
}
|
||||||
|
|
||||||
|
.yya {
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
background: rgba(0, 0, 0, .6);
|
||||||
|
box-shadow: 0 0 1px rgba(0,0,0,.15)
|
||||||
|
}
|
||||||
|
.gizle {
|
||||||
|
top: -100px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sabit {
|
||||||
|
top: 0;
|
||||||
|
z-index: 9999;
|
||||||
|
}
|
||||||
|
</style>
|
BIN
z_postajax/icon.png
Normal file
BIN
z_postajax/icon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
69
z_postajax/overwrite/view/htm/post_list.inc.htm
Normal file
69
z_postajax/overwrite/view/htm/post_list.inc.htm
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
<?php
|
||||||
|
empty($allowupdate) AND $allowupdate = 0;
|
||||||
|
empty($allowdelete) AND $allowdelete = 0;
|
||||||
|
empty($allowpost) AND $allowpost = 0;
|
||||||
|
?>
|
||||||
|
<!--{hook post_list_inc_start.htm}-->
|
||||||
|
|
||||||
|
<?php if($postlist) { foreach($postlist as $_post) { ?>
|
||||||
|
<tr class="<?php echo $_post['classname'];?>" pid="<?php echo $_post['pid'];?>">
|
||||||
|
<td class="vtop td-avatar">
|
||||||
|
<a href="<?php echo url("user-$_post[uid]");?>" tabindex="-1">
|
||||||
|
<img class="avatar" src="<?php echo $_post['user_avatar_url'];?>">
|
||||||
|
</a>
|
||||||
|
<!--{hook post_list_inc_avatar_after.htm}-->
|
||||||
|
</td>
|
||||||
|
<td class="p-x-0">
|
||||||
|
<dl class="row small text-muted">
|
||||||
|
<dt>
|
||||||
|
<!--{hook post_list_inc_username_before.htm}-->
|
||||||
|
<span class="username text-muted">
|
||||||
|
<a href="<?php echo url("user-$_post[uid]");?>"><?php echo $_post['username'];?></a>
|
||||||
|
<a><i class="level"><?php echo $_post['gid'];?></i></a>
|
||||||
|
</span>
|
||||||
|
<span class="date text-grey m-l-1"><?php echo $_post['create_date_fmt'];?></span>
|
||||||
|
<!--{hook post_list_inc_create_date_after.htm}-->
|
||||||
|
</dt>
|
||||||
|
<dd class="text-right text-grey ">
|
||||||
|
<!--{hook post_list_inc_edit_before.htm}-->
|
||||||
|
|
||||||
|
<?php if($allowpost) { ?>
|
||||||
|
<a href="javascript:void(0)" tid="<?php echo $_post['tid'];?>" pid="<?php echo $_post['pid'];?>" class="text-grey post_reply m-r-1"><i class="icon-reply"></i> 引用</a>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<!--{hook post_list_inc_update_before.htm}-->
|
||||||
|
|
||||||
|
<?php if($allowupdate || $_post['allowupdate']) { ?>
|
||||||
|
<a href="<?php echo url("post-update-$_post[pid]");?>" class="text-grey post_update m-r-1"><i class="icon-edit"></i> <?php echo lang('edit');?></a>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<!--{hook post_list_inc_delete_before.htm}-->
|
||||||
|
|
||||||
|
<?php if($allowdelete || $_post['allowdelete']) { ?>
|
||||||
|
<a data-href="<?php echo url("post-delete-$_post[pid]");?>" data-confirm-text="<?php echo lang('confirm_delete');?>" href="javascript:void(0);" class="text-grey post_delete _confirm m-r-1"><i class="icon-remove"></i> <?php echo lang('delete');?></a>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<!--{hook post_list_inc_delete_after.htm}-->
|
||||||
|
|
||||||
|
<?php if($_post['floor']) { ?>
|
||||||
|
<span class="floor"><?php echo $_post['floor'];?></span> <?php echo lang('floor');?>
|
||||||
|
<?php } ?>
|
||||||
|
<!--{hook post_list_inc_floor_after.htm}-->
|
||||||
|
</dd>
|
||||||
|
</dl>
|
||||||
|
<div class="message m-t-xs break-all">
|
||||||
|
<?php if(!empty($_post['subject'])) { ?>
|
||||||
|
<h6><a href="<?php echo url("thread-$_post[tid]");?>" target="_blank"><?php echo $_post['subject'];?></a></h6>
|
||||||
|
<?php } ?>
|
||||||
|
<!--{hook post_list_inc_message_before.htm}-->
|
||||||
|
<?php echo $_post['message_fmt'];?>
|
||||||
|
<!--{hook post_list_inc_message_after.htm}-->
|
||||||
|
<?php echo post_file_list_html($_post['filelist']);?>
|
||||||
|
<!--{hook post_list_inc_filelist_after.htm}-->
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php }} ?>
|
||||||
|
|
||||||
|
<!--{hook post_list_inc_end.htm}-->
|
Loading…
Reference in New Issue
Block a user