-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
71 lines (58 loc) · 1.7 KB
/
index.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
64
65
66
67
68
69
70
71
<?php
/**
* The main template file
*
*/
$page_templates = new LL_Page_Templates();
$page_title = get_theme_mod('ll_label_search_results');
$page_super_title = __('Search');
get_header();?>
<?php $page_templates->show_header_no_h1($page_title, $page_super_title);?>
<div class="ll-page-content container">
<section class="ll-sidebar">
<?php get_template_part( 'template-parts/document-sidebar' );?>
</section>
<section class="ll-content">
<?php get_template_part( 'template-parts/document-search-form' );?>
<?php
// Start the loop.
while ( have_posts() ) :
the_post();
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<header class="entry-header">
<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
</header><!-- .entry-header -->
<div class="post-excerpt">
<?php the_excerpt(); ?>
</div><!-- .<?php echo $class; ?> -->
<footer class="entry-footer">
<?php
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
__( 'Edit<span class="screen-reader-text"> "%s"</span>' ),
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php
endwhile;
// Previous/next page navigation.
the_posts_pagination(
array(
'prev_text' => __( 'Previous page' ),
'next_text' => __( 'Next page' ),
'before_page_number' => '<span class="meta-nav screen-reader-text">' . __( 'Page' ) . ' </span>',
)
);
?>
</section>
</div>
<?php get_template_part( 'template-parts/section-howtostart' );?>
<?php
get_footer();