Fix php-error on page.php

This commit is contained in:
modulbuero 2020-01-15 08:39:47 +01:00
parent e38a8b76c2
commit 204b8a9b42
1 changed files with 41 additions and 72 deletions

113
page.php
View File

@ -1,88 +1,57 @@
<?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<section id="content"><div class="inner wrap clearfix">
<?php if ( has_post_thumbnail() ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<div class="introbg parallax" style="background-image:url(<?php echo $url ?>);"></div>
<div id="single-intro" class="parallax" style="background-image:url(<?php echo $url ?>);"></div>
<?php } else { ?>
<? } ?>
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postsingle'); ?> role="article">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php if ( has_post_thumbnail() ): ?>
<?php if ( has_post_thumbnail() ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<div class="introbg parallax" style="background-image:url(<?php echo $url; ?>);"></div>
<div id="single-intro" class="parallax" style="background-image:url(<?php echo $url; ?>);"></div>
<?php } ?>
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postsingle'); ?> role="article">
<?php if ( has_post_thumbnail() ) { ?>
<div class="postimg">
<div class="postimg">
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<?php
$imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
<?php $imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
if ($imgexc != "") {
?><p class="wp-caption-text"><a href="<?php echo $url ?>" class="fancybox" title="<?php echo $imgexc;?>"><i class="fa fa-picture-o"></i> <?php echo $imgexc;?></a></p><?php
} ?>
</div>
<?php endif; ?>
</div>
<?php } ?>
<header class="article-header">
<header class="article-header">
<h1><?php the_title(); ?></h1>
</header>
<h1><?php the_title(); ?></h1>
</header>
<section class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
</section>
</article>
<?php comments_template(); ?>
</div>
<section class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
</section>
</article>
<?php comments_template(); ?>
</div>
<?php endwhile; endif; ?>
<?php get_sidebar(); ?>
<?php endwhile; ?>
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>
</div></section>
<?php get_footer(); ?>