2019-03-11 17:31:32 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Template Name: Profile
|
|
|
|
*
|
|
|
|
* 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">
|
|
|
|
|
2019-03-14 12:59:28 +00:00
|
|
|
<article class="entry user-profile">
|
2019-03-11 22:09:37 +00:00
|
|
|
<div class="entry-content">
|
2019-03-11 17:31:32 +00:00
|
|
|
|
2019-03-11 22:09:37 +00:00
|
|
|
<?php
|
2020-02-18 11:28:23 +00:00
|
|
|
$curauth = ( get_query_var('author_name') ) ? get_user_by( 'slug', get_query_var( 'author_name' ) ) : get_userdata( get_query_var( 'author' ) );
|
2019-03-11 22:09:37 +00:00
|
|
|
$userid = $curauth->ID;
|
|
|
|
?>
|
2019-03-11 17:31:32 +00:00
|
|
|
|
2019-03-11 22:09:37 +00:00
|
|
|
<?php set_query_var( 'userid', $userid ); ?>
|
2019-03-12 13:36:03 +00:00
|
|
|
<?php get_template_part( 'template-parts/content/content', 'user' ); ?>
|
2019-03-11 22:09:37 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</article>
|
2019-03-11 17:31:32 +00:00
|
|
|
</main><!-- #main -->
|
|
|
|
</section><!-- #primary -->
|
|
|
|
|
|
|
|
<?php
|
2019-03-14 12:33:15 +00:00
|
|
|
get_footer();
|