?> <div class="content_left"> <a href="<?php the_permalink(); ?> "> <?php if (get_post_meta($post->ID, 'file_name', true) != "") { ?> <img src="<?php echo templ_thumbimage_filter($destination_url . get_post_meta($post->ID, 'file_name', true), 330, 250); ?> " alt="" /> <?php } else { if (is_super_admin($post->post_author)) { echo display_deal_image($post->ID, 'medium'); } else { ?> <img src="<?php echo get_template_directory_uri() . "/images/no-image.png"; ?> " width="330" height="250" alt="" /> <?php } ?> <?php } ?> </a> </div> <div class="content_right">
?> <img src="<?php echo templ_thumbimage_filter(get_post_meta($post->ID, 'file_name', true), 165, 180); ?> " width="165" height="180" alt="" /> <?php } else { ?> <img src="<?php echo get_template_directory_uri() . "/images/no-image.png"; ?> " width="165" height="180" alt="" /> <?php } } else { display_deal_image($post->ID, '165', '180'); } ?> </div> <div class="product_right with_img"> <?php $our_price = get_post_meta($post->ID, 'our_price', true); $current_price = get_post_meta($post->ID, 'current_price', true); $sellsql = "select count(*) from {$transection_db_table_name} where post_id=" . $post->ID . " and status=1"; $sellsqlinfo = $wpdb->get_var($sellsql); $totdiff = $current_price - $our_price; $percent = $totdiff * 100; if ($percent > 0) { $percentsave = $percent / $current_price; }
?> ,<?php echo $total_deals_obj->ID; ?> )"> <?php if (get_post_meta($total_deals_obj->ID, 'file_name', true) != "") { ?> <img src="<?php echo templ_thumbimage_filter($destination_path . get_post_meta($total_deals_obj->ID, 'file_name', true), 165, 180); ?> " width="165" height="180" alt="" /> <?php } else { if (is_super_admin($UID)) { echo display_deal_image($total_deals_obj->ID, 'thumbnail'); } else { ?> <img src="<?php echo get_template_directory_uri() . "/images/no-image.png"; ?> " width="165" height="180" alt="" /> <?php } ?> <?php } ?> </a> <div class="mp_deal_price">
" width="168" height="180" alt="<?php $_SESSION['filename']; ?> " /> <?php } ?> <input type="hidden" value="<?php echo $_SESSION['deal_image']; ?> " name="dealsession_image"/> <?php } else { if (get_post_meta($edit_deal->ID, 'file_name', true) != '') { if (is_super_admin($edit_deal->post_author)) { echo display_deal_image($edit_deal->ID, 'thumbnail'); } else { ?> <img src="<?php echo templ_thumbimage_filter($destination_path . get_post_meta($edit_deal->ID, 'file_name', true), 168, 180); ?> " width="168" height="180" alt="<?php $edit_deal->post_title; ?> " /> <?php } } else { ?> <img src="<?php echo get_template_directory_uri() . "/images/no-image2.png";