fix old style php openings and closings
This commit is contained in:
modulbuero 2020-01-29 17:18:11 +01:00
parent e38a8b76c2
commit 68b9b9f185
11 changed files with 132 additions and 183 deletions

View File

@ -9,7 +9,7 @@
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article"> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">

View File

@ -7,7 +7,7 @@
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix inner'); ?> role="article"> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix inner'); ?> role="article">

View File

@ -9,7 +9,7 @@
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>

View File

@ -9,9 +9,9 @@
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>
<? } ?> <?php } ?>
<div id="main" class="ninecol first clearfix" role="main"> <div id="main" class="ninecol first clearfix" role="main">
@ -39,7 +39,7 @@
</div><br> </div><br>
<?php endif; ?> <?php endif; ?>
<? } ?> <?php } ?>
<?php if ( has_post_thumbnail() ): ?> <?php if ( has_post_thumbnail() ): ?>

View File

@ -19,7 +19,7 @@ Template Name: Einspaltig
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>

View File

@ -17,7 +17,7 @@ Template Name: Startseite aktuellen Mitteilungen, Terminen und PMs
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>

View File

@ -25,7 +25,7 @@ Template Name: Landingpage (zweispaltig)
<?php } else { ?> <?php } else { ?>
<div id="landing-intro" > <div id="landing-intro" >
<? } ?> <?php } ?>
<div class="landing-teaser twelvecol first clearfix"> <div class="landing-teaser twelvecol first clearfix">

View File

@ -5,108 +5,88 @@ Template Name: Landingpage
?> ?>
<?php get_header(); ?> <?php get_header(); ?>
<?php $themen = get_post_meta( $post->ID, 'kr8mb_page_themen_id', true );
<?php $themen = get_post_meta( $post->ID, 'kr8mb_page_themen_id', true ); $format = get_post_meta( $post->ID, 'kr8mb_page_format_id', true ); ?>
$format = get_post_meta( $post->ID, 'kr8mb_page_format_id', true );
?>
<section id="content"><div class="inner wrap clearfix">
<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' );
<?php if ( has_post_thumbnail() ) { $url = $thumb['0']; ?>
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); <div class="introbg parallax" style="background-image:url(<?php echo $url; ?>);"></div>
$url = $thumb['0']; ?> <div id="landing-intro" class="parallax" style="background-image:url(<?php echo $url; ?>);">
<div class="introbg parallax" style="background-image:url(<?php echo $url ?>);"></div> <?php } else { ?>
<div id="landing-intro" class="parallax" style="background-image:url(<?php echo $url ?>);"> <div id="landing-intro" >
<?php } ?>
<?php } else { ?>
<div id="landing-intro" >
<? } ?>
<div class="landing-teaser twelvecol first clearfix">
<header>
<h1 class="landing-title" itemprop="headline"><span><?php the_title(); ?><span class="hidden"><?php if( is_paged() ) { echo ' - Seite ' .$paged; }?></span></span></h1>
</header>
<div class="landing-teaser twelvecol first clearfix">
<header>
<h1 class="landing-title" itemprop="headline"><span><?php the_title(); ?><span class="hidden"><?php if( is_paged() ) { echo ' - Seite ' .$paged; }?></span></span></h1>
</header>
</div>
</div> </div>
</div>
<div class="twelvecol first">
<?php if (!is_paged()) { ?>
<div id="main" role="main" class="clearfix">
<?php while (have_posts()): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<section class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?>
</section>
</article>
<?php endwhile; ?>
</div>
<?php } ?>
<?php if ($themen !="") { ?>
<div class="clearfix landingnews">
<?php wp_reset_query(); ?>
<?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
$postsperpage = get_option('posts_per_page');
query_posts('tag=' . $themen . '&posts_per_page='. $postsperpage .'&paged=' . $paged . '&category_name=' . $format);
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<?php if (function_exists('kr8_page_navi')) { ?>
<?php kr8_page_navi(); ?>
<?php } else { ?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php next_posts_link(__('&laquo; Ältere Beiträge', "kr8theme")) ?></li>
<li class="next-link"><?php previous_posts_link(__('Neuere Beiträge &raquo;', "kr8theme")) ?></li>
</ul>
</nav>
<?php } ?>
<?php } ?>
</div> <!-- end #main -->
<div class="twelvecol first">
</div></section> <?php if (!is_paged()) { ?>
<?php get_footer(); ?>
<div id="main" role="main" class="clearfix">
<?php while (have_posts()): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<section class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?>
</section>
</article>
<?php endwhile; ?>
</div>
<?php } ?>
<?php if ($themen !="") { ?>
<div class="clearfix landingnews">
<?php wp_reset_query(); ?>
<?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; }
$postsperpage = get_option('posts_per_page');
query_posts('tag=' . $themen . '&posts_per_page='. $postsperpage .'&paged=' . $paged . '&category_name=' . $format); ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list', get_post_format() ); ?>
<?php endwhile; ?>
</div>
<?php if (function_exists('kr8_page_navi')) { ?>
<?php kr8_page_navi(); ?>
<?php } else { ?>
<nav class="wp-prev-next">
<ul class="clearfix">
<li class="prev-link"><?php next_posts_link(__('&laquo; Ältere Beiträge', "kr8theme")) ?></li>
<li class="next-link"><?php previous_posts_link(__('Neuere Beiträge &raquo;', "kr8theme")) ?></li>
</ul>
</nav>
<?php } ?>
<?php } ?>
</div> <!-- end #main -->
</div>
</section>
<?php get_footer(); ?>

View File

@ -8,7 +8,7 @@ Template Name: Listenansicht
<section id="content"><div class="inner wrap clearfix"> <section id="content"><div class="inner wrap clearfix">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?> <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="archive-title ninecol first"> <div class="archive-title ninecol first">
<h1><?php the_title(); ?></h1> <h1><?php the_title(); ?></h1>
@ -25,7 +25,7 @@ Template Name: Listenansicht
<?php } else { ?> <?php } else { ?>
<? } ?> <?php } ?>

113
page.php
View File

@ -1,88 +1,57 @@
<?php get_header(); ?> <?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<section id="content"><div class="inner wrap clearfix">
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?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 ( 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' ); <?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?> $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 != "") { 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 ?><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> </div>
<?php endif; ?>
<?php } ?>
<header class="article-header"> <header class="article-header">
<h1><?php the_title(); ?></h1> <h1><?php the_title(); ?></h1>
</header>
</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>
<?php endwhile; endif; ?>
<section class="entry-content clearfix">
<?php the_content(); ?> <?php get_sidebar(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
</section>
</article>
<?php comments_template(); ?>
</div>
</div></section>
<?php endwhile; ?> <?php get_footer(); ?>
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>

View File

@ -4,7 +4,7 @@ Theme URI: http://www.gruene-nrw.de
Description: Aufwändiges Wordpress-Theme für den EInsatz von größeren Websites, z.B: bei Landesverbänden. Description: Aufwändiges Wordpress-Theme für den EInsatz von größeren Websites, z.B: bei Landesverbänden.
Author: Benjamin Jopen Author: Benjamin Jopen
Author URI: http://www.kre8tiv.de Author URI: http://www.kre8tiv.de
Version: 2.0.5 Version: 2.0.6
Tags: two-columns, green, right-sidebar, fluid-layout, custom-background, custom-header, custom-menu, custom-menu, theme-options, featured-images, storytelling Tags: two-columns, green, right-sidebar, fluid-layout, custom-background, custom-header, custom-menu, custom-menu, theme-options, featured-images, storytelling
License: GNU General Public License v2 or later License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html License URI: http://www.gnu.org/licenses/gpl-2.0.html