Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmbacon committed Nov 11, 2015
1 parent d91ac7d commit d2238fc
Showing 1 changed file with 0 additions and 27 deletions.
27 changes: 0 additions & 27 deletions single-person.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,33 +38,6 @@
<table class="table">
<legend class="sr-only">Contact Information</legend>
<?php
/*
function displayField($field){
if (get_field($field)){
$field_key = 'field_'.$field;
$field_obj = get_field_object($field_key);
$field_value = $field_obj['value'];
$field_label = $field_obj['label'];
echo '<h5>'.$field_label.'</h5>';
echo '<p class="person-'.$field.'">';
if ($field == 'email'){
echo '<a href="mailto:'.$field_value.'">';
the_field($field);
echo '</a>';
} else if ($field == 'file'){
$file = get_field($field);
$url= $file['url'];
echo '<a class="btn btn-default" href="'.$url.'"><span class="glyphicon glyphicon-save-file"></span> ';
echo $file['title'];
echo '</a>';
} else {
the_field($field);
}
echo '</p><hr/>';
}
}
*/
function displayField($field){
if (get_field($field)){

Expand Down

0 comments on commit d2238fc

Please sign in to comment.