forked from NB-Public/jkb-childtheme
more headlines and all the tags
This commit is contained in:
parent
0d607fe7fd
commit
fc99147613
7 changed files with 294 additions and 180 deletions
43
README.md
43
README.md
|
@ -10,22 +10,51 @@ For feedback and _voluntary_ advice: https://chatbegruenung.de/channel/wordpress
|
|||
|
||||
## Version Changes
|
||||
|
||||
### V1.3
|
||||
|
||||
_Do, 25.02.2021 23:41_
|
||||
|
||||
- Das Seitenlayout `Streaming` ist jezt eingebaut. Ich habe nun doch
|
||||
die `landing-page` als Vorlage genommen, weil es mir einfach nicht
|
||||
gelingen wollte in dieses `page-home-campain` Layout noch ein Video
|
||||
einzubetten, ohne dass sich irgendetwas verschoben hat, verschwunden
|
||||
ist oder überlappt hat. :rolling-eyes:
|
||||
|
||||
_Do, 25.02.2021 10:36_
|
||||
|
||||
- Bessere Code-Struktur für `page-home-campaign.php` zur Vorbereitung
|
||||
des Streaming Seitenlayouts. Hier habe ich auch ein doppeltes p-tag
|
||||
für `the_exerpt()` rausgenommen.
|
||||
|
||||
_Do, 25.02.2021 09:59_
|
||||
|
||||
- Der Shortcode `[kontakt person="[person_id]"` gibt nun auch ein Link
|
||||
zur Website mit aus, falls diese in der Personenseite eingetragen
|
||||
ist.
|
||||
|
||||
_Do, 17.12.2020 23:34_
|
||||
|
||||
- Auf der Kampagnen-Seite können nun die beiden festen
|
||||
Abschnittsüberschriften "Erfahre mehr" und "Werde aktiv" mit
|
||||
individuellen Feldern (CustomFields) auf der Seite angepasst werden.
|
||||
Die Felder heißen `claim_top` und `claim_bottom`. Wenn sie nicht
|
||||
gesetzt sind, werden die voreingestellen benutzt.
|
||||
|
||||
### V1.2
|
||||
|
||||
_Do, 17.12.2020 12:16_
|
||||
|
||||
- Das Seiten-Template Fundraising wurde hinzugefügt. Damit wird unser Spenden-
|
||||
formular eingebettet und die LandingPage kann wieder für andere Zwecke
|
||||
benutzt werden.
|
||||
- Das Seiten-Template Fundraising wurde hinzugefügt. Damit wird unser
|
||||
Spendenformular eingebettet und die LandingPage kann wieder für
|
||||
andere Zwecke benutzt werden.
|
||||
|
||||
|
||||
_Sa, 12.12.2020 03:49_
|
||||
|
||||
- Es gibt einen neuen Shortcode `schlagwort_liste` hier ein beispiel:
|
||||
- Es gibt einen neuen Shortcode `schlagwort_liste`. Damit werden die
|
||||
10 neuesten Beiträge mit diesem Schlagwort aufgelistet.
|
||||
|
||||
`[schlagwort_liste schlagwort="umwelt-und-naturschutz"]`
|
||||
|
||||
Damit werden die 10 neuesten Beiträge mit diesem Schlagwort aufgelistet.
|
||||
Beispiel: `[schlagwort_liste schlagwort="umwelt-und-naturschutz"]`
|
||||
|
||||
|
||||
_Sa, 12.12.2020 01:01_
|
||||
|
|
28
content-person-kontakt.php
Normal file
28
content-person-kontakt.php
Normal file
|
@ -0,0 +1,28 @@
|
|||
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
|
||||
<?php if ( has_post_thumbnail() ): ?>
|
||||
<?php the_post_thumbnail('thumbnail'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php
|
||||
$amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
|
||||
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
|
||||
$telefon = get_post_meta( $post->ID, 'kr8mb_pers_contact_telefon', true );
|
||||
$website = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
|
||||
?>
|
||||
|
||||
<header class="article-header">
|
||||
<h3><?php the_title(); ?></h3>
|
||||
</header>
|
||||
|
||||
|
||||
<section class="entry-content">
|
||||
|
||||
<?php if (! empty ($amt )){ ?><p class="funktion"><?php echo $amt; ?></p><?php } ?>
|
||||
<?php if (! empty ($email )){ ?><p><i class="fa fa-envelope-o"></i> <a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><?php echo $email; ?></a></p><?php } ?>
|
||||
<?php if (! empty ($website )){ ?><p><i class="fa fa-globe"></i> <a href="<?php echo $website; ?>" title="Zur Website von <?php the_title(); ?>"><?php echo $website; ?></a></p><?php } ?>
|
||||
<?php if (! empty ($telefon )){ ?><p><i class="fa fa-phone"></i> <?php echo $telefon; ?></p><?php } ?>
|
||||
|
||||
</section>
|
||||
|
||||
|
||||
</article>
|
|
@ -1,23 +1,23 @@
|
|||
<?php
|
||||
|
||||
// This is not needed. The parent theme has no style information inside the main
|
||||
// style.css files whatsoever
|
||||
//
|
||||
// add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
|
||||
// function enqueue_parent_styles() {
|
||||
// wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
|
||||
// }
|
||||
// This is not needed. The parent theme has no style information
|
||||
// whatsoever inside the main `style.css` file in the root folder.
|
||||
//
|
||||
// add_action( 'wp_enqueue_scripts', 'enqueue_parent_styles' );
|
||||
// function enqueue_parent_styles() {
|
||||
// wp_enqueue_style( 'parent-style', get_template_directory_uri().'/style.css' );
|
||||
// }
|
||||
|
||||
|
||||
// The parent-theme adds the style with a priority of 999. In order
|
||||
// for us to be able to override styles from the parent-theme we have to
|
||||
// render our styles even later
|
||||
add_action( 'wp_enqueue_scripts', 'enqueue_grlp_styles', 1000);
|
||||
// The parent-theme adds the style with a priority of 999. In order
|
||||
// for us to be able to override styles from the parent-theme we have to
|
||||
// render our styles even later
|
||||
add_action( 'wp_enqueue_scripts', 'enqueue_grlp_styles', 1000);
|
||||
|
||||
function enqueue_grlp_styles() {
|
||||
function enqueue_grlp_styles() {
|
||||
wp_enqueue_style( 'gruerlp-main', get_stylesheet_directory_uri() . '/lib/css/style_gruene_rlp.css');
|
||||
}
|
||||
}
|
||||
|
||||
require_once('functions/childtheme-shortcodes.php')
|
||||
require_once('functions/childtheme-shortcodes.php')
|
||||
|
||||
?>
|
||||
|
|
|
@ -15,4 +15,12 @@
|
|||
background: #fff;
|
||||
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); }
|
||||
|
||||
article.termine .termin_meta_kurz {
|
||||
text-align: left; }
|
||||
|
||||
section.streaming .landing-teaser h1 {
|
||||
margin-top: 1em; }
|
||||
section.streaming #landing-intro {
|
||||
min-height: 0; }
|
||||
|
||||
/*# sourceMappingURL=style_gruene_rlp.css.map */
|
||||
|
|
|
@ -1,69 +1,47 @@
|
|||
<?php
|
||||
/*
|
||||
Template Name: Startseite - Kampagnen
|
||||
Template Name: Startseite - Kampagne
|
||||
*/
|
||||
?>
|
||||
|
||||
<?php get_header(); ?>
|
||||
|
||||
|
||||
<?php if ( has_post_thumbnail() ):
|
||||
|
||||
<?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 the_excerpt(); ?>
|
||||
<?php $cta = get_post_meta( $post->ID, 'kr8mb_page_campaign_cta', true );?>
|
||||
<?php if (! empty ($cta )):?>
|
||||
<p class="cta"><?= $cta; ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
</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>
|
||||
|
||||
<?php
|
||||
$claim_top = get_post_meta( $post->ID, 'grlp_claim_top', true );
|
||||
$claim_top = !empty($claim_top) ? $claim_top : "Erfahre mehr";
|
||||
?>
|
||||
<h2><?= $claim_top ?></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">
|
||||
|
@ -72,32 +50,25 @@ Template Name: Startseite - Kampagnen
|
|||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<section id="content"><div class="inner wrap clearfix">
|
||||
|
||||
|
||||
|
||||
<section id="content">
|
||||
<div class="inner wrap clearfix">
|
||||
<div id="getinvolved">
|
||||
<h2>Was wir wollen</h2>
|
||||
|
||||
<?php
|
||||
$claim_bottom = get_post_meta( $post->ID, 'grlp_claim_bottom', true );
|
||||
$claim_bottom = !empty($claim_bottom) ? $claim_bottom : "Werde aktiv";
|
||||
?>
|
||||
<h2><?= $claim_bottom ?></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(
|
||||
|
@ -108,58 +79,37 @@ Template Name: Startseite - Kampagnen
|
|||
);
|
||||
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; ?>
|
||||
|
||||
<p><span class="button"><a href="category/presse">Alle Pressemitteilungen im Archiv »</a></span></p>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<script>jQuery(document).ready(function() { RESPONSIVEUI.responsiveTabs(); }) </script>
|
||||
</div> <!-- nicecol -->
|
||||
|
||||
<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>
|
||||
</div> <!-- inner-wrap -->
|
||||
</section>
|
||||
<?php get_footer(); ?>
|
||||
|
||||
|
||||
|
|
99
page-streaming.php
Normal file
99
page-streaming.php
Normal file
|
@ -0,0 +1,99 @@
|
|||
<?php
|
||||
/*
|
||||
Template Name: Streaming
|
||||
*/
|
||||
?>
|
||||
<?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 class="streaming" 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" >
|
||||
<?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>
|
||||
|
||||
<p class="cta" style="margin-bottom:1em;"><a href="/gruen-macht-zukunft">Zur Hauptseite</a></p>
|
||||
|
||||
<div class="streaming-video">
|
||||
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/clappr@latest/dist/clappr.min.js"></script> <script type="text/javascript" src="https://www.obs-server.com/clappr/level-selector.js"></script><div id="wrapper" style="position: relative;padding-bottom: 56.25%;"><div id="player" style="position: absolute;top: 0;left: 0;width: 100%;height: 100%;"></div></div><script>var playerElement=document.getElementById("player"); var player=new Clappr.Player({source: "https://16cw27spra8ia1voi.hlscdn.obs-server.com/hls/ru3pnbwfsmwz8ywmn84yy3axnr6rhx.m3u8", width: "100%", height: "100%", plugins: [LevelSelector], levelSelectorConfig:{title: "Quality", labelCallback: function (playbackLevel){return playbackLevel.level.height + "p";}, onLevelsAvailable: function (levels){return levels.reverse();},}}); player.attachTo(playerElement); </script><script type="text/javascript" src="https://stats.obs-server.com/js/16cw27spra8ia1voi"></script><noscript>Please activate JavaScript for this live stream powered by <a target="_blank" href="https://www.obs-server.com/">OBS-Server.com</a></noscript>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="twelvecol first">
|
||||
|
||||
<?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">
|
||||
|
||||
<section class="streaming-text entry-content clearfix" itemprop="articleBody">
|
||||
<?php the_content(); ?>
|
||||
</section>
|
||||
|
||||
</article>
|
||||
|
||||
<?php endwhile; ?>
|
||||
|
||||
</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; }
|
||||
|
||||
$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(); ?>
|
||||
|
||||
<?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(__('« Ältere Beiträge', "kr8theme")) ?></li>
|
||||
<li class="next-link"><?php previous_posts_link(__('Neuere Beiträge »', "kr8theme")) ?></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</div> <!-- end #main -->
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<?php get_footer(); ?>
|
|
@ -5,7 +5,7 @@ Description: Child Theme fuer Aufwändiges Wordpress-Theme für den Einsatz von
|
|||
Author: Marc Dietz
|
||||
Author URI: https://verdigado.com
|
||||
Template: Joseph-knows-best-master
|
||||
Version: 1.2
|
||||
Version: 1.3
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue