29 lines
612 B
PHP
29 lines
612 B
PHP
<?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">
|
|
|
|
<?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;
|
|
?>
|
|
|
|
<?php set_query_var( 'userid', $userid ); ?>
|
|
<?php get_template_part( 'partials/content', 'user' ); ?>
|
|
|
|
</main><!-- #main -->
|
|
</section><!-- #primary -->
|
|
|
|
<?php
|
|
get_footer();
|