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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
<div id="primary" class="sidebar">
<ul class="xoxo">
<?php if ( get_requested_file() == "vis" ) : load_posts('type=events&id=' . $_GET['ID'] ); foreach ($posts as $post) : ?>
<?php $counter = 1; ?>
<li id="info-<?php echo($post->id) ?>" class="widget info">
<h3>Info</h3>
<ul>
<?php if ( isset($post->date) ) {?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Tid:</div><div class="definition"><?php echo(date("j. M Y G:i",strtotime($post->date))) ?></div></li>
<?php } ?>
<?php if ( isset($post->place) ) { ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Sted:</div><div class="definition"><a href="lokaler.php?lokale=<?php echo($post->place); ?>"><?php echo($post->place); ?></a> (<a href="http://maps.google.com/maps?q=studentersamfundet+i+oslo&hl=no">Kart</a>)</div></li>
<?php } ?>
<?php if ( isset($post->regular_price) ) { ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Pris:</div><div class="definition"><?php echo($post->regular_price); ?>,-</div></li>
<?php } ?>
<?php if ( isset($post->member_price) ) { ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Medlem:</div><div class="definition"><?php echo($post->member_price); ?>,-</div></li>
<?php } ?>
<?php if ( isset($post->ticket_url) && strcmp($post->ticket_url,"") != 0 && strcmp($post->ticket_url,"http://") != 0 ) { ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Billetter</div><div class="definition"><a href="<?php echo($post->ticket_url); ?>"><img class="ticket-link" src="<?php bloginfo('image-root'); ?>/bilder/logo_billettservice2.gif" /></a></div></li>
<?php } ?>
<?php if ( isset($post->facebook_url) && strcmp($post->facebook_url,"") != 0 ) { ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Facebook</div><div class="definition"><a href="<?php echo($post->facebook); ?>"><img class="facebook-link" src="<?phpbloginfo('image-root'); ?>/bilder/facebook_prog.jpg" /></a></div></li>
<?php } ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term"><img id="calendar-link" src="<?php bloginfo('image-root'); ?>/bilder/calendar.gif" alt="Kalender" /></div><div class="definition"><a href="vcal.php?id=<?php echo $_GET['ID'];?>">Importer til min kalender (vcal-fil)</a></div></li>
<?php if ( isset($post->division) ) { ?>
<li class="<?php if( $counter++%2 == 0 ) echo(" alt"); ?>"><div class="term">Arrangør:</div><div class="definition"><a href="foreninger.php?id=<?php echo($post->division_id); ?>"><?php echo($post->division); ?></a></div></li>
<?php } ?>
</ul>
</li>
<li id="internal-ad-sidebar-insert" class="widget internal-ad">
<ul>
<li>
<a class="fancybox" href="<?php bloginfo('url'); ?>/stillinger.php?forening=<?php echo($post->division_nicename); ?>">Bli aktiv i <br /><?php echo($post->division); ?></a>
</li>
</ul>
</li>
<?php endforeach; endif;?>
<?php /*
<li class="widget">
<?php random_gig(); ?>
</li>
*/ ?>
<li class="widget events">
<h3>Arrangementer</h3>
<ul>
<?php load_posts('type=events&posts_per_page=4&sort=random'); foreach($posts as $post) : ?>
<li class="event">
<a href="<?php bloginfo('url'); ?>/vis.php?ID=<?php echo($post->id); ?>">
<?php if ( $post->attachments && strcmp($post->attachments[0]['picture'],"") != 0 ) : ?>
<img src="<?php bloginfo('image-root'); ?>/imageResize.php?pic=bilder/program/<?php echo($post->attachments[0]['picture']); ?>&maxwidth=300&maxheight=143&crop=1" alt="" />
<?php else : ?>
<img src="<?php bloginfo('image-root'); ?>/imageResize.php?pic=bilder/placeholder.png&maxwidth=300&maxheight=143&crop=1" alt="" />
<?php endif; ?>
</a>
<h4><a href="<?php bloginfo('url'); ?>/vis.php?ID=<?php echo($post->id); ?>"><?php echo($post->title) ?></a></h4>
</li>
<?php endforeach; ?>
</ul>
</li>
<li class="widget news">
<h3>Nyheter</h3>
<ul>
<?php load_posts('posts_per_page=4'); foreach($posts as $post) : ?>
<li class="article">
<a href="<?php bloginfo('url'); ?>/nyhet.php?ID=<?php echo($post->id); ?>">
<?php if ( $post->attachments && strcmp($post->attachments[0]['picture'],"") != 0 ) : ?>
<img src="<?php bloginfo('image-root'); ?>/imageResize.php?pic=bilder/nyheter/<?php echo($post->attachments[0]['picture']); ?>&maxwidth=282&maxheight=143&crop=1" alt="" />
<?php else : ?>
<img src="<?php bloginfo('image-root'); ?>/imageResize.php?pic=bilder/placeholder.png&maxwidth=282&maxheight=143&crop=1" alt="" />
<?php endif; ?>
</a>
<h4><a href="<?php bloginfo('url'); ?>/nyhet.php?ID=<?php echo($post->id); ?>"><?php echo($post->title) ?></a></h4>
</li>
<?php endforeach; ?>
</ul>
</li>
<!--li class="widget">
<h3>Sidebar element</h3>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
<li class="widget">
<h3>Sidebar element</h3>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li-->
</ul>
</div> <!-- #primary.sidebar -->
<?php /*
<div id="secondary" class="sidebar">
<ul class="xoxo">
<li id="aabningstider" class="widget">
<h3>Åpningstider</h3>
<ul>
<li>
<table>
<tr>
<td>Mandag - fredag</td>
<td>13 - 03</td>
</tr>
<tr>
<td>Lørdag</td>
<td>16 - 03</td>
</tr>
</table>
</li>
<li>Kjøkkenet er åpent til 19.</li>
</ul>
</li>
<li id="grisebanner" class="widget">
<ul>
<li><a href="http://studentersamfundet.no/hmgrisen/"><img src="http://studentersamfundet.no/bilder/bannere/grisebanner.png" alt="Hans Majestet Grisen fyller 150 år!" /></a></li>
</ul>
</li>
<!--li>
<h3>Sidebar element</h3>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li>
<li>
<h3>Sidebar element</h3>
<ul>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
</ul>
</li-->
</ul>
</div> <!-- #secondary.sidebar -->
*/ ?>
|