This commit is contained in:
2021-04-17 13:39:45 +02:00
parent 620db83def
commit 8e6b0d3687
4 changed files with 24 additions and 11 deletions

View File

@ -80,3 +80,13 @@ function get_source_set($user, int $base_size, int $max_scale = 3): string
}
return implode(', ', $srcset_entries);
}
function make_banner(string $type, string $content): string
{
return '<div class="banner-wrapper">'
. ' <div class="'
. $type
. ' banner"><span>✓</span>'
. $content
. '</div></div>';
}