content-panel.php 1.14 KB
Newer Older
1 2
<?php
/**
3
 * Template part for displaying panel content in front-page.php.
4 5 6
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
7 8 9 10
 * @package ClusterTheme\template-parts
 * @subpackage content-panel
 *
 * @since 1.0.0
11 12
 */

13
$panel_index = clustertheme_front_page_panel_index();
14 15
?>

16 17 18 19
<article id="post-<?php the_ID(); ?>" <?php post_class( $panel_index ); ?>>
	<div class="page_container">
		<header class="entry-header">
			<?php if ( 'panel1' === $panel_index ) :
20

21
				the_title( '<h1 class="entry-title" id="' . $panel_index . '">', '</h1>' );
22

23 24 25 26 27 28 29 30
			else :

				the_title( '<h2 class="entry-title" id="' . $panel_index . '">', '</h2>' );

			endif ; ?>
		</header><!-- .entry-header -->

		<div class="entry-content">
31
			<?php
32 33 34 35 36
				the_content( sprintf(
					/* translators: %s: Name of current post. */
					wp_kses( __( 'Poursuivre la lecture %s <span class="meta-nav">&rarr;</span>', 'clustertheme' ), array( 'span' => array( 'class' => array() ) ) ),
					the_title( '<span class="screen-reader-text">"', '"</span>', false )
				) );
37
			?>
38 39 40 41
		</div><!-- .entry-content -->

		<?php clustertheme_front_page_thumbnail(); ?>
	</div>
42
</article><!-- #post-## -->