?> <? foreach($categories as $cat): ?> <?php if (intval($cat['parent_id']) > 0) { $cat['id'] = intval($cat['id']); if ($cat['id'] != 0) { // p($cat['id']); $params = array(); //$params['display']= 'games_list_single_item.php'; $params['selected_categories'] = array($cat['id']); $params['items_per_page'] = 6; $if_posts = get_posts($params); $count = count($if_posts); if (!empty($if_posts) and $count > 0) { ?> <h1>Newest games from <? print $cat['taxonomy_value'] ?></h1> <div class="top_games"> <? loop($if_posts, 'games_list_single_item.php', 'the_post') ; ?> <a class="mw_btn_s right" href="<? print get_category_url($cat['id']); ?>"><span>See all <? print get_category_items_count($cat['id']); ?> games</span></a> </div> <?php } } } ?> <? endforeach; ?>
} </script> <div id="voted-users-for-<? print ($post['id']); ?>"></div> </ul> <div class="c"> </div> <br /> <br /> <?php include "banner_wide.php"; ?> <br /> <br /> <? $category = get_category($active_category); ?> <h2>More games from <? print $category['taxonomy_value']; ?></h2> <div class="top_games top_games_read"> <? $params= array(); $params['display']= 'games_list_single_item.php'; $params['selected_categories'] = array($active_category); $params['items_per_page'] = 4; $params['curent_page'] = rand(1,3); get_posts($params); ?> <a href="<? print category_url($active_categories[1]); ?>" class="mw_btn_s right" ><span>See all <? print get_category_items_count($active_categories[1]); ?> games</span></a> </div> <microweber module="comments/default" post_id="<? print $post['id']; ?>"> </div> <!-- /#main_side -->