IE7styles.css | archive.php | comments-popup.php | comments.php | crop.php | flere_kategorier.php | flere_nyheder.php | footer.php | frontpage.php | header.php | index.php | menu.php | page.php | posts.php | posts_content.php | right_sidebar.php | right_sidebar_single.php | single.php | single_page.php | style.css |
<div id="c_left">

        <?php include("menu.php"); ?>
        
        <div id="breadcrumb">
            <?php
            
if(function_exists('bcn_display'))
            {
            
bcn_display();
            }
            
?>
        </div>
        
        
        <div id="spacer"></div>
        
        <?php while (have_posts()) : the_post(); ?>
        <div class="hand" style="cursor: pointer; cursor: hand;" href="javascript:void(0)" onclick="window.location.href='<?php the_permalink(); ?>'">
            <div class="posts">
                <div class="posts_title"><?php echo substr(get_the_title(),0,30); if(strlen(get_the_title()) > 30) echo "..."?></div>
                <div class="posts_date"><?php the_time('d.m.Y'?></div>
                <div class="posts_image">
                    <?php 
                    
if(get_post_custom_values("pic_538x484"))
                    {
                        
$image get_post_custom_values("pic_538x484");
                        
$image $image[0];
                        
$img "http://www.lewa.dk/blog/wp-content/themes/laustwilster/crop.php?i=".$image."&w=125&h=108&p=2.9";
                    }
                    elseif(
get_post_custom_values("pic_125x108"))
                    {
                        
$image get_post_custom_values("pic_125x108");
                        
$image $image[0];
                        
$img $image;
                    }
                    else
                    {
                        
$img get_bloginfo('template_directory') . "/test_lille.jpg";
                    }
                    
?>
                    <img src="<?php echo $img?>" />
                </div>
                <div class="posts_description">
                    <div class="category_posts"><font color="#666"><small><b>Kategori:</b> <?php the_category(", "); ?></small></font></div>
                    <?php 
                        
if(strlen(get_the_content()) > 300)
                        {
                            
$dot "...";
                        }
                        echo 
strip_tags(substr(get_the_content(),0,301));
                        echo 
$dot;
                    
?>
                </div>
            </div>
        </div>
        <?php endwhile; ?>
        <div align="center"><p><?php posts_nav_link(); ?></p></div>
</div>