forked from owncloud-archive/owncloud.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
32 lines (30 loc) · 1.06 KB
/
index.php
File metadata and controls
32 lines (30 loc) · 1.06 KB
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
<?php
get_header();
/// Work out page number
$page = get_query_var('paged');
if( is_blog() ){ ?>
<div class="page-header">
<h1><a href="<?php echo home_url( '/' ); ?>blog/">Development News</a><?php if( $page ){ echo ' <small>Page ' . $page . '</small>'; } ?></h1>
<form role="search" method="get" class="headersearch" id="searchform" action="<?php echo home_url( '/' ); ?>">
<input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
<input type="submit" id="searchsubmit" class="btn" value="Search" />
</form>
</div>
<div class="row">
<div class="span16">
<?php
}
// The Query
query_posts( array( 'posts_per_page' => get_option( 'posts_per_page' ), 'paged' => $page ) );
// The Loop
while ( have_posts() ) : the_post();
get_template_part( 'content', get_post_format() );
endwhile;
?>
</div>
</div>
<div class="blogpagination old"><?php echo next_posts_link('← Older blogs'); ?></div>
<div class="blogpagination new"><?php echo previous_posts_link('Newer blogs →'); ?></div>
<?php
get_footer();
?>