-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcategory-bildergalerie.php-d
More file actions
88 lines (73 loc) · 2.76 KB
/
Copy pathcategory-bildergalerie.php-d
File metadata and controls
88 lines (73 loc) · 2.76 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
80
81
82
83
84
85
86
87
88
<?php
/**
* The template for displaying "bildergalerie" archive pages
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each one. For example, tag.php (Tag archives),
* category.php (Category archives), author.php (Author archives), etc.
*
* @link https://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage FoundationPress
* @since FoundationPress 1.0.0
*/
get_header(); ?>
<div id="page" class="row main-content" data-sticky-container role="main">
<!--<article class=" columns small-12">-->
<?php if ( have_posts() ) : ?>
<div class="columns small-12 medium-6" id="headlinesection">
<h1><?php single_cat_title() ?></h1>
<p><?php category_description() ?></p>
<?php wp_list_categories( array(
) ); ?>
</div>
<div class="columns small-12 large-12">
<div class="row">
<?php /* Start the Loop */
$year = '';
$years = array();
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php
$currentyear = get_the_time( 'Y' );
if ( $year != $currentyear ) {
$year = $currentyear;
echo '<div class="columns small-12 year-container"><h2 class="year" id="year' . $year . '" data-year="' . $year . '" >Bilder aus dem Jahr ' . $year . ':</h2></div>';
$years[] = $year;
} else{
//echo '<div class="columns small-12"><h2>hallo</h2></div>';
}
?>
<div id="post-<?php the_ID(); ?>" <?php post_class('columns small-6 medium-4'); ?>>
<header>
<a href="<?php echo get_permalink(); ?>"><?php the_post_thumbnail('galleryfeature'); ?></a>
<h2 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<?php //foundationpress_entry_meta(); ?>
</header>
<?php /*<div class="entry-content">
<?php the_excerpt(); ?>
<a href="<?php echo get_permalink(); ?>" class="button">Weiterlesen</a>
</div>*/ ?>
<!--<hr />-->
</div>
<?php endwhile; ?>
</div>
</div>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; // End have_posts() check. ?>
<?php /* Display navigation to next/previous pages when applicable */ ?>
<?php if ( function_exists( 'foundationpress_pagination' ) ) { foundationpress_pagination(); } else if ( is_paged() ) { ?>
<nav id="post-nav" class="columns small-12">
<div class="post-previous"><?php next_posts_link( __( '← Older posts', 'foundationpress' ) ); ?></div>
<div class="post-next"><?php previous_posts_link( __( 'Newer posts →', 'foundationpress' ) ); ?></div>
</nav>
<?php } ?>
<!--</article>-->
<?php //get_sidebar(); ?>
</div>
<?php get_footer(); ?>