+ initial commit
[sfa:tema.git] / category.php
1 <?php
2 /**
3  * @package sfa
4  * @subpackage sfa_Theme
5  */
6
7 // the current category id
8 $current_cat_id = $GLOBALS['cat'];
9
10
11 get_header();
12 ?>
13
14
15         <?php if ( $current_cat_id != get_cat_id('Tema') ) { ?>
16     
17         <div id="section-featured">
18                 <ul class="condensed-articles">
19                         
20                         <?php
21                         // list short version of the articles in this cat
22                         if (have_posts()) :
23                                 sfa_list_condensed_articles($current_cat_id); // more in function.php
24                         else :
25                                 echo '<li>Ingen innlegg funnet.</li>';
26                         endif;
27                         ?>
28             
29             </ul> <!-- condensed-articles -->
30         </div> <!-- end section-featured -->
31     
32         <?php } ?> 
33      
34     
35     <div class="article layoutSidebar">
36         <div class="line">
37           <div class="unit size2of3">    
38             <div id="section-main">
39               <!-- center column content goes here -->
40               
41               
42                                 <?php if ( $current_cat_id == get_cat_id('Tema') ) { ?>
43                 
44                     <div class="line">
45                     <div class="unit size4of5">
46                         <h1>Temaoversikt:</h1>
47                         <div class="shortintro">
48                                 <ul>
49                                         <?php wp_list_categories('title_li=&child_of=4&orderby=id&depth=1&hide_empty=0&style=none'); ?>
50                             </ul>
51                         </div>
52                     </div>
53                     </div>
54                 
55                 <?php } else { ?> 
56               
57               
58               <!-- plugins/samarbeid-postrank -->
59                 <?php if (function_exists('bvt_sfa_postfeed')) bvt_sfa_postfeed(); ?>
60                 
61                 <?php } ?>
62
63             </div>
64             <div id="section-main-bottom">
65               <!-- plugins go here -->
66             </div>
67           </div>        
68           <div class="unit size1of3 lastUnit">
69             <div id="section-contextual">            
70               <!-- sidebar content goes here -->
71               
72               <!-- Temabeskrivelse -->
73               <?php temabeskrivelse($current_cat_id); // send in cat-id (integer) ?>
74             
75               <div class="mod">
76                 <div class="inner">
77                   <a href="<?php echo get_option('home'); ?>/gi-innspill#gode-eksempler" class="btn btn-green goto"><span>Gi oss innspill og eksempler</span></a>
78                 </div>
79               </div>      
80             
81               <!-- Debattinnlegg -->
82               <?php debattinnlegg($current_cat_id); // send in cat-id (integer) ?>
83               
84               
85             </div>
86           </div>        
87         </div>      
88       </div>  
89     
90 <?php get_footer(); ?>