aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-09-23 18:33:07 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-09-23 18:33:07 -0700
commit0ebd4aa78303792a97c111229080224ba1bcf2de (patch)
treec6da0c5a9cdb95f347ec895429f975667388e91a /mod
parent4c2fbc81a043eabb984bf2da56081102dda64b70 (diff)
downloadvolse-hubzilla-0ebd4aa78303792a97c111229080224ba1bcf2de.tar.gz
volse-hubzilla-0ebd4aa78303792a97c111229080224ba1bcf2de.tar.bz2
volse-hubzilla-0ebd4aa78303792a97c111229080224ba1bcf2de.zip
per design spec, hide global directory if update url not present
Diffstat (limited to 'mod')
-rw-r--r--mod/directory.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 6aa890226..01cb1a3ff 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -10,10 +10,16 @@ function directory_content(&$a) {
$tpl .= load_view_file('view/directory_header.tpl');
-
+ $globaldir = '';
+ $gdirpath = dirname(get_config('system','directory_submit_url'));
+ if(strlen($gdirpath)) {
+ $globaldir = '<ul><li><div id="global-directory-link"><a href="'
+ . $gdirpath . '">' . t('Global Directory') . '</a></div></li></ul>';
+ }
$o .= replace_macros($tpl, array(
'$search' => $search,
+ '$globaldir' => $globaldir,
'$finding' => (strlen($search) ? '<h4>' . t('Finding: ') . "'" . $search . "'" . '</h4>' : "")
));