<div id="left">

<ul class="widgets">

<?php
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Venstre') ) {
    print 
'<li id="pages" class="widget sf_theme_widget_pages">';
    print 
str_replace('class="box"','class="nobox"',sf_theme_box_top());
    
sf_theme_widget_pages(array());
    print 
sf_theme_box_bottom();
    print 
'</li>';
    print 
'<li id="text-1" class="widget widget_text">'.sf_theme_box_top('Widgets');
    print 
'Her burde der være nogle <a href="'.SFIT_WIKI.'WordPressHj%C3%A6lp/Administration/SidebarWidgets">Widgets</a>';
  if ( !
function_exists('dynamic_sidebar') )
      print 
', men det kræver installation og aktivering af "Sidebar Widgets"';
    else
      print 
', men det kræver at de bliver konfigureret';
    print 
'.'.sf_theme_box_bottom().'</li>';
}
?>

<li>
<div class="nobox">
    <a class="feedicon" href="<?php print get_feed_link('rdf'); ?>" title="Feed fra <? bloginfo('name'); ?>"><img src="<?php print get_template_directory_uri(); ?>/images/feed-icon-48x76.png" alt="Feed"/></a>
    <ul class="feedlist">
      <li><a href="<?php print get_feed_link('rdf'); ?>" title="<? bloginfo('name'); ?> Feed (indlæg)"><img src="<?php print get_template_directory_uri(); ?>/images/feed-icon-12x12.png" alt="Feed"/></a> <a href="<?php print get_feed_link('rdf'); ?>" title="<? bloginfo('name'); ?> Feed (indlæg)">Feed (indlæg)</a></li>
      <li><a href="<?php print get_feed_link('comments_rdf'); ?>" title="<? bloginfo('name'); ?> Feed (kommentarer)"><img src="<?php print get_template_directory_uri(); ?>/images/feed-icon-12x12.png" alt="Feed"/></a> <a href="<?php print get_feed_link('comments_rdf'); ?>" title="<? bloginfo('name'); ?> Feed (kommentarer)">Feed (kommentarer)</a></li>
      <li><a style="margin-left: 12px; padding-left: 0.4em" href="http://sf.dk/default.aspx?func=article.view&id=29007">Læs om RSS hos SF</a></li>
    </ul>
</div>
</li>

</ul>

</div><!-- /left -->

<?php
global $wp;
$post $posts[0];
if (!(
is_page() && 'bred.php'==get_post_meta($post->ID'_wp_page_template'true))) {
?>

<div id="sidebar">

    <?php
      
print '<!-- '.($wp->authorize?'':'!').'auth/'.($wp->authorized?'':'!').'authd/'.$post->ID.'/'.join(',',sf_theme_protected_pages()).' -->';
      if(
$wp->authorize && !$wp->authorized) {
        print 
"\n<!-- \n";
        
print_r($_SERVER);
        print 
"\n.htaccess efter RewriteBase: RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]\n";
        print 
"-->";
      }
    
?>

<ul class="widgets">

        <?php if (is_author() && get_settings('sf_forfatter_profil') && ''!=sf_theme_the_address($post->post_author)) { ?>
        <li class="widget widget_meta">
        <?php
        
print sf_theme_box_top('Adresse','');
        print 
sf_theme_the_address($post->post_author);
        print 
sf_theme_box_bottom();
        
?>
        </li>
        <?php ?>
        
        <?php if($wp->authorize && $wp->authorized) { ?>
        <li class="widget widget_text">
        <?php print sf_theme_box_top('Medlemmer',''); ?>
        <div><p>Bemærk at denne side kun kan ses af medlemmer der kender det rigtige brugernavn og adgangskoden.</p></div>
        <?php print sf_theme_box_bottom(); ?>
        </li>
        <?php ?>
        
        <?php if(&& is_single()) { ?>

        <li>
            <?php print sf_theme_box_top('','widget widget_meta'); ?>
                <h2>&nbsp;</h2>
                <div>
                        This entry was posted
                        <?php /* This is commented, because it requires a little adjusting sometimes.
                            You'll need to download this plugin, and follow the instructions:
                            http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
                            /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ 
?> 
                        on <?php the_time('l, F jS, Y'?> at <?php the_time() ?>
                        and is filed under <?php the_category(', '?>.
                        You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed. 
                        
                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                            
// Both Comments and Pings are open ?>
                            You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(true); ?>" rel="trackback">trackback</a> from your own site.
                        
                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                            
// Only Pings are Open ?>
                            Responses are currently closed, but you can <a href="<?php trackback_url(true); ?> " rel="trackback">trackback</a> from your own site.
                        
                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                            
// Comments are open, Pings are not ?>
                            You can skip to the end and leave a response. Pinging is currently not allowed.
            
                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                            
// Neither Comments, nor Pings are open ?>
                            Both comments and pings are currently closed.            
                        
                        <?php ?>
                </div>
            <?php print sf_theme_box_bottom(); ?>
        </li>

        <?php ?>

<?php
    
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('Højre') ) {
        print 
'<li id="text-2" class="widget widget_text">'.sf_theme_box_top('widgets');
        print 
'Her burde der også være nogle <a href="'.SFIT_WIKI.'WordPressHj%C3%A6lp/Administration/SidebarWidgets">Widgets</a>.';
        print 
sf_theme_box_bottom().'</li>';
    }
?>

</ul>

</div><!-- /sidebar -->

<?php ?>