HEX
Server: nginx/1.22.0
System: Linux iZuf6jdxbygmf6cco977lcZ 5.10.84-10.4.al8.x86_64 #1 SMP Tue Apr 12 12:31:07 CST 2022 x86_64
User: root (0)
PHP: 7.4.29
Disabled: passthru,exec,system,chroot,chgrp,chown,shell_exec,proc_open,proc_get_status,ini_alter,ini_restore,dl,readlink,symlink,popepassthru,stream_socket_server,fsocket,popen
Upload Files
File: /data/wwwroot/wordpress/wp-content/themes/yantou/archive-pros.php
<?php 
/*
Template Name: 产品列表
Author: 畔游科技  
Version: 1.0  
*/
get_header(); ?>
<div id="luxy">
	<main id="main">
		<div class="g_body n_pro">
			<div class="n_banner banner">
				<div class="img">
					<div class="g_bg" style="background-image: url('<?php echo of_get_option('banner_products'); ?>')">
					</div>
				</div>
			</div>
			<div class="n_top">
				<div class="g_w">
					<div class="n_breadcrumb"><a href="<?php echo esc_url( home_url( '/' ) ); ?>">首页</a>><a href="/product">产品与服务</a></div>
				</div>
			</div>
			<div class="n_con">
				<div class="con1" id="link1">
					<div class="g_w">
						<div class="i_title wow fadeInUp" data-wow-delay=".3s">
							<b class="g_f_t">产品与服务</b>
							<span>products & services</span>
						</div>
						<div class="pro_list">
						<?php if (have_posts()) : while (have_posts()) : the_post();  ?>
							<div class="item">
								<a href="<?php the_permalink(); ?>">
									<div class="img">
										<div class="g_bg" style="background-image: url('<?php echo wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large')[0]; ?>')">
										</div>
									</div>
									<h3 class="title"><?php the_title(); ?></h3>
								</a>
							</div>
						<?php endwhile; endif; ?>
						</div>
						<?php if (have_posts()) { ?>
							<div class="pg-view">
								<ul>
									<?php get_pagenavi();  ?>
								</ul>
							</div>
						<?php } ?>
					</div>
				</div>
			</div>
		</div>
	</main>
</div>
<script>
	document.getElementById("head_li_2").className = "active";
</script>
<?php get_footer(); ?>