Add multimedia link for jot + enables hover text in jot + autosize in when paste link + renaming / Code Standards

This commit is contained in:
Jonny Tischbein 2018-10-24 16:20:10 +02:00
parent ee006bdc18
commit d2b5f77be9
8 changed files with 62 additions and 36 deletions

View file

@ -92,10 +92,6 @@ function parse_url_content(App $a)
}
}
if (!empty($_GET['isComment'])) {
echo $br . '[url]' . $url . '[/url]';
exit();
}
$template = '[bookmark=%s]%s[/bookmark]%s';
@ -128,6 +124,12 @@ function parse_url_content(App $a)
unset($siteinfo['keywords']);
// Bypass attachment if parse url for a comment
if (!empty($_GET['noAttachment'])) {
echo $br . '[url=' . $url . ']' . $siteinfo['title'] . '[/url]';
exit();
}
// Format it as BBCode attachment
$info = add_page_info_data($siteinfo);