Advertisement:

Author Topic: changing format of latest listing  (Read 3511 times)

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
changing format of latest listing
« on: October 09, 2013, 09:45:03 pm »
right now it loops this
Quote
<ul class="listing-card-list <?php echo $listClass; ?>" id="listing-card-list">
        <?php
            $i = 0;
            while ( osc_has_latest_items() ) {
                $class = '';
                if($i%3 == 0){
                    $class = 'first';
                }
                bender_draw_item($class);
                $i++;
            }
        ?>
    </ul>

but I want to reorganize it and remove thumbnails...where is the file??

Hello

  • Full Member
  • ***
  • Posts: 174
Re: changing format of latest listing
« Reply #1 on: October 09, 2013, 09:52:36 pm »
yes pls i also want  pls expert reply

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: changing format of latest listing
« Reply #2 on: October 09, 2013, 10:08:08 pm »
Hi,

Look for the function bender_draw_item($class = false,$admin = false) inside functions.php

Regards

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: changing format of latest listing
« Reply #3 on: October 09, 2013, 10:55:08 pm »
thanks teseo  ;D --but it changes everywhere, so I just incorporated the modern. I wanted it in my sidebar, sort of like the masjobs.

between the sidebar/widget divs. style as you please.

Quote
    <div class="latest_ads">
      <h2>
        <?php _e('Latest Listings', 'bender'); ?>
      </h2>
      <?php if( osc_count_latest_items() == 0) { ?>
      <p class="empty">
        <?php _e('No recent jobs posted', 'bender'); ?>
      </p>
      <?php } else { ?>
      <?php $class = "even"; ?>
      <?php while ( osc_has_latest_items() ) { ?>
      <h3><a href="<?php echo osc_item_url(); ?>"><?php echo osc_item_title(); ?></a></h3>
      <p>
        <?php  echo osc_item_city(); ?>
        (<?php echo osc_item_region();?>) - <?php echo osc_format_date(osc_item_pub_date()); ?></p>
      <p><?php echo osc_highlight( strip_tags( osc_item_description() ) ,100); ?><a href="<?php echo osc_item_url(); ?>">&nbsp;&raquo;&nbsp;view offer</a></p>
      <hr>
      <?php $class = ($class == 'even') ? 'odd' : 'even'; ?>
      <?php } ?>
      <?php if( osc_count_latest_items() == osc_max_latest_items() ) { ?>
      <p class="see_more_link"><a href="<?php echo osc_search_show_all_url() ; ?>"> <strong>
        <?php _e('See all listings', 'bender') ; ?>
        &raquo;</strong></a> </p>
      <?php } ?>
      <?php View::newInstance()->_erase('items'); } ?>
    </div>

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: changing format of latest listing
« Reply #4 on: October 09, 2013, 11:04:16 pm »
Rarely you'll find some problem not having at least two solutions... :D

Anyway, in this case you could just clone the function bender_draw_item(), rename it to something like cust_bender_draw_latest_items() and make the changes you want. Of course you'd have to change accordingly the name of the function called in main.php

Reagrds

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: changing format of latest listing
« Reply #5 on: October 09, 2013, 11:48:08 pm »
ok..where would I make the changes? I'd rather keep the theme settings

would I just change in the css?

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: changing format of latest listing
« Reply #6 on: October 10, 2013, 12:22:36 am »
Well, if i'ts easier for you to work with styles instead of code (or code and styles :D), I think that trick with Modern code will do.

Regards

Hello

  • Full Member
  • ***
  • Posts: 174
Re: changing format of latest listing
« Reply #7 on: October 10, 2013, 03:31:29 pm »
whcih file pls help me

strata

  • Sr. Member
  • ****
  • Posts: 411
  • Always good, always...
Re: changing format of latest listing
« Reply #8 on: October 16, 2013, 04:57:21 am »
If you want to hide thumbnails only on specific page you can do it by css something like #mysidebar .listing-card .listing-thumb img{display:none;}

Hello

  • Full Member
  • ***
  • Posts: 174
Re: changing format of latest listing
« Reply #9 on: October 16, 2013, 12:22:06 pm »
i want somthing like this see the below image

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: changing format of latest listing
« Reply #10 on: October 16, 2013, 06:40:00 pm »
that would require a lot of re styling. is that for your page or the sidebar?

Hello

  • Full Member
  • ***
  • Posts: 174
Re: changing format of latest listing
« Reply #11 on: October 16, 2013, 10:17:11 pm »
can u make similar like this