-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
60 lines (54 loc) · 1.94 KB
/
index.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
<?php
/**
* @package WordPress
* @subpackage DE-Minimal
*/
get_header(); ?>
<?php if (have_posts()) : ?>
<?php query_posts( array( 'paged' => get_query_var('paged') ) ); ?>
<?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 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(); ?>">
<?php the_title(); ?>
</a>
</h2>
<?php endif; ?>
<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 the_content('Lies den Rest des Artikels »'); ?>
</div><!-- Ende entry -->
</div> <!-- neues Ende background -->
</article> <!-- ende id artikel -->
<?php $count++ ?>
<?php endwhile; ?>
<?php // pagenavi ?>
<?php wp_pagenavi(); ?>
<?php // pagenavi ?>
<?php // Reset Query
wp_reset_query(); ?>
<?php //endif; ?>
<?php endif; ?>
<br class="brake" />
<?php get_footer(); ?>