File: /www/wwwroot/www.ycfawu.com/wp-content/themes/twentytwentythree/page-pufa.php
<?php /* Template Name: 优诚法务-小城普法-1.0 */ ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" />
<title><?php
if ( function_exists( 'wpseo_replace_vars' ) ) {
$yoast_title = get_post_meta( $post->ID, '_yoast_wpseo_title', true );
$parsed_title = wpseo_replace_vars( $yoast_title, $post );
echo $parsed_title;
}
?></title>
<meta name="keywords" content="<?php echo get_post_meta(get_the_ID(), '_yoast_wpseo_focuskw', true); ?>" />
<meta name="description" content="<?php echo get_post_meta(get_the_ID(), '_yoast_wpseo_metadesc', true); ?>" />
<link rel="stylesheet" type="text/css" href="<?php echo get_parent_theme_file_uri('assets/css/swiper.min.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo get_parent_theme_file_uri('assets/css/common.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo get_parent_theme_file_uri('assets/css/pc.pufa.css'); ?>">
<script type="text/javascript" src="<?php echo get_parent_theme_file_uri('assets/js/swiper.min.js'); ?>"></script>
<script type="text/javascript" src="<?php echo get_parent_theme_file_uri('assets/js/jquery-3.3.1.min.js'); ?>"></script>
<script type="text/javascript" src="https://api.map.baidu.com/api?v=2.0&ak=17b7Lhnf06x0CMZLI3aYn5ZIdMxfGcyc"></script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?2bebbfa1ab7741947530356387f6fe01";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</head>
<body>
<?php
// 获取当前的页码
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$the_query = new WP_Query( array(
'posts_per_page' => 6,
'category_name' => 'popularize',
'paged' => $paged
) );
?>
<div class="wap">
<?php get_header('m_ycfw'); ?>
<div>
<img src="<?php echo get_parent_theme_file_uri('assets/images/banner.jpg'); ?>" alt="优诚法务">
</div>
<div class="mianbao">您的位置: 首页 > 经典案例</div>
<div class="part1">
<?php if($the_query->have_posts()): ?>
<ul style="width: 100%; padding: 20px; box-sizing: border-box;" >
<?php if($the_query->have_posts()): while ( $the_query->have_posts() ): $the_query->the_post(); ?>
<li class="mart">
<div style="width: 100%; height: 300px; background-size: cover; background-image: url('<?php echo the_post_thumbnail_url(); ?>')"></div>
<a href="<?php the_permalink();?>" style="font-size: 20px; color: #333f5b; text-decoration: none; font-weight: 600; margin-top: 15px; display: block; line-height: 1.5;"><?php the_title(); ?></a>
</li>
<?php endwhile; endif;?>
</ul>
<?php wp_reset_postdata(); endif;?>
</div>
</div>
<div class="pc">
<?php get_header('ycfw'); ?>
<div style="height: 620px; background-image: url('<?php echo get_parent_theme_file_uri('assets/images/zxdt.jpg'); ?>'); background-position: center;"></div>
<div style="background-color: #2d3556;">
<div class="w_1200" style="width: 800px; display: flex; font-size: 24px; justify-content: space-around; padding: 10px 100px;">
<a style="color: #fff; text-decoration: none;" href="http://www.ycfawu.com/dongtai/">优诚动态</a>
<a style="color: #fff; text-decoration: none;" href="http://www.ycfawu.com/pufa/">小诚普法</a>
</div>
</div>
<section class="part1">
<?php if($the_query->have_posts()): ?>
<ul class="w_1200" style="padding-top: 50px; padding-bottom: 150px;" >
<?php if($the_query->have_posts()): while ( $the_query->have_posts() ): $the_query->the_post(); ?>
<li class="art">
<div style="width: 360px; height: 180px; margin-right: 20px; background-size: cover; background-image: url('<?php echo the_post_thumbnail_url(); ?>')"></div>
<div>
<a href="<?php the_permalink();?>" style="font-size: 20px; color: #333f5b; text-decoration: none; font-weight: 600; margin-top: 15px; display: block; line-height: 2; border-bottom: 1px solid #333f5b;"><?php the_title(); ?></a>
<!--<div><?php the_time('Y-n-j H:i') ?></div>-->
<div><?php the_time('Y-n-j') ?></div>
<div style="font-size: 12px; margin: 10px 0;"><?php the_excerpt(); ?></div>
</div>
</li>
<?php endwhile; endif;?>
</ul>
<?php wp_reset_postdata(); endif;?>
</section>
<?php get_footer('ycfw'); ?>
</div>
</body>
</html>