-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patharchive-images.php
More file actions
63 lines (53 loc) · 2.05 KB
/
Copy patharchive-images.php
File metadata and controls
63 lines (53 loc) · 2.05 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
<?php
/**
* @package WordPress
* @subpackage DE-Minimal
*/
get_header(); ?>
<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><?php single_cat_title(); ?></h1>
<?php echo category_description( get_category_by_slug('category-slug')->term_id ); ?>
</div>
<?php endif; ?>
<?php if (have_posts()) : ?>
<div class="wrapper">
<div class="row">
<?php query_posts( array('posts_per_page' => 12, 'cat' => 83, 'paged' =>get_query_var('paged') ) ); ?>
<?php while(have_posts()) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" class="photos">
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<div class="inside">
<?php the_content('Lies den Rest des Artikels »'); ?>
<div class="caption">
<?php the_title(); ?>
</div>
</div><!-- end inside -->
</a>
</article> <!-- ende id artikel -->
<?php endwhile; ?>
<?php wp_reset_query(); ?>
</div><!-- end row -->
</div><!-- end wrapper -->
<?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(); ?>