Skip to content

Commit

Permalink
functions
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Dec 14, 2023
1 parent 98a1996 commit c5e96a7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions themes/rule34v2/tag_edit.theme.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@ public function display_mass_editor()
$page->add_block(new Block("Mass Tag Edit", $html));
}

public function get_tag_editor_html(Image $image): string
public function get_tag_editor_html(Image $image): \MicroHTML\HTMLElement
{
$h_tags = html_escape($image->get_tag_list());
return "
return \MicroHTML\rawHTML("
<tr>
<th width='50px'><a href='".make_link("tag_history/{$image->id}")."'>Tags</a></th>
<td>
<input type='text' name='tag_edit__tags' value='$h_tags'>
</td>
</tr>
";
");
}

public function get_source_editor_html(Image $image): string
public function get_source_editor_html(Image $image): \MicroHTML\HTMLElement
{
global $user;
$h_source = html_escape($image->get_source());
$f_source = $this->format_source($image->get_source());
$style = "overflow: hidden; white-space: nowrap; max-width: 350px; text-overflow: ellipsis;";
return "
return \MicroHTML\rawHTML("
<tr>
<th><a href='".make_link("source_history/{$image->id}")."'>Source&nbsp;Link</a></th>
<td>
Expand All @@ -52,6 +52,6 @@ public function get_source_editor_html(Image $image): string
")."
</td>
</tr>
";
");
}
}

0 comments on commit c5e96a7

Please sign in to comment.