Done !
| Server IP : 51.91.236.255 / Your IP : 216.73.217.126 Web Server : Apache System : Linux webm003.cluster129.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : chloega ( 433239) PHP Version : 8.4.22 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/chloega/www/wp-content/themes/inspiro/template-parts/post/article/ |
Upload File : |
<?php
/**
* Template part for displaying article header
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package Inspiro
* @subpackage Inspiro_Lite
* @since Inspiro 1.0.0
* @version 1.0.0
*/
$cover_height = inspiro_get_theme_mod( 'cover-size' );
$featured_image_show = inspiro_get_theme_mod( 'display_featured_image' );
?>
<?php
if ( is_sticky() && is_home() ) {
echo inspiro_get_theme_svg( 'thumb-tack' );
}
?>
<?php get_template_part( 'template-parts/post/article/post-thumbnail', get_post_format() ); ?>
<?php
/*
* If a regular post or page, and not the front page, show the featured image as header cover image.
*/
if ( ( is_single() || ( is_page() && ! inspiro_is_frontpage() ) ) && has_post_thumbnail( get_the_ID() ) && $featured_image_show ) {
echo '<div class="entry-cover-image '.$cover_height.'">';
echo '<div class="single-featured-image-header">';
echo get_the_post_thumbnail( get_the_ID(), 'inspiro-featured-image' );
echo '</div><!-- .single-featured-image-header -->';
}
?>
<header class="entry-header">
<?php
if ( ( is_single() || ( is_page() && ! inspiro_is_frontpage() ) ) ) {
echo '<div class="inner-wrap">';
}
if ( is_single() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} elseif ( is_front_page() && is_home() ) {
the_title( '<h3 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h3>' );
} else {
the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' );
}
if ( 'post' === get_post_type() ) {
echo '<div class="entry-meta">';
if ( is_single() ) {
inspiro_single_entry_meta();
} else {
echo inspiro_entry_meta(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
};
echo '</div><!-- .entry-meta -->';
}
if ( ( is_single() || ( is_page() && ! inspiro_is_frontpage() ) ) ) {
echo '</div><!-- .inner-wrap -->';
}
?>
</header><!-- .entry-header -->
<?php
if ( ( is_single() || ( is_page() && ! inspiro_is_frontpage() ) ) && has_post_thumbnail( get_the_ID() ) && $featured_image_show ) {
echo '</div><!-- .entry-cover-image -->';
}
?>