Пример #1
0
                            <?php 
    }
    ?>
                            <?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">
                                
Пример #2
0
<?php

/**
 * Classified Theme Premium Ads Section
 *
 * @package Osclass
 * @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;
Пример #3
0
 *                        Copyright (C) 2012 OSCLASS
 *
 *       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 
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;
}
Пример #5
0
    <div class="item stamp  stamp-alert">
        <?php 
        require WebThemes::newInstance()->getCurrentThemePath() . 'inc.alert.form.php';
        ?>
    </div>
    <?php 
    }
    ?>
    <?php 
}
?>
    <?php 
// get premium ads
if (!osc_is_list_items() && !osc_is_public_profile()) {
    $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($class, false, true);
        }
    }
}
$i = 0;
if ($type == 'latestItems') {
    while (osc_has_latest_items()) {
        pop_draw_item($class);
        $i++;
    }
} elseif ($type == 'premiums') {
    while (osc_has_premiums()) {
        pop_draw_item($class, false, true);
Пример #6
0
 *
 *      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', 'osclasswizards_follow_construct');
osclasswizards_add_body_class('home');
if (osclasswizards_show_as() == 'gallery') {
    $loop_template = 'loop-grid.php';
    $listClass = 'listing-grid';
} else {
    $loop_template = 'loop-list.php';
    $listClass = '';
}
osc_current_web_theme_path('header.php');
osc_get_premiums(osclasswizards_premium_listings_shown_home());
if (osc_count_premiums() > 0) {
    ?>

<h1 class="title">
  <?php 
    _e('Premium Listings', OSCLASSWIZARDS_THEME_FOLDER);
    ?>
</h1>
<div id="listing-card-list" class="listing-card-list listings_grid listings_grids">
  <ul class="row premium_slider">
    <?php 
    $listcount = 1;
    while (osc_has_premiums()) {
        ?>
    <?php 
Пример #7
0
$size = explode('x', osc_thumbnail_dimensions());
?>
	<!--<section id="slider"><!--slider-->
		<!--<div class="container">
			<div class="row">-->
				<div class="col-sm-12" style="padding:0px;">
					<div id="slider-carousel" class="carousel slide" data-ride="carousel">
						<ol class="carousel-indicators">
							<li data-target="#slider-carousel" data-slide-to="0" class="active"></li>
							<li data-target="#slider-carousel" data-slide-to="1"></li>
							<li data-target="#slider-carousel" data-slide-to="2"></li>
						</ol>
						
						<div class="carousel-inner" role="listbox">						
						<?php 
osc_get_premiums(10);
?>
						<?php 
$first = true;
?>
						<?php 
while (osc_has_premiums()) {
    ?>

							<div class="item <?php 
    if ($first == true) {
        echo 'active';
        $first = false;
    }
    ?>
">
Пример #8
0
if (osc_count_items() == 0) {
    ?>
                <div id="content">
                	<p class="empty"><?php 
    printf(__('There are no results matching "%s"', 'flatter'), osc_search_pattern());
    ?>
</p>
                </div>
                <?php 
} else {
    ?>
                <div id="content premium">
                
                <?php 
    $i = 0;
    osc_get_premiums('3');
    if (osc_count_premiums() > 0) {
        //echo '<h5>'.__('Premium listings','flatter').'</h5>';
        View::newInstance()->_exportVariableToView("listType", 'premiums');
        View::newInstance()->_exportVariableToView("listClass", $listClass . ' premium-list');
        osc_current_web_theme_path('loop.php');
    }
    ?>
                </div>
                <div id="content">
                 <?php 
    if (osc_count_items() > 0) {
        //echo '<h5>'.__('Listings','flatter').'</h5>';
        View::newInstance()->_exportVariableToView("listType", 'items');
        View::newInstance()->_exportVariableToView("listClass", $listClass);
        osc_current_web_theme_path('loop.php');