cms wp
не понимаю, почему часть страницы прилипает к левому краю ... index.php был шифрованный ... рашифровали - всё равно у меня ничего не получается.. где-то какой-то </div>, </ul> пропущен наверное
index.php
PHP код:

<?php get_header(); ?> <?php if ( $paged < 2) { ?> <?php include(TEMPLATEPATH . '/featured.php'); ?> <!-- calling featured section--> <div id="middle"> <?php $zk_categories = get_categories('hide_empty=0'); while (have_posts()) : the_post(); ?> <?php endwhile; ?> <?php $zk_boxColor[] = "green"; $zk_boxColor[] = "blue"; $zk_boxColor[] = "black"; $zk_boxColor[] = "pink"; $zk_currentColor = -1; $postcat = get_settings( "zk_homecat" ); if( ! is_array( $postcat ) ) { foreach ( $zk_categories as $b ) { $postcat[] = $b->cat_ID; } } $zk_baseURL = get_bloginfo('url'); forEach( $postcat as $zk_pC ) { $zk_currentColor ++; if( $zk_currentColor >= count( $zk_boxColor ) ) { $zk_currentColor = 0; } $catDetails = zk_catProperties( $zk_pC ); query_posts('showposts=4&cat=' . $zk_pC ); ?> <div class="block"> <h3 class="<?php echo $zk_boxColor[ $zk_currentColor ]; ?>"><a href="<?php echo get_category_link( $catDetails->cat_ID ); ?>"><?php echo $catDetails->cat_name ?>»</a></h3> <?php $count = 0; while (have_posts()) { the_post(); if( $count == 0 ) { ?> <div class="firstn"> <a href="<?php echo get_permalink($_post->ID); ?>"><?php echo catch_that_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=235&h=140&src='); ?></a> <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> <small><?php the_time('F jS, Y') ?> at <?php the_time('h:m a') ?></small> <?php the_content_limit(170, ''); ?> </div> <div class="rightn"> <ul> <?php } else { ?> <li><div class="righthumb"><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo catch_that_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=90&h=70&src='); ?></a></div> <div class="rightcont"><div class="bubble"><?php comments_popup_link('0', '1', '%'); ?></div><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> <?php the_content_limit(110, ''); ?><small>by <?php the_author_posts_link(); ?> at <?php the_time('F jS, Y') ?> at <?php the_time('h:m a') ?></small></div><div style="clear:both;"></div> </li> <?php } ?> <?php $count ++; } if( $count > 0 ) { echo "</ul>"; } ?> </ul> </div> <div style="clear:both;"></div> </div> <!-- end block --> <?php } ?> <?php wp_reset_query(); ?> <?php } ?> <div id="posts"> <div class="block"> <?php if (have_posts()) : ?> <?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?> <h3>Recent Articles</h3> <div id="postsn" class="rightnp"> <ul> <?php while (have_posts()) : the_post(); ?> <li><div class="righthumb"><a href="<?php echo get_permalink($_post->ID); ?>"><?php echo catch_that_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=130&h=90&src='); ?></a></div><div class="rightcontp"><div class="bubble"><?php comments_popup_link('0', '1', '%'); ?></div><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a> <?php the_content_limit(270, ''); ?><small>by <?php the_author_posts_link(); ?> at <?php the_time('F jS, Y') ?> at <?php the_time('h:m a') ?></small></div><div style="clear:both;"></div> </li> <?php endwhile; ?> </ul> </div> <!-- end postsn --> </div> <!-- end block --> <div style="clear:both;"></div> <div class="navigation"><?php if ( function_exists('wp_pagenavi') ) wp_pagenavi(); else { ?> <div class="floatLeft"><?php next_posts_link( __('« Older Entries', '') ) ?></div> <div class="floatRight"><?php previous_posts_link( __('Newer Entries »', '') ) ?></div> </div> <?php } ?> </div> <!-- end posts --> <?php else : ?> <h2>Not Found</h2> <?php endif; ?> </div> <?php get_sidebar(); ?> <?php get_footer(); ?>