1
1
Fork 0

horizontal match layout

This commit is contained in:
Friendika 2011-03-22 02:21:53 -07:00
parent 89977cd87c
commit cd2a0802e4
3 changed files with 18 additions and 2 deletions

View file

@ -39,11 +39,12 @@ function match_content(&$a) {
if(count($j->results)) {
foreach($j->results as $jj) {
$o .= '<div class="profile-match-wrapper"><div class="profile-match-photo">';
$o .= '<a href="' . $jj->url . '">' . '<img src="' . $jj->photo . '" alt="' . $jj->name . '" /></a></div>';
$o .= '<a href="' . $jj->url . '">' . '<img src="' . $jj->photo . '" alt="' . $jj->name . '" title="' . $jj->name . '[' . $jj->url . ']' . '" /></a></div>';
$o .= '<div class="profile-match-break"></div>';
$o .= '<div class="profile-match-name"><a href="' . $jj->url . '">' . $jj->name . '</a></div>';
$o .= '<div class="profile-match-name"><a href="' . $jj->url . '" title="' . $jj->name . '[' . $jj->url .']' . '">' . $jj->name . '</a></div>';
$o .= '<div class="profile-match-end"></div></div>';
}
$o .= '<div id="profile-match-wrapper-end"></div>';
}
else {
notice( t('No matches') . EOL);

View file

@ -2162,6 +2162,13 @@ a.mail-list-link {
clear: both;
}
.profile-match-wrapper {
float: left;
padding: 10px;
}
#profile-match-wrapper-end {
clear: both;
}
.side-link {
margin-bottom: 15px;
}

View file

@ -2188,6 +2188,14 @@ a.mail-list-link {
clear: both;
}
.profile-match-wrapper {
float: left;
padding: 10px;
}
#profile-match-wrapper-end {
clear: both;
}
.side-link {
margin-bottom: 15px;
}