-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathauthor.php
39 lines (32 loc) · 1.08 KB
/
author.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
<?php
$list_type = get_theme_option('list_type');
if ($list_type == 'title_taxonomy' && !taxonomy_exists('object_type')) {
$list_type = 'title';
}
$labels = get_theme_option('suggested_labels');
$authorInfo = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author));
get_header();
?>
<section id="main-section" class="span-15 prepend-1 append-1">
<header>
<h1><?php echo $authorInfo->display_name;?></h1>
</header>
<?php do_action('consulta_user_profile', array($authorInfo)); ?>
<h4><?php echo $labels['list_user_page']; ?></h4>
<section class="tema">
<ul>
<?php
if ($list_type == 'title') {
html::part('loop-single-list-title');
} else if ($list_type == 'title_taxonomy') {
html::part('loop-single-list-title-taxonomy');
} else {
html::part('loop-single-list-normal');
}
?>
</ul>
</section>
</section>
<!-- #main-section -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>