-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpage-download.php
189 lines (109 loc) · 7.21 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
181
182
183
184
185
186
187
188
189
<?php get_header(); ?>
<!--page-title area-->
<section class="page-title-area">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="breadcrumb-inner">
<ul class="page-list">
<li><a href="<?php bloginfo("home"); ?>">Anasayfa</a></li>
<li style="padding-left:10px"> <?php the_title(); ?></li>
</ul>
</div>
</div>
</div>
</div>
</section>
<!--page-title area end-->
<div class="blog-page-area pd-bottom-80">
<div class="container">
<div class="row">
<div class="col-lg-9 pd-top-50">
<div class="blog-details-page-inner">
<div class="single-blog-inner m-0">
<?php while ( have_posts() ) : the_post(); ?>
<script>
var timeleft = 10;
var downloadTimer = setInterval(function(){
if(timeleft <= 0){
clearInterval(downloadTimer);
document.getElementById("saniyee").innerHTML = "0";
} else {
document.getElementById("saniyee").innerHTML = timeleft ;
}
timeleft -= 1;
}, 1000);
</script>
<?php
$download = $_GET["download"];
$terms = get_the_term_list( $download, 'indirme_linki' ); $strip_terms = strip_tags( $terms );
// $getterm = get_term_by('id', $download, 'indirme_linki');
// echo $getterm->name;
?>
<meta http-equiv="refresh" content="10; URL='<?php echo $strip_terms ?>'" />
<h1> İndirme Sayfasına Yönlendiriliyorsunuz - <span id="saniyee"></span> </h1>
<a href="<?php echo $strip_terms ?>">Yönlendirme başlamazsa buraya tıklayınız.</a>
<br><br>
<?php endwhile; ?>
<?php
$terms = get_the_term_list( $post->ID, 'indirme_linki' ); $strip_terms = strip_tags( $terms ); if(!empty($strip_terms)){
// echo $strip_terms
/*
<a class="wp-block-button__link has-background has-vivid-red-background-color"
href="http://download.atarikafa.com/serve/sitelinks/?id=516125&url=https://www.atarikafa.com/download/?download=<?php the_ID(); ?>"
style="border-radius:6px" target="_blank" rel="noreferrer noopener">
<a class="wp-block-button__link has-background has-vivid-red-background-color"
href="<?php echo $strip_terms; ?>"
style="border-radius:6px" target="_blank" rel="noreferrer noopener">
*/
?>
<br><br>
<div class="wp-block-button" >
<a class="wp-block-button__link has-background has-vivid-red-background-color"
href="https://www.atarikafa.com/download/?download=<?php the_ID(); ?>"
style="border-radius:6px" target="_blank" rel="noreferrer noopener">
İNDİR – <?php the_title(); ?></a>
</div>
<?php } ?>
<?php if(in_category(4)){ ?>
<br>
<p style="color:red">
Haritayı nasıl kuracağınızı bilmiyorsanız aşağıdaki videoyu izleyip öğrenebilirsiniz. <br>
</p>
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio">
<div class="wp-block-embed__wrapper">
<iframe title="Harita Kurulum ve MultiMC X Kullanım" width="500" height="281" src="https://www.youtube.com/embed/bqQLUzrnKvE?feature=oembed"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="">
</iframe>
</div>
</figure>
<?php } ?>
<?php if(in_category(6)){ ?>
<br>
<p style="color:red">
Bu Mod Paketini nasıl kuracağınızı bilmiyorsanız aşağıdaki videoyu izleyip öğrenebilirsiniz. <br>
</p>
<figure class="wp-block-embed-youtube wp-block-embed is-type-video is-provider-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio">
<div class="wp-block-embed__wrapper">
<iframe title="Modpack Kurulumu ve MultiMC X Kullanım" width="500" height="281" src="https://www.youtube.com/embed/6yB9LQJbFSc?feature=oembed"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="">
</iframe>
</div>
</figure>
<?php } ?>
<br><br>
<?php comments_template('/comments.php'); ?>
</div>
</div>
</div>
<div class="col-lg-3 pd-top-50">
<?php include("kategoriler.php"); ?>
<ul class="widgets-atarikafa">
<?php if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Sidebar_Download') ) : ?>
<?php endif; ?>
</ul>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>