This commit is contained in:
Shish 2023-06-27 11:45:27 +01:00
parent 38edf739fc
commit 8ebd8bf287
3 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ class PrivateImage extends Extension
global $user;
$sb = $event->panel->create_new_block("Private Posts");
$sb->start_table();
if ($user->can(Permissions::SET_PRIVATE_IMAGE)){
if ($user->can(Permissions::SET_PRIVATE_IMAGE)) {
$sb->add_bool_option(PrivateImageConfig::USER_SET_DEFAULT, "Mark posts private by default", true);
}
$sb->add_bool_option(PrivateImageConfig::USER_VIEW_DEFAULT, "View private posts by default", true);

View file

@ -157,7 +157,7 @@ class UploadTheme extends Themelet
for ($i=0; $i<$upload_count; $i++) {
$upload_list->appendChild(
TR(
TD(["colspan"=>$tl_enabled ? 2 : 4], DIV(["name"=>"canceldata{$i}[]","style"=>"display:inline;margin-right:5px;font-size:15px;visibility:hidden;","onclick"=>"$(\"input[name='data{$i}[]']\")[0].value='';updateTracker();"],""), INPUT(["type"=>"file", "name"=>"data{$i}[]", "accept"=>$accept, "multiple"=>true])),
TD(["colspan"=>$tl_enabled ? 2 : 4], DIV(["name"=>"canceldata{$i}[]","style"=>"display:inline;margin-right:5px;font-size:15px;visibility:hidden;","onclick"=>"$(\"input[name='data{$i}[]']\")[0].value='';updateTracker();"], ""), INPUT(["type"=>"file", "name"=>"data{$i}[]", "accept"=>$accept, "multiple"=>true])),
$tl_enabled ? TD(["colspan"=>"2"], INPUT(["type"=>"text", "name"=>"url{$i}"])) : emptyHTML(),
TD(["colspan"=>"2"], INPUT(["type"=>"text", "name"=>"tags{$i}", "class"=>"autocomplete_tags", "autocomplete"=>"off"])),
)
@ -338,7 +338,7 @@ class UploadTheme extends Themelet
["class"=>'mini_upload'],
$form,
SMALL("(Max file size is $max_kb)"),
SMALL(BR(),"(Max total size is $max_total_kb)"),
SMALL(BR(), "(Max total size is $max_total_kb)"),
NOSCRIPT(BR(), A(["href"=>make_link("upload")], "Larger Form"))
);
}

View file

@ -116,7 +116,7 @@ EOD;
$b = $block->body;
$i = $block->id;
$html = $b;
if ($h != "Paginator"){
if ($h != "Paginator") {
$html = "<section id='{$i}'>";
if (!is_null($h)) {
$html .= "<div class='navtop navside tab shm-toggler' data-toggle-sel='#{$i}'>{$h}</div>";