PluginProbe
Themify Event Post / trunk
Themify Event Post vtrunk
1.3.7 trunk 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6
themify-event-post / templates / archive.php

archive.php in Themify Event Post trunk, at templates/archive.php

45 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Template to display the_content for event posts
4 *
5 * To override this file copy it to <your_theme>/themify-event-post/archive.php
6 *
7 */
8 ?>
9
10 <?php if ( is_category() || is_tag() || is_tax() ) : ?>
11 <h1 class="page-title"><?php single_term_title( '' ) ?></h1>
12 <?php endif; ?>
13
14 <?php if ( $this->query->have_posts() ) : ?>
15 <div class="themify_event_post_loop <?php echo esc_attr( Themify_Event_Post::get_instance()->get_option( 'layout', 'grid2' ) ); ?>">
16
17 <?php while ( $this->query->have_posts() ) : $this->query->the_post(); ?>
18
19 <?php
20 echo $this->get_template( 'content', array(
21 'display' => 'excerpt', // excerpt, none
22 'more_link' => false, // true goes to post type archive, and admits custom link
23 'more_text' => __( 'More &rarr;', 'themify-event-post' ),
24 'image_size' => 'medium',
25 'title' => 'yes', // no
26 'title_tag' => 'h2',
27 'unlink_title' => 'no',
28 'image' => 'yes', // no
29 'unlink_image' => 'no',
30 'hide_event_location' => 'no',
31 'hide_event_date' => 'no',
32 'hide_event_organizer' => 'no',
33 'hide_event_performer' => 'no',
34 'hide_event_meta' => 'no',
35 'image_w' => '',
36 'image_h' => '',
37 ) );
38 ?>
39
40 <?php endwhile; ?>
41 <?php wp_reset_postdata(); ?>
42
43 </div><!-- .themify_event_post_archive -->
44 <?php endif; ?>
45