<?php 
        if (is_voting_enabled()) {
            ?>
              <div class="rate_me rate_me_star">
                <?php 
            osclasswizards_item_star_rating(osc_item_id());
            ?>
                <span><?php 
            echo osclasswizards_item_avg_rating(osc_item_id());
            ?>
</span> </div>
              <?php 
        }
        ?>
              <div class="attribute_list"> <span class="category"><i class="fa fa-<?php 
        echo osclasswizards_category_icon(osc_item_category_id());
        ?>
"></i><?php 
        echo osc_item_category();
        ?>
</span> <span class="location"><i class="fa fa-map-marker"></i> <?php 
        echo osc_item_city();
        ?>
                <?php 
        if (osc_item_region() != '') {
            ?>
                (<?php 
            echo osc_item_region();
            ?>
)
                <?php 
Ejemplo n.º 2
0
        ?>
            <span class="ribbon"> <i class="fa fa-star"></i> </span> </figure>
        </div>
        <div class="listing-attr">
          <h4><a href="<?php 
        echo osc_premium_url();
        ?>
" title="<?php 
        echo osc_esc_html(osc_premium_title());
        ?>
"><?php 
        echo osc_premium_title();
        ?>
</a></h4>
          <article> <span class="category"><i class="fa fa-<?php 
        echo osclasswizards_category_icon(osc_premium_category_id());
        ?>
"></i><?php 
        echo osc_premium_category();
        ?>
</span> <span class="location"><i class="fa fa-map-marker"></i><?php 
        echo osc_premium_city();
        ?>
            <?php 
        if (osc_premium_region() != '') {
            ?>
            (<?php 
            echo osc_premium_region();
            ?>
)
            <?php 
Ejemplo n.º 3
0
    function osclasswizards_draw_categories_list()
    {
        if (!osc_is_home_page()) {
            echo '<div class="resp-wrapper">';
        }
        ?>

<h1 class="title"><?php 
        _e('Categories', OSCLASSWIZARDS_THEME_FOLDER);
        ?>
</h1>
<div class="row">
<?php 
        $total_categories = osc_count_categories();
        $col1_max_cat = ceil($total_categories / 1);
        osc_goto_first_category();
        $catcount = 0;
        while (osc_has_categories()) {
            ?>
<ul class="col-sm-6 col-md-3 grid_list">
  <li>
    <section class="listings">
     <h2><i class="fa fa-<?php 
            echo osclasswizards_category_icon(osc_category_id());
            ?>
"></i>
      <?php 
            $_slug = osc_category_slug();
            $_url = osc_search_category_url();
            $_name = osc_category_name();
            $_total_items = osc_category_total_items();
            if (osc_count_subcategories() > 0) {
                ?>
      <?php 
            }
            ?>
      <?php 
            if ($_total_items > 0) {
                ?>
      <a class="category <?php 
                echo $_slug;
                ?>
" href="<?php 
                echo $_url;
                ?>
"><?php 
                echo $_name;
                ?>
</a> <span><?php 
                echo $_total_items;
                ?>
</span>
      <?php 
            } else {
                ?>
      <a class="category <?php 
                echo $_slug;
                ?>
" href="#"><?php 
                echo $_name;
                ?>
</a> <span><?php 
                echo $_total_items;
                ?>
</span>
      <?php 
            }
            ?>
    </h2>
    <?php 
            if (osc_count_subcategories() > 0) {
                $m = 1;
                ?>
    <ul>
      <?php 
                while (osc_has_subcategories()) {
                    if ($m <= osc_get_preference('sub_cat_limit', 'osclasswizards_theme')) {
                        ?>
      <li>
        <?php 
                        if (osc_category_total_items() > 0) {
                            ?>
        <a class="category sub-category <?php 
                            echo osc_category_slug();
                            ?>
" href="<?php 
                            echo osc_search_category_url();
                            ?>
"><?php 
                            echo osc_category_name();
                            ?>
</a> <span>(<?php 
                            echo osc_category_total_items();
                            ?>
)</span>
        <?php 
                        } else {
                            ?>
        <a class="category sub-category <?php 
                            echo osc_category_slug();
                            ?>
" href="#"><?php 
                            echo osc_category_name();
                            ?>
</a> <span>(<?php 
                            echo osc_category_total_items();
                            ?>
)</span>
        <?php 
                        }
                        ?>
      </li>
      <?php 
                    }
                    $m++;
                }
                if ($m > osc_get_preference('sub_cat_limit', 'osclasswizards_theme') + 1) {
                    ?>
      <li class="last"><a href="<?php 
                    echo $_url;
                    ?>
"><strong><?php 
                    _e('See more listings...', OSCLASSWIZARDS_THEME_FOLDER);
                    ?>
</strong></a></li>
      <?php 
                }
                ?>
    </ul>
    <?php 
            }
            ?>
    </section>
  </li>
</ul>
<?php 
            $catcount++;
            if ($catcount % 4 == 0) {
                echo '</div><div class="row">';
            }
        }
        ?>
 </div>
<?php 
    }
Ejemplo n.º 4
0
            ?>
<input type="text" class="xlarge" name="cat-icons[<?php 
            echo $cc['pk_i_id'];
            ?>
]" value="<?php 
            echo osc_esc_html(osc_get_preference('cat-icons-' . $cc['pk_i_id'], 'osclasswizards_theme_cat_icons'));
            ?>
" cat-id="<?php 
            echo $cc['pk_i_id'];
            ?>
"  />
							&nbsp;&nbsp;&nbsp;<i id="icon-<?php 
            echo $cc['pk_i_id'];
            ?>
" class="fa fa-<?php 
            echo osclasswizards_category_icon($cc['pk_i_id']);
            ?>
"></i>
							</div>

						<?php 
        }
        ?>
					<?php 
    }
    ?>
				</div>			
		 <?php 
}
?>
		 </div>