-
Notifications
You must be signed in to change notification settings - Fork 1
/
archive.php
62 lines (53 loc) · 2.81 KB
/
archive.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
<?php get_header(); ?>
<div id="page">
<div class="wrapper">
<?php include('news_menu.php'); ?>
<div id="content" style="min-height: 470px">
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. $post değişkenini ata ki the_date() çalışsın. ?>
<?php /* Kategori arşivi ise */ if (is_category()) { ?>
<h2 class="pagetitle">‘<?php single_cat_title(); ?>’ kategorisi için Arşiv</h2>
<?php /* Etiket arşivi ise */ } elseif( is_tag() ) { ?>
<h2 class="pagetitle">‘<?php single_tag_title(); ?>’ olarak etiketlenmiş yazılar</h2>
<?php /* Günlük arşiv ise */ } elseif (is_day()) { ?>
<h2 class="pagetitle"><?php the_time('d F Y'); ?> için Arşiv</h2>
<?php /* Aylık arşiv ise */ } elseif (is_month()) { ?>
<h2 class="pagetitle"><?php the_time('F Y'); ?> için Arşiv</h2>
<?php /* Yıllık arşiv ise */ } elseif (is_year()) { ?>
<h2 class="pagetitle"><?php the_time('Y'); ?> için Arşiv</h2>
<?php /* Yazar arşivi ise */ } elseif (is_author()) { ?>
<h2 class="pagetitle">Yazar Arşivi</h2>
<?php /* Sayfalanmış bir arşiv ise */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<h2 class="pagetitle">Blog Arşivi</h2>
<?php } ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class() ?>>
<h3 id="post-<?php the_ID(); ?>" style="margin-bottom: 0"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?> için kalıcı bağlantı"><?php the_title(); ?></a></h3>
<p class="time">(<?php the_time('d F Y'); ?>)</p>
<div class="entry">
<?php the_content() ?>
</div>
<p class="postmetadata"><?php edit_post_link('Düzenle', '', ' | '); ?> <?php comments_popup_link('Yorum Yok »', '1 Yorum »', '% Yorum »'); ?></p>
</div>
<?php endwhile; ?>
<?php else :
if ( is_category() ) { // Kategori arşivi ise
printf("<h2 class='center'>Üzgünüz, %s kategorisinde henüz yazı yok.</h2>", single_cat_title('',false));
} else if ( is_date() ) { // Tarih arşivi ise
echo("<h2>Üzgünüz, bu tarihte yazı yok.</h2>");
} else if ( is_author() ) { // Yazar arşivi ise
$userdata = get_userdatabylogin(get_query_var('author_name'));
printf("<h2 class='center'>Üzgünüz, henüz %s tarafından yazılmış herhangi bir yazı yok.</h2>", $userdata->display_name);
} else {
echo("<h2 class='center'>Herhangi bir yazı bulunamadı.</h2>");
}
get_search_form();
endif;
?>
<div style="clear: both"></div>
<?php comments_template( '', true ); ?>
</div>
</div>
<?php include 'bottom_area.php'; ?>
<?php get_footer(); ?>
</div>