diff options
author | friendica <info@friendica.com> | 2015-02-05 19:38:43 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-02-05 19:38:43 -0800 |
commit | 4b348d248975ba07ba9cea62f51eb52d6afb5645 (patch) | |
tree | fc60c2d05958c2a458ac72b03e1e7ddffce0c41b /mod/directory.php | |
parent | aafed50a0ea8a8d7091572473dcb8e4fb8cd4602 (diff) | |
parent | b948fbaeda84f4358722222b4a2d5555ef10b82e (diff) | |
download | volse-hubzilla-4b348d248975ba07ba9cea62f51eb52d6afb5645.tar.gz volse-hubzilla-4b348d248975ba07ba9cea62f51eb52d6afb5645.tar.bz2 volse-hubzilla-4b348d248975ba07ba9cea62f51eb52d6afb5645.zip |
Merge branch 'master' into tres
Conflicts:
view/css/mod_events.css
view/theme/redbasic/css/style.css
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php index 21940d57b..329e255cf 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -190,6 +190,11 @@ function directory_content(&$a) { $page_type = ''; + if($rr['total_ratings']) + $total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']); + else + $total_ratings = ''; + $profile = $rr; if ((x($profile,'locale') == 1) @@ -247,7 +252,7 @@ function directory_content(&$a) { 'public_forum' => $rr['public_forum'], 'photo' => $rr['photo'], 'hash' => $rr['hash'], - 'alttext' => $rr['name'] . ' ' . $rr['address'], + 'alttext' => $rr['name'] . ((local_channel() || remote_channel()) ? ' ' . $rr['address'] : ''), 'name' => $rr['name'], 'details' => $pdesc . $details, 'profile' => $profile, @@ -255,6 +260,9 @@ function directory_content(&$a) { 'nickname' => substr($rr['address'],0,strpos($rr['address'],'@')), 'location' => $location, 'gender' => $gender, + 'total_ratings' => $total_ratings, + 'viewrate' => true, + 'canrate' => ((local_channel()) ? true : false), 'pdesc' => $pdesc, 'marital' => $marital, 'homepage' => $homepage, @@ -269,6 +277,7 @@ function directory_content(&$a) { 'keywords' => $out, 'ignlink' => $suggest ? $a->get_baseurl() . '/directory?ignore=' . $rr['hash'] : '', 'ignore_label' => "Don't suggest", + 'safe' => $safe_mode ); $arr = array('contact' => $rr, 'entry' => $entry); |