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

Merge pull request #133 from jmr06005/master

UC People Bug Fixes
  • Loading branch information
jmr06005 committed Dec 11, 2015
2 parents 95b4f56 + bb01734 commit 12fba9c0e6db34c6a8f6379afed93f07b97907b0
Showing with 9 additions and 3 deletions.
  1. +2 −2 inc/people-grid.php
  2. +7 −1 user-people.php
@@ -61,10 +61,10 @@
}; };
if (in_array('file', $information_to_display)) { if (in_array('file', $information_to_display)) {
$file = get_field('file'); $file = get_field('file');
$urlLength = strlen($file); $urlLength = strlen($file['url']);
if ($urlLength > 0){ if ($urlLength > 0){
echo '<p class="person-file">'; echo '<p class="person-file">';
echo '<a href="'.$file[url].'">'.$file[title].'</a>'; echo '<a href="'.$file['url'].'">'.$file['title'].'</a>';
echo '</p>'; echo '</p>';
} }
}; };
@@ -135,7 +135,13 @@ function sort_group_by_order( $a, $b ){
} }
}; };
} }

if(!empty($specific_groups) && is_array($specific_groups)){
$groups_in_use = array();
foreach($specific_groups as $group){
$group = get_term_by('id', $group, 'group');
$groups_in_use[] = $group->slug;
}
}
// sort the groups in use alphabetically // sort the groups in use alphabetically
//sort($groups_in_use); //sort($groups_in_use);
usort($groups_in_use, 'sort_group_by_order' ); usort($groups_in_use, 'sort_group_by_order' );

0 comments on commit 12fba9c

Please sign in to comment.
You can’t perform that action at this time.