This repository has been archived by the owner on Jun 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews.php
75 lines (55 loc) · 1.97 KB
/
news.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
<?php if (!is_single() && (!is_category())) { ?>
<div class="line-separator">
<?php if (!is_paged()) { ?>
<?php } else { ?>
Archiv novinek
<?php } ?>
</div>
<?php } ?>
<?php if (is_paged()) { ?>
<p class="archive-navigation">
<?php posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?>
</p>
<?php } ?>
<?php if (is_single()) { ?>
<div class="navigation">
<div class="alignleft"><?php previous_post_link('« %link') ?></div>
<div class="alignright"><?php next_post_link('%link »') ?></div>
<div style="clear:both"></div>
</div>
<?php } ?>
<?php if (!isset($_GET['komentare'])) : ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (is_single()) { ?>
<h1><?php the_title(); ?></h1>
<?php } else { ?>
<h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
<?php } ?>
<?php the_content(); ?>
<p class="news-footer">
Přidáno: <?php the_time('d. m. Y'); ?> |
<a href="/o-nas/" title="Více informací o autorovi"><?php the_author(); ?></a> |
<a href="<?php the_permalink() ?>?komentare"><?php comments_number('Komentáře (0)','Komentáře (1)','Komentáře (%)'); ?></a> |
<?php the_category(', '); ?>
<?php edit_post_link('Upravit', '| ', ''); ?>
</p>
<?php if (is_single()) { ?>
<div class="souvisejici-prispevky">Přečtěte si také</div>
<?php
similar_posts();
?>
<p><br /><a href="./?komentare"><strong>Zobrazit komentáře</strong></a></p>
<?php } ?>
<?php endwhile; ?>
<?php else : ?>
<h2>Žádný příspěvek</h2>
<p>Na webu dosud není žádný příspěvek.</p>
<?php endif; ?>
<?php else : ?>
<h1>Komentáře k <a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
<?php comments_template(); ?>
<?php endif; ?>
<p class="archive-navigation">
<?php posts_nav_link(' — ', __('« Newer Posts'), __('Older Posts »')); ?>
</p>