Skip to content
Snippets Groups Projects
Commit af631311 authored by Eric Rasmussen's avatar Eric Rasmussen
Browse files

only show "why here" if they've filled that out

parent aefff169
No related branches found
No related tags found
No related merge requests found
......@@ -154,8 +154,8 @@
</p>
<!-- lat, lng, username, location, displayname, title, comment(text area) -->
<?php
$users = get_entities_from_metadata('icontime', '', 'user', '', 0, 8);
//$users = get_entities('user', '', 0, '', 8, 0, false, 0, null);
//$users = get_entities_from_metadata('icontime', '', 'user', '', 0, 8);
$users = get_entities('user', '', 0, '', 8, 0, false, 0, null);
if($users){
foreach($users as $user){
......
......@@ -168,8 +168,20 @@ function openLocation(lng, lat, username, location, displayname, title, comment,
};
function applylabel(latlng, location, title, comment, displayname, username, linkname) {
if(!linkname) //these are the most recently joined users
label.openInfoWindowHtml('<div id="witw_wrapper"><img class="witw_icon" src="<?php echo $CONFIG->url ?>mod/profile/icondirect.php?username=' + username + '&size=medium" width="60" height="60" /><h1>' + displayname + '</h1><p class="witw_location">' + location + '</p><p class="witw_title">' + title + '</p><p class="witw_comment"><strong>Why here?</strong><br /><em>\"' + comment + '\"</em></p></div>', 256, 154);
if(!linkname){ //these are the most recently joined users
if(comment != undefined && comment != "")
label.openInfoWindowHtml('<div id="witw_wrapper">'+
'<img class="witw_icon" src="<?php echo $CONFIG->url ?>mod/profile/icondirect.php?username=' + username + '&size=medium" width="60" height="60" /><h1>' + displayname + '</h1>'+
'<p class="witw_location">' + location + '</p><p class="witw_title">' + title + '</p>'+
'<p class="witw_comment"><strong>Why here?</strong><br /><em>\"' + comment + '\"</em></p>'+
'</div>', 256, 154);
else
label.openInfoWindowHtml('<div id="witw_wrapper">'+
'<img class="witw_icon" src="<?php echo $CONFIG->url ?>mod/profile/icondirect.php?username=' + username + '&size=medium" width="60" height="60" /><h1>' + displayname + '</h1>'+
'<p class="witw_location">' + location + '</p><p class="witw_title">' + title + '</p>'+
'<p class="witw_comment"></p>'+
'</div>', 256, 154);
}
else //these are the featured WITW Huskers (like Buffett, etc)
label.openInfoWindowHtml('<div id="witw_wrapper"><img class="witw_icon" src="<?php echo $CONFIG->url ?>mod/customindex/witw_icons/' + linkname + '_medium.jpg" width="60" height="60" /><h1>' + displayname + '</h1><p class="witw_location">' + location + '</p><p class="witw_title">' + title + '</p><p class="witw_comment">' + comment + ' <a href="<?php echo $CONFIG->url ?>featured/husker/' + linkname + '/">Continue Reading...</a></p></div>', 256, 154);
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment