-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathauthor.php
More file actions
49 lines (41 loc) · 1.21 KB
/
Copy pathauthor.php
File metadata and controls
49 lines (41 loc) · 1.21 KB
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
<?php
/**
* The template for displaying Author archive pages
* @package WordPress
* @subpackage Zoner_Theme
* @since Zoner Theme 1.0
*/
?>
<?php get_header(); ?>
<?php do_action('zoner_before_content'); ?>
<?php
global $zoner_config, $zoner_prefix;
$layout = 1;
$query_author = get_queried_object();
$query_user_id = $query_author->ID;
$curr_user_id = get_current_user_id();
if (!empty($zoner_config['pp-author-agents-layout'])) $layout = (int)$zoner_config['pp-author-agents-layout'];
if ($layout == 1) {
zoner_get_author_information();
} elseif ($layout == 2) {
echo '<div class="col-md-3 col-sm-3">';
zoner_get_sidebar_part('primary');
echo '</div>';
echo '<div class="col-md-9 col-sm-9">';
zoner_get_author_information();
echo '</div>';
} elseif ($layout == 3) {
echo '<div class="col-md-9 col-sm-9">';
zoner_get_author_information();
echo '</div>';
echo '<div class="col-md-3 col-sm-3">';
zoner_get_sidebar_part('primary');
echo '</div>';
} else {
echo '<div class="col-md-3 col-sm-3">';
zoner_get_author_information();
echo '</div class="col-md-12">';
}
?>
<?php do_action('zoner_after_content'); ?>
<?php get_footer(); ?>