aboutsummaryrefslogtreecommitdiffstats
path: root/include/taxonomy.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-20 12:43:04 -0800
committerfriendica <info@friendica.com>2013-12-20 12:43:04 -0800
commitaa312f72bf48f3ffeb62606541b39e5243ce819e (patch)
tree1b50e1b918475d0193c9f0c460d3b09402f90fa7 /include/taxonomy.php
parenta084a3fa47879f00a535501f14f32c3ff55f7d29 (diff)
downloadvolse-hubzilla-aa312f72bf48f3ffeb62606541b39e5243ce819e.tar.gz
volse-hubzilla-aa312f72bf48f3ffeb62606541b39e5243ce819e.tar.bz2
volse-hubzilla-aa312f72bf48f3ffeb62606541b39e5243ce819e.zip
comanchify mod_directory. Two modules remaining. Actually three because message needs to be split.
Diffstat (limited to 'include/taxonomy.php')
-rw-r--r--include/taxonomy.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php
index 65d082bb0..7887f7687 100644
--- a/include/taxonomy.php
+++ b/include/taxonomy.php
@@ -217,16 +217,19 @@ function tagblock($link,$uid,$count = 0,$authors = '',$flags = 0,$restrict = 0,$
}
function dir_tagblock($link,$r) {
- $o = '';
- $tab = 0;
+ $o = '';
+ $tab = 0;
- if($r) {
- $o = '<div class="dirtagblock widget"><h3>' . t('Keywords') . '</h3><div class="tags" align="center">';
- foreach($r as $rr) {
- $o .= '<a href="'.$link .'/' . '?f=&keywords=' . urlencode($rr['term']).'" class="tag'.$rr['normalise'].'" rel="nofollow" >'.$rr['term'].'</a> ' . "\r\n";
+ if(! $r)
+ $r = get_app()->data['directory_keywords'];
+
+ if($r) {
+ $o = '<div class="dirtagblock widget"><h3>' . t('Keywords') . '</h3><div class="tags" align="center">';
+ foreach($r as $rr) {
+ $o .= '<a href="'.$link .'/' . '?f=&keywords=' . urlencode($rr['term']).'" class="tag'.$rr['normalise'].'" rel="nofollow" >'.$rr['term'].'</a> ' . "\r\n";
+ }
+ $o .= '</div></div>';
}
- $o .= '</div></div>';
- }
return $o;
}