strip_top_level) ? $this->indent . "
\n" : '';
$out = $start;
if (!empty($this->header)) {
$out .= $this->header->html($module, $layout);
}
if (!empty($this->album_list)) {
$out .= $this->album_list->html($module, $layout);
}
if (!empty($this->collections)) {
/** @var Printable|string $collection */
foreach ($this->collections as $collection) {
if (is_a($collection, 'Photonic_Plugin\Components\Printable')) {
$out .= $collection->html($module, $layout);
}
else {
$out .= $collection;
}
}
}
if ($out !== $start && !$this->strip_top_level) {
$out .= $this->indent . "
\n";
}
if ($print) {
echo wp_kses($out, Photonic::$safe_tags);
}
return wp_kses($out, Photonic::$safe_tags);
}
}