* the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, but * WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public * License along with this program. If not, see <http://www.gnu.org/licenses/>. */ // meta tag robots osc_add_hook('header', 'bender_follow_construct'); bender_add_body_class('home'); $buttonClass = ''; $listClass = ''; if (bender_show_as() == 'gallery') { $listClass = 'listing-grid'; $buttonClass = 'active'; } osc_current_web_theme_path('header.php'); ?> <div class="clear"></div> <div class="latest_ads"> <h1><strong><?php _e('Latest Listings', 'bender'); ?> </strong></h1> <?php if (osc_count_latest_items() == 0) { ?> <div class="clear"></div>
break; } } } else { search_ads_listing_top_fn(); while (osc_has_items()) { $i++; $class = false; if ($i % 4 == 0) { $class = 'last'; } $admin = false; if (View::newInstance()->_exists("listAdmin")) { $admin = true; } bender_draw_item($class, $admin); if (bender_show_as() == 'gallery') { if ($i % 8 == 0) { osc_run_hook('search_ads_listing_medium'); } } else { if (bender_show_as() == 'list') { if ($i % 6 == 0) { osc_run_hook('search_ads_listing_medium'); } } } } } ?> </ul>