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/Single/ |
Upload File : |
<?php
use B2\Modules\Common\Post;
/**
* 文章内容页
*/
$post_id = get_the_id();
$post_meta = Post::post_meta($post_id);
$excerpt = get_post_field('post_excerpt');
$from_url = get_post_meta($post_id,'b2_post_from_url',true);
if(strpos($from_url,'http://') === false && strpos($from_url,'https://') === false){
$from_url = 'https://'.$from_url;
}
$from_name = get_post_meta($post_id,'b2_post_from_name',true);
$down_open = get_post_meta($post_id,'b2_open_download',true);
?>
<article class="single-article b2-radius box">
<?php do_action('b2_single_article_before'); ?>
<header class="entry-header">
<h1><?php echo get_the_title(); ?></h1>
<div id="post-meta">
<div class="post-meta-row">
<ul class="post-meta">
<li>
<?php echo B2\Modules\Templates\Modules\Posts::get_post_cats('target="__blank"',$post_meta,array('cats'),'post_3'); ?>
</li>
<?php
if($from_url && $from_name){
?>
<li class="single-from"><span><?php echo __('来源:','b2'); ?><a href="<?php echo $from_url; ?>" target="_blank" rel="nofollow"><?php echo $from_name; ?></a></span></li>
<?php
}
?>
<li class="single-date">
<span><?php echo $post_meta['date']; ?></span>
</li>
<li class="single-like">
<span><?php echo b2_get_icon('b2-heart-fill'); ?><b v-text="postData.up"></b></span>
</li>
<li class="single-eye">
<span><?php echo b2_get_icon('b2-eye-fill'); ?><b v-text="postData.views"></b></span>
</li>
<li class="single-edit" v-cloak v-if="userData.is_admin">
<a href="<?php echo get_edit_post_link($post_id); ?>" target="_blank"><?php echo __('编辑','b2'); ?></a>
</li>
</ul>
<?php if($down_open){ ?>
<div class="single-button-download"><button class="empty b2-radius" @click="scroll"><?php echo b2_get_icon('b2-download-cloud-line').__('前往下载','b2'); ?></button></div>
<?php } ?>
</div>
<?php if(get_post_type() !== 'announcement'){ ?>
<?php if(!is_audit_mode()){ ?>
<div class="post-user-info">
<div class="post-meta-left">
<a class="link-block" href="<?php echo $post_meta['user_link']; ?>"></a>
<div class="avatar-parent"><img class="avatar b2-radius" src="<?php echo $post_meta['user_avatar']; ?>" /><?php echo $post_meta['user_title'] ? $post_meta['verify_icon'] : ''; ?></div>
<div class="post-user-name"><b><?php echo $post_meta['user_name']; ?></b><span class="user-title"><?php echo $post_meta['user_title']; ?></span></div>
</div>
<div class="post-meta-right">
<div class="" v-if="self == false" v-cloak>
<button @click="followingAc" class="author-has-follow" v-if="following"><?php echo __('取消关注','b2'); ?></button>
<button @click="followingAc" v-else><?php echo b2_get_icon('b2-add-line').__('关注','b2'); ?></button>
<button class="empty" @click="dmsg()"><?php echo __('私信','b2'); ?></button>
</div>
</div>
</div>
<?php } ?>
<?php } ?>
</div>
</header>
<div class="entry-content">
<?php do_action('b2_single_post_content_before'); ?>
<?php if($excerpt){ ?>
<div class="content-excerpt">
<?php echo get_the_excerpt(); ?>
</div>
<?php } ?>
<?php the_content(); ?>
<?php
global $page, $numpages, $multipage, $more;
echo b2_pagenav(array('pages'=>$numpages,'paged'=>$page),true);
?>
<?php do_action('b2_single_post_content_after'); ?>
</div>
<?php do_action('b2_single_article_after'); ?>
</article>