diff options
-rw-r--r-- | include/profile_advanced.php | 18 | ||||
-rw-r--r-- | version.inc | 2 | ||||
-rw-r--r-- | view/theme/redbasic/css/style.css | 10 | ||||
-rwxr-xr-x | view/tpl/profile_advanced.tpl | 1 |
4 files changed, 28 insertions, 3 deletions
diff --git a/include/profile_advanced.php b/include/profile_advanced.php index e113e019d..21606185d 100644 --- a/include/profile_advanced.php +++ b/include/profile_advanced.php @@ -91,19 +91,33 @@ function advanced_profile(&$a) { if($r) { $things = array(); + + // Use the system obj_verbs array as a sort key, since we don't really + // want an alphabetic sort. To change the order, use a plugin to + // alter the obj_verbs() array or alter it in code. Unknown verbs come + // after the known ones - in no particular order. + + $v = obj_verbs(); + foreach($v as $k => $foo) + $things[$k] = null; foreach($r as $rr) { if(! $things[$rr['obj_verb']]) $things[$rr['obj_verb']] = array(); $things[$rr['obj_verb']][] = array('term' => $rr['term'],'url' => $rr['url'],'img' => $rr['imgurl']); } + $sorted_things = array(); + if($things) + foreach($things as $k => $v) + if(is_array($things[$k])) + $sorted_things[$k] = $v; } - logger('mod_profile: things: ' . print_r($things,true), LOGGER_DATA); + logger('mod_profile: things: ' . print_r($sorted_things,true), LOGGER_DATA); return replace_macros($tpl, array( '$title' => t('Profile'), '$profile' => $profile, - '$things' => $things + '$things' => $sorted_things )); } diff --git a/version.inc b/version.inc index 3e4010a3d..7fb3a18be 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-07-03.363 +2013-07-04.364 diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index b1509c34f..16c614cff 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -3881,3 +3881,13 @@ width: 200px; .tag10 { font-size : 2.8em !important; } + +.profile-thing-list { + list-style-type: none; +} +/* +.profile-thing-list li { + float: left; + margin-right: 25px; +} +*/
\ No newline at end of file diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index 8075b0bb6..0d1750085 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -180,6 +180,7 @@ </li> {{/foreach}} </ul> +<div class="clear"></div> {{/foreach}} {{/if}} |