-
Notifications
You must be signed in to change notification settings - Fork 0
/
content-event.php
32 lines (29 loc) · 1.27 KB
/
content-event.php
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
<?php
/**
* @package oleville
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class('member-viewer clear'); ?>>
<?php if ( has_post_thumbnail() ) { // Check If post has post thumbnail. ?>
<div class="thumbnail" title="<?php printf( esc_attr__( 'Permalink to %s', 'rpwe' ), the_title_attribute('echo=0' ) ); ?>" rel="bookmark">
<?php the_post_thumbnail(array(300,250)); ?>
<div class="position"> <?php echo get_post_meta(get_the_ID(), 'position', TRUE); ?> </div>
</div>
<?php } // endif ?>
<?php echo '<h2 class="name">'. get_the_title() . ' \'' . get_post_meta(get_the_ID(), 'class', TRUE) . '</h1>'; ?>
<?php if ( $subcommittee = get_post_meta(get_the_ID(), 'subcommittee', TRUE) ) { // Check If post has post subcommittee. ?>
<div class="subcommitee">Subcommittee: <?php echo $subcommittee; ?> </div>
<?php } // endif ?>
<div class="member-content">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div class="page-links">' . __( 'Pages:', 'oleville' ),
'after' => '</div>',
) );
?>
</div><!-- .entry-content -->
<footer class="entry-footer">
<?php edit_post_link( __( 'Edit', 'oleville' ), '<span class="edit-link">', '</span>' ); ?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->