Listings</h5></li>
                        </ul>

                        <ul style="border-bottom:1px solid #ededed;" class="list-inline">
                            <li><i style="color:#27beaf" class="fa fa-tags fa-1x"></i></li>
                            <li><h5>3019 Hot Deals</h5></li>
                        </ul>   
                        <dl class="dl-horizontal">
                            <dt><i style="color:#27beaf" class="fa fa-comment fa-1x fa-custom"></i></dt>
                            <dd id="hidden_list" style="margin-left:10px;" class="href_<?php 
    echo osc_item_category_id();
    ?>
 ">
                                <h6>
                                      <?php 
    $subcategory = get_parent_subcategories(osc_item_category_id());
    ?>
                                        <?php 
    $i = 0;
    ?>
                                        <?php 
    foreach ($subcategory as $sb) {
        ?>
                                                <?php 
        if ($i == 0) {
            echo "<a href=" . $sb['url'] . " style='color:#3a3b3b;'>" . $sb['name'] . "</a>";
        } else {
            echo "&nbsp;&nbsp;|&nbsp;&nbsp; <a href=" . $sb['url'] . " style='color:#3a3b3b;'>" . $sb['name'] . "</a>";
        }
        $i = $i + 1;
        ?>
$p_c = popular_category_start();
?>
<div id="popular-categories">
<div class="row">
    <input type="hidden" name="site_url" id="site_url" value="<?php 
echo osc_base_url();
?>
"/>
    <?php 
$sliced_array = array_slice($p_c, 0, 4);
?>
            <?php 
foreach ($sliced_array as $sa) {
    $top_item = select_top_item($sa['cat_id']);
    $category_id = $sa['cat_id'];
    $subcategory = get_parent_subcategories($category_id);
    if ($top_item == null || empty($top_item)) {
        $no_item = false;
        $category_name = get_category_name($sa['cat_id']);
        if (osc_is_web_user_logged_in()) {
            $item_url = osc_item_post_url();
            $img_title = "Click to add items.";
        } else {
            $item_url = osc_user_login_url();
            $img_title = "Login to add items";
        }
        $img_source = osc_current_web_theme_url('images/no-items.png');
        $total_listing = get_total_listing_by_parent($sa['cat_id']);
        $total_item_views = get_total_item_views($sa['cat_id']);
        if ($total_item_views == null || empty($total_item_view)) {
            $total_item_views = '0';