AVRIL_START_JANCOKALIVEAVRIL_END_JANCOK
| Server IP : dzynews.com / Your IP : 216.73.217.105 Web Server : nginx/1.30.3 System : Linux cloud-tdkldl-avd6 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 User : www ( 1000) PHP Version : 8.2.31 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/dzynews.com/wp-content/themes/archive-document/Pages/ |
Upload File : |
<?php
use B2\Modules\Common\Stream;
/**
* 作者页面
*/
get_header();
$paged = isset($GLOBALS['wp_query']->query['paged']) ? (int)$GLOBALS['wp_query']->query['paged'] : 1;
$author_id = get_query_var('b2_author_id',1);
$name = get_the_author_meta('display_name', $author_id)
?>
<div id="primary-home" class="stream-area">
<div class="mg-t home_row">
<div class="wrapper">
<div class="home-row-left content-area box b2-radius" >
<div id="b2-stream" ref="b2stream" data-paged="<?php echo $paged; ?>" data-author="<?php echo $author_id; ?>">
<div class="b2-pd">
<h1><b><?php echo '['.$name.']'.__('最近的动态','b2'); ?></b></h1>
</div>
<div class="gujia" ref="gujia">
<?php
$count = get_option('posts_per_page');
$offset = ($paged -1)*$count;
$args = array(
'post_type'=>apply_filters('b2_stream_author_post_type', array(
'post','circle','document','newsflashes'
)),
'posts_per_page' => $count,
'orderby' => 'modified',
'offset'=>$offset,
'author'=>$author_id,
'post_status'=>'publish',
'include_children' => true,
'paged'=>$paged
);
$the_query = new \WP_Query( $args );
$post_data = array();
$_pages = 1;
$_count = 0;
if ( $the_query->have_posts() ) {
$_pages = $the_query->max_num_pages;
$_count = $the_query->found_posts;
while ( $the_query->have_posts() ) {
$the_query->the_post();
?>
<article class="stream-article post-type-post">
<header class="item-header">
<div class="s-a-h">
<div class="sah-l">
<span class="sah-avatar"></span>
<span class="sah-name"></span>
<span class="sah-date"></span>
</div>
<div class="sah-r">
<div class="sah-type"></div>
<div class="sah-catlist"></div>
</div>
</div>
</header>
<div class="s-a-c">
<div class="s-a-c-l">
<h2><a href="<?php echo get_permalink();?>" target="_blank" class="b2-out"><?php echo get_the_title(); ?></a></h2>
<div class="item-content">
<div class="b2-out"></div>
</div>
</div>
<div class="s-a-c-r"></div>
</div>
<div class="s-a-f">
<div class="saf-z">
<button></button>
<button></button>
</div>
<div class="saf-c">
<span class="saf-share"></span>
<span class="saf-comment"></span>
</div>
</div>
</article>
<?php
}
wp_reset_postdata();
}
?>
</div>
<div v-if="data !== ''" v-cloak>
<template v-for="(item,index) in data" :key="index">
<article :class="'stream-article st-'+item.data.terms.post_type.type" v-if="item.data.terms.post_type.type == 'post'">
<?php echo get_template_part( 'TempParts/stream/post'); ?>
</article>
<article :class="'stream-article st-'+item.data.terms.post_type.type" v-else-if="item.data.terms.post_type.type == 'circle'">
<?php echo get_template_part( 'TempParts/stream/circle'); ?>
</article>
<article :class="'stream-article st-'+item.data.terms.post_type.type" v-else-if="item.data.terms.post_type.type == 'document'">
<?php echo get_template_part( 'TempParts/stream/document'); ?>
</article>
<article :class="'stream-article st-'+item.data.terms.post_type.type" v-else-if="item.data.terms.post_type.type == 'newsflashes'">
<?php echo get_template_part( 'TempParts/stream/newsflashes'); ?>
</article>
<article :class="'stream-article st-'+item.data.terms.post_type.type" v-else-if="item.data.terms.post_type.type == 'shop'">
<?php echo get_template_part( 'TempParts/stream/shop'); ?>
</article>
</template>
</div>
</div>
<div class="b2-pd">
<?php echo b2_pagenav(array('pages'=>$_pages,'paged'=>$paged)); ?>
</div>
</div>
<?php
get_sidebar();
?>
</div>
</div>
</div>
<?php
get_footer();