<?php
/**
 * @package simpel
 */
?>

	<div class = "grid3 col-lg-4 col-md-4 col-sm-12 col-xs-12">

<article id="post-<?php the_ID(); ?>" <?php post_class('homepage-article'); ?>>
<div class = "featured-wrapper">

<div class="featured-image"><a href="<?php the_permalink(); ?>" rel="bookmark">
<div class = "mask"></div>
<?php if (has_post_thumbnail()) : ?>
	
	<?php the_post_thumbnail('featured-thumb'); ?></a>
<?php else: ?>
	<img src="<?php echo get_template_directory_uri()."/images/dthumb.jpg";?>"></a>
		<?php endif;?> 
		</a>
</div>
</div>
<header class="entry-header">
		
		<?php 
			if (strlen(get_the_title()) >= 30) { ?>
				<h1 class="entry-title"><a href="<?php the_permalink(); ?>" data-title="<?php the_title(); ?>" rel="bookmark">
		<?php echo substr(get_the_title(), 0, 29)."...";
		}
				
			else { ?>
			<h1 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark">
		<?php	the_title();	
			}	
				 ?>
	</a></h1>
	</header><!-- .entry-header -->

</article><!-- #post-## -->
</div>