| 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 →', '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 |
|