diff --git a/wp/wp-content/themes/dns2015/fp-articles.php b/wp/wp-content/themes/dns2015/fp-articles.php
index 7980b33f..bce989f3 100644
--- a/wp/wp-content/themes/dns2015/fp-articles.php
+++ b/wp/wp-content/themes/dns2015/fp-articles.php
@@ -2,7 +2,7 @@
>
diff --git a/wp/wp-content/themes/dns2015/fp-events.php b/wp/wp-content/themes/dns2015/fp-events.php
index 3410f67e..ab258fb0 100644
--- a/wp/wp-content/themes/dns2015/fp-events.php
+++ b/wp/wp-content/themes/dns2015/fp-events.php
@@ -10,11 +10,12 @@
$args = array(
'post_type' => 'event',
- 'meta_query' => array( $meta_query ),
- 'posts_per_page' => 12,
- 'orderby' => 'meta_value_num',
- 'meta_key' => '_neuf_events_starttime',
- 'order' => 'ASC'
+ 'meta_query' => array( $meta_query ),
+ 'posts_per_page' => 12,
+ 'orderby' => 'meta_value_num',
+ 'meta_key' => '_neuf_events_starttime',
+ 'order' => 'ASC',
+ 'ignore_sticky_posts' => 1
);
$fp_events = new WP_Query( $args );
diff --git a/wp/wp-content/themes/dns2015/page-templates/page-event-next.php b/wp/wp-content/themes/dns2015/page-templates/page-event-next.php
index ca149817..92bcf0d6 100644
--- a/wp/wp-content/themes/dns2015/page-templates/page-event-next.php
+++ b/wp/wp-content/themes/dns2015/page-templates/page-event-next.php
@@ -15,164 +15,181 @@
* Ref: http://codex.wordpress.org/Class_Reference/WP_Query#Custom_Field_Parameters
*/
$meta_query = array(
- 'key' => '_neuf_events_starttime',
- 'value' => date( 'U' , strtotime( '-30 minutes' ) ),
- 'compare' => '>',
- 'type' => 'numeric'
+ 'key' => '_neuf_events_starttime',
+ 'value' => date('U', strtotime('-30 minutes')),
+ 'compare' => '>',
+ 'type' => 'numeric'
);
$args = array(
- 'post_type' => 'event',
- 'meta_query' => array( $meta_query ),
- 'posts_per_page' => 1,
- 'orderby' => 'meta_value_num',
- 'meta_key' => '_neuf_events_starttime',
- 'order' => 'ASC'
+ 'post_type' => 'event',
+ 'meta_query' => array($meta_query),
+ 'posts_per_page' => 1,
+ 'orderby' => 'meta_value_num',
+ 'meta_key' => '_neuf_events_starttime',
+ 'order' => 'ASC',
+ 'ignore_sticky_posts' => 1
);
-$args['offset'] = get_query_var( 'page' ) - 1 >= 0 ? get_query_var( 'page' ) - 1 : 0;
+$args['offset'] = get_query_var('page') - 1 >= 0 ? get_query_var('page') - 1 : 0;
-$events = new WP_Query( $args );
+$events = new WP_Query($args);
-if ($events->have_posts() ) : while ( $events->have_posts() ) : $events->the_post();
+if ($events->have_posts()) : while ($events->have_posts()) : $events->the_post();
-$bg = wp_get_attachment_image_src( get_post_thumbnail_id() , 'extra-large' );
-$bg = $bg[0];
+ $bg = wp_get_attachment_image_src(get_post_thumbnail_id(), 'extra-large');
+ $bg = $bg[0];
-$event_array = get_the_terms( $post->ID , 'event_type' );
-$post->event_types = array();
-foreach ( $event_array as $event_type ) {
- $post->event_types[] = $event_type->name;
- $post->post_classes[] = 'event-type-' . $event_type->slug;
-}
-$post->event_types_comma = implode( ', ' , $post->event_types );
+ $event_array = get_the_terms($post->ID, 'event_type');
+ $post->event_types = array();
+ foreach ($event_array as $event_type) {
+ $post->event_types[] = $event_type->name;
+ $post->post_classes[] = 'event-type-' . $event_type->slug;
+ }
+ $post->event_types_comma = implode(', ', $post->event_types);
-?>
-
-
-
- Snart på Studentersamfundet
-
-
-
-
+ ol, ul {
+ list-style: none;
+ }
-
-
- event_types_comma ); ?>
-
-
-
-
neuf_events_venue; ?>
-
neuf_events_starttime) ) ); ?>
-
-
-
+ blockquote, q {
+ quotes: none;
+ }
+
+ blockquote:before, blockquote:after,
+ q:before, q:after {
+ content: '';
+ content: none;
+ }
+
+ table {
+ border-collapse: collapse;
+ border-spacing: 0;
+ }
+
+ /**
+ * styles
+ */
+ html, body, #event {
+ width: 100%;
+ height: 100%;
+ position: relative;
+ overflow: hidden;
+ }
+
+ #event {
+ width: 100%;
+ height: 100%;
+ background-size: cover;
+ background-image: url('');
+ background-position: center;
+ background-attachment: static;
+ color: white;
+ text-shadow: black 0 0 14px;
+ font-family: Arial, Helvetica, sans;
+ }
+
+ #title, #timeplace, #price {
+ position: absolute;
+ bottom: 0;
+ padding-bottom: 30px;
+ font-size: 32px;
+ }
+
+ #title {
+ width: 100%;
+ text-align: center;
+ }
+
+ #timeplace {
+ left: 30px;
+ }
+
+ #price {
+ right: 30px;
+ }
+
+ h1 {
+ max-width: 60%;
+ margin: auto;
+ font-size: 64px;
+ font-family: Arvo;
+ }
+
+
+
+
+
+
+
+ event_types_comma); ?>
+
+
+
+
neuf_events_venue; ?>
+
neuf_events_starttime))); ?>
+
+
+
-
-
+