|
@@ -23,7 +23,7 @@
|
|
}
|
|
}
|
|
if (!empty($segment->heading)) {
|
|
if (!empty($segment->heading)) {
|
|
echo '<div class="note-content-node note-content-heading">' .
|
|
echo '<div class="note-content-node note-content-heading">' .
|
|
- '<div class="py-2 px-3 border-top border-bottom font-size-14 font-weight-bold text-secondary bg-light mt-4">' . $segment->heading . '</div>' .
|
|
|
|
|
|
+ '<div class="py-2 px-3 border-bottom font-size-14 font-weight-bold text-secondary bg-light ' . ($previousHeading ? 'mt-4 border-top' : '') . '">' . $segment->heading . '</div>' .
|
|
'<div class="note-content-children ml-4 border-left">'; // <!-- open new node -->
|
|
'<div class="note-content-children ml-4 border-left">'; // <!-- open new node -->
|
|
}
|
|
}
|
|
$previousHeading = $segment->heading;
|
|
$previousHeading = $segment->heading;
|