-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauthor.php
111 lines (87 loc) · 2.54 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<?php
/**
* The template for displaying Author pages.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package Listify
*/
// Only use this template if we have custom data to load.
if ( ! listify_has_integration( 'wp-job-manager' ) ) {
return locate_template( array( 'archive.php' ), true );
}
$sidebar_args = array(
'before_widget' => '<aside class="widget widget--author widget--author-sidebar">',
'after_widget' => '</aside>',
'before_title' => '<h3 class="widget-title widget-title--author widget--author-sidebar %s">',
'after_title' => '</h3>',
);
get_header(); ?>
<div <?php echo apply_filters( 'listify_cover', 'page-cover' ); ?>>
<div class="author-title page-title cover-wrapper">
<div class="author-name">
<?php echo get_avatar( get_queried_object_id(), 150 ); ?>
<h1><?php echo esc_attr( get_queried_object()->data->display_name ); ?></h1>
</div>
<p class="author-meta">
<?php do_action( 'listify_author_meta' ); ?>
</p>
</div>
</div>
<div id="primary" class="container">
<div class="row content-area">
<main id="main" class="site-main col-md-8 col-sm-7 col-xs-12" role="main">
<?php if ( ! dynamic_sidebar( 'widget-area-author-main' ) ) : ?>
<?php
the_widget(
'Listify_Widget_Author_Biography',
array(
'title' => 'Biography',
'icon' => 'ion-person'
),
$sidebar_args
);
the_widget(
'Listify_Widget_Author_Listings',
array(),
wp_parse_args(
array(
'before_widget' => '<aside class="widget widget--author widget--author-main listify_widget_author_listings">' ),
$sidebar_args
)
);
the_widget(
'Listify_Widget_Author_Bookmarks',
array(),
wp_parse_args(
array(
'before_widget' => '<aside class="widget widget--author widget--author-main listify_widget_author_bookmarks">' ),
$sidebar_args
)
);
?>
<?php endif; ?>
</main>
<div id="secondary" class="widget-area col-md-4 col-sm-5 col-xs-12" role="complementary">
<?php if ( ! dynamic_sidebar( 'widget-area-author-sidebar' ) ) : ?>
<?php
the_widget(
'WP_Widget_Recent_Posts',
array(
'title' => 'Recent Posts'
),
$sidebar_args
);
the_widget(
'Listify_Widget_Listing_Social_Profiles',
array(
'title' => 'Social Profiles'
),
$sidebar_args
);
?>
<?php endif; ?>
</div><!-- #secondary -->
</div>
</div>
<?php get_footer(); ?>