Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Netzberufler committed May 28, 2014
0 parents commit 5f25e21
Show file tree
Hide file tree
Showing 58 changed files with 7,085 additions and 0 deletions.
41 changes: 41 additions & 0 deletions 404.php
@@ -0,0 +1,41 @@
<?php get_header(); ?>

<div id="wrap" class="clearfix">

<section id="content" class="primary" role="main">

<div class="type-page">

<h2 class="page-title"><?php _e('404 Error: Not found', 'smartline-lite'); ?></h2>

<div class="entry">
<p><?php _e('The page you trying to reach does not exist, or has been moved. Please use the menus or the search box to find what you are looking for', 'smartline-lite'); ?></p>

<h2><?php _e('Search', 'smartline-lite'); ?></h2>
<?php get_search_form(); ?>

<h2><?php _e('Recent Posts', 'smartline-lite'); ?></h2>
<ul>
<?php
$recent_posts = wp_get_recent_posts(array('numberposts' => '8', 'post_status' => 'publish'));
foreach( $recent_posts as $recent ) {
echo '<li><a href="' . esc_url(get_permalink($recent['ID'])) . '" title="Look '.esc_attr($recent['post_title']).'" >' . $recent['post_title'] . '</a></li>';
}
?>
</ul>

<h2><?php _e('Pages', 'smartline-lite'); ?></h2>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</div>

</div>

</section>

<?php get_sidebar(); ?>

</div>

<?php get_footer(); ?>
36 changes: 36 additions & 0 deletions archive.php
@@ -0,0 +1,36 @@
<?php get_header(); ?>

<?php // Get Theme Options from Database
$theme_options = smartline_theme_options();
?>

<div id="wrap" class="clearfix">

<section id="content" class="primary" role="main">

<h2 id="date-title" class="archive-title">
<?php // Display Archive Title
if ( is_date() ) :
printf( __( 'Monthly Archives: %s', 'smartline-lite' ), '<span>' . get_the_date( _x( 'F Y', 'date format of monthly archives', 'smartline-lite' ) ) . '</span>' );
else :
_e( 'Archives', 'smartline-lite' );
endif;
?>
</h2>

<?php if (have_posts()) : while (have_posts()) : the_post();

get_template_part( 'content', $theme_options['posts_length'] );

endwhile;

smartline_display_pagination();

endif; ?>

</section>

<?php get_sidebar(); ?>
</div>

<?php get_footer(); ?>
34 changes: 34 additions & 0 deletions author.php
@@ -0,0 +1,34 @@
<?php get_header(); ?>

<?php // Get Theme Options from Database
$theme_options = smartline_theme_options();
?>

<?php // Retrieve Current Author
$author = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
?>

<div id="wrap" class="clearfix">

<section id="content" class="primary" role="main">

<h2 id="author-title" class="archive-title">
<?php printf(__('Author Archives: %s', 'smartline-lite'), '<span>' . esc_attr($author->display_name) . '</span>'); ?>
</h2>

<?php if (have_posts()) : while (have_posts()) : the_post();

get_template_part( 'content', $theme_options['posts_length'] );

endwhile;

smartline_display_pagination();

endif; ?>

</section>

<?php get_sidebar(); ?>
</div>

<?php get_footer(); ?>
30 changes: 30 additions & 0 deletions category.php
@@ -0,0 +1,30 @@
<?php get_header(); ?>

<?php // Get Theme Options from Database
$theme_options = smartline_theme_options();
?>

<div id="wrap" class="clearfix">

<section id="content" class="primary" role="main">

<h2 id="category-title" class="archive-title">
<?php printf(__('Category Archives: %s', 'smartline-lite'), '<span>' . single_cat_title( '', false ) . '</span>'); ?>
</h2>

<?php if (have_posts()) : while (have_posts()) : the_post();

get_template_part( 'content', $theme_options['posts_length'] );

endwhile;

smartline_display_pagination();

endif; ?>

</section>

<?php get_sidebar(); ?>
</div>

<?php get_footer(); ?>
7 changes: 7 additions & 0 deletions changelog.txt
@@ -0,0 +1,7 @@
===================================
Smartline Lite Changelog
===================================

Version 1.0
-----------------------------------
Final Version
51 changes: 51 additions & 0 deletions comments.php
@@ -0,0 +1,51 @@
<?php
/***
* Comments Template
*
* This template displays the current comments of a post and the comment form
*
*/

if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
die ('Please do not load this page directly. Thanks!');

if ( post_password_required()) : ?>
<p><?php _e('Enter password to view comments.', 'smartline-lite'); ?></p>
<?php return; endif; ?>


<?php if ( have_comments() or comments_open() ) : ?>

<div id="comments">

<?php if ( have_comments() ) : ?>

<h3 class="comments-title"><span><?php comments_number( '', __('One comment','smartline-lite'), __('% comments','smartline-lite') );?></span></h3>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div class="comment-pagination clearfix">
<div class="alignleft"><?php previous_comments_link(); ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php endif; ?>

<ul class="commentlist">
<?php wp_list_comments( array('callback' => 'smartline_list_comments')); ?>
</ul>

<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : ?>
<div class="comment-pagination clearfix">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>
<?php endif; ?>

<?php endif; ?>

<?php if ( comments_open() ) : ?>
<?php comment_form(array('comment_notes_after' => '')); ?>
<?php endif; ?>

</div>

<?php endif; ?>
16 changes: 16 additions & 0 deletions content-excerpt.php
@@ -0,0 +1,16 @@

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<h2 class="post-title"><a href="<?php esc_url(the_permalink()) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="postmeta"><?php smartline_display_postmeta(); ?></div>

<div class="entry clearfix">
<?php smartline_display_thumbnail_index(); ?>
<?php the_excerpt(); ?>
<a href="<?php esc_url(the_permalink()) ?>" class="more-link"><?php _e('&raquo; Read more', 'smartline-lite'); ?></a>
</div>

<div class="postinfo clearfix"><?php smartline_display_postinfo(); ?></div>

</article>
11 changes: 11 additions & 0 deletions content-page.php
@@ -0,0 +1,11 @@

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<h2 class="page-title"><?php the_title(); ?></h2>

<div class="entry clearfix">
<?php the_content(); ?>
</div>
<?php wp_link_pages(); ?>

</div>
17 changes: 17 additions & 0 deletions content-single.php
@@ -0,0 +1,17 @@

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<h2 class="post-title"><?php the_title(); ?></h2>

<div class="postmeta"><?php smartline_display_postmeta(); ?></div>

<div class="entry clearfix">
<?php smartline_display_thumbnail_single(); ?>
<?php the_content(); ?>
<!-- <?php trackback_rdf(); ?> -->
<div class="page-links"><?php wp_link_pages(); ?></div>
</div>

<div class="postinfo clearfix"><?php smartline_display_postinfo(); ?></div>

</article>
16 changes: 16 additions & 0 deletions content.php
@@ -0,0 +1,16 @@

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<h2 class="post-title"><a href="<?php esc_url(the_permalink()) ?>" rel="bookmark"><?php the_title(); ?></a></h2>

<div class="postmeta"><?php smartline_display_postmeta(); ?></div>

<div class="entry clearfix">
<?php smartline_display_thumbnail_index(); ?>
<?php the_content(__('&raquo; Read more', 'smartline-lite')); ?>
<div class="page-links"><?php wp_link_pages(); ?></div>
</div>

<div class="postinfo clearfix"><?php smartline_display_postinfo(); ?></div>

</article>

0 comments on commit 5f25e21

Please sign in to comment.