<?php if ( get_option('main_page_img') != "no" ) { ?> <span class="image"> <?php $images = get_post_meta($post->ID, "images", true); if (empty($images)) {?> <div class="main_page_no_img">[img]<?php bloginfo('template_url'); ?>/images/no-pic.png[/img]</div></span> <?php } else { ?> <div class="main_page_img" style="background: #FFF url(<?php echo get_bloginfo('template_url')."/includes/img_resize.php?width=50&height=50&url=";?><?php if ( strstr($images, ',')) { $matches = explode(",", $images); $img_single = $matches[0]; $img_single = explode(trailingsla****(get_option('siteurl')) . "wp-content/uploads/classipress/", $img_single); echo $img_single[1]; } else { $img_single2 = $images; echo $img_single2; }?>) center no-repeat"></div></span> <?php } } else { $ii = 1; echo "<span class='cat_image'>"; foreach((get_the_category()) as $category) { if ($ii == "1") { $cat_image = get_bloginfo('template_url')."/images/category-icons/".get_option("cat$category->cat_ID").".png"; echo "[img] . $cat_image . [/img]"; $ii++; } } echo "</span>"; } ?>
There are currently 1 users browsing this thread. (0 members and 1 guests)