make block IDs unique

This commit is contained in:
Joe 2024-02-14 22:40:42 -06:00 committed by Shish
parent 5e0c6dd427
commit 0f620da854

View file

@ -37,7 +37,7 @@ class RelationshipsTheme extends Themelet
$parent_summary_html .= "<a href='#' id='relationships-parent-toggle' class='shm-relationships-parent-toggle'>« hide</a>";
$parent_thumb_html .= "</div>";
$html = $parent_summary_html . $parent_thumb_html;
$page->add_block(new Block(null, $html, "main", 5, "PostRelationships"));
$page->add_block(new Block(null, $html, "main", 5, "PostRelationshipsParent"));
}
if (bool_escape($image['has_children'])) {
@ -54,7 +54,7 @@ class RelationshipsTheme extends Themelet
$child_summary_html .= "</span><a href='#' id='relationships-child-toggle' class='shm-relationships-child-toggle'>« hide</a>";
$child_thumb_html .= "</div></div>";
$html = $child_summary_html . $child_thumb_html;
$page->add_block(new Block(null, $html, "main", 5, "PostRelationships"));
$page->add_block(new Block(null, $html, "main", 5, "PostRelationshipsChildren"));
}
}
}