Minimatica WordPress Theme: Hacking the loop.php file

I love the Minimatica theme by onedesigns.com (thanks Daniel!) . There were a few things I changed to suit my tastes better, one of which was to the loop.php file.  For example, I didn’t need the folded, author, time-date stamp biz which hovers over the thumbnails in the blog view – so here’s my mod:

<?php
/**
* The Main Loop
*
* Used as fallback if no specific loop file found
*
* @package WordPress
* @subpackage Minimatica
* @since Minimatica 1.0
*/
?>

<?php if( have_posts() ) : ?>
<div id=”content” role=”main”>
<?php while( have_posts() ) : the_post(); ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
<header>
<?php if( has_post_thumbnail() ) : ?>
<a href=”<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>” rel=”bookmark”>
<?php the_post_thumbnail( ‘homepage-thumb’ ); ?>
</a>
<?php endif; ?>
<h2><a href=”<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>” rel=”bookmark”><?php the_title(); ?></a></h2>
<!– .entry-meta –>
</header><!– .entry-header –>
<section>
<?php the_excerpt(); ?>
</section><!– .entry-summary –>
<footer>
</footer><!– entry-footer –>
</article><!– .post –>
<?php endwhile; ?>
<?php if ( $wp_query->max_num_pages > 1 ) : ?>
<div id=”posts-nav”>
<div><?php next_posts_link( ‘&larr; ‘ . __( ‘Older Posts’, ‘minimatica’ ) ); ?></div>
<div><?php previous_posts_link( __( ‘Newer Posts’, ‘minimatica’ ) . ‘ &rarr;’ ); ?></div>
<div></div>
</div><!– #nav-above –>
<?php endif; ?>
</div><!– #content –>
<?php else : ?>
<div id=”content”>
<div id=”post-0″ <?php post_class(); ?>>
<div>
<p><?php _e( ‘The content you were looking for could not be found.’, ‘minimatica’ ); ?></p>
<?php get_search_form(); ?>
</div><!– .entry-content –>
</div><!– .post –>
</div><!– #content –>
<?php endif; ?>

Leave a Reply

Your email address will not be published. Required fields are marked *

Shares