Skip to content
This repository has been archived by the owner on Dec 11, 2021. It is now read-only.

Commit

Permalink
Minor refactoring to site
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathan99j committed Nov 9, 2016
1 parent 1f6c99b commit 1c65056
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 73 deletions.
72 changes: 4 additions & 68 deletions blogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,90 +23,26 @@
<input id="tab-one" type="radio" name="grp" checked="checked"/>
<label for="tab-one" class="tab-title">All</label>
<div class="tab-content">

<?php
// // Get all the blogs
// $posts = get_posts(array(
// 'orderby' => 'post_date',
// 'posts_per_page' => 5, //Chnage this to edit how many posts per page
// 'post_status' => 'publish'
// ));
//
// echo "<ul class='blog-excerpt'>";
// foreach ( $posts as $post ) {
// setup_postdata( $post );
// echo format_blog_excerpt($post, true, 'h2');
// }
// wp_reset_postdata();
// echo "</ul>";
echo do_shortcode('[ajax_load_more max_pages="0" posts_per_page="8"]');
?>
<?php echo do_shortcode('[ajax_load_more max_pages="0" posts_per_page="8"]');?>
</div>

<input id="tab-two" type="radio" name="grp" />
<label for="tab-two" class="tab-title">Sport</label>
<div class="tab-content">
<?php
// // Get the most recent sport blogs
// $posts = get_posts(array(
// 'orderby' => 'post_date',
// 'posts_per_page' => 5, //Chnage this to edit how many posts per page
// 'post_status' => 'publish',
// 'category_name' => 'Sport'
// ));
//
// echo "<ul class='blog-excerpt'>";
// foreach ( $posts as $post ) {
// setup_postdata( $post );
// echo format_blog_excerpt($post, true, 'h2');
// }
// echo "</ul>";
echo do_shortcode('[ajax_load_more post_type="post" category="sport" max_pages="0" posts_per_page="8"]');
?>
<?php echo do_shortcode('[ajax_load_more post_type="post" category="sport" max_pages="0" posts_per_page="8"]');?>
</div>

<input id="tab-three" type="radio" name="grp" />
<label for="tab-three" class="tab-title">Music</label>
<div class="tab-content">
<?php
// // Get the most recent music blogs
// $posts = get_posts(array(
// 'orderby' => 'post_date',
// 'posts_per_page' => 5, //Chnage this to edit how many posts per page
// 'post_status' => 'publish',
// 'category_name' => 'Music'
// ));
//
// echo "<ul class='blog-excerpt'>";
// foreach ( $posts as $post ) {
// setup_postdata( $post );
// echo format_blog_excerpt($post, true, 'h2');
// }
// echo "</ul>";
echo do_shortcode('[ajax_load_more post_type="post" category="music" max_pages="0" posts_per_page="8"]');
?>
<?php echo do_shortcode('[ajax_load_more post_type="post" category="music" max_pages="0" posts_per_page="8"]');?>
</div>

<input id="tab-four" type="radio" name="grp" />
<label for="tab-four" class="tab-title">Opinion</label>
<div class="tab-content">
<?php
// // Get the most recent opinion blogs
// $posts = get_posts(array(
// 'orderby' => 'post_date',
// 'posts_per_page' => 5, //Chnage this to edit how many posts per page
// 'post_status' => 'publish',
// 'category_name' => 'Opinion'
// ));
//
// echo "<ul class='blog-excerpt'>";
// foreach ( $posts as $post ) {
// setup_postdata( $post );
// echo format_blog_excerpt($post, true, 'h2');
// }
// echo "</ul>";
echo do_shortcode('[ajax_load_more post_type="post" category="opinion" max_pages="0" posts_per_page="8"]');

echo do_shortcode('[ajax_load_more post_type="post" category="opinion" max_pages="0" posts_per_page="8"]');
// End the loop.
endwhile;
?>
Expand Down
2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
</div> <!-- end main page container -->
</div> <!-- end main page container -->
<footer id="footer">
<div class="wrapper">
<div>
Expand Down
2 changes: 0 additions & 2 deletions home.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
<a href="<?php echo get_permalink( get_page_by_path( 'app' ) )?>"><img src="<?php echo get_template_directory_uri(); ?>/images/slideshow/app.png" width="100%" /></a>
</figure>

<?php // TODO: Fix link ?>

<figure class="noday">
<img src="<?php echo get_template_directory_uri(); ?>/images/slideshow/mooch_coffee.png" width="100%" />
</figure>
Expand Down
2 changes: 1 addition & 1 deletion shows.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php
/**
* Template Name: Shows
*/
*/

$terms = get_terms( 'shows', 'orderby=count&hide_empty=0' );

Expand Down
1 change: 0 additions & 1 deletion single.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php
/**
* The template for displaying single blog posts.
*
*/
get_header(); ?>

Expand Down

0 comments on commit 1c65056

Please sign in to comment.