| Server IP : 39.106.62.82 / Your IP : 216.73.216.240 Web Server : nginx/1.14.1 System : Linux iz2ze1m0zmp2dk5c3j5ap5z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : www ( 1000) PHP Version : 7.4.33 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 : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /webdata/gohomesh.com/wp-content/themes/gongheng/ |
Upload File : |
<?php /* Template Name: page-agent2 */ ?>
<?php get_header() ?>
<!--主体-->
<div class="content">
<!--s-banner-->
<div class="s-banner">
<img src="/style/img/sell_02.jpg" />
<div class="text" aos="fade-in">
<h3>挑选经纪人</h3>
<p>Select a broker</p>
<form action="" method="post" class="clearfix">
<input type="text" placeholder="输入搜索内容" value=""/>
<button class="btn"><i class="fa fa-search" aria-hidden="true"></i>搜索经纪人</button>
</form>
</div>
<div class="mbx" aos="fade-in">
<div class="left">
<a href="/" class="fa fa-home"></a>
<i></i>
<a href="###">挑选经纪人</a>
</div>
<a href="/form/" class="right">
<span>出售/承购委托</span>
</a>
</div>
</div>
<!--sell01-->
<div class="sell01warp" aos="fade-up">
<ul class="sell01">
<li>
<h3 class="name">区域:</h3>
<div class="info">
<a href="/agent/zone/" class="">不限</a>
<?php $terms = get_terms('brokers-cat'); ?>
<?php foreach($terms as $term): ?>
<?php if($term->parent == 58): ?>
<a href="<?php echo get_term_link($term); ?>"><?php echo $term->name; ?></a>
<?php endif; ?>
<?php endforeach; ?>
</div>
</li>
<li>
<h3 class="name">门店:</h3>
<div class="info">
<a href="/agent/store/" class="defaultActive">不限</a>
<?php foreach($terms as $term): ?>
<?php if($term->parent == 77): ?>
<a href="<?php echo get_term_link($term); ?>"><?php echo $term->name; ?></a>
<?php endif; ?>
<?php endforeach; ?>
</div>
</li>
</ul>
</div>
<!--agent01-->
<div class="agent01warp">
<?php $terms = get_terms('brokers-cat'); ?>
<?php foreach($terms as $term): ?>
<?php if($term->parent == 77): ?>
<div class="agent01">
<div class="agent-top">
<h3><?php echo $term->name; ?></h3>
<h4><i class="fa fa-phone" aria-hidden="true"></i><font><?php echo $term->description; ?></font></h4>
</div>
<div class="min clearfix">
<?php
$arg = array(
'tax_query' => array(
'relation' => 'AND',
array(
'taxonomy' => 'brokers-cat',
'field' => 'slug',
'terms' => array( $term->slug ),
'include_children' => true,
'operator' => 'IN'
),
),
);
$new = new WP_Query($arg);
?>
<?php if($new->have_posts()) : while($new->have_posts()) : $new->the_post();?>
<a href="<?php the_permalink() ?>">
<div class="imgbox">
<img src="<?php the_field('img') ?>" />
</div>
<div class="text">
<h3><?php the_title() ?></h3>
<h4><?php echo replace_text_wps(get_field('name')); ?></h4>
<div class="ph">
<p>电话:<?php echo replace_text_wps(get_field('tel')); ?></p>
<p>微信:<?php echo replace_text_wps(get_field('wechat')); ?></p>
<p>邮箱:<?php echo replace_text_wps(get_field('email')); ?></p>
</div>
</div>
</a>
<?php endwhile;?><?php endif; ?>
</div>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
<?php get_footer() ?>