forked from NB-Public/jkb-childtheme
Compare commits
2 commits
main
...
costumizat
Author | SHA1 | Date | |
---|---|---|---|
dc1884b643 | |||
be5d7ed30c |
3 changed files with 172 additions and 3 deletions
14
README.md
14
README.md
|
@ -1 +1,13 @@
|
||||||
Hello
|
"Joseph-Knows-Best" - Wordpress Theme für gruene-bremen.de
|
||||||
|
=======================================================
|
||||||
|
|
||||||
|
Credits to: https://chatbegruenung.de/direct/jungawil
|
||||||
|
|
||||||
|
For feedback and _voluntary_ advice: https://chatbegruenung.de/channel/wordpress
|
||||||
|
|
||||||
|
|
||||||
|
## Overrides
|
||||||
|
|
||||||
|
__Mo, 14.12.2020 14:18__
|
||||||
|
|
||||||
|
Removed the donation buttons from page-home-campaign.php
|
||||||
|
|
157
page-home-campaign.php
Normal file
157
page-home-campaign.php
Normal file
|
@ -0,0 +1,157 @@
|
||||||
|
<?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="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>Werde aktiv</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(); ?>
|
||||||
|
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
/*
|
/*
|
||||||
Theme Name: Joseph knows best Child
|
Theme Name: Joseph knows best Child for gruene-bremen.de
|
||||||
Theme URI: https://git.verdigado.com/NB-Public/jkb-childtheme
|
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.
|
Description: Child Theme fuer Aufwändiges Wordpress-Theme für den EInsatz von größeren Websites, z.B: bei Landesverbänden.
|
||||||
Author: Willi Junga
|
Author: Willi Junga
|
||||||
Author URI: https://verdigado.com
|
Author URI: https://verdigado.com
|
||||||
Template: Joseph-knows-best-master
|
Template: Joseph-knows-best-master
|
||||||
Version: 0.0.1
|
Version: 0.0.1
|
||||||
Text Domain: jkb-child
|
Text Domain: jkb-child-bremen
|
||||||
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
|
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
|
License: GNU General Public License v3 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
Loading…
Reference in a new issue