<?php
/**
 * @package Interserver Platinum
 */
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<?php 
	global $ip_default;
	$index_feat_img = get_theme_mod( 'index_feat_image', $ip_default['index_feat_image'] );
	if ( has_post_thumbnail() && ! $index_feat_img ) : ?>
		<div class="entry-thumb">
			<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail('interserver-platinum-large-thumb');?></a>
		</div>
	<?php endif; ?>

	<header class="entry-header">
		<?php the_title( sprintf( '<h3 class="title-post entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h3>' ); ?>
		<?php 
		$hide_meta_index = get_theme_mod( 'hide_meta_index', $ip_default['hide_meta_index'] );
		if ( 'post' == get_post_type() && !$hide_meta_index ) : ?>
		<div class="meta-post">
			<?php interserver_platinum_posted_on(); ?>
		</div><!-- .entry-meta -->
		<?php endif; ?>
	</header><!-- .entry-header -->

	<div class="entry-post">
		<?php 
		$full_content_archives = get_theme_mod( 'full_content_archives', $ip_default['full_content_archives'] );
		$full_content_home = get_theme_mod( 'full_content_home', $ip_default['full_content_home'] );
		if ( ($full_content_home && is_home() ) || $full_content_archives && is_archive() ) : ?>
			<?php the_content(); ?>
		<?php else : ?>
			<?php the_excerpt(); ?>
		<?php endif; ?>

		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'interserver-platinum' ),
				'after'  => '</div>',
			) );
		?>
	</div><!-- .entry-post -->

	<footer class="entry-footer">
		<?php interserver_platinum_entry_footer(); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->