Browse Source

per design spec, hide global directory if update url not present

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
0ebd4aa783
2 changed files with 8 additions and 2 deletions
  1. +7
    -1
      mod/directory.php
  2. +1
    -1
      view/directory_header.tpl

+ 7
- 1
mod/directory.php View File

@ -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>' : "")
));


+ 1
- 1
view/directory_header.tpl View File

@ -1,6 +1,6 @@
<h1>Site Directory</h1>
<ul><li><div id="global-directory-link"><a href="http://dir.dfrn.org">Global Directory</a></div></li></ul>
$globaldir
$finding


Loading…
Cancel
Save