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,61 +5,47 @@ 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() ) { <?php if ( has_post_thumbnail() ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?> $url = $thumb['0']; ?>
<div class="introbg parallax" style="background-image:url(<?php echo $url ?>);"></div> <div class="introbg parallax" style="background-image:url(<?php echo $url; ?>);"></div>
<div id="landing-intro" class="parallax" style="background-image:url(<?php echo $url ?>);"> <div id="landing-intro" class="parallax" style="background-image:url(<?php echo $url; ?>);">
<?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">
<header> <header>
<h1 class="landing-title" itemprop="headline"><span><?php the_title(); ?><span class="hidden"><?php if( is_paged() ) { echo ' - Seite ' .$paged; }?></span></span></h1> <h1 class="landing-title" itemprop="headline"><span><?php the_title(); ?><span class="hidden"><?php if( is_paged() ) { echo ' - Seite ' .$paged; }?></span></span></h1>
</header> </header>
</div> </div>
</div> </div>
<div class="twelvecol first"> <div class="twelvecol first">
<?php if (!is_paged()) { ?> <?php if (!is_paged()) { ?>
<div id="main" role="main" class="clearfix"> <div id="main" role="main" class="clearfix">
<?php while (have_posts()): the_post(); ?> <?php while (have_posts()): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting"> <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"> <section class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?> <?php the_content(); ?>
</section> </section>
</article> </article>
<?php endwhile; ?> <?php endwhile; ?>
</div> </div>
<?php } ?> <?php } ?>
<?php if ($themen !="") { ?> <?php if ($themen !="") { ?>
@ -68,25 +54,20 @@ Template Name: Landingpage
<?php wp_reset_query(); ?> <?php wp_reset_query(); ?>
<?php if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
<?php
if ( get_query_var('paged') ) { $paged = get_query_var('paged'); }
elseif ( get_query_var('page') ) { $paged = get_query_var('page'); } elseif ( get_query_var('page') ) { $paged = get_query_var('page'); }
else { $paged = 1; } else { $paged = 1; }
$postsperpage = get_option('posts_per_page'); $postsperpage = get_option('posts_per_page');
query_posts('tag=' . $themen . '&posts_per_page='. $postsperpage .'&paged=' . $paged . '&category_name=' . $format); query_posts('tag=' . $themen . '&posts_per_page='. $postsperpage .'&paged=' . $paged . '&category_name=' . $format); ?>
?>
<?php while ( have_posts() ) : the_post(); ?> <?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list', get_post_format() ); ?> <?php get_template_part( 'content-list', get_post_format() ); ?>
<?php endwhile; ?> <?php endwhile; ?>
</div> </div>
<?php if (function_exists('kr8_page_navi')) { ?> <?php if (function_exists('kr8_page_navi')) { ?>
@ -100,13 +81,12 @@ Template Name: Landingpage
</nav> </nav>
<?php } ?> <?php } ?>
<?php } ?> <?php } ?>
</div> <!-- end #main --> </div> <!-- end #main -->
</div>
</section>
</div></section>
<?php get_footer(); ?> <?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 } ?>

View file

@ -1,51 +1,35 @@
<?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() ) { <?php if ( has_post_thumbnail() ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' ); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?> $url = $thumb['0']; ?>
<div class="introbg parallax" style="background-image:url(<?php echo $url ?>);"></div> <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> <div id="single-intro" class="parallax" style="background-image:url(<?php echo $url; ?>);"></div>
<?php } else { ?> <?php } ?>
<? } ?>
<div id="main" class="ninecol first clearfix" role="main"> <div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postsingle'); ?> role="article"> <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postsingle'); ?> role="article">
<?php if ( has_post_thumbnail() ) { ?>
<?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">
@ -53,36 +37,21 @@
</header> </header>
<section class="entry-content clearfix"> <section class="entry-content clearfix">
<?php the_content(); ?> <?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
</section> </section>
</article> </article>
<?php comments_template(); ?> <?php comments_template(); ?>
</div> </div>
<?php endwhile; endif; ?>
<?php endwhile; ?>
<?php get_sidebar(); ?> <?php get_sidebar(); ?>
</div></section> </div></section>
<?php get_footer(); ?> <?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