1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
<?php include("header.php"); ?>
<div id="content" class="single">
<?php load_posts( 'type=news&id=' . $_GET['ID'] ); if($posts) : foreach ($posts as $post) : ?>
<div class="hentry">
<h1 class="entry-title"><?php echo $post->title; ?></h1>
<div class="entry-meta byline"><span class="meta-prep meta-prep-author">Av </span><span class="author vcard"><?php echo($post->author); ?></span><span class="meta-sep meta-sep-entry-date"> | </span><span class="meta-prep meta-prep-entry-date">Publisert: </span><span class="entry-date"><?php echo($post->date); ?></span></div>
<?php if ( $post->attachments ) { ?>
<div class="vedlegg">
<?php foreach ($post->attachments as $attachment) { ?>
<div class="nyhetsbilde">
<?php if ($attachment['picture']) { ?>
<a href="<?php bloginfo('image-root'); ?>/imageResize.php?pic=bilder/nyheter/<?php echo($attachment['picture']); ?>&maxwidth=950" rel="lightbox"><img class="nyhet" src="<?php bloginfo('image-root'); ?>/imageResize.php?pic=bilder/nyheter/<?php echo($attachment['picture']); ?>&maxwidth=300" alt="" /></a>
<?php } if ($attachment['caption']) { ?>
<div class="caption"><?php echo($attachment['caption']); ?></div>
<?php } ?>
</div> <!-- .nyhetsbilde -->
<?php } ?>
</div> <!-- .vedlegg -->
<?php } ?>
<div class="entry-content"><?php echo($post->text); ?></div> <!-- .entry-content -->
<?php display_social_sharing_buttons(); ?>
<div id="facebook-comments">
<fb:comments> </fb:comments>
</div> <!-- #facebook-comments -->
</div> <!-- .hentry -->
<?php endforeach; endif; ?>
<?php include("tips.php"); ?>
<?php mysql_free_result($nyhet); ?>
<?php include("sidebar.php"); ?>
</div> <!-- #content -->
<?php include("footer.php"); ?>
|