} ?> <?php } ?> </div> </div> </div><!-- row --> </div> </div> <!-- Listing by Location --> </div><!-- Section 1 --> <div class="section"> <?php osc_get_premiums(osc_get_preference('premium_count', 'flatter_theme')); if (osc_count_premiums() >= 1) { ?> <div class="featuredlistings"> <div class="container"> <!--<div class="row"> <h3><i class="fa fa-fire"></i> <?php //_e('Premium Listings', 'flatter') ; ?> </h3> </div>--> <div class="row"> <div class="col-md-12"> <div id="fuListings" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <?php
* * This program is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License * as published by the Free Software Foundation, either version 3 of * 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/>. */ osc_get_premiums(); if (osc_count_premiums() > 0) { ?> <table border="0" cellspacing="0"> <tbody> <?php $class = "even"; ?> <?php while (osc_has_premiums()) { ?> <tr class="premium_<?php echo $class; ?> "> <?php if (osc_images_enabled_at_items()) {
function _pop_print_listing_card($aItems = null) { ob_end_flush(); ob_start(); if (Params::getParam('_page') == 'search' || Params::getParam('_page') == '') { // get premium ads $max = osc_get_preference('pop_max_premium', 'pop_theme'); osc_get_premiums($max); if (osc_count_premiums() > 0) { while (osc_has_premiums()) { pop_draw_item('', false, true); } } } if ($aItems !== null) { View::newInstance()->_exportVariableToView('items', $aItems); } while (osc_has_items()) { $admin = false; if (View::newInstance()->_exists("listAdmin")) { $admin = true; } pop_draw_item('', $admin); } $html = ob_get_contents(); ob_clean(); return $html; }
* @subpackage Classified */ ?> <?php osc_get_premiums('8'); ?> <div style="margin-top:10px;" class="carousel-reviews broun-block"> <div class="row"> <div id="carousel-reviews" class="carousel slide" data-ride="carousel"> <div class="carousel-inner"> <?php if (osc_count_premiums() != 0) { ?> <?php $i = 0; ?> <?php while (osc_has_premiums()) { ?> <?php $i = $i + 1; ?> <?php if (osc_count_premium_resources()) { $image = osc_resource_thumbnail_url(); } else { $image = osc_current_web_theme_url('images/no-image-available.png');
?> <p class="empty"><?php _e('No Latest Listings', 'nepcoders'); ?> </p> <?php } else { ?> <?php $no = "1"; ?> <?php $count = 1; ?> <?php $total_premiums = osc_count_premiums(); ?> <?php $max_latest = osc_max_latest_items(); ?> <?php $latest_list = $total_premiums + $max_latest; ?> <?php while (osc_has_latest_items($latest_list, array(), true) and $count != 13) { ?> <?php if (nc_osc_front_display_with_image()) { //ONLY DISPLAY ITEM WITH IMAGE