Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- global $options;
- foreach ($options as $value) {
- if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
- }
- ?>
- <div id="blocks">
- <?php
- $catid1 = $wpzoom_featured_category_1;
- $catid2 = $wpzoom_featured_category_2;
- $catid3 = $wpzoom_featured_category_3;
- $catid4 = $wpzoom_featured_category_4;
- $cat1 = get_category($catid1,false);
- $cat2 = get_category($catid2,false);
- $cat3 = get_category($catid3,false);
- $cat4 = get_category($catid4,false);
- $catlink1 = get_category_link($catid1);
- $catlink2 = get_category_link($catid2);
- $catlink3 = get_category_link($catid3);
- $catlink4 = get_category_link($catid4);
- $breaking_cat1 = "cat=$catid1";
- $breaking_cat2 = "cat=$catid2";
- $breaking_cat3 = "cat=$catid3";
- $breaking_cat4 = "cat=$catid4";
- ?>
- <div class="colart">
- <?php
- query_posts('showposts=1&' . $breaking_cat1 );
- while (have_posts()) : the_post(); ?>
- <h3><?php echo"<a href=\"$catlink1\">$cat1->name</a>";?></h3>
- <div class="thumb">
- <?php unset($photo);
- if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
- the_post_thumbnail(array(240,9999, true));
- }
- else{
- if ($wpzoom_cf_use == 'Yes')
- {
- $photo = get_post_meta($post->ID, $wpzoom_cf_photo, true);
- } // if CF used
- else
- {
- if (!$photo)
- {
- $photo = catch_that_image($post->ID);
- }
- } // if CF not used
- if ($photo)
- {
- ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=240&h=285&zc=1&src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" /></a>
- <?php
- }
- } // if theme does not have a thumbnail
- ?>
- </div>
- <div class="entry">
- <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- <a class="more" href="<?php the_permalink() ?>">continue reading</a>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
- <div class="more_block">
- <span>More in <?php echo"$cat1->name";?></span>
- <?php query_posts('showposts=5&offset=1&' . $breaking_cat1 ); ?> <!-- More recent posts box, the first one is not included -->
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </li>
- <?php endwhile; ?>
- </ul>
- </div>
- <?php wp_reset_query(); ?>
- </div>
- </div> <!-- /#column-1 -->
- <div class="colart">
- <?php
- query_posts('showposts=1&' . $breaking_cat2 );
- while (have_posts()) : the_post(); ?>
- <h3><?php echo"<a href=\"$catlink2\">$cat2->name</a>";?></h3>
- <div class="thumb">
- <?php unset($photo);
- if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
- the_post_thumbnail(array(240,9999, true));
- }
- else{
- if ($wpzoom_cf_use == 'Yes')
- {
- $photo = get_post_meta($post->ID, $wpzoom_cf_photo, true);
- } // if CF used
- else
- {
- if (!$photo)
- {
- $photo = catch_that_image($post->ID);
- }
- } // if CF not used
- if ($photo)
- {
- ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=240&h=285&zc=1&src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" /></a>
- <?php
- }
- } // if theme does not have a thumbnail
- ?>
- </div>
- <div class="entry">
- <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- <a class="more" href="<?php the_permalink() ?>">continue reading</a>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
- <div class="more_block">
- <span>More in <?php echo"$cat2->name";?></span>
- <?php query_posts('showposts=5&offset=1&' . $breaking_cat2 ); ?> <!-- More recent posts box, the first one is not included -->
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </li>
- <?php endwhile; ?>
- </ul>
- </div>
- <?php wp_reset_query(); ?>
- </div>
- </div> <!-- /#column-2 -->
- <div class="colart">
- <?php
- query_posts('showposts=1&' . $breaking_cat3 );
- while (have_posts()) : the_post(); ?>
- <h3><?php echo"<a href=\"$catlink3\">$cat3->name</a>";?></h3>
- <div class="thumb">
- <?php unset($photo);
- if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
- the_post_thumbnail(array(240,9999, true));
- }
- else{
- if ($wpzoom_cf_use == 'Yes')
- {
- $photo = get_post_meta($post->ID, $wpzoom_cf_photo, true);
- } // if CF used
- else
- {
- if (!$photo)
- {
- $photo = catch_that_image($post->ID);
- }
- } // if CF not used
- if ($photo)
- {
- ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=240&h=285&zc=1&src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" /></a>
- <?php
- }
- } // if theme does not have a thumbnail
- ?>
- </div>
- <div class="entry">
- <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- <a class="more" href="<?php the_permalink() ?>">continue reading</a>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
- <div class="more_block">
- <span>More in <?php echo"$cat3->name";?></span>
- <?php query_posts('showposts=5&offset=1&' . $breaking_cat3 ); ?> <!-- More recent posts box, the first one is not included -->
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </li>
- <?php endwhile; ?>
- </ul>
- </div>
- <?php wp_reset_query(); ?>
- </div>
- </div> <!-- /#column-3 -->
- <div class="colart">
- <?php
- query_posts('showposts=1&' . $breaking_cat4 );
- while (have_posts()) : the_post(); ?>
- <h3><?php echo"<a href=\"$catlink4\">$cat4->name</a>";?></h3>
- <div class="thumb">
- <?php unset($photo);
- if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
- the_post_thumbnail(array(240,9999, true));
- }
- else{
- if ($wpzoom_cf_use == 'Yes')
- {
- $photo = get_post_meta($post->ID, $wpzoom_cf_photo, true);
- } // if CF used
- else
- {
- if (!$photo)
- {
- $photo = catch_that_image($post->ID);
- }
- } // if CF not used
- if ($photo)
- {
- ?>
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=240&h=285&zc=1&src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" /></a>
- <?php
- }
- } // if theme does not have a thumbnail
- ?>
- </div>
- <div class="entry">
- <h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- <a class="more" href="<?php the_permalink() ?>">continue reading</a>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
- <div class="more_block">
- <span>More in <?php echo"$cat4->name";?></span>
- <?php query_posts('showposts=5&offset=1&' . $breaking_cat4 ); ?> <!-- More recent posts box, the first one is not included -->
- <ul>
- <?php while (have_posts()) : the_post(); ?>
- <li> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a> </li>
- <?php endwhile; ?>
- </ul>
- </div>
- <?php wp_reset_query(); ?>
- </div>
- </div> <!-- /#column-4 -->
- </div> <!-- end blocks -->
- <?php wp_reset_query(); ?>
Add Comment
Please, Sign In to add comment