designfix

This commit is contained in:
Sjur Hernes committed 2012-07-06 20:24:49 +02:00
1 parent 3d47942b8f
commit 34a05fa7e4
2 files changed
+16 -4

No files matched your search

+8 -2
View File
@@ -26,8 +26,14 @@ $c++; ?>
<?php if($c == 1) : ?>
<article <?php post_class("firstpostindex") ?> id="post-<?php the_ID(); ?>">
<div style="height: 370px;">
<?php the_post_thumbnail('firstpost'); ?>
<?php
if(has_post_thumbnail()){
echo "<div style='height: 370px;'>";
the_post_thumbnail('firstpost');
} else {
echo "<div style='height: 125px;'>";
}
?>
<div class="social">
<a href="<?php the_permalink() ?>">
<img class="lesmer" src="<?php echo get_template_directory_uri(); ?>/images/knapp_opp_lesmer.png" alt="Les Mer" onmouseover=" this.src='<?php echo get_template_directory_uri(); ?>/images/knapp_ned_lesmer.png'" onmouseout=" this.src='<?php echo get_template_directory_uri(); ?>/images/knapp_opp_lesmer.png'" /></a>
+8 -2
View File
@@ -9,8 +9,14 @@ $c++; ?>
<?php if($c == 1) : ?>
<article <?php post_class("firstpostindex") ?> id="post-<?php the_ID(); ?>">
<div style="height: 370px;">
<?php the_post_thumbnail('firstpost'); ?>
<?php
if(has_post_thumbnail()){
echo "<div style='height: 370px;'>";
the_post_thumbnail('firstpost');
} else {
echo "<div style='height: 125px;'>";
}
?>
<div class="social">
<a href="<?php the_permalink() ?>">
<img class="lesmer" src="<?php echo get_template_directory_uri(); ?>/images/knapp_opp_lesmer.png" alt="Les Mer" onmouseover=" this.src='<?php echo get_template_directory_uri(); ?>/images/knapp_ned_lesmer.png'" onmouseout=" this.src='<?php echo get_template_directory_uri(); ?>/images/knapp_opp_lesmer.png'" /></a>