<div class="wrap"> <div id="main_content"> <div id="user_sidebar"> <h3 class="user_sidebar_title nomargin">Educatiuon Categories</h3> <? $categories = get_categories(); ?> <ul class="user_side_nav user_side_nav_nobg"> <? foreach($categories as $category): ?> <li><a href="<? print get_category_url($category['id']); ?>" class="<? is_active_category($category['id'],' active') ?>" ><? print $category['taxonomy_value'] ?></a> </li> <? endforeach; ?> </ul> <h3 class="user_sidebar_title">Questions and answers</h3> <ul class="user_side_nav user_side_nav_nobg"> <li><a href="#">Post question</a></li> <li><a href="#">Questions and answers</a></li> </ul> </div> <!-- /#user_sidebar --> <div id="main_side"> <? if(!empty($post)): ?> <? include(TEMPLATE_DIR.'education_inner.php') ; ?> <? else : ?> <h2>Education/Article</h2> <microweber module="posts/list" file="posts_list_wide" category="<? print $category['id'] ?>" limit="3">
function category_link($category_id) { return get_category_url($category_id); }
?> <? 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; ?>
?> <?php $articles = get_posts_from_category(CATEGORY_PRODUS, 4); $title = 'Produse noi'; $link = get_category_url(CATEGORY_PRODUS); $id = 'anvelope'; $first_article = true; include '_articles.php'; ?> <?php $articles = get_posts_from_category(CATEGORY_REDUCERI, 4); $title = 'Reduceri'; $link = get_category_url(CATEGORY_REDUCERI); $id = 'reduceri'; include '_articles.php'; ?> <?php $articles = get_posts_from_category(CATEGORY_BESTSELLERS, 4); $title = 'Cele mai vandute'; $link = get_category_url(CATEGORY_BESTSELLERS); $id = 'bestsellers'; include '_articles.php'; ?> <?php get_footer();