second attemd to change the logo which is hardcoded into the stylecss
This commit is contained in:
parent
0d607fe7fd
commit
867067ee5f
62
README.md
62
README.md
|
@ -1,64 +1,32 @@
|
|||
"Joseph-Knows-Best" - Wordpress Theme für gruene-rlp.de
|
||||
"Joseph-Knows-Best" - Wordpress Theme für isabell-hiekel.de
|
||||
=======================================================
|
||||
|
||||
Credits to: https://chatbegruenung.de/direct/dietzmar
|
||||
Credits to: https://chatbegruenung.de/direct/jungawil
|
||||
|
||||
For feedback and _voluntary_ advice: https://chatbegruenung.de/channel/wordpress
|
||||
|
||||
Instructions:
|
||||
|
||||
1. Select branch from: https://git.verdigado.com/NB-Public/jkb-childtheme/branches/
|
||||
2. Download branch as ZIP
|
||||
3. Unzip rename contained folder to `jkb-childtheme-isabell-hiekel` without `.TDL`
|
||||
4. zip that renamed folder again
|
||||
5. Upload theme to wordpress.
|
||||
|
||||
|
||||
## Version Changes
|
||||
|
||||
### V1.2
|
||||
### V0.2
|
||||
|
||||
_Do, 17.12.2020 12:16_
|
||||
_We, 23.12.2020 12:41_
|
||||
|
||||
- Das Seiten-Template Fundraising wurde hinzugefügt. Damit wird unser Spenden-
|
||||
formular eingebettet und die LandingPage kann wieder für andere Zwecke
|
||||
benutzt werden.
|
||||
* changed function.php to incluse costume style.css
|
||||
* added style.css to inlcude new class homelogo
|
||||
|
||||
|
||||
_Sa, 12.12.2020 03:49_
|
||||
|
||||
- Es gibt einen neuen Shortcode `schlagwort_liste` hier ein beispiel:
|
||||
|
||||
`[schlagwort_liste schlagwort="umwelt-und-naturschutz"]`
|
||||
|
||||
Damit werden die 10 neuesten Beiträge mit diesem Schlagwort aufgelistet.
|
||||
|
||||
|
||||
_Sa, 12.12.2020 01:01_
|
||||
|
||||
- Wir wollten gerne bei den Social-Media-Links eine weitere Farbe haben,
|
||||
mit der Klasse `accent-color` kann diese nun aktiviert werden (pink)
|
||||
|
||||
- Auf der Startseite 'Kampagne' unter dem "Presse"-Tab gibt es jetzt
|
||||
(ähnlich wie unter dem "Aktuelles"-Tab) einen Link "Alle Pressemitteilungen
|
||||
im Archiv", der zur URL `/category/presse/` führt.
|
||||
|
||||
|
||||
_Fr, 11.12.2020 14:46_
|
||||
|
||||
- Screenshot.png hinzugefügt
|
||||
|
||||
|
||||
### V1.1
|
||||
|
||||
_Fr, 04.12.2020 18:28_
|
||||
|
||||
- Weil ich dafür im Moment keine bessere Lösung weiß, habe ich im Theme das Seitenformat landing-page zu unserer Spendenseite gemacht.
|
||||
Dort habe ich also das Javascript-Schnipsel unseres Spenden-Dienstleisters hart verdrahtet. :)
|
||||
Wir verwenden dieses Seitenformat nirgends anders, deswegen ist das möglich.
|
||||
Ich möchte dann in nahe Zukunft ein Seitenformat "Spendenseite" für eben diesen Zweck anlegen.
|
||||
|
||||
_Do, 03.12.2020 15:22_
|
||||
|
||||
- Falls mehrere Schlagworte pro Beitrag vergeben wurden, werden diese nun durch Komma getrennt auch angezeigt.
|
||||
|
||||
_Do, 26.11.2020 22:36_
|
||||
|
||||
- Abschnitt-Überschrift auf der Kampagnen-Seite von
|
||||
"werde aktiv" auf "was wir wollen" geändert.
|
||||
### V0.1
|
||||
|
||||
_Fr, 18.12.2020 08:41_
|
||||
|
||||
* Added logo.png & logo_small.png
|
||||
|
|
|
@ -1,43 +0,0 @@
|
|||
|
||||
<?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>
|
||||
|
||||
|
|
@ -1,39 +0,0 @@
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<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>
|
||||
|
|
@ -1,28 +0,0 @@
|
|||
|
||||
<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>
|
||||
|
|
@ -1,26 +0,0 @@
|
|||
<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>
|
|
@ -1,135 +0,0 @@
|
|||
|
||||
<?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>
|
||||
|
|
@ -1,23 +1,11 @@
|
|||
<?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' );
|
||||
// }
|
||||
|
||||
|
||||
// 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);
|
||||
add_action( 'wp_enqueue_scripts', 'enqueue_isabell-hiekel_css', 1000);
|
||||
|
||||
function enqueue_grlp_styles() {
|
||||
wp_enqueue_style( 'gruerlp-main', get_stylesheet_directory_uri() . '/lib/css/style_gruene_rlp.css');
|
||||
function enqueue_isabell-hiekel_css() {
|
||||
wp_enqueue_style( 'parent-style', get_stylesheet_directory_uri() . '/lib/css/style_isabell-hiekel.css');
|
||||
}
|
||||
|
||||
require_once('functions/childtheme-shortcodes.php')
|
||||
|
||||
?>
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
<?php
|
||||
//Query Posts ***************
|
||||
|
||||
function grlp_tag_list($atts, $content = null) {
|
||||
extract(shortcode_atts(array(
|
||||
'aussehen' => '',
|
||||
'schlagwort' => '',
|
||||
), $atts));
|
||||
global $wp_query,$paged,$post;
|
||||
$temp = $wp_query;
|
||||
$wp_query= null;
|
||||
$wp_query = new WP_Query();
|
||||
$message = "";
|
||||
|
||||
if(!empty($schlagwort)){
|
||||
$args = array(
|
||||
'tag' => $schlagwort,
|
||||
'category_name' => 'allgemein',
|
||||
'posts_per_page' => 10,
|
||||
'paged' => 1,
|
||||
);
|
||||
|
||||
}
|
||||
else {
|
||||
$message = "Konnte kein Schlagwort finden. Bitte mit dem Attribut 'tag=\"<schlagwort>\"' im shortcode eintragen.";
|
||||
}
|
||||
|
||||
$wp_query->query($args);
|
||||
ob_start(); ?>
|
||||
|
||||
<?php if (!empty($message)):?>
|
||||
<p style="color:#f44;"><?= $message ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<section class="clearfix insidelist <?php echo $aussehen;?>">
|
||||
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
|
||||
|
||||
<?php get_template_part( 'content-list', get_post_format() ); ?>
|
||||
<?php endwhile; ?>
|
||||
</section>
|
||||
|
||||
<?php $wp_query = null; $wp_query = $temp;
|
||||
$content = ob_get_contents();
|
||||
ob_end_clean();
|
||||
return $content;
|
||||
}
|
||||
add_shortcode("schlagwort_liste", "grlp_tag_list");
|
||||
|
||||
?>
|
|
@ -1,18 +0,0 @@
|
|||
@charset "UTF-8";
|
||||
/* Joseph-Knows-Best Colors */
|
||||
/* GRÜNE RLP extra colors */
|
||||
/* Nav 'social networks' link color accent (pinkish) */
|
||||
.nav-social .accent-color a {
|
||||
color: #ef447a; }
|
||||
.nav-social .accent-color a:hover {
|
||||
color: #71172c; }
|
||||
|
||||
/*Template: fundraising-page (inherited from landing-page)*/
|
||||
.page-template-page-fundraising article.page.hentry {
|
||||
background: #fff;
|
||||
margin: 0;
|
||||
padding: 2em 2em 0;
|
||||
background: #fff;
|
||||
box-shadow: 5px 5px 10px rgba(0, 0, 0, 0.2); }
|
||||
|
||||
/*# sourceMappingURL=style_gruene_rlp.css.map */
|
3
lib/css/style_isabell-hiekel.css
Normal file
3
lib/css/style_isabell-hiekel.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
@charset "UTF-8";
|
||||
/*Home*/
|
||||
.nav-main .homelogo {float: left;padding-left: 3.2em;background: url(../images/logo_small.png) 0 0.5em no-repeat transparent;background-size: auto 72%;}
|
BIN
lib/images/logo_small.png
Normal file
BIN
lib/images/logo_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 60 KiB |
|
@ -1,94 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
Template Name: Fundraising
|
||||
*/
|
||||
?>
|
||||
<?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 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 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="entry-content clearfix" itemprop="articleBody">
|
||||
<!-- code snippet from fundraisingbox.com -->
|
||||
<script type="text/javascript" src="https://secure.fundraisingbox.com/app/paymentJS?hash=7zwb97z8oodsr01s"></script><noscript>Bitte Javascript aktivieren</noscript><a target="_blank" href="https://www.fundraisingbox.com"><img border="0" style="border: 0 !important" src="https://secure.fundraisingbox.com/images/FundraisingBox-Logo-Widget.png" alt="FundraisingBox Logo" /></a>
|
||||
<?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(); ?>
|
|
@ -1,165 +0,0 @@
|
|||
<?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; ?>
|
||||
|
||||
<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 id="sidebar1" class="sidebar threecol last clearfix homebar" role="complementary">
|
||||
<?php dynamic_sidebar('hometwo'); ?>
|
||||
</div>
|
||||
|
||||
|
||||
</div></section>
|
||||
<?php get_footer(); ?>
|
||||
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
<?php
|
||||
/*
|
||||
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 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 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="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(); ?>
|
BIN
screenshot.png
BIN
screenshot.png
Binary file not shown.
Before Width: | Height: | Size: 137 KiB |
Loading…
Reference in a new issue