Advertisement:

Author Topic: Add car attribute to search-list.php page  (Read 1571 times)

worrier89

  • Newbie
  • *
  • Posts: 5
Add car attribute to search-list.php page
« on: June 19, 2015, 11:38:31 pm »
I need to show few car attributes in the search page results.

By adding below code I can get the data. but Its only show in first result not repeating with other results.
Code: [Select]
<?php osc_run_hook('item_detail_listing'osc_item()); ?>.

Full code

Code: [Select]
<?php
            
while(osc_has_items()) {

                
$admin false;
                if(
View::newInstance()->_exists("listAdmin")){
                    
$admin true;
                }
?>

  <?php $size explode('x'osc_thumbnail_dimensions()); ?>
  <li class="listings_list listing-card<?php if(osc_item_is_premium()){ echo ' premium'; } ?>">
    <div class="list_space"> <span class="ribbon"> <i class="fa fa-star"></i> </span>
      <div class="row">
        <div class="col-sm-4 col-md-4">
          <figure>
            <?php if( osc_images_enabled_at_items() ) { ?>
            <?php if(osc_count_item_resources()) { ?>
            <a class="listing-thumb" href="<?php echo osc_item_url() ; ?>" title="<?php echo osc_esc_html(osc_item_title()) ; ?>"><img src="<?php echo osc_resource_thumbnail_url(); ?>" title="" alt="<?php echo osc_esc_html(osc_item_title()) ; ?>" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>" class="img-responsive"></a>
            <?php } else { ?>
            <a class="listing-thumb" href="<?php echo osc_item_url() ; ?>" title="<?php echo osc_esc_html(osc_item_title()) ; ?>"><img src="<?php echo osc_current_web_theme_url('images/no_photo.gif'); ?>" title="" alt="<?php echo osc_esc_html(osc_item_title()) ; ?>" width="<?php echo $size[0]; ?>" height="<?php echo $size[1]; ?>" class="img-responsive"></a>
            <?php ?>
            <?php ?>
          </figure>
        </div>
        <div class="col-sm-8 col-md-8">
          <div class="info">
            <div class="detail_info">
              <h4><a href="<?php echo osc_item_url() ; ?>" title="<?php echo osc_esc_html(osc_item_title()) ; ?>"><?php echo osc_item_title() ; ?></a></h4>

              <div class="attribute_list"> <span class="category"><i class="fa fa-<?php echo osclasswizards_category_iconosc_item_category_id() ); ?>"></i> <?php echo osc_item_category() ; ?></span> <span class="location"><i class="fa fa-map-marker"></i> <?php echo osc_item_city(); ?>
                <?php if( osc_item_region()!='' ) { ?>
                (<?php echo osc_item_region(); ?>)
                <?php ?>
                </span> <span class="date"> <i class="fa fa-clock-o"></i> <?php echo osc_format_date(osc_item_pub_date()); ?> </span>
                <?php if( osc_price_enabled_at_items() ) { ?>
                <span class="currency-value"> <?php echo osc_format_price(osc_item_price()); ?></span>
                <?php ?>
              </div>


                <?php osc_run_hook('item_detail_listing'osc_item()); ?>


              <p><?php echo osc_highlightosc_item_description() ,150) ; ?></p>
              <?php if($admin){ ?>
              <span class="admin-options"> <a href="<?php echo osc_item_edit_url(); ?>" rel="nofollow">
              <?php _e('Edit item''osclasswizards'); ?>
              </a> <span>|</span> <a class="delete" onclick="javascript:return confirm('<?php echo osc_esc_js(__('This action can not be undone. Are you sure you want to continue?''osclasswizards')); ?>')" href="<?php echo osc_item_delete_url();?>" >
              <?php _e('Delete''osclasswizards'); ?>
              </a>
              <?php if(osc_item_is_inactive()) {?>
              <span>|</span> <a href="<?php echo osc_item_activate_url();?>" >
              <?php _e('Activate''osclasswizards'); ?>
              </a>
              <?php ?>
              </span>
              <?php ?>
            </div>
          </div>
        </div>
      </div>
    </div>
  </li>
  <?php
        
}
?>

help me please...!

Osclass Wizards

  • Sr. Member
  • ****
  • Posts: 254
  • We love Osclass
Re: Add car attribute to search-list.php page
« Reply #1 on: June 20, 2015, 12:43:04 pm »
For any kind of theme related bugs you can report here

http://forums.osclass.org/themes/osclasswizards-free-responsive-bootstrap-theme/