-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpage-download.php
180 lines (176 loc) · 7.45 KB
/
page-download.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<?php
/*
Template Name: 下载页面
*/
?>
<?php
/**
* Main Template of Tinection WordPress Theme
*
* @package Tinection
* @version 1.1.0
* @date 2014.12.11
* @author Zhiyan <[email protected]>
* @site Zhiyanblog <www.zhiyanblog.com>
* @copyright Copyright (c) 2014-2015, Zhiyan
* @license http://opensource.org/licenses/gpl-2.0.php GPL v2 or later
* @link http://www.zhiyanblog.com/tinection.html
**/
?>
<?php wp_reset_query(); ?>
<?php if(isset($_GET['pid'])):$pid = $_GET['pid'];else:$pid = 0;endif; ?>
<?php $uid = get_current_user_id(); ?>
<?php get_header(); ?>
<?php //get_template_part( 'includes/breadcrumbs');?>
<!-- Header Banner -->
<?php $headerad=ot_get_option('headerad');if (!empty($headerad)) {?>
<div id="header-banner" class="banner">
<div class="container">
<?php echo ot_get_option('headerad');?>
</div>
</div>
<?php }?>
<!-- /.Header Banner -->
<!-- Main Wrap -->
<div id="main-wrap">
<div id="single-blog-wrap" class="container two-col-container">
<div id="main-wrap-left">
<!-- Content -->
<div class="content">
<?php if($pid!=0){
$post = get_post($pid);
?>
<div class="downtop">
<div class="dl-article-title">
<a href="<?php echo $post->guid; ?>" title="<?php echo $post->post_title; ?>" target="_blank"><?php echo sprintf(__('去%1$s看看关于『 %2$s 』的详细介绍文章>>','tinection'),get_bloginfo('name'),$post->post_title); ?></a>
</div>
<div class="declaration">
<p><?php _e('本站所刊载内容均为网络上收集整理,并且以研究交流为目的,所有仅供大家参考、学习,不存在任何商业目的与商业用途。若您使用此书籍,请遵守相应的开源许可规范和精神,如果你下载此文件,表示您同意只将此文件用于参考、学习使用而非任何其他用途。','tinection'); ?>
</p>
</div>
</div>
<?php $singletopad=ot_get_option('singletopad');if (!empty($singletopad)) {?>
<div id="singletop-banner" class="banner">
<?php echo ot_get_option('singletopad');?>
</div>
<?php }?>
<div class="downmid">
<div class="downld">
<div class="downld-meta">
<span style="color:#1cbdc5"><?php _e('文件列表 ','tinection'); ?></span>
<span class="downld-meta-hot"><?php _e('| 热度: ','tinection'); ?><?php echo get_tin_traffic( 'single' , $pid ); ?> ℃ |</span>
<span class="downld-meta-date"><?php _e(' 上传日期: ','tinection'); ?><?php echo $post->post_date; ?></span>
</div>
<div class="downldlinks sg-dl">
<div class="downldlinks-inner" pid="<?php echo $pid; ?>" uid = "<?php echo $uid; ?>">
<?php tin_dl_page_res_inner($pid,$uid); ?>
</div>
<!--<p style="color:#f00;margin-top:20px;"><?php /*_e('如果您暂时不需或无法下载,您也可以邮件发送下载链接(收费资源除外):','tinection'); */?></p>
<div class="down-mail">
<span class="dl-mail" pid="<?php /*echo $post->ID; */?>">
<input type="text" class="mail-dl" placeholder="<?php /*_e('你的邮件地址','tinection'); */?>" />
<button type="button" class="mail-dl-btn"><?php /*_e('下 载','tinection'); */?></button>
</span>
<div class="dl-terms">
<p class="dl-msg"></p>
<input type="checkbox" name="dl-terms" id="dl-terms-chk" /><?php /*_e('我同意','tinection'); */?> <a href="<?php /*bloginfo('url'); echo'/copyright'; */?>" title="" target="_blank"><?php /*_e('本站条款','tinection'); */?></a><?php /*_e('并愿意接收包含最新文章的订阅邮件。','tinection'); */?>
<div class="dl-terms-des"></div>
</div>
</div>-->
</div>
</div>
<div class="clr clear"></div>
</div>
<?php } else {?>
<div class="downtop">
<div class="dl-article-title">
<p><?php _e('未找到相关下载资源,您访问的链接可能有误!','tinection'); ?></p>
<a href="<?php bloginfo('url'); ?>" title="<?php bloginfo('name'); ?>" target="_blank"><?php echo sprintf(__('去%1$s看看最新文章或者尝试搜索功能','tinection'),get_bloginfo('name')); ?></a>
</div>
<div class="declaration">
<p><?php _e('本站所刊载内容均为网络上收集整理,并且以研究交流为目的,所有仅供大家参考、学习,不存在任何商业目的与商业用途。如果你下载此文件,表示您同意只将此文件用于参考、学习使用而非任何其他用途。','tinection'); ?>
</p>
</div>
</div>
<?php } ?>
<div id="singletop-banner" class="banner">
<!-- Ad 760 x 90 -->
<?php $dlad2=ot_get_option('dlad2');if (!empty($dlad2)) {echo ot_get_option('dlad2');}?>
<!-- Ad end-->
</div>
<div class="downbtm">
<div class="use-des">
<p><?php _e('如果您发现本文件已经失效不能下载,请联系站长管理员修正!','tinection'); ?></p>
<p><?php _e('本站推荐的资源均经由站长检测或者个人发布,不包含恶意软件病毒等,如果你发现此类问题,请向站长举报!','tinection'); ?></p>
<p><?php _e('本站仅提供文件的免费下载服务,如果你对使用有任何疑惑,请留意相关网站论坛!','tinection'); ?></p>
</div>
<div class="downbtm-ad">
<div class="downbtm-ad-left banner">
<!-- ad 250x250 -->
<?php $dlad3=ot_get_option('dlad3');if (!empty($dlad3)) {echo ot_get_option('dlad3');}?>
<!-- /.ad 250x250 -->
</div>
<div class="downbtm-ad-right banner">
<!-- ad 250x250 -->
<?php $dlad4=ot_get_option('dlad4');if (!empty($dlad4)) {echo ot_get_option('dlad4');}?>
<!-- /.ad 250x250 -->
</div>
</div>
</div>
<?php $singlebottomad=ot_get_option('singlebottompad');if (!empty($singlebottomad)) {?>
<div id="singlebottom-banner" class="banner">
<?php echo ot_get_option('singlebottomad');?>
</div>
<?php }?>
</div>
<!-- /.Content -->
</div>
<!-- Sidebar -->
<script type="text/javascript">
$('.site_loading').animate({'width':'55%'},50); //第二个节点
</script>
<?php if(tin_is_mobile()) { ?>
<div id="sidebar" class="clr"></div>
<?php } else { ?>
<div id="sidebar" class="clr">
<?php dynamic_sidebar(ot_get_option('s1-download','primary')); ?>
<div class="floatwidget-container">
</div>
</div>
<?php } ?>
<script type="text/javascript">
$('.site_loading').animate({'width':'78%'},50); //第三个节点
</script>
<!-- /.Sidebar -->
</div>
</div>
<!--/.Main Wrap -->
<!-- Bottom Banner -->
<?php $bottomad=ot_get_option('bottomad');if (!empty($bottomad)) {?>
<div id="bottom-banner">
<div class="container">
<?php echo ot_get_option('bottomad');?>
</div>
</div>
<?php }else{?>
<div style="height:50px;"></div>
<?php }?>
<!-- /.Bottom Banner -->
<?php if(ot_get_option('footer-widgets-singlerow') == 'on'){?>
<div id="ft-wg-sr">
<div class="container">
<?php dynamic_sidebar( 'footer-row'); ?>
</div>
</div>
<?php }?>
<div class="buy-pop-out tinalert">
<div class="buy-pop-title alert_title"><h4><?php _e('资源购买','tinection'); ?></h4></div>
<div class="buy-des alert_content">
<p><?php _e('确定要购买该资源吗?','tinection'); ?></p>
<p><?php _e('这将花费你','tinection'); ?><span class="dl-price"> </span><?php _e('积分,你当前的积分为: ','tinection'); ?><span class="all-credits"> </span></p>
<p class="saledl-msg"></p>
</div>
<p class="confirm-buy alert_cancel"><button class="cancel-to-back btn btn-warning"><?php _e('取消','tinection'); ?></button></p>
<span class="buy-close alert_close"><i class="fa fa-close"></i></span>
</div>
<?php get_footer('simple'); ?>