mirror of
https://gh.wpcy.net/https://github.com/presscustomizr/hueman.git
synced 2026-04-25 02:27:08 +08:00
15 lines
No EOL
655 B
PHP
15 lines
No EOL
655 B
PHP
<?php if ( has_post_thumbnail() ): ?>
|
|
<div class="page-image">
|
|
<div class="image-container">
|
|
<?php hu_the_post_thumbnail('thumb-large', '', false );//no attr and no placeholder ?>
|
|
<?php
|
|
$caption = get_post(get_post_thumbnail_id())->post_excerpt;
|
|
$description = get_post(get_post_thumbnail_id())->post_content;
|
|
echo '<div class="page-image-text">';
|
|
if ( isset($caption) && $caption ) echo '<div class="caption">'.$caption.'</div>';
|
|
if ( isset($description) && $description ) echo '<div class="description"><i>'.$description.'</i></div>';
|
|
echo '</div>';
|
|
?>
|
|
</div>
|
|
</div><!--/.page-image-->
|
|
<?php endif; ?>
|