PHP 8.1.33
Preview: author.php Size: 3.09 KB
/home/jambtst2015/public_html/qasandra.com/wp-content/themes/Newspaper/author.php

<?php get_header();
    $part_cur_auth_obj = (get_query_var('author_name')) ? get_user_by('slug', get_query_var('author_name')) : get_userdata(get_query_var('author'));
?>

    <div class="td-main-content-wrap td-container-wrap">
        <div class="td-container">
            <div class="td-crumb-container">
                <?php echo tagdiv_page_generator::get_breadcrumbs(array(
                    'template' => 'author',
                    'author' => $part_cur_auth_obj,
                )); ?>
            </div>

            <div class="td-pb-row">
                <div class="td-pb-span8 td-main-content">
                    <div class="td-ss-main-content">
                        <div class="td-page-header">
                            <h1 class="entry-title td-page-title">
                                <span><?php the_author() ?></span>
                            </h1>
                        </div>

                        <div class="author-box-wrap td-author-page">
                            <?php echo get_avatar($part_cur_auth_obj->user_email, '96'); ?>

                            <div class="desc">
                                <div class="td-author-counters">
                                    <span class="td-author-post-count">
                                        <?php echo count_user_posts($part_cur_auth_obj->ID). ' '  . esc_html__('POSTS', 'newspaper');?>
                                    </span>

                                    <span class="td-author-comments-count">
                                        <?php
                                            $comment_count = $wpdb->get_var($wpdb->prepare("SELECT COUNT(*) AS total FROM $wpdb->comments WHERE comment_approved = 1 AND user_id = %d", $part_cur_auth_obj->ID));

                                            echo  esc_html( $comment_count ) . ' '  . esc_html__('COMMENTS', 'newspaper');
                                        ?>
                                    </span>
                                </div>

                                <?php
                                    if (!empty($part_cur_auth_obj->user_url)) {
                                        echo '<div class="td-author-url"><a href="' . esc_url($part_cur_auth_obj->user_url) . '">' . esc_url($part_cur_auth_obj->user_url) . '</a></div>';
                                    }

                                    echo get_the_author_meta('description', $part_cur_auth_obj->ID);
                                ?>
                            </div>

                            <div class="clearfix"></div>
                        </div>

                        <?php
                            get_template_part('loop-archive');
                        ?>
                    </div>
                </div>

                <div class="td-pb-span4 td-main-sidebar">
                    <div class="td-ss-main-sidebar">
                        <?php dynamic_sidebar( 'td-default' ) ?>
                    </div>
                </div>
            </div>
        </div>
    </div>

<?php get_footer(); ?>

Directory Contents

Dirs: 4 × Files: 30

Name Size Perms Modified Actions
images DIR
- drwxr-xr-x 2024-11-22 17:53:26
Edit Download
includes DIR
- drwxr-xr-x 2024-11-22 17:53:26
Edit Download
- drwxr-xr-x 2024-11-22 17:53:26
Edit Download
- drwxr-xr-x 2024-11-22 17:53:26
Edit Download
123 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.15 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.67 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.94 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
3.09 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.30 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.68 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
7.82 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
47.55 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
19.58 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.54 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
13.85 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
64.26 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
7.13 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1018 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
4.18 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
7.76 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
3.24 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.72 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
200.16 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
2.66 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
394 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
125 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
887 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download
28.91 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
25.28 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
20.47 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
152.44 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
1.26 KB lrw-r--r-- 2024-11-22 17:53:26
Edit Download
138 B lrw-r--r-- 2024-11-22 17:53:26
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).