Browse Source

v2.0.6

fix old style php openings and closings
pull/7/head
modulbuero 2 years ago
parent
commit
68b9b9f185
  1. 2
      content-kachel.php
  2. 2
      content-list-home-slider.php
  3. 2
      content-single-post-chat.php
  4. 6
      content-single.php
  5. 2
      page-fullpage.php
  6. 2
      page-home-widget.php
  7. 2
      page-landingpage-small.php
  8. 164
      page-landingpage.php
  9. 4
      page-listview.php
  10. 113
      page.php
  11. 2
      style.css

2
content-kachel.php

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

2
content-list-home-slider.php

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

2
content-single-post-chat.php

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

6
content-single.php

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

2
page-fullpage.php

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

2
page-home-widget.php

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

2
page-landingpage-small.php

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

164
page-landingpage.php

@ -5,108 +5,88 @@ Template Name: Landingpage
?>
<?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 );
?>
<section id="content"><div class="inner wrap clearfix">
<?php $themen = get_post_meta( $post->ID, 'kr8mb_page_themen_id', true );
$format = get_post_meta( $post->ID, 'kr8mb_page_format_id', true ); ?>
<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="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>
<?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="landing-intro" class="parallax" style="background-image:url(<?php echo $url; ?>);">
<?php } else { ?>
<div id="landing-intro" >
<?php } ?>
<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 class="twelvecol first">
<?php if (!is_paged()) { ?>
<div id="main" role="main" class="clearfix">
<?php while (have_posts()): the_post(); ?>
<div class="twelvecol first">
<?php if (!is_paged()) { ?>
<div id="main" role="main" class="clearfix">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<?php while (have_posts()): the_post(); ?>
<section class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?>
</section>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
</article>
<section class="entry-content clearfix" itemprop="articleBody">
<?php the_content(); ?>
</section>
</article>
<?php endwhile; ?>
</div>
<?php endwhile; ?>
<?php } ?>
</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; }
<?php if ($themen !="") { ?>
<div class="clearfix landingnews">
$postsperpage = get_option('posts_per_page');
<?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(); ?>
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 -->
<?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></section>
<?php get_footer(); ?>
</div> <!-- end #main -->
</div>
</section>
<?php get_footer(); ?>

4
page-listview.php

@ -8,7 +8,7 @@ Template Name: Listenansicht
<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">
<h1><?php the_title(); ?></h1>
@ -25,7 +25,7 @@ Template Name: Listenansicht
<?php } else { ?>
<? } ?>
<?php } ?>

113
page.php

@ -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() ): ?>
<div class="postimg">
<?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() ) { ?>
<?php $thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<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;
<?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>
<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; ?>
</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; ?>
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>

2
style.css

@ -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.
Author: Benjamin Jopen
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
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Loading…
Cancel
Save