Osclass forums
Support forums => Themes => Bender => Topic started by: itcafeonline on April 29, 2015, 11:45:04 pm
-
Bender - Homepage - Show only posts with Images (Only HOMEPAGE)
How to do this? Since the theme calls loop-grid and loop-list any changes into it will affect search results as well, Any pointers please?
-
here is what I have tried, but its not working. Pointers please...
1. Copied function osc_has_latest_items from hitems core file. to the theme functions file
2. Renamed to my_osc_has_latest_items
3. Set the $withPicture parameter to True
4. Changed osc_has_latest_items to my_osc_has_latest_items in main.php
-
Hi,
Restore everything and do this:
bender/main.php, find:
<h1><strong><?php _e('Latest Listings', 'bender') ; ?></strong></h1>
<?php if( osc_count_latest_items() == 0) { ?>
and replace it with:
<h1><strong><?php _e('Latest Listings', 'modern'); ?></strong></h1>
<?php $search = Search::newInstance();
View::newInstance()->_exportVariableToView('latestItems', $search->getLatestItems(osc_max_latest_items(), array(), true));
if( osc_count_latest_items() == 0) { ?>
Regards
-
Wow thanks so much teseo. Thanks again!