WowPress-Tailwind/theme/template-parts/content/content-page.php

62 lines
1.1 KiB
PHP

<?php
/**
* Template part for displaying pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WowPress
*/
if(!(get_post_meta(get_the_ID(),'loggedin',true) && !is_user_logged_in())){
?>
<div class="bg-glass shadow p-auto text-center">
<header class="entry-header">
<?php
if ( ! is_front_page() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
the_title( '<h2 class="entry-title">', '</h2>' );
}
?>
</header><!-- .entry-header -->
</div>
<article class="p-auto" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<?php wowpress_post_thumbnail(); ?>
<div class="prose text-white" <?php wowpress_content_class( 'entry-content' ); ?>>
<?php
the_content();
wp_link_pages(
array(
'before' => '<div>' . __( 'Pages:', 'wowpress' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php }else{
?>
<div class="bg-glass shadow p-auto text-center">
<header class="entry-header">
<h1>Keine Berechtigung die Seite anzuzeigen</h1>
</header>
</div>
<?php } ?>