added files for said branch

This commit is contained in:
Willi Junga 2020-12-04 11:07:37 +01:00
parent 1ca03fd14b
commit 13f6bc5203
Signed by untrusted user: JunWi
GPG key ID: 16CD94732DE08DA5
8 changed files with 464 additions and 5 deletions

View file

@ -1 +1,15 @@
Hello
"Joseph-Knows-Best" - Wordpress Theme für gruene-rlp.de
=======================================================
Credits to: https://chatbegruenung.de/direct/dietzmar
For feedback and _voluntary_ advice: https://chatbegruenung.de/channel/wordpress
## Overrides
__Do, 26.11.2020 22:36__
Abschnitt-Überschrift auf der Kampagnen-Seite von
"werde aktiv" auf "was wir wollen" geändert.

View file

@ -0,0 +1,43 @@
<?php if ( has_post_thumbnail() ) {
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<div class="introbg background parallax-window fullpage" style="background-image:url(<?php echo $url ?>);" data-parallax="scroll" data-image-src="<?php echo $url ?>"></div>
<div id="single-intro" style="background-image:url(<?php echo $url ?>);"></div>
<?php } else { ?>
<?php } ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix inner'); ?> role="article">
<header class="article-header">
<?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo ''.$tag->name;
}
elseif ($count > 1) {
echo ', '.$tag->name;
}
}
?></p><?php
}?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</header>
<section class="entry-content"><?php the_excerpt(); ?></section>
</article>

39
content-list-home.php Normal file
View file

@ -0,0 +1,39 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<a href="<?php the_permalink(); ?>" class="postimglist"><?php the_post_thumbnail('titelbild'); ?></a>
<?php endif; ?>
<header class="article-header">
<?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo ''.$tag->name;
}
elseif ($count > 1) {
echo ', '.$tag->name;
}
}
?></p><?php
}?>
<h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
</header>
<section class="article-teaser"><?php the_excerpt(); ?></section>
</article>

28
content-list-small.php Normal file
View file

@ -0,0 +1,28 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('postlist-small'); ?>>
<header><p class="artikelinfo"><time datetime="<?php the_time('c'); ?>"><?php the_time('j. F Y'); ?></time></p>
<h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"> <?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><span><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo ''.$tag->name;
}
elseif ($count > 1) {
echo ', '.$tag->name;
}
}
?></span><?php
}?> <?php the_title(); ?></a></h2>
</header>
<aside>
</aside>
</article>

37
content-list.php Normal file
View file

@ -0,0 +1,37 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix postlist'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<a href=" <?php the_permalink(); ?>" class="postimglist"><?php the_post_thumbnail('listenansicht'); ?></a>
<?php endif; ?>
<header class="article-header">
<?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo ''.$tag->name;
}
elseif ($count > 1) {
echo ', '.$tag->name;
}
}
?></p><?php
}?>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
</header>
<section class="article-teaser"><?php the_excerpt(); ?></section>
</article>

135
content-single.php Normal file
View file

@ -0,0 +1,135 @@
<?php if ( !has_post_format( )) { ?>
<?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 { ?>
<?php } ?>
<?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_format( 'status' )) { ?>
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<span class="clearfix"><?php the_post_thumbnail('titelbild'); ?> </span>
<?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 != "") {
?><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><br>
<?php endif; ?>
<?php } ?>
<?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 != "") {
?><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; ?>
<header class="article-header">
<?php $posttags = get_the_tags();
$count=0;
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
$count++;
if (1 == $count) {
echo ''.$tag->name;
}
elseif ($count > 1) {
echo ', '.$tag->name;
}
}
?></p><?php
}?>
<h1><?php the_title(); ?></h1>
</header>
<?php if ( is_archive() || is_search() ) : // Only display excerpts for archives and search. ?>
<section class="entry-content clearfix">
<?php the_excerpt(); ?>
</section>
<?php else : ?>
<section class="entry-content clearfix">
<?php the_content(); ?>
<?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Seiten:', 'kr8' ), 'after' => '</div>' ) ); ?>
</section>
<?php endif; ?>
<!-- Autor -->
<?php if ( get_post_format() ) : ?>
<?php else: ?>
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div class="author cleafix">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 80 ); ?>
<div class="author-description">
<h3><?php the_author_posts_link(); ?></h3>
<p><?php the_author_meta( 'description' ); ?></p>
</div>
</div>
<?php endif; ?>
<?php endif; ?>
<footer>
<p class="byline">Veröffentlicht am <time class="updated" datetime="<?php echo the_time('c'); ?>"><?php the_time('j. F Y')?>.</time></p>
</footer>
<?php if (function_exists('kr8_socialshare')) { ?>
<?php kr8_socialshare(); ?>
<?php } ?>
</article>
<?php comments_template( '', true ); ?>
</div>

163
page-home-campaign.php Normal file
View file

@ -0,0 +1,163 @@
<?php
/*
Template Name: Startseite - Kampagnen
*/
?>
<?php get_header(); ?>
<?php if ( has_post_thumbnail() ):
$thumb = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'full' );
$url = $thumb['0']; ?>
<div class="fullpage parallax" style="background-image:url(<?php echo $url ?>);">
<div class="introbg parallax fullpage" style="background-image:url(<?php echo $url ?>);"></div>
<div class="story-intro">
<div class="inner">
<h1><?php the_title(); ?></h1>
<p><?php the_excerpt(); ?></p>
<?php $cta = get_post_meta( $post->ID, 'kr8mb_page_campaign_cta', true );
if (! empty ($cta )){ ?><p class="cta"><?php echo $cta; ?></p><?php } ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="inner wrap clearfix">
<div id="donatenow" class="clearfix">
<h2>Spenden</h2>
<a href="/spenden#betrag=100">100 </a>
<a href="/spenden#betrag=50">50 </a>
<a href="/spenden#betrag=20">20 </a>
</div>
<div id="getmore">
<h2>Erfahre mehr</h2>
<div class="sidebar clearfix involvebar" role="complementary">
<?php dynamic_sidebar('campaigntwo'); ?>
</div>
</div>
</div>
<div id="teaser" class="parallax" style="background-image:url(<?php echo get_template_directory_uri(); ?>/lib/images/bg_trees.jpg);">
<div class="inner wrap clearfix sylvia">
<div class="josephbeuys">
<?php dynamic_sidebar('hometeaser'); ?>
</div>
</div>
</div>
<section id="content"><div class="inner wrap clearfix">
<div id="getinvolved">
<h2>Was wir wollen</h2>
<div class="sidebar clearfix involvebar" role="complementary">
<?php dynamic_sidebar('campaignone'); ?>
</div>
</div>
<div class="ninecol first clearfix" role="main">
<div class="responsive-tabs home-tabs">
<h2><span>Aktuelles</span></h2>
<div class="tab clearfix">
<?php wp_reset_query(); ?>
<?php
$postsperpage = get_option('posts_per_page');
$args = array(
'posts_per_page' => 3,
'post__in' => get_option( 'sticky_posts' ),
'posts_per_page' => $postsperpage,
'ignore_sticky_posts' => 1
);
query_posts($args);
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list', get_post_format() ); ?>
<?php endwhile; ?>
<p><span class="button"><a href="archiv">Alle Nachrichten im Archiv »</a></span></p>
</div>
<h2><span>Termine</span></h2>
<div class="tab clearfix">
<?php echo do_shortcode('[wpcalendar anzahl="5" kat="kampagne"]'); ?>
</div>
<h2><span>Presse</span></h2>
<div class="tab clearfix">
<?php wp_reset_query(); ?>
<?php
$postsperpage = get_option('posts_per_page');
query_posts('posts_per_page=7&ignore_sticky_posts=1&category_name=presse');
?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content-list-small', get_post_format() ); ?>
<?php endwhile; ?>
</div>
</div>
</div>
<script>jQuery(document).ready(function() { RESPONSIVEUI.responsiveTabs(); }) </script>
<div id="sidebar1" class="sidebar threecol last clearfix homebar" role="complementary">
<?php dynamic_sidebar('hometwo'); ?>
</div>
</div></section>
<?php get_footer(); ?>

View file

@ -1,11 +1,11 @@
/*
Theme Name: Joseph knows best Child
Theme Name: Joseph knows best Child - more headlines and all the tags
Theme URI: https://git.verdigado.com/NB-Public/jkb-childtheme
Description: Child Theme fuer Aufwändiges Wordpress-Theme für den EInsatz von größeren Websites, z.B: bei Landesverbänden.
Author: Willi Junga
Description: Child Theme fuer Aufwändiges Wordpress-Theme für den Einsatz von größeren Websites, z.B: bei Landesverbänden.
Author: Marc Dietz
Author URI: https://verdigado.com
Template: Joseph-knows-best-master
Version: 0.0.1
Version: 1.0
Text Domain: jkb-child
Tags: child, childtheme, child-theme, 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 v3 or later