js fix in admin; idb -> idb & friends

This commit is contained in:
E. S. 2024-03-15 23:29:26 +00:00
parent 26c1d43cc5
commit 6955fe1e2c
2 changed files with 4 additions and 3 deletions

View File

@ -133,8 +133,9 @@ HTML;
} }
function uploads_item($ctx, $id, $direct_url, $note_en, $note_ru, $markdown, $name, $size) { function uploads_item($ctx, $id, $direct_url, $note_en, $note_ru, $markdown, $name, $size) {
$as_note_ru = addslashes($note_ru); $fix_nl_re = '/(\r)?\n/';
$as_note_en = addslashes($note_en); $as_note_ru = preg_replace($fix_nl_re, '\n', addslashes($note_ru));
$as_note_en = preg_replace($fix_nl_re, '\n', addslashes($note_en));
return <<<HTML return <<<HTML
<div class="blog-upload-item"> <div class="blog-upload-item">
<div class="blog-upload-item-actions"> <div class="blog-upload-item-actions">

View File

@ -243,7 +243,7 @@ return <<<HTML
<div class="head-logo-wrap"> <div class="head-logo-wrap">
<div class="head-logo"> <div class="head-logo">
<a href="/"> <a href="/">
<div class="head-logo-title">4in1 <span class="head-logo-title-author">by idb</span></div> <div class="head-logo-title">4in1 <span class="head-logo-title-author">by idb & friends</span></div>
{$ctx->if_true($show_subtitle, '<div class="head-logo-subtitle">Mask of Shakespeare, Mysteries of Bacon, <br>Book by Cartier, Secrets of the NSA</div>')} {$ctx->if_true($show_subtitle, '<div class="head-logo-subtitle">Mask of Shakespeare, Mysteries of Bacon, <br>Book by Cartier, Secrets of the NSA</div>')}
</a> </a>
</div> </div>