+ initial commit
[sfa:tema.git] / page.php
1 <?php
2 /**
3  * @package sfa
4  * @subpackage sfa-theme
5  */
6
7 get_header();
8
9 ?>
10       <div class="article layoutSidebar emptySidebar">
11         <div class="line">
12           <div class="unit size2of3">    
13             <div id="section-main">
14               <!-- center column content goes here -->
15               
16 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
17
18               <div class="line">
19                 <div class="unit size4of5">
20                   <h1><?php the_title(); ?></h1>
21                   <div class="resource-container">
22                     <?php $post_id = get_the_ID(); ?>
23                     <?php if ( get_post_meta($post_id, 'Video_Watch_ID', true) ) { ?>                  
24                         <?php $video_watch_id = get_post_meta($post_id, 'Video_Watch_ID', true); ?>
25                         <?php echo embed_video($video_watch_id, 'middel'); // 'liten', 'middel' eller 'stor' ?>                    
26                     <?php } ?>
27                   </div>
28                   <div class="text">
29                     <?php the_content(); ?>
30                   </div> 
31                 </div>
32                 <div class="unit size1of5 lastUnit">                  
33                   <ul class="share-on-social-media">
34                     <li><?php if (function_exists('tweetmeme')) echo tweetmeme(); ?></li>
35                     <li><?php if (function_exists('fbshare_manual')) echo fbshare_manual(); ?></li>
36                   </ul>
37                 </div>
38               </div>
39               
40             
41               
42               <?php if(function_exists('selfserv_sexy')) { selfserv_sexy(); } ?>
43               
44 <?php endwhile; endif; ?>              
45               
46             </div>
47             <div id="section-main-bottom">
48               <!-- plugins go here -->
49             </div>
50           </div>        
51           
52           
53           
54           <div class="unit size1of3 lastUnit">
55             <div id="section-contextual">            
56               <!-- sidebar stuff goes here -->
57             </div>
58           </div>        
59         </div>      
60       </div>
61
62 <?php get_footer(); ?>