title;?>
deleted):?>
doc->deleted;?>
', '', "title='{$lang->fullscreen}' class='btn btn-link fullscreen-btn'");
if(common::hasPriv('doc', 'edit')) echo html::a(inlink('edit', "docID=$doc->id&comment=false&objectType=$objectType&objectID=$object->id&libID=$libID"), '
', '', "title='{$lang->doc->edit}' class='btn btn-link' data-app='{$this->app->tab}'");
if(common::hasPriv('doc', 'delete'))
{
$deleteURL = $this->createLink('doc', 'delete', "docID=$doc->id&confirm=yes&from=lib");
echo html::a("javascript:ajaxDeleteDoc(\"$deleteURL\", \"docList\", confirmDelete)", '
', '', "title='{$lang->doc->delete}' class='btn btn-link'");
}
?>
collector, ',' . $this->app->user->account . ',') !== false ? 'icon-star text-yellow' : 'icon-star-empty';?>
id&objectType=doc");?>" title="doc->collect;?>" class='ajaxCollect btn btn-link'>
config->edition == 'max' and $this->app->tab == 'project'):?>
import}'>";
echo html::a('javascript:;', "
", '', "data-toggle='dropdown' class='btn btn-link'");
echo "
';
}
?>
keywords):?>
keywords as $keywords):?>
$keywords";?>
type == 'url' and $autoloadPage)
{
$url = $doc->content;
if(!preg_match('/^https?:\/\//', $doc->content)) $url = 'http://' . $url;
$urlIsHttps = strpos($url, 'https://') === 0;
$ztIsHttps = ((isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on') or (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) and strtolower($_SERVER['HTTP_X_FORWARDED_PROTO']) == 'https'));
if(($urlIsHttps and $ztIsHttps) or (!$urlIsHttps and !$ztIsHttps))
{
echo "
";
}
else
{
$parsedUrl = parse_url($url);
$urlDomain = $parsedUrl['scheme'] . '://' . $parsedUrl['host'];
$title = '';
$response = common::http($url);
preg_match_all('/
(.*)<\/title>/Ui', $response, $out);
if(isset($out[1][0])) $title = $out[1][0];
echo "";
echo "
";
echo "
";
echo "
{$title}
";
echo "
" . html::a($url, $url, '_target') . "
";
echo "
";
}
}
elseif($doc->contentType == 'markdown')
{
echo "";
}
else
{
echo $doc->content;
}
?>
files as $file):?>
extension, $config->file->imageExtensions)):?>
id}");?>" alt="title?>" title="title;?>">
createLink('file', 'download', 'fileID=' . $file->id);
$downloadLink .= strpos($downloadLink, '?') === false ? '?' : '&';
$downloadLink .= $sessionString;
echo html::a($downloadLink, "", '', "class='btn-icon' style='margin-right: 10px;' title=\"{$lang->doc->download}\"");
}
?>
", '', "class='btn-icon' title=\"{$lang->doc->deleteFile}\" onclick='deleteFile($file->id)'");?>
files[$file->id]);?>
fetch('file', 'printFiles', array('files' => $doc->files, 'fieldset' => 'true', 'object' => $doc));?>
createLink('action', 'comment', "objectType=doc&objectID=$doc->id");
?>
config->edition == 'max'):?>