" . $this->get_parent_thumbnail_html($image) . "
";
+ if (Relationships::has_siblings($image->id)) {
+ $siblings = Relationships::get_siblings($image->id);
+ $shtml .= " and has " .count($siblings) . (count($siblings) > 1 ? " siblings" : " sibling");
+ $shtml .= " (";
+ foreach ($siblings as $sibling) {
+ $shtml .= "
#$sibling" . (count($siblings) > 1 ? ", " : ")");
+ }
+ $thtml .= "
" . $this->get_sibling_thumbnail_html($image) . "
";
+ }
+ $shtml .= ".";
+ $shtml .= "
« hide";
+ $thtml .= "
";
+ $html = $shtml . $thtml;
+ $page->add_block(new Block(null, $html, "main", 5, "PostRelationships"));
}
if (bool_escape($image->has_children)) {
$ids = $database->get_col("SELECT id FROM images WHERE parent_id = :iid", ["iid"=>$image->id]);
- $html = "This post has