web/wp-content/themes/aparatus/home.php
author ymh <ymh.work@gmail.com>
Mon, 22 Mar 2010 16:36:28 +0100
changeset 5 ac511f1ccc8e
parent 1 0d28b7c10758
permissions -rw-r--r--
add hgignore
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
0d28b7c10758 First commit
ymh
parents:
diff changeset
     1
<?php get_header();?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
     2
<div class="main-container">
0d28b7c10758 First commit
ymh
parents:
diff changeset
     3
0d28b7c10758 First commit
ymh
parents:
diff changeset
     4
<?php 
0d28b7c10758 First commit
ymh
parents:
diff changeset
     5
global $options;
0d28b7c10758 First commit
ymh
parents:
diff changeset
     6
	foreach ($options as $value) {
0d28b7c10758 First commit
ymh
parents:
diff changeset
     7
		if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
0d28b7c10758 First commit
ymh
parents:
diff changeset
     8
				}
0d28b7c10758 First commit
ymh
parents:
diff changeset
     9
?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    10
0d28b7c10758 First commit
ymh
parents:
diff changeset
    11
0d28b7c10758 First commit
ymh
parents:
diff changeset
    12
<?php if ($apa_use_slide_show == '') { 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    13
 include (TEMPLATEPATH . '/gallery.php');
0d28b7c10758 First commit
ymh
parents:
diff changeset
    14
 }?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    15
0d28b7c10758 First commit
ymh
parents:
diff changeset
    16
<?php if (have_posts()) : while (have_posts()) : the_post();
0d28b7c10758 First commit
ymh
parents:
diff changeset
    17
if ($apa_use_slide_show == '') { 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    18
 	if (in_array($post->ID, $saved_ids)) continue;
0d28b7c10758 First commit
ymh
parents:
diff changeset
    19
 	update_post_caches($posts); 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    20
 }?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    21
0d28b7c10758 First commit
ymh
parents:
diff changeset
    22
0d28b7c10758 First commit
ymh
parents:
diff changeset
    23
<div class="retweet-btn-small">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    24
<script type="text/javascript">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    25
tweetmeme_url = '<?php the_permalink();?>';
0d28b7c10758 First commit
ymh
parents:
diff changeset
    26
tweetmeme_source = '<?php echo $apa_Twitter;?>';
0d28b7c10758 First commit
ymh
parents:
diff changeset
    27
tweetmeme_style = 'compact';
0d28b7c10758 First commit
ymh
parents:
diff changeset
    28
</script>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    29
<script type="text/javascript" src="http://tweetmeme.com/i/scripts/button.js"></script>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    30
</div><!--retweet-btn-->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    31
0d28b7c10758 First commit
ymh
parents:
diff changeset
    32
<div class="post-title">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    33
<a href="<?php the_permalink();?>" title="<?php the_title();?>">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    34
<?php the_title();?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    35
</a>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    36
</div><!--post-title-->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    37
<div class="post-meta-data">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    38
Added <?php the_time('M j, Y');?>, Under: <?php the_category(',')?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    39
</div><!--post-meta-data-->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    40
0d28b7c10758 First commit
ymh
parents:
diff changeset
    41
<?php if ( has_post_thumbnail() ) { ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    42
	<a href="<?php the_permalink();?>" title="<?php the_title();?>">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    43
	<?php the_post_thumbnail(array(), array('class' => 'thumbs-in-archive')); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    44
	</a>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    45
<?php } elseif (get_post_meta($post->ID, 'image', true) ) {?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    46
	<a href="<?php the_permalink();?>" title="<?php the_title();?>">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    47
	<img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?src=<?php echo get_post_meta($post->ID, 'image', $single = true); ?>&h=65&w=195&zc=1&q=100" alt="<?php the_title(); ?>" class="thumbs-in-archive"/> 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    48
	</a>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    49
<?php } ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    50
0d28b7c10758 First commit
ymh
parents:
diff changeset
    51
<div class="post-excerpt">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    52
<?php the_excerpt();?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    53
</div><!--post-excerpt-->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    54
<div class="author-box-small">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    55
By  <?php the_author_posts_link(); ?> with <?php comments_number('0 comments', '1 comment', '% comments');?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    56
</div><!--author-box-->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    57
0d28b7c10758 First commit
ymh
parents:
diff changeset
    58
0d28b7c10758 First commit
ymh
parents:
diff changeset
    59
<?php endwhile; endif; ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    60
0d28b7c10758 First commit
ymh
parents:
diff changeset
    61
<?php if(function_exists('wp_pagenavi')){ 
0d28b7c10758 First commit
ymh
parents:
diff changeset
    62
wp_pagenavi();}else{?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    63
<div class="next-prev-links">
0d28b7c10758 First commit
ymh
parents:
diff changeset
    64
<?php posts_nav_link(); ?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    65
</div>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    66
<?php } ?>  
0d28b7c10758 First commit
ymh
parents:
diff changeset
    67
0d28b7c10758 First commit
ymh
parents:
diff changeset
    68
0d28b7c10758 First commit
ymh
parents:
diff changeset
    69
0d28b7c10758 First commit
ymh
parents:
diff changeset
    70
</div><!--main-container-->
0d28b7c10758 First commit
ymh
parents:
diff changeset
    71
<?php get_sidebar();?>
0d28b7c10758 First commit
ymh
parents:
diff changeset
    72
<?php get_footer();?>