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-pro.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 function tx_wp_get_category_root_id($cat){
							$this_category = get_category($cat);
							while ($this_category->category_parent) {
								$this_category = get_category($this_category->category_parent);
							}
							return $this_category->term_id;
						}
						foreach (get_categories('hide_empty=0&child_of=' . tx_wp_get_category_root_id($cat) . '') as $cate) {  ?>
							<div class="item">
								<a href="<?php echo get_category_link($cate->term_id); ?>">
									<div class="img">
										<div class="g_bg" style="background-image: url('<?php the_field('pro-cate-img', $cate); ?>')">
										</div>
									</div>
									<h3 class="title"><?php echo get_cat_name($cate->term_id); ?></h3>
								</a>
							</div>
							<?php $r++; if($r>15) break; } ?>
						</div>
					</div>
				</div>
			</div>
		</div>
	</main>
</div>
<script>
	document.getElementById("head_li_2").className = "active";
</script>
<?php get_footer(); ?>