Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PhiRhythmus committed Mar 19, 2016
1 parent 7df98cf commit 304b126
Show file tree
Hide file tree
Showing 125 changed files with 56,020 additions and 0 deletions.
25 changes: 25 additions & 0 deletions 404.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php get_header(); ?>
<?php require_once(get_template_directory() . '/home-banner.php'); ?>

<section class="main-section post-list">
<div class="container">

<div class="search-404">
<div class="row"></div>
<h4><?php echo __("Search", "tanx"); ?></h4>
<form role="search" method="get" action="<?php echo esc_url( home_url( '/' ) ); ?>">
<input type="text" value="<?php get_search_query(); ?>" placeholder="<?php echo __("I'm sure we can come up with something...", "tanx"); ?>" name="s" id="s" />
</form>
</div>

<?php if ( is_active_sidebar( 'sidebar-2' ) ) : ?>
<ul id="sidebar-404">
<div class="row">
<?php dynamic_sidebar( 'sidebar-2' ); ?>
</div>
</ul>
<?php endif; ?>
</div>
</section>

<?php get_footer(); ?>
Binary file added _design/[TANx] 00_Blog.psd
Binary file not shown.
Binary file added _design/[TANx] 01_Writer.psd
Binary file not shown.
Binary file added _design/[TANx] 02_Blog_Single.psd
Binary file not shown.
Binary file added _design/[TANx] 03_Contact.psd
Binary file not shown.
16 changes: 16 additions & 0 deletions archive.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php get_header(); ?>
<?php require_once(get_template_directory() . '/home-banner.php'); ?>

<section class="main-section">
<div class="container">
<?php if(have_posts()) :
while(have_posts()) : the_post(); ?>
<div <?php post_class(); ?>>
<?php get_template_part('content', get_post_format()); ?>
</div>
<?php endwhile;
endif; ?>
</div>
</section>

<?php get_footer(); ?>
23 changes: 23 additions & 0 deletions comments.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php if(have_comments()) { ?>
<h4 id="comments-title"><?php comments_number('No Comments', 'One Comment', '% Comments') ?></h4>

<?php $args = array(
'post_id' => get_the_ID()
);
$posts = get_comments($args);
?>
<ul class="commentlist">
<?php wp_list_comments( 'type=comment&callback=mytheme_comment&max_depth=2' ); ?>
</ul>
<?php } ?>

<?php
$comments_args = array(
'label_submit' => 'Post Comment',
'title_reply' => 'Leave a Comment',
'comment_notes_after' => ''
);
comment_form($comments_args);

wp_enqueue_script('comment-reply');
?>
37 changes: 37 additions & 0 deletions content-gallery.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<div class="post-header">
<?php $gallery = get_post_gallery_images( $post->ID );
$image_list = '<div class="gallery-post-slider">';
foreach( $gallery as $image ) {
$image_list .= '<img class="item" src="' . $image . '">';
}
$image_list .= '</div>';
echo $image_list;
?>
<div class="navigation">
<a href="#" class="owl-next"><i class="icon arrow_right"></i></a>
<a href="#" class="owl-prev"><i class="icon arrow_left"></i></a>
</div>
</div>
<?php if(!is_single()) { ?>
<a href="<?php the_permalink(); ?>" class="post-title"><h1 class="heading"><?php the_title(); ?></h1></a>
<span class="post-date">
<?php the_time('F j, Y'); ?>
</span>
<?php } ?>
<div class="post-content">
<?php
$more_string = __('Continue reading', 'tanx');
if(has_excerpt( $post->ID )) { ?>
<p>
<?php
echo get_the_excerpt();
?> <a href="<?php the_permalink(); ?>" class="more-link"><?php echo $more_string; ?></a>
</p> <?php
}
else
the_content($more_string);
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
26 changes: 26 additions & 0 deletions content-image.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<div class="post-header">
<?php the_post_thumbnail(); ?>
</div>
<?php if(!is_single()) { ?>
<a href="<?php the_permalink(); ?>" class="post-title"><h1 class="heading"><?php the_title(); ?></h1></a>
<span class="post-date">
<?php the_time('F j, Y'); ?>
</span>
<?php } ?>
<div class="post-content">
<?php
$more_string = __('Continue reading', 'tanx');
if(has_excerpt( $post->ID )) { ?>
<p>
<?php
echo get_the_excerpt();
?> <a href="<?php the_permalink(); ?>" class="more-link"><?php echo $more_string; ?></a>
</p> <?php
}
else
the_content($more_string);
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
33 changes: 33 additions & 0 deletions content-portfolio-featured.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<div class="post-header">
<?php the_post_thumbnail(); ?>
<div class="overlay">
<div class="center">
<a href="<?php the_permalink(); ?>" class="project-details">Project Details</a>
<div class="categories">
<?php //the_category(', '); ?>
</div>
</div>
</div>
</div>
<?php if(!is_single()) { ?>
<a href="<?php the_permalink(); ?>" class="post-title"><h2 class="heading"><?php the_title(); ?></h2></a>
<span class="post-date">
<?php the_category(', '); ?>
</span>
<?php } ?>
<div class="post-content">
<?php
$more_string = 'Continue reading';
if(has_excerpt( $post->ID )) { ?>
<p>
<?php
echo get_the_excerpt();
?> <a href="<?php the_permalink(); ?>" class="more-link"><?php echo $more_string; ?></a>
</p> <?php
}
else
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
33 changes: 33 additions & 0 deletions content-portfolio.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<div class="post-header">
<?php the_post_thumbnail(); ?>
<?php if(!is_single()): ?>
<div class="overlay">
<div class="center">
<div class="content">
<a href="<?php the_permalink(); ?>" class="project-details"><?php the_title(); ?></a>
<div class="categories" data-content="">
<?php
$term_list = wp_get_post_terms($post->ID, 'portfolio_category', array("fields" => "all"));
foreach($term_list as $term) {
echo '<a href="'.get_term_link($term).'">'.$term->name.'</a>';
}
?>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
<div class="post-content">
<?php
if(is_single()) { ?>
<p>
<?php the_content(); ?>
</p> <?php
}
else
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
24 changes: 24 additions & 0 deletions content-quote.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<div class="post-header">
<a href="<?php the_permalink(); ?>" class="post-title"><h1 class="heading heading-quote"><?php the_title(); ?></h1></a>
<span class="post-date">
<?php the_time('F j, Y'); ?>
</span>
<p class="author"><?php echo get_post_meta(get_the_ID(), 'quote_author', TRUE) ?></p>
</div>
<div class="post-content">
<?php
$more_string = __('Continue reading', 'tanx');
if(has_excerpt( $post->ID )) { ?>
<p>
<?php
echo get_the_excerpt();
?> <a href="<?php the_permalink(); ?>" class="more-link"><?php echo $more_string; ?></a>
</p> <?php
}
else
the_content($more_string);
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
27 changes: 27 additions & 0 deletions content-video.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<div class="post-header">
<iframe src="<?php echo get_post_meta(get_the_ID(), 'video-source', TRUE); ?>" data-aspect-ratio="<?php echo get_post_meta(get_the_ID(), 'aspect-ratio', TRUE); ?>">
</iframe>
</div>
<?php if(!is_single()) { ?>
<a href="<?php the_permalink(); ?>" class="post-title"><h1 class="heading"><?php the_title(); ?></h1></a>
<span class="post-date">
<?php the_time('F j, Y'); ?>
</span>
<?php } ?>
<div class="post-content">
<?php
$more_string = __('Continue reading', 'tanx');
if(has_excerpt( $post->ID )) { ?>
<p>
<?php
echo get_the_excerpt();
?> <a href="<?php the_permalink(); ?>" class="more-link"><?php echo $more_string; ?></a>
</p> <?php
}
else
the_content($more_string);
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
23 changes: 23 additions & 0 deletions content.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php if(!is_single()) { ?>
<a href="<?php the_permalink(); ?>" class="post-title"><h1 class="heading" style="margin-top:0"><?php the_title(); ?></h1></a>
<span class="post-date">
<?php the_date(); ?>
</span>
<?php } ?>
<div class="post-content">
<?php
$more_string = __('Continue reading', 'tanx');
if(has_excerpt( $post->ID )) { ?>
<p>
<?php
echo get_the_excerpt();
?> <a href="<?php the_permalink(); ?>" class="more-link"><?php echo $more_string; ?></a>
</p> <?php
}
else
the_content($more_string);
if(shortcode_exists('[ssba_hide]')) {
echo do_shortcode("[ssba_hide]");
}
?>
</div>
Loading

0 comments on commit 304b126

Please sign in to comment.