68 lines
1.4 KiB
PHP
68 lines
1.4 KiB
PHP
|
<?php get_header(); ?>
|
||
|
|
||
|
<div id="content" role="main" class="span-16 prepend-1 last front">
|
||
|
|
||
|
<?php
|
||
|
|
||
|
echo audiolabLatest();
|
||
|
|
||
|
|
||
|
|
||
|
if (have_posts()) {
|
||
|
while (have_posts()) {
|
||
|
the_post();
|
||
|
?>
|
||
|
|
||
|
<a href="<?php the_permalink() ?>" class = 'front_post' ><div class="post-frontpage" style="" <?php post_class(); ?> id="post-<?php the_ID(); ?>">
|
||
|
<?php
|
||
|
$tid = get_post_thumbnail_id();
|
||
|
$url_img = wp_get_attachment_image_src($tid);
|
||
|
?>
|
||
|
|
||
|
<div class="post-thumbnail" style="background-size:cover;width:100%;height:150px;background-image:url('<?php echo $url_img[0]; ?>');">
|
||
|
<?php if(has_post_thumbnail()){
|
||
|
//the_post_thumbnail('thumbnail');
|
||
|
|
||
|
}?>
|
||
|
</div>
|
||
|
<div class="post-content" style="padding-top:20px;">
|
||
|
<h2><?php the_title() ?></h2>
|
||
|
<h3><?php the_date() ?></h3>
|
||
|
<?php the_excerpt(); ?>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
</div></a>
|
||
|
|
||
|
|
||
|
<?php
|
||
|
}
|
||
|
}
|
||
|
else {
|
||
|
?>
|
||
|
<h2>Not Found</h2>
|
||
|
<p>The content you have requested does not exist.</p>
|
||
|
<?php
|
||
|
}
|
||
|
|
||
|
comments_template();
|
||
|
?>
|
||
|
|
||
|
</div><!-- id="content" -->
|
||
|
|
||
|
<script>
|
||
|
/* Control height */
|
||
|
jQuery(document).ready(function(){
|
||
|
var maxH = 0;
|
||
|
jQuery('.post-frontpage').each(function() {
|
||
|
if(jQuery(this).height() > maxH) { maxH = jQuery(this).height(); }
|
||
|
//console.log(maxH);
|
||
|
//console.log(jQuery(this).height());
|
||
|
});
|
||
|
jQuery('.post-frontpage').height(maxH+10);
|
||
|
});
|
||
|
|
||
|
</script>
|
||
|
|
||
|
<?php get_footer(); ?>
|