From 43e1124901aa5f4e72b5a423ad0b40370a867ea7 Mon Sep 17 00:00:00 2001 From: Sjur Hernes Date: Tue, 3 Jul 2012 03:33:59 +0200 Subject: [PATCH] stylechanges --- wp-content/plugins/neuf-events/dagev.php | 90 +++++++++++++----------- wp-content/themes/studio12/style.css | 83 ++++++++++++++++------ 2 files changed, 112 insertions(+), 61 deletions(-) diff --git a/wp-content/plugins/neuf-events/dagev.php b/wp-content/plugins/neuf-events/dagev.php index 8df8a6b..4d20cbd 100755 --- a/wp-content/plugins/neuf-events/dagev.php +++ b/wp-content/plugins/neuf-events/dagev.php @@ -243,6 +243,11 @@ if (!class_exists("NeufEvents")) { function neuf_events_program() { global $post, $wp_locale; + $deys = array('MANDAG 13.08.2012', 'TIRSDAG 14.08.2012', 'ONSDAG 15.08.2012', + 'TORSDAG 16.08.2012', 'FREDAG 17.08.2012', 'LØRDAG 18.08.2012', 'SØNDAG 19.08.2012', + 'MANDAG 20.08.2012', 'TIRSDAG 21.08.2012', 'ONSDAG 22.08.2012', + 'TORSDAG 23.08.2012', 'FREDAG 24.08.2012', 'LØRDAG 25.08.2012', 'SØNDAG 16.08.2012'); + $events = new WP_Query( array( 'post_type' => 'event', 'posts_per_page' => -1, @@ -252,51 +257,54 @@ if (!class_exists("NeufEvents")) { ) ); $html = ''; - + $html .= '
'; $html .= '
'; - - if ( $events->have_posts() ) : - $date = ""; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '
  • '; + $html .= '

    '; - $html .= ''; - - while ( $events->have_posts() ) : - $events->the_post(); - - $time = get_post_meta( $post->ID, 'neuf_events_starttime', true) ; - if (date("Y", $time) == date("Y", time())) { - - $venue = get_post_meta( $post->ID, 'neuf_events_venue', true ); - $type = get_post_meta( $post->ID, 'neuf_events_type', true); - $artist = get_post_meta( $post->ID, 'neuf_events_artist', true) ; + if ( $events->have_posts() ) { + $date = 13; + $bol = true; + $html .= '
    '; + while ( $events->have_posts() ) : + $events->the_post(); - $html .= ' '; - $html .= ' '; - $html .= ' '; - $html .= ' '; - $html .= ' '; - $html .= ' '; - } - endwhile; - - $html .= '
    ' . date("d/m H:i", $time) . '' . get_the_title() . '' . $type . '' . get_the_title($venue) . '
    '; - endif; + $time = get_post_meta( $post->ID, 'neuf_events_starttime', true) ; + if (date("Y", $time) == date("Y", time()) && (!isset($_POST['date']) || $_POST['date'] == date("d", $time))) { + $venue = get_post_meta( $post->ID, 'neuf_events_venue', true ); + $type = get_post_meta( $post->ID, 'neuf_events_type', true); + $artist = get_post_meta( $post->ID, 'neuf_events_artist', true) ; + if(!isset($_POST['date']) && $date == intval(date("d", $time))){ + $html .= ' '.$deys[$date - 13].''; $date++; + } + if(isset($_POST['date']) && $bol){ + $html .= ' '.$deys[intval($_POST['date']) - 13].''; + $bol = false; + } + $html .= ' '; + $html .= ' ' . get_the_title() . ''; + $html .= ' ' . date("H:i", $time) . ''; + $html .= ' ' . get_the_title($venue) . ''; + $html .= ' '; + } + endwhile; + + $html .= ''; + } return $html; diff --git a/wp-content/themes/studio12/style.css b/wp-content/themes/studio12/style.css index dace9ab..e9ef77e 100644 --- a/wp-content/themes/studio12/style.css +++ b/wp-content/themes/studio12/style.css @@ -73,9 +73,17 @@ body { font-family: 'Lobster', cursive; font-size: 1.5em; padding: 0 1em 0 1em; + -moz-transition: all 0.5s ease-in; + -webkit-transition: all 0.5s ease-in; + -o-transition: all 0.5s ease-in; + transition: all 0.5s ease-in; } .menu-item a:hover { background-color: #f57ec5; + -moz-transition: all 0.5s ease-in; + -webkit-transition: all 0.5s ease-in; + -o-transition: all 0.5s ease-in; + transition: all 0.5s ease-in; } article { @@ -299,7 +307,7 @@ input#saveForm:hover { background-color: #f57ec5; } #frivilligknapp { - width: 240px; + width: 240px; } #blimed_tilbake_ok p { @@ -310,7 +318,6 @@ input#saveForm:hover { font-weight: bold; } - #blimed_tilbake_fail p { background-color: red; text-align: center; @@ -324,47 +331,83 @@ input#saveForm:hover { } .event-table { + font-family: 'Oswald', arial; border-spacing: 0; border-width: 0; } - +.eventnewday { + font-family: 'Oswald', arial; + font-size: 1.6em; +} .tr_event{ - height: 3em; + font-size: 0.9em; + font-weight: bold; + height: 2em; + -moz-transition: all 1s ease-in; + -webkit-transition: all 1s ease-in; + -o-transition: all 1s ease-in; + transition: all 1s ease-in; +} +.tr_event:hover { + background-color: #CCC; + -moz-transition: all 0.5s ease-in; + -webkit-transition: all 0.5s ease-in; + -o-transition: all 0.5s ease-in; + transition: all 0.5s ease-in; } .tr_event td { cursor: pointer; - padding: 0.8em; } -tbody .Quiz, tbody .Klubb, tbody .Konkurranse { /* Lysest grønn */ +tbody .Quiz, +tbody .Klubb, +tbody .Konkurranse { /* Lysest grønn */ color: #237640; - } -tbody .Quiz:hover, tbody .Klubb:hover, tbody .Konkurranse:hover { background-color: #a4dd9c; } /* lys grønn */ tbody .Konsert { /* Lysest rosa */ color: #a11277; } -tbody .Konsert:hover { background-color: #f57ec5; } /* Lys rosa */ -tbody .Annet, tbody .Stand-up { /* Lysest lilla */ +tbody .Annet, +tbody .Stand-up { /* Lysest lilla */ color: #3a2c7b; - } -tbody .Annet:hover, tbody Stand-up:hover { background-color: #b6a4c9; } /* lys lilla */ -tbody .Foredrag, tbody .Lyntale { /* lysest Blå */ + +tbody .Foredrag, +tbody .Lyntale { /* lysest Blå */ color: #33a39e; - } -tbody .Foredrag:hover, tbody .Lyntale:hover { background-color: #ade3d4; } /* lys blå */ + + #programNavbar { - margin-left: -2.5em; - height: 4em; + list-style: none; + margin-left: -2em; + height: 6.5em; } .programNavbarTab { - font-family: Oswald, sans-serif; - font-weight: bold; + width: 4.3em; float: left; margin-right: 0.5em; list-style-position: inside; } -.dateColor { color: #33a39e; } \ No newline at end of file +.dateColor { color: #33a39e; } +button{ + border: none; + font-family: Oswald, sans-serif; + font-weight: bold; + background: none; + margin-top: 3px; + border: 3px solid transparent; + -moz-transition: all 0.5s ease-in; + -webkit-transition: all 0.5s ease-in; + -o-transition: all 0.5s ease-in; + transition: all 0.5s ease-in; +} +button:hover { + cursor: pointer; + border: 3px solid #33a39e;; + -moz-transition: all 0.5s ease-in; + -webkit-transition: all 0.5s ease-in; + -o-transition: all 0.5s ease-in; + transition: all 0.5s ease-in; +} \ No newline at end of file