functions
This commit is contained in:
parent
98a199645a
commit
c5e96a7202
1 changed files with 6 additions and 6 deletions
|
@ -21,26 +21,26 @@ class CustomTagEditTheme extends TagEditTheme
|
|||
$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 Link</a></th>
|
||||
<td>
|
||||
|
@ -52,6 +52,6 @@ class CustomTagEditTheme extends TagEditTheme
|
|||
")."
|
||||
</td>
|
||||
</tr>
|
||||
";
|
||||
");
|
||||
}
|
||||
}
|
||||
|
|
Reference in a new issue