<div class="related_ads">         
<h2><?php _e('Related Ads', 'next'); ?></h2>
	    <?php if( osc_count_items() == 0) { ?>
		 <p><?php _e('No Related Ads', 'next'); ?></p>
	    <?php } else { ?>

			<?php $class = "even"; ?>
			<?php while ( osc_has_items() ) { ?>
			 
			<div class="estate1">
                <div class="left1">
                    <a href="<?php echo osc_item_url() ; ?>"><?php if( osc_images_enabled_at_items() ) { ?>
                        <?php if( osc_count_item_resources() ) { ?>
                            <img src="<?php echo osc_resource_thumbnail_url() ; ?>" title="<?php echo osc_item_title(); ?>" alt="<?php echo osc_item_title(); ?>"/>
                        <?php } else { ?>
                            <img src="<?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?>" alt="" title=""/>
                        <?php } ?>
                    <?php } else { ?>
                        <img src="<?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?>" alt="" title=""/>
                    <?php } ?>
                    <?php if( osc_price_enabled_at_items() ) { ?><div class="price"><?php echo osc_item_formated_price() ; ?></div> <?php } ?>
                    </a>
                </div>
                <div class="right1">
                    <div class="title">
                        <h3><a href="<?php echo osc_item_url() ; ?>"><?php if(strlen(osc_item_title()) > 61){ echo mb_substr(osc_item_title(), 0, 60,'UTF-8').'...'; } else { echo osc_item_title(); } ?></a></h3> </div>
						<div class="list_des">
						<?php if(strlen(osc_item_description()) > 251){ echo mb_substr(osc_item_description(), 0, 250,'UTF-8').'...'; } else { echo osc_item_description(); } ?>
						</div>
						<div class="more" style="display:inline;">
					
                    <div class="city" style="float:left;display:inline;">&nbsp;&nbsp;<i class="fa fa-map-marker fa-lm2"></i>&nbsp;<?php echo osc_item_region();?></div>
                    <div class="data" style="float:right;"><i class="fa fa-clock-o fa-lm2"></i>&nbsp;<?php echo osc_format_date(osc_item_pub_date()); ?></div>
                        
 
					</div>
                </div>
            </div>       
			<?php $class = ($class == 'even') ? 'odd' : 'even' ; ?>
			<?php } ?>

		<?php } ?>
		</div>		
 <br />
