-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-events.php
More file actions
29 lines (17 loc) · 871 Bytes
/
single-events.php
File metadata and controls
29 lines (17 loc) · 871 Bytes
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
<?php
get_header();
global $wp_query,$post,$wpdb;
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'large' );
?>
<div class='row'>
<div class='post-header-event ama-upcoming-shadow' style="background-image: url('<?php echo $image[0]; ?>')">
<div class='ama-upcoming-shadow'>
<div class='container-title'>
<span class='post-title-single'><a class='title-link title-link-html-<?php echo $post->ID;?>' href="<?php echo esc_url($out); ?>" title="<?php the_title_attribute(); ?>" target="_blank" rel="nofollow"><?php the_title(); ?></a></span>
<div class='post-description-short'><?php echo wp_trim_words( get_the_excerpt(), 40, '...' ); ?></div>
<span class='post-description-single hide'><?php the_content(); ?></span>
</div>
</div>
</div>
</div>
<?php get_footer(); ?>