v2.0.6
fix old style php openings and closings
This commit is contained in:
parent
e38a8b76c2
commit
68b9b9f185
|
@ -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">
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -9,7 +9,7 @@
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
|
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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() ): ?>
|
||||||
|
|
|
@ -19,7 +19,7 @@ Template Name: Einspaltig
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
|
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ Template Name: Startseite aktuellen Mitteilungen, Terminen und PMs
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
|
|
||||||
|
|
||||||
<? } ?>
|
<?php } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -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 );
|
||||||
|
$format = get_post_meta( $post->ID, 'kr8mb_page_format_id', true ); ?>
|
||||||
|
|
||||||
<?php $themen = get_post_meta( $post->ID, 'kr8mb_page_themen_id', true );
|
<section id="content"><div class="inner wrap clearfix">
|
||||||
$format = get_post_meta( $post->ID, 'kr8mb_page_format_id', true );
|
|
||||||
|
|
||||||
?>
|
<?php if ( has_post_thumbnail() ) {
|
||||||
|
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
|
||||||
|
$url = $thumb['0']; ?>
|
||||||
<section id="content"><div class="inner wrap clearfix">
|
<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; ?>);">
|
||||||
|
<?php } else { ?>
|
||||||
|
<div id="landing-intro" >
|
||||||
<?php if ( has_post_thumbnail() ) {
|
<?php } ?>
|
||||||
$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="landing-intro" class="parallax" style="background-image:url(<?php echo $url ?>);">
|
|
||||||
|
|
||||||
<?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">
|
||||||
|
|
||||||
<div class="twelvecol first">
|
<?php while (have_posts()): the_post(); ?>
|
||||||
<?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">
|
||||||
|
|
||||||
<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>
|
||||||
|
|
||||||
<section class="entry-content clearfix" itemprop="articleBody">
|
<?php endwhile; ?>
|
||||||
<?php the_content(); ?>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</article>
|
<?php if ($themen !="") { ?>
|
||||||
|
|
||||||
|
<div class="clearfix landingnews">
|
||||||
<?php endwhile; ?>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
<?php if ($themen !="") { ?>
|
|
||||||
|
|
||||||
<div class="clearfix landingnews">
|
|
||||||
|
|
||||||
<?php wp_reset_query(); ?>
|
<?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');
|
||||||
|
|
||||||
<?php
|
query_posts('tag=' . $themen . '&posts_per_page='. $postsperpage .'&paged=' . $paged . '&category_name=' . $format); ?>
|
||||||
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');
|
<?php while ( have_posts() ) : the_post(); ?>
|
||||||
|
|
||||||
query_posts('tag=' . $themen . '&posts_per_page='. $postsperpage .'&paged=' . $paged . '&category_name=' . $format);
|
<?php get_template_part( 'content-list', get_post_format() ); ?>
|
||||||
?>
|
|
||||||
|
|
||||||
|
<?php endwhile; ?>
|
||||||
|
|
||||||
<?php while ( have_posts() ) : the_post(); ?>
|
</div>
|
||||||
<?php get_template_part( 'content-list', get_post_format() ); ?>
|
|
||||||
<?php endwhile; ?>
|
|
||||||
|
|
||||||
|
<?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(__('« Ältere Beiträge', "kr8theme")) ?></li>
|
||||||
|
<li class="next-link"><?php previous_posts_link(__('Neuere Beiträge »', "kr8theme")) ?></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
</div>
|
</div> <!-- end #main -->
|
||||||
|
|
||||||
<?php if (function_exists('kr8_page_navi')) { ?>
|
</div>
|
||||||
<?php kr8_page_navi(); ?>
|
|
||||||
<?php } else { ?>
|
|
||||||
<nav class="wp-prev-next">
|
|
||||||
<ul class="clearfix">
|
|
||||||
<li class="prev-link"><?php next_posts_link(__('« Ältere Beiträge', "kr8theme")) ?></li>
|
|
||||||
<li class="next-link"><?php previous_posts_link(__('Neuere Beiträge »', "kr8theme")) ?></li>
|
|
||||||
</ul>
|
|
||||||
</nav>
|
|
||||||
<?php } ?>
|
|
||||||
|
|
||||||
|
</section>
|
||||||
|
|
||||||
<?php } ?>
|
<?php get_footer(); ?>
|
||||||
|
|
||||||
</div> <!-- end #main -->
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</div></section>
|
|
||||||
<?php get_footer(); ?>
|
|
|
@ -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 } ?>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
93
page.php
93
page.php
|
@ -1,88 +1,57 @@
|
||||||
<?php get_header(); ?>
|
<?php get_header(); ?>
|
||||||
|
|
||||||
|
<section id="content"><div class="inner wrap clearfix">
|
||||||
|
|
||||||
|
<?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 } ?>
|
||||||
|
|
||||||
<section id="content"><div class="inner wrap clearfix">
|
<div id="main" class="ninecol first clearfix" role="main">
|
||||||
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
|
|
||||||
|
|
||||||
|
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postsingle'); ?> role="article">
|
||||||
|
|
||||||
|
<?php if ( has_post_thumbnail() ) { ?>
|
||||||
|
|
||||||
|
<div class="postimg">
|
||||||
|
|
||||||
<?php if ( has_post_thumbnail() ) {
|
<?php $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 id="single-intro" class="parallax" style="background-image:url(<?php echo $url ?>);"></div>
|
|
||||||
<?php } else { ?>
|
|
||||||
|
|
||||||
|
<?php $imgexc = get_post(get_post_thumbnail_id())->post_excerpt;
|
||||||
<? } ?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<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">
|
|
||||||
|
|
||||||
<?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;
|
|
||||||
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; ?>
|
|
||||||
|
|
||||||
<header class="article-header">
|
<?php } ?>
|
||||||
|
|
||||||
<h1><?php the_title(); ?></h1>
|
<header class="article-header">
|
||||||
|
|
||||||
</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>
|
||||||
|
|
||||||
<section class="entry-content clearfix">
|
<?php comments_template(); ?>
|
||||||
<?php the_content(); ?>
|
|
||||||
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<?php endwhile; endif; ?>
|
||||||
|
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
|
||||||
|
</div></section>
|
||||||
|
|
||||||
</article>
|
<?php get_footer(); ?>
|
||||||
|
|
||||||
|
|
||||||
<?php comments_template(); ?>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php endwhile; ?>
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<?php get_sidebar(); ?>
|
|
||||||
</div></section>
|
|
||||||
<?php get_footer(); ?>
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue