| | |
| | | return $image->formatImage($imgID, $start, $end, $addLink, $postSlug); |
| | | } |
| | | |
| | | function jvbImageCaption(int $imgID, string $start = 'tiny', string $end = 'large', bool $addLink = true, ?string $postSlug = null):string |
| | | { |
| | | $caption = wp_get_attachment_caption($imgID); |
| | | $caption = ($caption && $caption !== '') ? '<figcaption>'.apply_filters('the_content', $caption).'</figcaption>' : ''; |
| | | return '<figure>'.jvbFormatImage($imgID, $start, $end, $addLink, $postSlug).$caption.'</figure>'; |
| | | } |
| | | |
| | | /** |
| | | * Outputs the notification container in the footer |
| | | * @return void |
| | |
| | | <div class="bar"> |
| | | <div class="fill"></div> |
| | | </div> |
| | | <div class="details row btw"> |
| | | <?=$inside?> |
| | | <div class="row btw"> |
| | | <i class="icon"></i> |
| | | <div class="details"> |
| | | <?=$inside?> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <?php |