-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathauthor.php
More file actions
37 lines (36 loc) · 1.21 KB
/
author.php
File metadata and controls
37 lines (36 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
<?php
/**
* The template for displaying author page
*/
get_header();
$current_author_id = get_the_author_meta( 'ID' );
$is_current_author_guest = FII_MOLONGUI::is_guest_author();
$current_author_type = !$is_current_author_guest ? 'user' : 'guest';
?>
<?php if( FII_MOLONGUI::is_active_molongui_shortcode() ): ?>
<div class="author-header">
<div class="container">
<?php
FII_MOLONGUI::fii_author_box( array(
'id' => $current_author_id,
'type' => $current_author_type,
'name' => !$is_current_author_guest ? get_the_author() : '',
'class' => 'profile',
'linked' => false,
'size' => '200'
) );
?>
</div>
</div>
<?php endif; ?>
<?php $shortcode_str = do_shortcode( FII_MOLONGUI::fii_get_author_posts( $current_author_id, $current_author_type ) ); ?>
<?php if( strlen( $shortcode_str ) > 0 ): ?>
<div class="container wrapper-margin">
<div class="orbit-posts-wrapper">
<?php global $fii_customize; ?>
<h2><?php echo $fii_customize->get_theme_option( 'translation', 'published_posts', 'Published Posts' ); ?></h2>
<?php echo $shortcode_str; ?>
</div>
</div>
<?php endif; ?>
<?php get_footer(); ?>