Hallo
Ich bin sehr zufrieden mit meinem Design (chaneletlesautres.com).
Ich möchte aber gerne nicht das Bild links neben dem Text. Ich hätte gerne die Postüberschrift, dann das Bild dadrunter (etwas größer) und dann der Text. kann mir jemand bisschen tipps und hilfe geben wo ich das änder? danke!
In meiner index steht folgendes
ZitatAlles anzeigen<?php
/*
Template Name: Blog
*/
get_header();
if (is_page()) $current_type = "page";
if (is_home()) $current_type = "home";
if (is_single()) $current_type = "single";
if (is_category()) $current_type = "blog";
if (is_search()) $current_type = "search";
if (is_tag()) $current_type = "tag";
if (is_archive()) $current_type = "archive";$page_id = $post->ID;
$paged = (get_query_var('page')) ? get_query_var('page') : 1;
query_posts('cat=all&paged='.$paged);
get_template_part( 'loop', 'single' );
$root = get_template_directory_uri();
$air_show_cat = get_option("air_show_cat");
$air_show_tags = get_option("air_show_tags");
$air_img_w = get_option("air_img_w");
$air_img_h = get_option("air_img_h");
$air_words = get_option("air_words");$columns = strpos(category_description(), "columns");
?>
<div id="content" <?php post_class(); ?>>
<div id="inner-content" >
<?php
if ($current_type == "search")
{
echo "<h2>Search results for: '". $_POST["s"] ."'</h2>";
?><div class="divider"></div><?php
}if (is_year())
{
echo "<h2>Archive for: ". get_the_time('Y') ."</h2>";
?><div class="divider"></div><?php
}
if (is_month())
{
echo "<h2>Archive for: ". get_the_time('F, Y') ."</h2>";
?><div class="divider"></div><?php
}
if (is_day())
{
echo "<h2>Archive for: ". get_the_time('F jS, Y') ."</h2>";
?><div class="divider"></div><?php
}
if (is_tag()) // POPRAVI!!!
{
?>
<h2>Archive for tag: <?php single_tag_title(''); ?></h2>
<div class="divider"></div><?php
}if (have_posts()) :
$tags = array("img", "object");
while (have_posts()) : the_post();if ($columns)
{
$i++;
if (fmod($i, 2) == 1) $class = " columnleft"; else $class = " columnright";
}?>
<div class="post-entry<?php echo $class; ?>">
<?php
$html_content = get_the_content_with_formatting();
$only_text = strip_single_tags($tags, $html_content);
$images = get_all_img_urls($html_content);
$image = $images[0];// now lets check widht of image. If it is bigger than 540 - resize it
if ($image != "")
{
$width = $air_img_w;
$height = $air_img_h;
$resized = vt_resize( '', $image , $width, $height, true );
$image_html = "<p style='float:left'><img src='". $resized[url] ."' alt='' width='$width' height='$height' class='shadow alignleft' /></p>";
}
else $image_html = "";if(!empty($post->post_excerpt))
{
//This post have an excerpt, let's display it
$excerpt = get_the_excerpt();
}
else
{
// This post have no excerpt
$excerpt = better_excerpt($only_text, $air_words);
}
echo $image_html;
?>
<div style="float:left;width:<?php echo 650 - 30 - $width; ?>px">
<?php if ($air_show_cat == "yes") { ?><div class="post-category"><?php the_category(', '); ?></div><?php } ?>
<?php if ($air_show_tags == "yes") { ?><div class="post-category"><?php the_tags('', ', ', ''); ?></div><?php } ?>
<div class="post-meta">
<h2 class="title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
<span>by </span><?php the_author_link(); ?>
<span>on </span> <?php the_time('M j, Y') ?>
<?php if (comments_open()) { ?>
<span> - </span><?php comments_popup_link('No Comments', '1 Comment', '% Comments'); } ?>
</div><!--END post-meta-->
<p><?php echo $excerpt; ?></p>
<p><a href="<?php the_permalink(); ?>" class="read-more">read post »</a></p>
</div><!-- NEW DIV-->
</div><!--END post-entry-->
<?php
endwhile;
else:
?><h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php
endif; ?>
<div class="wp-pagenavi">
<span class="older read-more"><?php previous_posts_link('« Newer Entries', 0) ?></span>
<span class="newer read-more"><?php next_posts_link('Older Entries »', 0);?></span>
</div><!--END wp-pagenavi-->
</div><!--END inner-content-->
<div id="sidebar">
<?php
$sidebar = "default";
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar($sidebar) ) :
endif;
?>
</div><!--END sidebar-->
</div><!--END content--></div><!--END wrapper-->
<?php get_footer(); ?>