This repository has been archived by the owner. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Person Content Template, and person archives.
- Loading branch information
andrewmbacon
committed
Nov 11, 2015
1 parent
d006cb2
commit d91ac7d
Showing
2 changed files
with
77 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
$information_to_display = get_field( "information_to_display" ); | ||
|
||
|
||
?> | ||
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> | ||
|
||
<?php if ( has_post_thumbnail() ) { | ||
echo '<div class="row">'; | ||
echo '<div class="col-sm-2"><a href="'.get_permalink().'">'; | ||
the_post_thumbnail(); | ||
echo '</a></div>'; | ||
echo '<div class="col-sm-10">'; | ||
} ?> | ||
<header class="entry-header"> | ||
<?php | ||
echo '<h2><a href="'.get_permalink().'">'; | ||
the_field('first_name'); | ||
echo ' '; | ||
if (get_field('middle_name')){ | ||
the_field('middle_name'); | ||
echo ' '; | ||
} | ||
the_field('last_name'); | ||
echo '</a></h2>'; | ||
?> | ||
</header><!-- .entry-header --> | ||
|
||
|
||
|
||
|
||
<div class="entry-content clearfix subpage"> | ||
<?php | ||
|
||
echo '<p>'.get_field('title').'</p>'; | ||
if (strlen(get_field('email')) . 0 ){ | ||
echo '<p><a href="mailto:'.get_field('email').'">'.get_field('email').'</a></p>'; | ||
} | ||
if (strlen(get_field('phone')) > 0 ){ | ||
echo '<p>'.get_field('phone').'</p>'; | ||
} | ||
|
||
?> | ||
|
||
|
||
|
||
|
||
<hr/> | ||
<?php | ||
wp_link_pages( array( | ||
'before' => '<div class="page-links">' . __( 'Pages:', 'cs' ), | ||
'after' => '</div>', | ||
) ); | ||
?> | ||
</div><!-- .entry-content --> | ||
|
||
<?php if ( has_post_thumbnail() ) { | ||
echo '</div>'; | ||
echo '</div>'; | ||
} ?> | ||
</article><!-- #post-## --> |