Permalink
Browse files

first checkin

  • Loading branch information...
bueltge committed Aug 9, 2012
0 parents commit 236452fc896c7d831965c1de51c712f9440d6622
Showing with 2,438 additions and 0 deletions.
  1. +94 −0 archive.php
  2. +66 −0 comments.php
  3. +7 −0 editor-style.dev.css
  4. +31 −0 footer.php
  5. +280 −0 functions.php
  6. +53 −0 header.php
  7. +40 −0 home.php
  8. +212 −0 inc/class-branding.php
  9. +191 −0 inc/theme-options.php
  10. +94 −0 index.php
  11. BIN languages/de_DE.mo
  12. +305 −0 languages/de_DE.po
  13. +281 −0 license.txt
  14. +49 −0 page.php
  15. +9 −0 parts/no-results.php
  16. +2 −0 print.css
  17. +121 −0 print.dev.css
  18. +22 −0 readme.md
  19. +5 −0 readme.txt
  20. BIN screenshot.png
  21. +57 −0 sidebar.php
  22. +54 −0 single.php
  23. +14 −0 style.css
  24. +451 −0 style.dev.css
@@ -0,0 +1,94 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage Documentation
+ */
+
+get_header();
+
+if ( have_posts() ) :
+
+ /* If this is a category archive */ if ( is_category() ) { ?>
+ <h2><?php _e('Archive for categorie', 'documentation'); ?> &bdquo;<?php echo single_cat_title(); ?>&ldquo;</h2>
+ <?php /* If this is a daily archive */ } elseif ( is_day() ) { ?>
+ <h2><?php _e('Daily archive', 'documentation'); ?> <?php the_time('F jS, Y'); ?></h2>
+ <?php /* If this is a monthly archive */ } elseif ( is_month() ) { ?>
+ <h2><?php _e('Monthly archive', 'documentation'); ?> <?php the_time('F, Y'); ?></h2>
+ <?php /* If this is a yearly archive */ } elseif ( is_year() ) { ?>
+ <h2><?php _e('Years of archive', 'documentation'); ?> <?php the_time('Y'); ?></h2>
+ <?php /* If this is a search */ } elseif ( is_search() ) { ?>
+ <h2><?php _e('Search results', 'documentation'); ?></h2>
+ <?php /* If this is an author archive */ } elseif ( is_author() ) { ?>
+ <h2><?php _e('Author archive', 'documentation'); ?></h2>
+ <?php /* If this is a paged archive */ } elseif ( isset($_GET['paged']) && !empty($_GET['paged']) ) { ?>
+ <h2><?php _e('Archive', 'documentation'); ?></h2>
+ <?php }
+
+ while ( have_posts() ) :
+ the_post();
+ ?>
+
+ <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
+ <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2>
+ <p><small><?php foreach( ( get_the_category() ) as $category ) { echo $category->cat_name; } ?></small></p>
+
+ <div class="story">
+ <?php
+ if ( is_search() ) {
+ the_content( __( '... more &raquo;', 'documentation' ) , TRUE, the_title( ' ', '', FALSE ) ); ?>
+ <p class="textright">
+ <a href="<?php the_permalink() ?>" rel="bookmark"><?php _e('... more &raquo;', 'documentation'); ?></a>
+ </p>
+ <p class="info">
+ <?php
+ printf(
+ __( 'Category: %s, write at %s by %s', 'documentation' ),
+ get_the_category_list( ',' ),
+ get_the_date(),
+ get_the_author()
+ );
+ edit_post_link( __( 'Edit', 'documentation' ), ' | ', '' ); ?>
+ </p>
+ <?php
+ } elseif ( is_archive() ) {
+ the_content( __( '... more &raquo;', 'documentation' ) , TRUE, the_title( ' ', '', FALSE ) ); ?>
+ <p class="textright"><a href="<?php the_permalink() ?>" rel="bookmark"><?php _e( '... more &raquo;', 'documentation'); ?></a></p>
+ <p class="info">
+ <?php
+ printf(
+ __( 'Category: %s, write at %s by %s', 'documentation' ),
+ get_the_category_list( ',' ),
+ get_the_date(),
+ get_the_author()
+ );
+ edit_post_link( __( 'Edit', 'documentation' ), ' | ', '' ); ?>
+ </p>
+ <?php
+ } else {
+ the_content( __( '... more &raquo;', 'documentation' ) . the_title( ' ', '', FALSE ) );
+ wp_link_pages();
+ } ?>
+ </div>
+
+ </div>
+
+ <?php
+ endwhile;
+else:
+
+ /**
+ * Include the template for the loop dosn't find and result
+ * If you will overwrite this in in a child theme the include a file
+ * called no-results-single.php and that will be used instead.
+ */
+ get_template_part( 'parts/no-results', 'home' );
+
+endif;
+
+if ( function_exists( 'documentation_get_paginate_bar' ) ) {
+ documentation_get_paginate_bar();
+} else {
+ posts_nav_link('<span class="none"> | </span>', '<span class="right">' . __('next page', 'documentation' ) . ' &raquo;</span>', '<span class="left">&laquo; ' . __('previous page', 'documentation' ) . '</span>');
+}
+
+get_footer();
@@ -0,0 +1,66 @@
+<?php
+/**
+ * The template for displaying Comments.
+ *
+ * The area of the page that contains both current comments
+ * and the comment form. The actual display of comments is
+ * handled by a callback to twentytwelve_comment() which is
+ * located in the functions.php file.
+ *
+ * @package WordPress
+ * @subpackage Twenty_Twelve
+ * @since Twenty Twelve 1.0
+ */
+?>
+ <div id="comments">
+ <?php if ( post_password_required() ) : ?>
+ <p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'documentation' ); ?></p>
+ </div><!-- #comments -->
+ <?php
+ /* Stop the rest of comments.php from being processed,
+ * but don't kill the script entirely -- we still have
+ * to fully load the template.
+ */
+ return;
+ endif;
+ ?>
+
+ <?php // You can start editing here -- including this comment! ?>
+
+ <?php if ( have_comments() ) : ?>
+ <h2 id="comments-title">
+ <?php
+ printf( _n( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'documentation' ),
+ number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
+ ?>
+ </h2>
+
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ <nav id="comment-nav-above" role="navigation">
+ <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'documentation' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'documentation' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'documentation' ) ); ?></div>
+ </nav>
+ <?php endif; // check for comment navigation ?>
+
+ <ol class="commentlist">
+ <?php wp_list_comments( array( 'callback' => 'documentation_comment' ) ); ?>
+ </ol>
+
+ <?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
+ <nav id="comment-nav-below" role="navigation">
+ <h1 class="assistive-text section-heading"><?php _e( 'Comment navigation', 'documentation' ); ?></h1>
+ <div class="nav-previous"><?php previous_comments_link( __( '&larr; Older Comments', 'documentation' ) ); ?></div>
+ <div class="nav-next"><?php next_comments_link( __( 'Newer Comments &rarr;', 'documentation' ) ); ?></div>
+ </nav>
+ <?php endif; // check for comment navigation ?>
+
+ <?php // If there are no comments and comments are closed, let's leave a note.
+ elseif ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
+ ?>
+ <p class="nocomments"><?php _e( 'Comments are closed.', 'documentation' ); ?></p>
+ <?php endif; ?>
+
+ <?php comment_form(); ?>
+
+</div><!-- #comments -->
@@ -0,0 +1,7 @@
+@charset "utf-8";
+/**
+ * Documentation Editor Style
+ *
+ * @version 08/09/2012
+ * @author Frank Bültge
+ */
@@ -0,0 +1,31 @@
+<?php
+/**
+ * @package WordPress
+ * @subpackage Documentation
+ */
+?>
+ </div>
+
+ <?php get_sidebar(); ?>
+
+ <div id="footer">
+ <p>&copy; 2007 - <?php echo date( 'Y' ); ?> | <a href="<?php home_url( '/' ); ?>"><?php bloginfo( 'name' ); ?></a>
+ <?php
+ if ( defined( 'WP_DEBUG' ) && WP_DEBUG )
+ echo ' | <small>' . $wpdb->num_queries . 'q, ' . timer_stop() . 's</small>';
+
+ $redirect = documentation_get_options( 'rewrite_url' );
+ if ( ! is_user_logged_in() ) {
+ $link = ' | <a href="' . get_option('siteurl') . '/wp-login.php?redirect_to=' . $redirect . '">' . __('Login', 'documentation') . '</a>';
+ } else {
+ $link = ' | <a href="' . get_option('siteurl') . '/wp-login.php?action=logout&amp;redirect_to=' . $redirect . '">' . __( 'Logout', 'documentation' ) . '</a>';
+ }
+ echo apply_filters( 'loginout', $link );
+ ?>
+ </p>
+ </div>
+
+ <?php wp_footer(); ?>
+</div>
+</body>
+</html>
Oops, something went wrong.

0 comments on commit 236452f

Please sign in to comment.