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-11 22:09:37 +00:00
|
|
|
<article class="entry">
|
|
|
|
<div class="entry-content">
|
2019-03-11 17:31:32 +00:00
|
|
|
|
2019-03-11 22:09:37 +00:00
|
|
|
<?php
|
|
|
|
$curauth = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
|
|
|
|
$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
|
|
|
|
get_footer();
|