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

62 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2024-04-15 16:00:49 +02:00
<?php
/**
* Template part for displaying pages
*
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/
*
* @package WowPress
*/
2024-04-22 15:38:22 +02:00
2024-08-05 20:19:44 +02:00
if(!(get_post_meta(get_the_ID(),'loggedin',true) && !is_user_logged_in())){
2024-04-15 16:00:49 +02:00
?>
2024-04-22 15:38:22 +02:00
<div class="bg-glass shadow p-auto text-center">
<header class="entry-header">
2024-04-15 16:00:49 +02:00
<?php
if ( ! is_front_page() ) {
the_title( '<h1 class="entry-title">', '</h1>' );
} else {
the_title( '<h2 class="entry-title">', '</h2>' );
}
?>
</header><!-- .entry-header -->
2024-04-22 15:38:22 +02:00
</div>
<article class="p-auto" id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
2024-04-15 16:00:49 +02:00
<?php wowpress_post_thumbnail(); ?>
2024-08-05 20:19:44 +02:00
<div class="prose text-white" <?php wowpress_content_class( 'entry-content' ); ?>>
2024-04-15 16:00:49 +02:00
<?php
the_content();
wp_link_pages(
array(
'before' => '<div>' . __( 'Pages:', 'wowpress' ),
'after' => '</div>',
)
);
?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
2024-08-05 20:19:44 +02:00
<?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 } ?>