content;
if($doc->type == 'url')
{
$url = $doc->content;
if(!preg_match('/^https?:\/\//', $doc->content)) $url = 'http://' . $url;
$content = html::a($url, $doc->content, '_blank');
}
echo $content;
?>
files as $file):?>
extension, $config->file->imageExtensions)):?>
files[$file->id]);?>
" . $lang->goback, '', "class='btn btn-link'");?>
id;?>title;?>
deleted):?>
doc->deleted;?>
version > 1):?>
action == 'created')
{
$versions[$i] = "#$i " . zget($users, $action->actor) . ' ' . substr($action->date, 2, 14);
$i++;
}
if($action->action == 'edited')
{
foreach($action->history as $history)
{
if($history->field == 'content')
{
$versions[$i] = "#$i " . zget($users, $action->actor) . ' ' . substr($action->date, 2, 14);
$i++;
break;
}
}
}
}
krsort($versions);
?>
-
$versionTitle)
{
$class = $i == $version ? " class='active'" : '';
echo '
- ' . html::a(inlink('view', "docID=$doc->id&version=$i"), $versionTitle) . ' '; } ?>