-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive-normal.php
More file actions
79 lines (76 loc) · 2.88 KB
/
Copy patharchive-normal.php
File metadata and controls
79 lines (76 loc) · 2.88 KB
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
<?php
/**
* @package WordPress
* @subpackage DE-Minimal
*/
get_header(); ?>
<?php if (have_posts()) : ?>
<?php $count=1 //if($paged < 2) { // front page ?>
<?php while(have_posts()) : the_post(); ?>
<?php $einruecken = get_post_meta($post->ID, "standard", true); ?>
<article id="post-<?php the_ID(); ?>" class="post<?php if ($count == 1) echo ' first' ?>
<?php if ( has_post_format( 'link' )) echo 'link-post' ?>">
<div class="background">
<?php if ($count == 1): ?>
<div id="logo">
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php bloginfo( 'name' ); ?>">
<img src="<?php echo bloginfo('stylesheet_directory')?>/images/dennis-circle.svg" />
</a>
</div>
<?php if (category_description( get_category_by_slug('category-slug')->term_id )): ?>
<div class="cat-description">
<h1>Kategorie: <?php single_cat_title(); ?></h1>
<?php echo category_description( get_category_by_slug('category-slug')->term_id ); ?>
</div>
<?php endif; ?>
<?php endif; ?>
<div class="entry">
<?php if ( has_post_format( 'link' )): ?>
<h2 class="<?php the_ID(); ?> linktipp">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a>
</h2>
<?php else: ?>
<h2 class="<?php the_ID(); ?>">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a>
</h2>
<?php endif; ?>
<?php if (!is_linked_list()): ?>
<aside class="sidebar"><div class="date"><?php the_time('j. F Y') ?></div>
<?php if (get_comments_number()>=1 ) : ?>
<div class="commentcount">
· <?php comments_popup_link(__('Kein Kommentar'), __('1 Kommentar'), __('% Kommentare'), __('') ); ?>
</div>
<?php endif; ?>
</aside>
<?php endif; ?>
<?php the_content('Lies den Rest des Artikels »'); ?>
<?php if (is_linked_list()): ?>
<p><a class="button" href="<?php the_linked_list_link(); ?>" title="<?php the_title_attribute(); ?>">
Artikel ansehen
</a></p>
<?php endif; ?>
</div><!-- Ende entry -->
</div> <!-- neues Ende background -->
</article> <!-- ende id artikel -->
<?php $count++ ?>
<?php endwhile; ?>
<?php // pagenavi ?>
<?php wp_pagenavi(); ?>
<?php // pagenavi ?>
<?php else :
if ( is_category() ) { // If this is a category archive
printf("<h2 class='center'>Sorry, but there aren't any posts in the %s category yet.</h2>", single_cat_title('',false));
} else if ( is_date() ) { // If this is a date archive
echo("<h2>Sorry, but there aren't any posts with this date.</h2>");
} else if ( is_author() ) { // If this is a category archive
$userdata = get_userdatabylogin(get_query_var('author_name'));
printf("<h2 class='center'>Sorry, but there aren't any posts by %s yet.</h2>", $userdata->display_name);
} else {
echo("<h2 class='center'>No posts found.</h2>");
}
get_search_form();
endif;
?>
<?php get_footer(); ?>