';
$r = search_doc_files($_REQUEST['search']);
if($r) {
$o .= '
';
foreach($r as $rr) {
$dirname = dirname($rr['v']);
$fname = basename($rr['v']);
$fname = substr($fname,0,strrpos($fname,'.'));
$path = trim(substr($dirname,4),'/');
$o .= '- ' . ucwords(str_replace('_',' ',notags($fname))) . '
'
. '' . 'help/' . (($path) ? $path . '/' : '') . $fname . '
' .
'...' . str_replace('$Projectname',\Zotlabs\Lib\System::get_platform_name(),$rr['text']) . '...
';
}
$o .= '
';
$o .= '
';
$o .= '';
}
return $o;
}
$content = get_help_content();
return replace_macros(get_markup_template("help.tpl"), array(
'$title' => t('$Projectname Documentation'),
'$content' => $content
));
}
}