Archived
Artist template
This commit is contained in:
1 parent
ac284ce932
commit
b1447755df
4 files changed
+11
-4
No files matched your search
@@ -616,6 +616,8 @@ article .article-footer { text-align: right; margin-bottom: 2em; }
|
||||
.row { /* FIXME: responsive */ width: 1000px; max-width: 1000px; }
|
||||
|
||||
/* Template styles */
|
||||
.template-artists img { display: block; }
|
||||
.template-artists .artists { font-size: 1.5em; text-transform: uppercase; text-align: center; font-weight: bold; }
|
||||
.template-artists .artists .artist-box a { color: #007aff; }
|
||||
.template-artists .artists .artist-box a:hover { color: white; background-color: #ff005c; }
|
||||
.template-artists .artists .artist-box a:hover { color: white; }
|
||||
.template-artists .artists .artist-box a:hover span { display: block; background-color: #ff005c; }
|
||||
@@ -441,6 +441,9 @@ article {
|
||||
}
|
||||
/* Template styles */
|
||||
.template-artists {
|
||||
img {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.artists {
|
||||
font-size: 1.5em;
|
||||
@@ -452,7 +455,10 @@ article {
|
||||
color: $primary-color;
|
||||
&:hover {
|
||||
color: white;
|
||||
background-color: $secondary-color;
|
||||
span {
|
||||
display: block;
|
||||
background-color: $secondary-color;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -5,4 +5,3 @@ Description: Tema for Studiofestivalen 2013
|
||||
Author: Jenny Jordahl, Nikolai Kristiansen & Jon Arne Berg
|
||||
Author URI: http://kak.neuf.no
|
||||
Version: 1.0
|
||||
Tags: flexble-width, translation-ready, microformats, rtl-language-support
|
||||
@@ -21,7 +21,7 @@ Template Name: Artists page
|
||||
/* Print our custom post type */
|
||||
$query = new WP_Query( array ( 'post_type' => 'artist', 'orderby' => 'title', 'order' => 'asc') );
|
||||
while ( $query->have_posts() ):
|
||||
$query->the_post(); ?><li class="artist-box"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('artist-thumb'); the_title(); ?></a></li><?php endwhile;
|
||||
$query->the_post(); ?><li class="artist-box"><a href="<?php the_permalink();?>"><?php the_post_thumbnail('artist-thumb');?><span><?php the_title(); ?></span></a></li><?php endwhile;
|
||||
wp_reset_postdata();?>
|
||||
</ul>
|
||||
</section> <!-- end article section -->
|
||||
|
||||
Reference in new issue
Block a user