Hi Guys , i use sahara theme. i tried using the provided codes but it is not working. see the coding for my search-list.php
<div class="catalogi"><h4><?php _e("Special Ads", 'sahara'); ?></h4></div>
<div class="product-pages">
<?php while ( osc_has_premiums() ) { ?>
                    <div class="list-product premi">
                         <div class="product-kiri">
<div class="label-premium hidden-vera-up"><?php _e("Special", 'sahara'); ?><b></b></div>
                                <div class="ribbon ribbon-green">
                                <div class="banner">
                                    <div class="text"><?php _e("Special", 'sahara'); ?></div>
                                </div></div>
                               <?php if( osc_count_premium_resources() ) { ?> 
                                      <a class="arve" href="<?php echo osc_premium_url() ; ?>"><img class="gambars" src="<?php echo osc_resource_thumbnail_url() ; ?>" alt="<?php echo osc_esc_html(osc_premium_title()) ; ?>" title="<?php echo osc_esc_html(osc_premium_title()) ; ?>"></a>
                                <?php } else { ?> 
                                      <a href="<?php echo osc_premium_url() ; ?>"><img class="gambars" src="<?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?>" alt="<?php echo osc_esc_html(osc_premium_title()) ; ?>" title="<?php echo osc_esc_html(osc_premium_title()) ; ?>"/></a>
                                <?php } ?>
                          </div>
                          <div class="product-tengah">
                              
                              <h3 class="judul"><a href="<?php echo osc_premium_url() ; ?>"><?php echo osc_premium_title(); ?> </a></h3>
                              <?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled(osc_premium_category_id()) ) { ?>
                             <div class="pricemini pricolor hidden-xs-up" style="color:#2F4F4F">
		              <?php echo osc_format_price(osc_premium_price(), osc_premium_currency_symbol()); ?>
	                     </div>   
                            <?php } ?>
                              <div class="kontens"><p><?php echo osc_highlight( strip_tags( osc_premium_description() ) ); ?></p></div>
                              <div class="loc"><?php if(osc_premium_city()!='' ) { ?><span class="lokas"><strong><i class="fa fa-map-marker" style="color:red"></i></strong>
                              <?php echo osc_premium_city(); ?></span>
                              <?php } ?>
                              <?php if(osc_premium_region()!='' ) { ?>·
                              <span class="lokas2"><?php echo osc_premium_region(); ?></span>
                              <?php } ?> <span class="catt"><strong><i class="fa fa-book" style="color:brown"></i></strong> <?php echo osc_premium_category($locale = ""); ?></span> <span class="datt"><strong><i class="fa fa-calendar" style="color:orange"></i></strong> <?php echo osc_format_date(osc_premium_pub_date()); ?></span></div>
<?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled(osc_premium_category_id()) ) { ?>
<div class="tags price-wrap  hidden-xs-down">
		<span class="tag-head"><p class="post-price"><?php echo osc_format_price(osc_premium_price(), osc_premium_currency_symbol()); ?></p></span>
	</div>
 <?php } ?>
                         </div>
                    </div>
              <?php } ?>
<?php } ?></div>
<div class="catalog"><h4 style="margin-top:10px;color: #2F4F4F !important;font-weight: bold !important;text-align: center;font-size: 1em;border-bottom: 1px solid #ddd;"><?php _e("Latest Ads", 'sahara'); ?></h4></div>
<div class="product-pages">
<?php  $adSense_middle_pos = ceil(osc_count_items()/2);
while ( osc_has_items() ) { ?>
                      <div class="<?php osc_run_hook("highlight_class"); ?> list-product news reguler">
                      <div class="product-kiri">
<?php if( osc_item_is_premium() ) { ?>
<div class="label-premium  hidden-vera-up"><?php _e("Special", 'sahara'); ?><b></b></div>
<?php } ?>
                           <?php if( osc_item_is_premium() ) { ?> <div class="ribbon ribbon-green">
                                <div class="banner">
                                    <div class="text"><?php echo osc_esc_html(__('Special','sahara')); ?></div>
                                </div></div><?php } ?>
                           <?php if( osc_images_enabled_at_items() ) { ?>
                           <?php if(osc_count_item_resources()) { ?>
                               <a class="arve" href="<?php echo osc_item_url(); ?>"><img class="gambars" src="<?php echo osc_resource_thumbnail_url(); ?>" alt="<?php echo osc_esc_html(osc_item_title()) ; ?>" title="<?php echo osc_esc_html(osc_item_title()) ; ?>"></a>
                          <?php } else { ?> 
                                <a href="<?php echo osc_item_url(); ?>"><img class="gambars" src="<?php echo osc_current_web_theme_url('images/no_photo.gif') ; ?>" alt="<?php echo osc_esc_html(osc_item_title()) ; ?>" title="<?php echo osc_esc_html(osc_item_title()) ; ?>"/></a>
                          <?php } ?>
                          <?php } ?>
                     </div>
                     <div class="product-tengah">
                            <h3 class="judul"><a alt="<?php echo osc_esc_html(osc_item_title()) ; ?>" title="<?php echo osc_esc_html(osc_item_title()) ; ?>" href="<?php echo osc_item_url(); ?>"><?php echo osc_item_title(); ?></a></h3>
                            <?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled() ) { ?>
                            <div class="pricemini pricolor hidden-xs-up" style="color:#2F4F4F;">
		              <?php echo osc_format_price(osc_item_price()); ?>
	                     </div>   
	                     <?php } ?>
                            <div class="kontens"><p><?php echo osc_highlight( strip_tags( osc_item_description() ) ); ?></p></div>
                            <div class="loc"><?php if(osc_item_city()!='' ) { ?><span class="lokas"><strong><i class="fa fa-map-marker" style="color:red"></i></strong>
                            <?php echo osc_item_city(); ?></span>
                            <?php } ?>
                            <?php if(osc_item_region()!='' ) { ?>·
                            <span class="lokas2"><?php echo osc_item_region(); ?></span>
                            <?php } ?> <span class="catt"><strong><i class="fa fa-book" style="color:brown"></i></strong> <?php echo osc_item_category($locale = ""); ?></span> <span class="datt"><strong><i class="fa fa-calendar" style="color:#FFFC42"></i></strong> <?php echo osc_format_date(osc_item_pub_date()); ?></span></div>
<?php if( osc_price_enabled_at_items() && osc_item_category_price_enabled() ) { ?>
 <div class="tags price-wrap  hidden-xs-down">
		<span class="tag-head"><p class="post-price"><?php echo osc_format_price(osc_item_price()); ?></p></span>
	</div>                           
<?php } ?>
                      </div>
                      </div>
            
            <?php if ($i+1 == $adSense_middle_pos) {
         //AdSense middle ?>
        <div class="list-product news reguler">
         // [Specific AdSense code here]
         </div>
<?php }