Archived
Blogg og nyheter og div
This commit is contained in:
1 parent
fb0baa7f92
commit
164d71bb3b
7 files changed
+57
-15
No files matched your search
@@ -5,8 +5,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="small-6 columns">
|
<div class="small-6 columns">
|
||||||
<header class="article-header">
|
<header class="article-header">
|
||||||
<h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
|
<h4 class="no-margin"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h4>
|
||||||
<p class="byline vcard"><time class="updated" datetime="<?php echo get_the_time('Y-m-j'); ?>" pubdate><?php echo get_the_time(get_option('date_format'));?></time> av <span class="author"><?php the_author(); ?></span></p>
|
<p class="byline vcard"><time class="updated" datetime="<?php echo get_the_time('Y-m-j'); ?>" pubdate><?php echo get_the_time(get_option('date_format'));?></time> av <span class="author"><?php the_author(); ?></span></p>
|
||||||
</header> <!-- end article header -->
|
</header> <!-- end article header -->
|
||||||
<section class="entry-content">
|
<section class="entry-content">
|
||||||
<?php the_excerpt(); ?>
|
<?php the_excerpt(); ?>
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ header.header .nav-menu a:hover { z-index: 2; background-color: #ff8200; }
|
|||||||
.highlight a.primary, .highlight body a.button.button-primary, body .highlight a.button.button-primary { color: white; background-color: #ff8200; }
|
.highlight a.primary, .highlight body a.button.button-primary, body .highlight a.button.button-primary { color: white; background-color: #ff8200; }
|
||||||
.highlight a.primary:hover, .highlight body a.button.button-primary:hover, body .highlight a.button.button-primary:hover { color: white; background-color: #007aff; }
|
.highlight a.primary:hover, .highlight body a.button.button-primary:hover, body .highlight a.button.button-primary:hover { color: white; background-color: #007aff; }
|
||||||
.highlight a span { display: inline-block; padding-top: 30px; }
|
.highlight a span { display: inline-block; padding-top: 30px; }
|
||||||
.highlight a span.larger { padding-top: 62px; font-size: 1.6em; }
|
.highlight a span.larger { padding-top: 70px; font-size: 1.4em; }
|
||||||
.highlight a .number { font-size: 3em; }
|
.highlight a .number { font-size: 3em; }
|
||||||
|
|
||||||
.separator { height: 2px; background-color: #ff8200; margin: 2em 0; }
|
.separator { height: 2px; background-color: #ff8200; margin: 2em 0; }
|
||||||
@@ -672,7 +672,7 @@ article .byline a:hover { color: #007aff; }
|
|||||||
article .entry-content { font-size: 0.9em; }
|
article .entry-content { font-size: 0.9em; }
|
||||||
article .article-footer { text-align: right; }
|
article .article-footer { text-align: right; }
|
||||||
|
|
||||||
.search article .article-header h4, .search article .article-header h1, .post-type-archive article .article-header h4, .post-type-archive article .article-header h1, .home article .article-header h4, .home article .article-header h1 { line-height: 1.1; margin-bottom: 0; }
|
h4.no-margin, .home article .article-header h1 { line-height: 1.1; margin-bottom: 0; }
|
||||||
|
|
||||||
.moretag { font-weight: bold; }
|
.moretag { font-weight: bold; }
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
<a href="/frivillig" class="hover fri-villig" title="Bli Frivillig"><span></span></a>
|
<a href="/frivillig" class="hover fri-villig" title="Bli Frivillig"><span></span></a>
|
||||||
</div>
|
</div>
|
||||||
<div class="highlight small-4 columns">
|
<div class="highlight small-4 columns">
|
||||||
<a href="/billetter" class="primary"><span class="larger">Kjøp billett</span></a>
|
<a href="/program" class="primary"><span class="larger">Hvem spiller?</span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|||||||
@@ -304,8 +304,8 @@ header.header {
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
padding-top: 30px;
|
padding-top: 30px;
|
||||||
&.larger {
|
&.larger {
|
||||||
padding-top: 62px;
|
padding-top: 70px;
|
||||||
font-size: 1.6em;
|
font-size: 1.4em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.number {
|
.number {
|
||||||
@@ -365,11 +365,7 @@ article {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.search article .article-header h4,
|
h4.no-margin,
|
||||||
.search article .article-header h1,
|
|
||||||
.post-type-archive article .article-header h4,
|
|
||||||
.post-type-archive article .article-header h1,
|
|
||||||
.home article .article-header h4,
|
|
||||||
.home article .article-header h1 {
|
.home article .article-header h1 {
|
||||||
line-height: 1.1;
|
line-height: 1.1;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
|
|||||||
@@ -19,10 +19,18 @@ Template Name: Artists page
|
|||||||
<?php the_content(); ?>
|
<?php the_content(); ?>
|
||||||
<ul class="artists headliners small-block-grid-4">
|
<ul class="artists headliners small-block-grid-4">
|
||||||
<?php
|
<?php
|
||||||
/* Print our custom post type */
|
/* Print our artists */
|
||||||
$query = new WP_Query( array ( 'post_type' => 'artist', 'orderby' => 'title', 'order' => 'asc') );
|
$query = new WP_Query( array(
|
||||||
|
'post_type' => 'artist',
|
||||||
|
'orderby' => 'title',
|
||||||
|
'order' => 'asc') );
|
||||||
while ( $query->have_posts() ):
|
while ( $query->have_posts() ):
|
||||||
$query->the_post(); ?><li class="artist-box"><a href="<?php the_permalink();?>" class="colored primary"><?php the_post_thumbnail('artist-thumb');?><span><?php the_title(); ?></span></a></li><?php endwhile;
|
$query->the_post();
|
||||||
|
$artist_thumb = get_the_post_thumbnail($post->ID, 'artist-thumb');
|
||||||
|
if($artist_thumb == "") {
|
||||||
|
$artist_thumb = '<img src="http://placehold.it/228x191" />';
|
||||||
|
}
|
||||||
|
?><li class="artist-box"><a href="<?php the_permalink();?>" class="colored primary"><?php echo $artist_thumb;?><span><?php the_title(); ?></span></a></li><?php endwhile;
|
||||||
wp_reset_postdata();?>
|
wp_reset_postdata();?>
|
||||||
</ul>
|
</ul>
|
||||||
</section> <!-- end article section -->
|
</section> <!-- end article section -->
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
Template Name: Alle poster i kategorien blogg
|
||||||
|
*/
|
||||||
|
$query = new WP_Query("category_name=blogg");
|
||||||
|
?>
|
||||||
|
<?php get_header(); ?>
|
||||||
|
<div id="content">
|
||||||
|
<div id="inner-content" class="row">
|
||||||
|
<div id="main" role="main" class="small-8 columns">
|
||||||
|
<?php if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
|
||||||
|
<?php get_template_part( 'content' ); ?>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div> <!-- end #main -->
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
</div> <!-- end #inner-content -->
|
||||||
|
</div> <!-- end #content -->
|
||||||
|
<?php get_footer(); ?>
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
Template Name: Alle poster i kategorien nyheter
|
||||||
|
*/
|
||||||
|
$query = new WP_Query("category_name=nyheter");
|
||||||
|
?>
|
||||||
|
<?php get_header(); ?>
|
||||||
|
<div id="content">
|
||||||
|
<div id="inner-content" class="row">
|
||||||
|
<div id="main" role="main" class="small-8 columns">
|
||||||
|
<?php if ($query->have_posts()) : while ($query->have_posts()) : $query->the_post(); ?>
|
||||||
|
<?php get_template_part( 'content' ); ?>
|
||||||
|
<?php endwhile; ?>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div> <!-- end #main -->
|
||||||
|
<?php get_sidebar(); ?>
|
||||||
|
</div> <!-- end #inner-content -->
|
||||||
|
</div> <!-- end #content -->
|
||||||
|
<?php get_footer(); ?>
|
||||||
Reference in new issue
Block a user