SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | /* | |
| 3 | Template Name: Subpages Thumbnail Page | |
| 4 | */ | |
| 5 | ?> | |
| 6 | ||
| 7 | <?php get_header(); ?> | |
| 8 | ||
| 9 | - | <div id="main-container-gallery"> |
| 9 | + | <div id="main-container-subpages"> |
| 10 | <div id="bottomclear"> </div> | |
| 11 | ||
| 12 | <div class="subpages"> | |
| 13 | <span style="display:none;"><?php the_ID(); ?></span> | |
| 14 | <?php $parent = $post->ID; ?> | |
| 15 | ||
| 16 | <?php | |
| 17 | query_posts('posts_per_page=8&post_type=page&post_parent='.$parent);
| |
| 18 | while (have_posts()) : the_post(); ?> | |
| 19 | ||
| 20 | <?php if ( has_post_thumbnail() ) { ?>
| |
| 21 | ||
| 22 | <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?> | |
| 23 | - | <div class="thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thin-detail'); ?></a></div>
|
| 23 | + | <div class="detailthumb-1"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thin-detail'); ?></a></div>
|
| 24 | ||
| 25 | <?php } ?> | |
| 26 | ||
| 27 | <?php if ( has_post_thumbnail() ) { ?>
| |
| 28 | ||
| 29 | <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?> | |
| 30 | - | <div class="thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('wide-detail'); ?></a></div>
|
| 30 | + | <div class="detailthumb-2"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('wide-detail'); ?></a></div>
|
| 31 | ||
| 32 | <?php } ?> | |
| 33 | ||
| 34 | ||
| 35 | ||
| 36 | <?php if ( has_post_thumbnail() ) { ?>
| |
| 37 | ||
| 38 | <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?> | |
| 39 | - | <div class="thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('wide-detail'); ?></a></div>
|
| 39 | + | <div class="detailthumb-3"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('wide-detail'); ?></a></div>
|
| 40 | ||
| 41 | <?php } ?> | |
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | <?php if ( has_post_thumbnail() ) { ?>
| |
| 46 | ||
| 47 | <?php $image_thumb = get_post_meta($post->ID, 'image-thumb', true); ?> | |
| 48 | - | <div class="thumbnail"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thin-detail'); ?></a></div>
|
| 48 | + | <div class="detailthumb-4"><a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('thin-detail'); ?></a></div>
|
| 49 | ||
| 50 | <?php } ?> | |
| 51 | ||
| 52 | <?php endwhile; ?> | |
| 53 | ||
| 54 | </div> | |
| 55 | ||
| 56 | <div id="bottomclear"> </div> | |
| 57 | </div> | |
| 58 | ||
| 59 | <?php get_footer(); ?> |