HEX
Server: Apache
System: Linux qxu1650030446-7ccdf98f65-f6m2q 4.19.91-21.al7.x86_64 #1 SMP Wed Sep 2 19:47:49 CST 2020 x86_64
User: ()
PHP: 7.2.15
Disabled: chmod,exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,proc_close,proc_open,ini_alter,dl,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,socket_create_listen,socket_create_pair,socket_create,socket_get_option,socket_getpeername,socket_getsockname,socket_last_error,socket_listen,socket_read,socket_recv,socket_recvfrom,socket_select,socket_send,socket_sendto,socket_set_block,socket_set_nonblock,socket_set_option,socket_shutdown,socket_strerror,socket_write,stream_socket_client,stream_socket_server,pfsockopen,disk_total_space,disk_free_space,chown,diskfreespace,getrusage,get_current_user,getmyuid,getmypid,dl,leak,listen,chgrp,link,symlink,dlopen,proc_nice,proc_get_stats,proc_terminate,shell_exec,sh2_exec,posix_getpwuid,posix_getgrgid,posix_kill,ini_restore,mkfifo,dbmopen,dbase_open,filepro,filepro_rowcount,posix_mkfifo,putenv,sleep,fsockopen
Upload Files
File: /usr/home/qxu1650030446/htdocs/wp-content/themes/aly/single-news.php
<?php 
/*
Template Name: 咨询详情
Author: 畔游科技  
Version: 1.0  
*/
get_header(); ?>
<div class="page-banner">
	<picture>
        <source srcset="<?php echo of_get_option( 'm_banner_news'); ?>" media="(max-width:768px)" alt="<?php the_title(); ?>">
		<img src="<?php echo of_get_option( 'banner_news'); ?>" alt="<?php the_title(); ?>">
    </picture>
</div>
<div class="page-path">
    <div class="path-box container-width">
        <img src="<?php bloginfo('template_url'); ?>/images/home-ico.png" alt="首页"> 您当前的位置:<a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="首页">首页</a> <b>»</b> <?php the_category(","); ?> <b>»</b> <span><?php the_title(); ?></span></div>
    </div>
</div>
<div class="container-width clearfix page-news-show">
	<div class="show-left fl">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
		<div class="show-title">
			<h1><?php the_title(); ?></h1>
			<div class="show-info">
				<span>发布时间:<?php the_time('Y-m-d'); ?></span>
				<span>来源:<?php the_author(); ?></span>
				<span>浏览次数:<?php get_post_views($post -> ID); ?>次</span>
			</div>
		</div>
		<div class="show-content">
			<?php the_content(); ?>
		</div>
		<div class="show-share clearfix">
			<div class="bshare-custom fr">
			分享到:
				<div class="bsPromo bsPromo2"></div>
				<a title="分享到微信" class="bshare-weixin"></a>
				<a title="分享到新浪微博" class="bshare-sinaminiblog"></a>
				<a title="分享到QQ空间" class="bshare-qzone"></a>
			</div>
		</div>
		<ul class="pg-view clearfix">
			<?php
				$categories = get_the_category();
				$categoryIDS = array();
				foreach ($categories as $category) {
					array_push($categoryIDS, $category->term_id);
				}
				$categoryIDS = implode(",", $categoryIDS);
			?>
			<li class="py_next"><?php if (get_next_post($categoryIDS)) { next_post_link('上一篇: %link','%title',true);} else { echo "已是最新文章";} ?></li>
			<li class="py_previou"><?php if (get_previous_post($categoryIDS)) { previous_post_link('下一篇: %link','%title',true);} else { echo "已是最后文章";} ?></li>
		</ul>
		<?php endwhile; endif; ?>
		<!-- ./ -->
		<div class="product-article-item">
			<h3 class="articlelink-title">相关推荐</h3>
			<div class="articlelink">
				<ul class="clearfix">
					<?php $posts = query_posts('cat=1&showposts=8&order=DESC&orderby=date' . '&paged=' . get_query_var('paged'));
					if ($posts) : foreach( $posts as $post ) : setup_postdata( $post );{?>
						<li><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><i>></i><?php the_title(); ?></a></li>
					<?php } endforeach; endif; wp_reset_query(); ?>
				</ul>
			</div>
		</div>
	</div>
	<div class="show-right fr">
		<h3 class="show-hotitle">热门推荐</h3>
		<div class="show-hot">
			<ul>
				<?php $posts = query_posts('cat=1&showposts=4&order=DESC&orderby=date' . '&paged=' . get_query_var('paged'));
				if ($posts) : foreach( $posts as $post ) : setup_postdata( $post );{?>
					<li>
						<a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>">
							<h3><?php the_title(); ?></h3>
						</a>
						<p><img src="<?php bloginfo('template_url'); ?>/images/time-ico.png"> <?php the_time('Y-m-d'); ?></p>
						
					</li>
				<?php } endforeach; endif; wp_reset_query(); ?>
			</ul>
		</div>
	</div>
</div>
<script charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script>
<script charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script>
<!---------------- main ---------------->

<script type="text/javascript">

    //禁用鼠标右键

    document.oncontextmenu = function () { return false; };

    //禁用复制快捷键ctrl+C

    document.onkeydown = function () {

        if ((window.event && window.event.keyCode == 123) || ((event.ctrlKey) || (window.event.keycode == 67))) {

            event.keyCode = 0;

            event.returnValue = false;

            return false;

        }

    };

</script>
<?php get_footer(); ?>