-
Notifications
You must be signed in to change notification settings - Fork 6
/
template-imagegallery.php
63 lines (45 loc) · 1.89 KB
/
template-imagegallery.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/**
* Template Name: Image Gallery
*
* The image gallery page template displays a styled
* image grid of a maximum of 60 posts with images attached.
*
* @package WooFramework
* @subpackage Template
*/
get_header();
?>
<!-- #content Starts -->
<?php woo_content_before(); ?>
<div id="content" class="row">
<div id="main-sidebar-container">
<!-- #main Starts -->
<?php woo_main_before(); ?>
<div id="main">
<?php woo_loop_before(); ?>
<!-- Post Starts -->
<?php woo_post_before(); ?>
<div class="post">
<?php woo_post_inside_before(); ?>
<h1 class="title"><?php the_title(); ?></h1>
<div class="entry">
<?php $saved = $wp_query; query_posts( 'showposts=60' ); ?>
<?php if ( have_posts() ) { while ( have_posts() ) { the_post(); ?>
<?php $wp_query->is_home = false; ?>
<?php woo_get_image( 'image', 100, 100, 'thumbnail alignleft' ); ?>
<?php } } $wp_query = $saved; ?>
<div class="fix"></div>
</div>
<?php woo_post_inside_after(); ?>
</div><!-- /.post -->
<?php woo_post_after(); ?>
<div class="fix"></div>
</div><!-- /#main -->
<?php woo_main_after(); ?>
<?php get_sidebar(); ?>
</div><!-- /#main-sidebar-container -->
<?php get_sidebar( 'alt' ); ?>
</div><!-- /#content -->
<?php woo_content_after(); ?>
<?php get_footer(); ?>