85 lines
No EOL
1.7 KiB
PHP
Executable file
85 lines
No EOL
1.7 KiB
PHP
Executable file
<?php
|
|
/**
|
|
* Template Name: Directory
|
|
*
|
|
* The template for displaying all profiles in a directory
|
|
*
|
|
* @subpackage wasmo
|
|
* @since 1.0.0
|
|
*/
|
|
|
|
get_header();
|
|
?>
|
|
|
|
<section id="primary" class="content-area">
|
|
<main id="main" class="site-main">
|
|
|
|
<?php
|
|
|
|
/* Start the Loop */
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
?>
|
|
|
|
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
|
|
<?php if ( ! twentynineteen_can_show_post_thumbnail() ) : ?>
|
|
<header class="entry-header">
|
|
<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
|
|
<?php
|
|
$paged = get_query_var( 'paged' );
|
|
if ( $paged ) {
|
|
?>
|
|
<span class="paged-page-number">Page <?php echo esc_html($paged)?></span>
|
|
<?php
|
|
}
|
|
?>
|
|
</header>
|
|
<?php endif; ?>
|
|
|
|
<?php get_template_part( 'template-parts/content/content', 'directory' ); ?>
|
|
|
|
<div class="entry-content">
|
|
<?php
|
|
the_content();
|
|
|
|
wp_link_pages(
|
|
array(
|
|
'before' => '<div class="page-links">' . __( 'Pages:', 'twentynineteen' ),
|
|
'after' => '</div>',
|
|
)
|
|
);
|
|
?>
|
|
</div><!-- .entry-content -->
|
|
|
|
<?php if ( get_edit_post_link() ) : ?>
|
|
<footer class="entry-footer">
|
|
<?php
|
|
edit_post_link(
|
|
sprintf(
|
|
wp_kses(
|
|
/* translators: %s: Name of current post. Only visible to screen readers */
|
|
__( 'Edit <span class="screen-reader-text">%s</span>', 'twentynineteen' ),
|
|
array(
|
|
'span' => array(
|
|
'class' => array(),
|
|
),
|
|
)
|
|
),
|
|
get_the_title()
|
|
),
|
|
'<span class="edit-link">',
|
|
'</span>'
|
|
);
|
|
?>
|
|
</footer><!-- .entry-footer -->
|
|
<?php endif; ?>
|
|
</article><!-- #post-<?php the_ID(); ?> -->
|
|
|
|
<?php
|
|
endwhile; // End of the loop.
|
|
?>
|
|
</main><!-- #main -->
|
|
</section><!-- #primary -->
|
|
|
|
<?php
|
|
get_footer();
|