Browse Source

2.0.4

First public version of the theme
pull/2/merge
kre8tiv 6 years ago
commit
4d29360747
  1. 29
      404.php
  2. 13
      README
  3. 70
      archive.php
  4. 55
      category-beschluesse.php
  5. 57
      category-presse.php
  6. 98
      comments.php
  7. 33
      content-gliederung-kve.php
  8. 33
      content-gliederung-lagen.php
  9. 47
      content-kachel.php
  10. 39
      content-list-home-slider.php
  11. 35
      content-list-home.php
  12. 24
      content-list-small.php
  13. 35
      content-list.php
  14. 38
      content-person-glv.php
  15. 26
      content-person-kontakt.php
  16. 39
      content-person-landesliste.php
  17. 38
      content-person-mandat.php
  18. 26
      content-person-team.php
  19. 38
      content-person-vorstand.php
  20. 86
      content-single-gliederung.php
  21. 80
      content-single-person.php
  22. 89
      content-single-termine.php
  23. 114
      content-single.php
  24. 33
      content.php
  25. BIN
      favicon.ico
  26. BIN
      favicon.png
  27. 45
      footer.php
  28. 22
      functions.php
  29. 86
      functions/admin-dashboard.php
  30. 69
      functions/theme-comments.php
  31. 803
      functions/theme-functions.php
  32. 427
      functions/theme-metaboxes.php
  33. 135
      functions/theme-posttypes.php
  34. 643
      functions/theme-shortcodes.php
  35. 592
      functions/theme-sidebars.php
  36. 135
      header.php
  37. 28
      index.php
  38. 73
      lib/css/editor.css
  39. 4
      lib/css/font-awesome.min.css
  40. 445
      lib/css/ie.css
  41. 80
      lib/css/login.css
  42. 1924
      lib/css/style.css
  43. BIN
      lib/fonts/FontAwesome.otf
  44. BIN
      lib/fonts/SourceSansPro-Bold.ttf.woff
  45. BIN
      lib/fonts/SourceSansPro-Regular.ttf.woff
  46. BIN
      lib/fonts/arvo_green.woff
  47. BIN
      lib/fonts/arvo_regular.woff
  48. BIN
      lib/fonts/fontawesome-webfont.eot
  49. 565
      lib/fonts/fontawesome-webfont.svg
  50. BIN
      lib/fonts/fontawesome-webfont.ttf
  51. BIN
      lib/fonts/fontawesome-webfont.woff
  52. BIN
      lib/fonts/fontawesome-webfont.woff2
  53. BIN
      lib/fonts/ptsans-bold.woff
  54. BIN
      lib/fonts/ptsans-regular.woff
  55. BIN
      lib/images/apple-icon-touch.png
  56. BIN
      lib/images/avatar.png
  57. BIN
      lib/images/bg_kohle.jpg
  58. BIN
      lib/images/body_bg.jpg
  59. BIN
      lib/images/logo.png
  60. BIN
      lib/images/logo_small.png
  61. BIN
      lib/images/nav_ul2.png
  62. BIN
      lib/images/sidebar_footer.jpg
  63. BIN
      lib/images/stoerer_end.png
  64. BIN
      lib/images/win8-tile-icon.png
  65. BIN
      lib/js/libs/fancybox/blank.gif
  66. 1
      lib/js/libs/fancybox/fancybox.min.css
  67. BIN
      lib/js/libs/fancybox/fancybox_buttons.png
  68. BIN
      lib/js/libs/fancybox/fancybox_loading.gif
  69. BIN
      lib/js/libs/fancybox/fancybox_overlay.png
  70. BIN
      lib/js/libs/fancybox/fancybox_sprite.png
  71. 96
      lib/js/libs/fancybox/jquery.fancybox-buttons.css
  72. 121
      lib/js/libs/fancybox/jquery.fancybox-buttons.js
  73. 249
      lib/js/libs/fancybox/jquery.fancybox.css
  74. 46
      lib/js/libs/fancybox/jquery.fancybox.pack.js
  75. 4
      lib/js/libs/modernizr.custom.min.js
  76. 356
      lib/js/libs/parallax.js
  77. 223
      lib/js/libs/waypoints.js
  78. 778
      lib/js/responsive.js
  79. 2
      lib/js/responsiveTabs.min.js
  80. 194
      lib/js/scripts.js
  81. 57
      page-archiv.php
  82. 78
      page-blog.php
  83. 75
      page-fullpage.php
  84. 120
      page-home-sticky.php
  85. 116
      page-home-widget.php
  86. 113
      page-landingpage-small.php
  87. 112
      page-landingpage.php
  88. 91
      page-listview.php
  89. 44
      page-story.php
  90. 88
      page.php
  91. BIN
      screenshot.png
  92. 62
      search.php
  93. 23
      sidebar.php
  94. 18
      single.php
  95. 12
      style.css

29
404.php

@ -0,0 +1,29 @@
<?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<div id="main" class="twelvecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
<header class="article-header">
<h1 class="page-title" itemprop="headline">Da ist etwas schiefgelaufen.</h1>
</header>
<section class="entry-content clearfix" itemprop="articleBody">
<p>Leider wurde die gesuchte Seite nicht gefunden. Das tut uns sehr leid. Am Besten probierst Du die Suchfunktion aus, um den passenden Inhalt zu finden.</p>
<?php get_search_form(); ?>
</section>
</article>
</div>
</div></section>
<?php get_footer(); ?>

13
README

@ -0,0 +1,13 @@
=======================================
Urwahl3000
=======================================
Freies Wordpress-Theme für GRÜNE Köpfe & Gliederungen
http://kre8tiv.de/urwahl3000
Kostenlostes Theme (Layout) für das kostenlose Redaktionssystem/Blogsoftware WordPress im Look der Bundestagswahlkampagne 2013. Das Theme richtet sich speziell an alle Aktiven, Kandidat*innen, Wahlkämpfer*innen und Gliederungen von BÜNDNIS 90/DIE GRÜNEN.
Das Layout orientiert sich an der Kampagnen-Optik zur Bundestagswahl 2013. Es orientiert sich an den Richtlinien des barrierearmen Webdesigns, ist optimiert für Suchmaschinen und soziale Netzwerke (natürlich Datenschutzkonform) und passt sich automatisch an mobile Endgeräte an.
Aktuelle Funktionen von WordPress sind bereits integriert, so dass eine Individualisierung problemlos “out of the Box” möglich ist. Dazu gehört die Unterstützung von individuellen WordPress-Menüs, die optionale Verwendung einer Kopfgrafik und die Anpassung des Hintergrundbildes/der Hintergrundfarbe.
Zur weiteren Individualisierung biete ich hier ein leeres Child-Theme für Urwahl3000 an, so dass eigene Anpassungen leicht vorgenommen werden können, ohne das eigentliche Theme zu verändern. So lassen sich auch in Zukunft Updates trotz eigener Modifikationen einspielen.

70
archive.php

@ -0,0 +1,70 @@
<?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<?php if (is_category()) { ?>
<div class="archive-title ninecol first">
<h1><?php single_cat_title(); ?></h1>
<?php echo category_description(); ?>
</div>
<?php } elseif (is_tag()) { ?>
<div class="archive-title ninecol first"><h1><?php single_tag_title(); ?></h1></div>
<?php } elseif (is_author()) {
global $post;
$author_id = $post->post_author;
?>
<h1 class="archive-title h2">
<span><?php echo get_the_author_meta('display_name', $author_id); ?>
</h1>
<?php } ?>
<div id="main" class="ninecol first clearfix" role="main">
<div class="list-article">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content-list', get_post_type() ); ?>
<?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 else : ?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php _e("Oops, Post Not Found!", "kr8theme"); ?></h1>
</header>
<section class="entry-content">
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "kr8theme"); ?></p>
</section>
<footer class="article-footer">
<p><?php _e("This is the error message in the archive.php template.", "kr8theme"); ?></p>
</footer>
</article>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>

55
category-beschluesse.php

@ -0,0 +1,55 @@
<?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<div class="archive-title ninecol first">
<h1><?php single_cat_title(); ?><span class="hidden"><?php if( is_paged() ) { echo ' - Seite ' .$paged; }?></span></h1>
<?php echo category_description(); ?>
</div>
<div id="main" class="ninecol first clearfix" role="main">
<div class="list-article">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content-list-small', get_post_type() ); ?>
<?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 else : ?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php _e("Oops, Post Not Found!", "kr8theme"); ?></h1>
</header>
<section class="entry-content">
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "kr8theme"); ?></p>
</section>
<footer class="article-footer">
<p><?php _e("This is the error message in the archive.php template.", "kr8theme"); ?></p>
</footer>
</article>
<?php endif; ?>
</div> <!-- end #main -->
<?php get_sidebar(); ?>
</div></section>
<?php get_footer(); ?>

57
category-presse.php

@ -0,0 +1,57 @@
<?php get_header(); ?>
<section id="content"><div class="inner wrap clearfix">
<div class="archive-title ninecol first">
<h1><?php single_cat_title(); ?><span class="hidden"><?php if( is_paged() ) { echo ' - Seite ' .$paged; }?></span></h1>
<?php echo category_description(); ?>
</div>
<div id="main" class="ninecol first clearfix" role="main">
<div class="list-article">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php get_template_part( 'content-list-small', get_post_type() ); ?>
<?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 else : ?>
<article id="post-not-found" class="hentry clearfix">
<header class="article-header">
<h1><?php _e("Oops, Post Not Found!", "kr8theme"); ?></h1>
</header>
<section class="entry-content">
<p><?php _e("Uh Oh. Something is missing. Try double checking things.", "kr8theme"); ?></p>
</section>
<footer class="article-footer">
<p><?php _e("This is the error message in the archive.php template.", "kr8theme"); ?></p>
</footer>
</article>
<?php endif; ?>
</div> <!-- end #main -->
<div id="sidebar1" class="sidebar threecol last clearfix" role="complementary">
<?php dynamic_sidebar('presse'); ?>
</div>
</div></section>
<?php get_footer(); ?>

98
comments.php

@ -0,0 +1,98 @@
<?php
/*
The comments page
*/
// Do not delete these lines
if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');
if ( post_password_required() ) { ?>
<div class="alert help">
<p class="nocomments"><?php _e("This post is password protected. Enter the password to view comments.", "kr8theme"); ?></p>
</div>
<?php
return;
}
?>
<!-- You can start editing here. -->
<div class="responsive-tabs comment-tabs">
<?php if ( is_singular( 'post' ) ) { ?>
<h2><span>Neuste Artikel</span></h2>
<div class="tab">
<?php kr8_newest_posts(); ?>
</div>
<h2><span>Ähnliche Artikel</span></h2>
<div class="tab">
<?php kr8_related_posts(); ?>
</div>
<?php
}
if ( comments_open() ) : ?>
<h2><span>Kommentar verfassen</span></h2>
<div class="tab">
<section id="respondbox" class="respond-form">
<?php
$comments_args = array(
'comment_notes_before' =>__( ''),
'title_reply'=>__( 'Artikel kommentieren', 'kr8theme'),
'comment_notes_after' =>__( '<p class="required-info"><span class="req">*</span> Pflichtfeld', 'kr8theme'),
'comment_field' => '<p class="comment-form-comment"><label for="comment">' . _x( 'Dein Kommentar<span class="req">*</span>', 'kr8theme' ) . '</label><br/><textarea id="comment" name="comment" tabindex="4" rows="8" placeholder="Dein Kommentar hier..."></textarea></p>',
'label_submit' => __( 'Abschicken', 'kr8theme' )
);
comment_form($comments_args);
?>
</section>
</div>
<?php endif; // if you delete this the sky will fall on your head ?>
<?php if ( have_comments() ) : ?>
<h2><span><?php comments_number( '0', '1 Kommentar', '% Kommentare' ); ?></span></h2>
<div class="tab">
<ol class="commentlist">
<?php wp_list_comments('type=comment&callback=kr8_comments'); ?>
</ol>
<nav id="comment-nav">
<ul class="clearfix">
<li class="prev"><?php previous_comments_link() ?></li>
<li class="next"><?php next_comments_link() ?></li>
</ul>
</nav>
</div>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( comments_open() ) : ?>
<!-- If comments are open, but there are no comments. -->
<?php else : // comments are closed ?>
<!-- If comments are closed. -->
<!--p class="nocomments"><?php _e("Comments are closed.", "kr8theme"); ?></p-->
<?php endif; ?>
<?php endif; ?>
</div><script>jQuery(document).ready(function() { RESPONSIVEUI.responsiveTabs(); }) </script>

33
content-gliederung-kve.php

@ -0,0 +1,33 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('person'); ?>
<?php endif; ?>
<?php
$email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
$www = get_post_meta( $post->ID, 'kr8mb_gli_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_gli_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
?>
<header class="article-header">
<h2><?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><?php } ?><?php the_title(); ?><?php if (! empty ($www )){ ?></a><?php } ?></h2>
</header>
<section class="entry-content">
<p class="contact">
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
</p>
</section>
</article>

33
content-gliederung-lagen.php

@ -0,0 +1,33 @@
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<?php the_post_thumbnail('person'); ?>
<?php endif; ?>
<?php
$email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
$www = get_post_meta( $post->ID, 'kr8mb_gli_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_gli_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
?>
<header class="article-header">
<h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
</header>
<section class="entry-content">
<p class="contact">
<?php if (! empty ($www )){ ?><a href="mailto:<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="mailto:<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="mailto:<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
</p>
</section>
</article>

47
content-kachel.php

@ -0,0 +1,47 @@
<?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 { ?>
<? } ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<?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 the_tags('<p class="subhead">',' ','</p>'); ?>
<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-slider.php

@ -0,0 +1,39 @@
<?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 { ?>
<? } ?>
<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. ' ';
} }
?></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>

35
content-list-home.php

@ -0,0 +1,35 @@
<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. ' ';
} }
?></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>

24
content-list-small.php

@ -0,0 +1,24 @@
<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. ' ';
} }
?></span><?php
}?> <?php the_title(); ?></a></h2>
</header>
<aside>
</aside>
</article>

35
content-list.php

@ -0,0 +1,35 @@
<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. ' ';
} }
?></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>

38
content-person-glv.php

@ -0,0 +1,38 @@
<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 );
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$shortbio = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', 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 ($shortbio )){ ?><p class="short"><?php echo $shortbio; ?></p><?php } ?>
<p class="contact">
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>
<?php if ( $details == "yes"){ ?><p class="details"><a href="<?php the_permalink(); ?>" title="Mehr Details über <?php the_title(); ?>">Details »</a></p><?php } ?>
</section>
</article>

26
content-person-kontakt.php

@ -0,0 +1,26 @@
<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 );
?>
<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 ($telefon )){ ?><p><i class="fa fa-phone"></i> <?php echo $telefon; ?></p><?php } ?>
</section>
</article>

39
content-person-landesliste.php

@ -0,0 +1,39 @@
<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
$nr = get_post_meta( $post->ID, 'kr8mb_pers_pos_listenplatz', true );
$email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$wahlkreis = get_post_meta( $post->ID, 'kr8mb_pers_pos_wahlkreis', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', true );
?>
<?php if (! empty ($nr )){ ?><p class="listenplatz"><?php echo $nr; ?></p><?php } ?>
<header class="article-header">
<h3><?php the_title(); ?></h3>
</header>
<section class="entry-content">
<?php if (! empty ($wahlkreis )){ ?><p class="short"><?php echo $wahlkreis; ?></p><?php } ?>
<p class="contact">
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>
<?php if ( $details == "yes"){ ?><p class="details"><a href="<?php the_permalink(); ?>" title="Mehr Details über <?php the_title(); ?>">Details »</a></p><?php } ?>
</section>
</article>

38
content-person-mandat.php

@ -0,0 +1,38 @@
<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 );
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$wahlkreis = get_post_meta( $post->ID, 'kr8mb_pers_pos_wahlkreis', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', 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 ($wahlkreis )){ ?><p class="short"><?php echo $wahlkreis; ?></p><?php } ?>
<p class="contact">
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>
<?php if ( $details == "yes"){ ?><p class="details"><a href="<?php the_permalink(); ?>" title="Mehr Details über <?php the_title(); ?>">Details »</a></p><?php } ?>
</section>
</article>

26
content-person-team.php

@ -0,0 +1,26 @@
<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 );
?>
<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 ($telefon )){ ?><p><i class="fa fa-phone"></i> <?php echo $telefon; ?></p><?php } ?>
</section>
</article>

38
content-person-vorstand.php

@ -0,0 +1,38 @@
<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 );
$www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
$facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
$twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
$shortbio = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
$details = get_post_meta( $post->ID, 'kr8mb_pers_pos_details', true );
?>
<header class="article-header">
<h3><?php the_title(); ?></h3>
</header>
<section class="entry-content">
<?php if (! empty ($shortbio )){ ?><p class="short"><?php echo $shortbio; ?></p><?php } ?>
<p class="contact">
<?php if (! empty ($www )){ ?><a href="<?php echo $www; ?>" title="Zur Website von <?php the_title(); ?>"><i class="fa fa-globe"></i></a><?php } ?>
<?php if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>" title="Zum Facebook-Profil von <?php the_title(); ?>"><i class="fa fa-thumbs-o-up"></i></a><?php } ?>
<?php if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>" title="Zum Twitter-Acccount von <?php the_title(); ?>"><i class="fa fa-twitter"></i></a><?php } ?>
<?php if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>" title="Schreibe <?php the_title(); ?> eine E-Mail"><i class="fa fa-envelope-o"></i></a><?php } ?>
</p>
<?php if ( $details == "yes"){ ?><p class="details"><a href="<?php the_permalink(); ?>" title="Mehr Details über <?php the_title(); ?>">Details »</a></p><?php } ?>
</section>
</article>

86
content-single-gliederung.php

@ -0,0 +1,86 @@
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<a href="<?php echo $url ?>" class="fancybox" title="<?php echo $imgexc;?>"><?php the_post_thumbnail('titelbild'); ?></a>
<?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">
<h1>
<?php the_title(); ?></h1>
</header>
<section class="entry-content clearfix">
<div class="socialprofile">
<?php $www = get_post_meta( $post->ID, 'kr8mb_gli_contact_www', true );
if (! empty ($www )){ ?><a href="<?php echo $www; ?>"><span class="fa fa-globe"></span></a><?php } ?>
<?php $email = get_post_meta( $post->ID, 'kr8mb_gli_contact_email', true );
if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>"><span class="fa fa-envelope"></span></a><?php } ?>
<?php $facebook = get_post_meta( $post->ID, 'kr8mb_gli_contact_facebook', true );
if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>"><span class="fa fa-facebook"></span></a><?php } ?>
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_gli_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fa fa-twitter"></span></a><?php } ?>
</div>
<?php $anschrift = get_post_meta( $post->ID, 'kr8mb_gli_contact_anschrift', true );
if (! empty ($anschrift )){ ?><div class="anschrift"><?php echo wpautop( $anschrift, $br = 1 ); ?></div><?php } ?>
<?php the_content(); ?>
</section>
</article>
</div>

80
content-single-person.php

@ -0,0 +1,80 @@
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?php if ( has_post_thumbnail() ): ?>
<div class="postimg">
<?php the_post_thumbnail('titelbild'); ?> <?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">
<h1 class="h2"><?php the_title(); ?></h1>
<?php $amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
if (! empty ($amt )){ ?><h2 class="h3"><?php echo $amt; ?></h2><?php } ?>
</header>
<section class="entry-content clearfix">
<div class="socialprofile">
<?php $www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
if (! empty ($www )){ ?><a href="<?php echo $www; ?>"><span class="fa fa-globe"></span></a><?php } ?>
<?php $email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>"><span class="fa fa-envelope"></span></a><?php } ?>
<?php $facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>"><span class="fa fa-facebook"></span></a><?php } ?>
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fa fa-twitter"></span></a><?php } ?>
</div>
<?php $excerpt = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
if (! empty ($excerpt )){ ?><p class="intro"><?php echo $excerpt; ?></p><?php } ?>
<?php $anschrift = get_post_meta( $post->ID, 'kr8mb_pers_contact_anschrift', true );
if (! empty ($anschrift )){ ?><div class="anschrift"><?php echo wpautop( $anschrift, $br = 1 ); ?></div><?php } ?>
<?php the_content(); ?>
</section>
</article>
</div>

89
content-single-termine.php

@ -0,0 +1,89 @@
<div id="main" class="ninecol first clearfix" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class('clearfix'); ?> role="article">
<?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>
<?php endif; ?>
<header class="article-header">
<h1 class="h2"><?php the_title(); ?></h1>
<?php $amt = get_post_meta( $post->ID, 'kr8mb_pers_pos_amt', true );
if (! empty ($amt )){ ?><h2 class="h3"><?php echo $amt; ?></h2><?php } ?>
</header>
<section class="entry-content clearfix">
<div class="socialprofile">
<?php $www = get_post_meta( $post->ID, 'kr8mb_pers_contact_www', true );
if (! empty ($www )){ ?><a href="<?php echo $www; ?>"><span class="fa fa-globe"></span></a><?php } ?>
<?php $email = get_post_meta( $post->ID, 'kr8mb_pers_contact_email', true );
if (! empty ($email )){ ?><a href="mailto:<?php echo $email; ?>"><span class="fa fa-envelope"></span></a><?php } ?>
<?php $facebook = get_post_meta( $post->ID, 'kr8mb_pers_contact_facebook', true );
if (! empty ($facebook )){ ?><a href="<?php echo $facebook; ?>"><span class="fa fa-facebook"></span></a><?php } ?>
<?php $twitter = get_post_meta( $post->ID, 'kr8mb_pers_contact_twitter', true );
if (! empty ($twitter )){ ?><a href="https://twitter.com/<?php echo $twitter; ?>"><span class="fa fa-twitter"></span></a><?php } ?>
</div>
<?php $excerpt = get_post_meta( $post->ID, 'kr8mb_pers_excerpt', true );
if (! empty ($excerpt )){ ?><p class="intro"><?php echo $excerpt; ?></p><?php } ?>
<?php the_content(); ?>
<?php $anschrift = get_post_meta( $post->ID, 'kr8mb_pers_contact_anschrift', true );
if (! empty ($anschrift )){ ?><div class="anschrift"><?php echo wpautop( $anschrift, $br = 1 ); ?></div><?php } ?>
</section>
</article>
</div>

114
content-single.php

@ -0,0 +1,114 @@
<?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 ( 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. ' ';
} }
?></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>

33
content.php

@ -0,0 +1,33 @@
<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();
if ($posttags) {
?><p class="subhead"><?php
foreach($posttags as $tag) {
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>

BIN
favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
favicon.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

45
footer.php

@ -0,0 +1,45 @@
<section id="socialaccounts">
<div class="inner clearfix">
<?php kr8_nav_social(); ?>
</div>
</section>
<footer id="footer" role="contentinfo">
<div class="inner clearfix">
<section class="sidebar cleafix">
<ul>
<?php dynamic_sidebar('fussleiste'); ?>
</ul>
</section>
<nav role="navigation">
<?php kr8_nav_footer(); ?>
</nav>
</div> <!-- end #inner-footer -->
</footer>
<p id="back-top"><a href="#header" title="Zum Seitenanfang springen"><span><i class="fa fa-long-arrow-up"></i></span><span class="hidden">Zum Seitenanfang springen</span></a></p>
<?php wp_footer(); ?>
</body>
</html>

22
functions.php

@ -0,0 +1,22 @@
<?php
/*
Author: Benjamin Jopen
URL: htp://kre8tiv.de
/************* INCLUDE FILES ***************/
if ( ! isset( $content_width ) ) $content_width = 783;
require_once('functions/theme-functions.php');
require_once('functions/theme-sidebars.php');
require_once('functions/theme-comments.php');
require_once('functions/theme-shortcodes.php');
require_once('functions/admin-dashboard.php');
require_once('functions/theme-posttypes.php');
require_once('functions/theme-metaboxes.php');
?>

86
functions/admin-dashboard.php

@ -0,0 +1,86 @@
<?php
/************* DASHBOARD WIDGETS *****************/
// disable default dashboard widgets
function disable_default_dashboard_widgets() {
// remove_meta_box('dashboard_right_now', 'dashboard', 'core'); // Right Now Widget
remove_meta_box('dashboard_recent_comments', 'dashboard', 'core'); // Comments Widget
remove_meta_box('dashboard_incoming_links', 'dashboard', 'core'); // Incoming Links Widget
remove_meta_box('dashboard_plugins', 'dashboard', 'core'); // Plugins Widget
// remove_meta_box('dashboard_quick_press', 'dashboard', 'core'); // Quick Press Widget
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'core'); // Recent Drafts Widget
remove_meta_box('dashboard_primary', 'dashboard', 'core'); //
remove_meta_box('dashboard_secondary', 'dashboard', 'core'); //
/*
have more plugin widgets you'd like to remove?
share them with us so we can get a list of
the most commonly used. :D
https://github.com/eddiemachado/kr8/issues
*/
}
/*
Now let's talk about adding your own custom Dashboard widget.
Sometimes you want to show clients feeds relative to their
site's content. For example, the NBA.com feed for a sports
site. Here is an example Dashboard Widget that displays recent
entries from an RSS Feed.
For more information on creating Dashboard Widgets, view:
http://digwp.com/2010/10/customize-wordpress-dashboard/
*/
// removing the dashboard widgets
add_action('admin_menu', 'disable_default_dashboard_widgets');
// adding any custom widgets
/************* CUSTOM LOGIN PAGE *****************/
// calling your own login css so you can style it
//Updated to proper 'enqueue' method
//http://codex.wordpress.org/Plugin_API/Action_Reference/login_enqueue_scripts
function kr8_login_css() {
wp_enqueue_style( 'kr8_login_css', get_template_directory_uri() . '/lib/css/login.css', false );
}
// changing the logo link from wordpress.org to your site
function kr8_login_url() { return home_url(); }
// changing the alt text on the logo to show your site name
function kr8_login_title() { return get_option('blogname'); }
// calling it only on the login page
add_action( 'login_enqueue_scripts', 'kr8_login_css', 10 );
add_filter('login_headerurl', 'kr8_login_url');
add_filter('login_headertitle', 'kr8_login_title');
/************* CUSTOMIZE ADMIN *******************/
/*
I don't really recommend editing the admin too much
as things may get funky if WordPress updates. Here
are a few funtions which you can choose to use if
you like.
*/
// Custom Backend Footer
function kr8_custom_admin_footer() {
_e('<span id="footer-thankyou"><a href="https://gruene-nrw.de" target="_blank">Joseph knows best</a></span> - entwickelt von <a href="http://kre8tiv.de" target="_blank">Benjamin Jopen</a>.', 'kr8theme');
}
// adding it to the admin area
add_filter('admin_footer_text', 'kr8_custom_admin_footer');
?>

69
functions/theme-comments.php

@ -0,0 +1,69 @@
<?php
/************* COMMENT LAYOUT *********************/
// Comment Layout
function kr8_comments($comment, $args, $depth) {
$GLOBALS['comment'] = $comment; ?>
<li class="clearfix">
<article id="comment-<?php comment_ID(); ?>" <?php comment_class(); ?>>
<header class="comment-author vcard">
<?php echo get_avatar( $comment, 32 ); ?>
<!-- end custom gravatar call -->
<?php printf(__('<cite class="fn">%s</cite>', 'kr8theme'), get_comment_author_link()) ?>
<time datetime="<?php echo comment_time('Y-m-j'); ?>">am <a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php comment_time('j. F Y')?> um <?php comment_time('H:i')?> Uhr</a></time>
<?php edit_comment_link(__('(Bearbeiten)', 'kr8theme'),' ','') ?>
</header>
<?php if ($comment->comment_approved == '0') : ?>
<div class="alert info">
<p><?php _e('Der Kommentar wartet auf Freischaltung.', 'kr8theme') ?></p>
</div>
<?php endif; ?>
<section class="comment_content clearfix">
<?php comment_text() ?>
</section>
<?php comment_reply_link(array_merge( $args, array('depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
</article>
<!-- </li> is added by WordPress automatically -->
<?php
}
add_filter( 'avatar_defaults', 'new_default_avatar' );
function new_default_avatar ( $avatar_defaults ) {
//Set the URL where the image file for your avatar is located
$new_avatar_url = get_template_directory_uri() . '/lib/images/avatar.png';
//Set the text that will appear to the right of your avatar in Settings>>Discussion
$avatar_defaults[$new_avatar_url] = 'Urwahl3000';
return $avatar_defaults;
}
//Fields Commentform
function kr8_commentformfields($fields){
$commenter = wp_get_current_commenter();
$req = get_option( 'require_name_email' );
$aria_req = ( $req ? " aria-required='true'" : '' );
$fields['author'] = '<ul id="comment-form-elements" class="clearfix">
<li><label for="author">' . __('Name', 'kr8theme') . ( $req ? '<span class="req">*</span>' : '' ) . '</label>
<input type="text" name="author" id="author" value="' . esc_attr( $commenter['comment_author'] ) . '" placeholder="'. __('Name', 'kr8theme') .'" tabindex="1"' . $aria_req . ' /></li>';
$fields['email'] = '<li><label for="email">' . __('Mail', 'kr8theme') . ( $req ? '<span class="req">*</span>' : '' ) . ' <small>'. __('Wird nicht veröffentlicht', 'kr8theme') .'</small></label>
<input type="text" name="email" id="email" value="' . esc_attr( $commenter['comment_author_email'] ) . '" placeholder="'. __('Mail', 'kr8theme') .'" tabindex="2"' . $aria_req . ' /></li>';
$fields['url'] = '<li><label for="url">' . __('Website', 'kr8theme') . '</label>
<input type="text" name="url" id="url" value="' . esc_attr( $commenter['comment_author_url'] ) . '" placeholder="'. __('Website', 'kr8theme') .'" tabindex="3" /></li></ul>';
return $fields;
}
add_filter('comment_form_default_fields','kr8_commentformfields');
?>

803
functions/theme-functions.php

@ -0,0 +1,803 @@
<?php
/*********************
START FUNCTIONS
*********************/
add_action('after_setup_theme','kr8_startup', 15);
// Hook into the 'after_setup_theme' action
add_action( 'after_setup_theme', 'kr8_theme_support',16 );
function kr8_startup() {
// launching operation cleanup
add_action('init', 'kr8_head_cleanup');
// remove WP version from RSS
add_filter('the_generator', 'kr8_rss_version');
// remove pesky injected css for recent comments widget
add_filter( 'wp_head', 'kr8_remove_wp_widget_recent_comments_style', 1 );
// clean up comment styles in the head
add_action('wp_head', 'kr8_remove_recent_comments_style', 1);
// clean up gallery output in wp
add_filter('gallery_style', 'kr8_gallery_style');
// enqueue base scripts and styles
add_action('wp_enqueue_scripts', 'kr8_scripts_and_styles', 999);
// ie conditional wrapper
add_filter( 'style_loader_tag', 'kr8_ie_conditional', 10, 2 );
// launching this stuff after theme setup
add_action('after_setup_theme','kr8_theme_support');
// adding sidebars to Wordpress (these are created in functions.php)
add_action( 'widgets_init', 'kr8_register_sidebars' );
// adding the kr8 search form (created in theme-sidebars.php)
add_filter( 'get_search_form', 'kr8_wpsearch' );
// cleaning up random code around images
add_filter('the_content', 'kr8_filter_ptags_on_images');
// cleaning up excerpt
add_filter('excerpt_more', 'kr8_excerpt_more');
remove_action( 'wp_head', 'print_emoji_detection_script', 7 );
remove_action( 'wp_print_styles', 'print_emoji_styles' );
} /* end */
/*********************
CLEANING UP THE HEAD
*********************/