This repository has been archived on 2026-10-23. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
nikolark 969c63c752 New style wordpress
This enables automagic updates of WP

- Delete wordpress install
- Move theme(s) to top
- Move local plugins to ./plugins
- Simplify i18n
2017-07-05 01:03:17 +02:00

36 lines
1.1 KiB
PHP

<aside class="sidebar">
<?php if(is_page()): ?>
<nav class="page--sidebar--secondary-navigation secondary-navigation">
<h5><?php _e('Pages'); ?></h5>
<ul>
<?php wp_list_pages('title_li='); ?>
</ul>
</nav>
<?php endif; ?>
<div class="searchform-wrap">
<h5><?php _e('Search'); ?></h5>
<?php get_search_form(); ?>
</div>
<?php if(get_post_type() == 'association'):
$args = array(
'post_type' => 'association',
'posts_per_page' => 50,
'post__not_in' => array($post->ID),
'orderby' => 'title',
'order' => 'ASC');
$associations = new WP_Query( $args );
if( $associations->have_posts() ):
?>
<br><h5>Andre foreninger</h5>
<ul>
<?php
while( $associations->have_posts() ): $associations->the_post(); ?>
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li>
<?php endwhile; ?>
</ul>
<?php
endif;
endif; ?>
<?php dynamic_sidebar('Sidebar'); ?>
</aside>