lilei 1 vuosi sitten
commit
5c7d2e0a29
100 muutettua tiedostoa jossa 2250 lisäystä ja 0 poistoa
  1. BIN
      arrow360one/assets/images/about1_03.jpg
  2. BIN
      arrow360one/assets/images/about5_03.jpg
  3. BIN
      arrow360one/assets/images/about5_04.png
  4. BIN
      arrow360one/assets/images/about6_03.jpg
  5. BIN
      arrow360one/assets/images/about6_07.jpg
  6. BIN
      arrow360one/assets/images/about6_11.jpg
  7. BIN
      arrow360one/assets/images/about6_12.jpg
  8. BIN
      arrow360one/assets/images/about8_02.png
  9. BIN
      arrow360one/assets/images/about_05.jpg
  10. BIN
      arrow360one/assets/images/about_06.jpg
  11. BIN
      arrow360one/assets/images/about_07.jpg
  12. BIN
      arrow360one/assets/images/about_08.jpg
  13. BIN
      arrow360one/assets/images/about_09.jpg
  14. BIN
      arrow360one/assets/images/contact_04.jpg
  15. BIN
      arrow360one/assets/images/index_03.jpg
  16. BIN
      arrow360one/assets/images/index_05.jpg
  17. BIN
      arrow360one/assets/images/index_07.jpg
  18. BIN
      arrow360one/assets/images/index_110.jpg
  19. BIN
      arrow360one/assets/images/index_115.jpg
  20. BIN
      arrow360one/assets/images/index_16.jpg
  21. BIN
      arrow360one/assets/images/index_23.jpg
  22. BIN
      arrow360one/assets/images/index_25.jpg
  23. BIN
      arrow360one/assets/images/index_26.jpg
  24. BIN
      arrow360one/assets/images/index_27.jpg
  25. BIN
      arrow360one/assets/images/index_28.jpg
  26. BIN
      arrow360one/assets/images/index_29.jpg
  27. BIN
      arrow360one/assets/images/index_46.jpg
  28. BIN
      arrow360one/assets/images/index_48.png
  29. BIN
      arrow360one/assets/images/index_49.png
  30. BIN
      arrow360one/assets/images/index_55.jpg
  31. BIN
      arrow360one/assets/images/index_56.jpg
  32. BIN
      arrow360one/assets/images/index_57.jpg
  33. BIN
      arrow360one/assets/images/index_58.jpg
  34. BIN
      arrow360one/assets/images/index_76.jpg
  35. BIN
      arrow360one/assets/images/index_80.jpg
  36. BIN
      arrow360one/assets/images/index_81.jpg
  37. BIN
      arrow360one/assets/images/index_82.jpg
  38. BIN
      arrow360one/assets/images/index_83.jpg
  39. BIN
      arrow360one/assets/images/index_84.jpg
  40. BIN
      arrow360one/assets/images/index_85.jpg
  41. BIN
      arrow360one/assets/images/index_86.jpg
  42. BIN
      arrow360one/assets/images/index_888.jpg
  43. BIN
      arrow360one/assets/images/index_90.jpg
  44. BIN
      arrow360one/assets/images/join3_03.jpg
  45. BIN
      arrow360one/assets/images/join7_03.jpg
  46. BIN
      arrow360one/assets/images/join_08.jpg
  47. BIN
      arrow360one/assets/images/logo.jpg
  48. BIN
      arrow360one/assets/images/news_detail_03.jpg
  49. BIN
      arrow360one/assets/images/news_detail_04.jpg
  50. BIN
      arrow360one/assets/images/news_detail_05.jpg
  51. BIN
      arrow360one/assets/images/news_detail_06.jpg
  52. BIN
      arrow360one/assets/images/news_detail_07.jpg
  53. BIN
      arrow360one/assets/images/r_online_01.png
  54. BIN
      arrow360one/assets/images/r_online_02.png
  55. BIN
      arrow360one/assets/images/r_online_03.png
  56. BIN
      arrow360one/assets/images/r_online_04.png
  57. BIN
      arrow360one/assets/images/r_online_05.png
  58. BIN
      arrow360one/assets/images/school2_01.jpg
  59. BIN
      arrow360one/assets/images/school2_02.jpg
  60. BIN
      arrow360one/assets/images/school2_03.jpg
  61. BIN
      arrow360one/assets/images/school2_04.jpg
  62. BIN
      arrow360one/assets/images/school2_05.jpg
  63. BIN
      arrow360one/assets/images/school2_06.jpg
  64. BIN
      arrow360one/assets/images/school2_07.jpg
  65. BIN
      arrow360one/assets/images/school2_08.jpg
  66. BIN
      arrow360one/assets/images/school2_09.jpg
  67. BIN
      arrow360one/assets/images/school2_10.jpg
  68. BIN
      arrow360one/assets/images/school2_11.jpg
  69. BIN
      arrow360one/assets/images/school2_12.jpg
  70. BIN
      arrow360one/assets/images/school2_13.jpg
  71. BIN
      arrow360one/assets/images/school2_14.jpg
  72. BIN
      arrow360one/assets/images/school4_03.jpg
  73. BIN
      arrow360one/assets/images/school4_04.jpg
  74. BIN
      arrow360one/assets/images/school4_05.jpg
  75. BIN
      arrow360one/assets/images/school4_06.jpg
  76. BIN
      arrow360one/assets/images/video.mp4
  77. 1 0
      arrow360one/assets/js/jquery-1.8.3.min.js
  78. 45 0
      arrow360one/assets/js/js.js
  79. 11 0
      arrow360one/assets/js/swiper.min.js
  80. 11 0
      arrow360one/assets/swiper.min.css
  81. 22 0
      arrow360one/commentForm.php
  82. 24 0
      arrow360one/commentFormMini.php
  83. 11 0
      arrow360one/concat.php
  84. 132 0
      arrow360one/custom-aboutus.php
  85. 108 0
      arrow360one/custom-contact.php
  86. 116 0
      arrow360one/custom-jobs.php
  87. 156 0
      arrow360one/custom-join.php
  88. 57 0
      arrow360one/custom-joinIndex.php
  89. 105 0
      arrow360one/custom-news.php
  90. 109 0
      arrow360one/custom-newsDetail.php
  91. 131 0
      arrow360one/custom-product.php
  92. 171 0
      arrow360one/custom-school.php
  93. 109 0
      arrow360one/custom-schoolDetail.php
  94. 91 0
      arrow360one/footer.php
  95. 186 0
      arrow360one/functions.php
  96. 9 0
      arrow360one/head.php
  97. 116 0
      arrow360one/header.php
  98. 452 0
      arrow360one/index.php
  99. 64 0
      arrow360one/libs.php
  100. 13 0
      arrow360one/map.php

BIN
arrow360one/assets/images/about1_03.jpg


BIN
arrow360one/assets/images/about5_03.jpg


BIN
arrow360one/assets/images/about5_04.png


BIN
arrow360one/assets/images/about6_03.jpg


BIN
arrow360one/assets/images/about6_07.jpg


BIN
arrow360one/assets/images/about6_11.jpg


BIN
arrow360one/assets/images/about6_12.jpg


BIN
arrow360one/assets/images/about8_02.png


BIN
arrow360one/assets/images/about_05.jpg


BIN
arrow360one/assets/images/about_06.jpg


BIN
arrow360one/assets/images/about_07.jpg


BIN
arrow360one/assets/images/about_08.jpg


BIN
arrow360one/assets/images/about_09.jpg


BIN
arrow360one/assets/images/contact_04.jpg


BIN
arrow360one/assets/images/index_03.jpg


BIN
arrow360one/assets/images/index_05.jpg


BIN
arrow360one/assets/images/index_07.jpg


BIN
arrow360one/assets/images/index_110.jpg


BIN
arrow360one/assets/images/index_115.jpg


BIN
arrow360one/assets/images/index_16.jpg


BIN
arrow360one/assets/images/index_23.jpg


BIN
arrow360one/assets/images/index_25.jpg


BIN
arrow360one/assets/images/index_26.jpg


BIN
arrow360one/assets/images/index_27.jpg


BIN
arrow360one/assets/images/index_28.jpg


BIN
arrow360one/assets/images/index_29.jpg


BIN
arrow360one/assets/images/index_46.jpg


BIN
arrow360one/assets/images/index_48.png


BIN
arrow360one/assets/images/index_49.png


BIN
arrow360one/assets/images/index_55.jpg


BIN
arrow360one/assets/images/index_56.jpg


BIN
arrow360one/assets/images/index_57.jpg


BIN
arrow360one/assets/images/index_58.jpg


BIN
arrow360one/assets/images/index_76.jpg


BIN
arrow360one/assets/images/index_80.jpg


BIN
arrow360one/assets/images/index_81.jpg


BIN
arrow360one/assets/images/index_82.jpg


BIN
arrow360one/assets/images/index_83.jpg


BIN
arrow360one/assets/images/index_84.jpg


BIN
arrow360one/assets/images/index_85.jpg


BIN
arrow360one/assets/images/index_86.jpg


BIN
arrow360one/assets/images/index_888.jpg


BIN
arrow360one/assets/images/index_90.jpg


BIN
arrow360one/assets/images/join3_03.jpg


BIN
arrow360one/assets/images/join7_03.jpg


BIN
arrow360one/assets/images/join_08.jpg


BIN
arrow360one/assets/images/logo.jpg


BIN
arrow360one/assets/images/news_detail_03.jpg


BIN
arrow360one/assets/images/news_detail_04.jpg


BIN
arrow360one/assets/images/news_detail_05.jpg


BIN
arrow360one/assets/images/news_detail_06.jpg


BIN
arrow360one/assets/images/news_detail_07.jpg


BIN
arrow360one/assets/images/r_online_01.png


BIN
arrow360one/assets/images/r_online_02.png


BIN
arrow360one/assets/images/r_online_03.png


BIN
arrow360one/assets/images/r_online_04.png


BIN
arrow360one/assets/images/r_online_05.png


BIN
arrow360one/assets/images/school2_01.jpg


BIN
arrow360one/assets/images/school2_02.jpg


BIN
arrow360one/assets/images/school2_03.jpg


BIN
arrow360one/assets/images/school2_04.jpg


BIN
arrow360one/assets/images/school2_05.jpg


BIN
arrow360one/assets/images/school2_06.jpg


BIN
arrow360one/assets/images/school2_07.jpg


BIN
arrow360one/assets/images/school2_08.jpg


BIN
arrow360one/assets/images/school2_09.jpg


BIN
arrow360one/assets/images/school2_10.jpg


BIN
arrow360one/assets/images/school2_11.jpg


BIN
arrow360one/assets/images/school2_12.jpg


BIN
arrow360one/assets/images/school2_13.jpg


BIN
arrow360one/assets/images/school2_14.jpg


BIN
arrow360one/assets/images/school4_03.jpg


BIN
arrow360one/assets/images/school4_04.jpg


BIN
arrow360one/assets/images/school4_05.jpg


BIN
arrow360one/assets/images/school4_06.jpg


BIN
arrow360one/assets/images/video.mp4


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 1 - 0
arrow360one/assets/js/jquery-1.8.3.min.js


+ 45 - 0
arrow360one/assets/js/js.js

@@ -0,0 +1,45 @@
+
+/**
+ * Created by Administrator on 2018/8/17.
+ */
+
+$(function(){
+    /*导航手机点击*/
+    $('.phone_menu_trigger').click(function(){
+        $(this).toggleClass('on');
+        var phone_menu=$('.phone_menu');
+        slideupdown2(phone_menu);
+    })
+    /*手机端导航点击*/
+    function slideupdown(obj){
+        var visible=obj.is(':visible');
+        if(visible){
+            obj.prev().removeClass('open');
+            obj.slideUp();
+        }else{
+            obj.prev().addClass('open');
+            obj.slideDown().parent().siblings('li').find('ul').slideUp().prev().removeClass('open');
+        }
+    }
+    function slideupdown2(obj){
+        var $this=obj;
+		if($this.is(':hidden')){
+			$this.show();
+			$('html,body').css({"overflow":"hidden","height":"100%"});
+		}else{
+			$this.hide();
+			$('html,body').css({"overflow":"scroll","height":"auto"});
+	    } 
+    }
+    $('.phone_menu>li').each(function(){
+        $(this).click(function(){
+            var dls=$(this).find('.phone_menu_tab');
+            slideupdown(dls);
+        })
+    })
+
+    /*返回顶部*/
+    $('#back-ToTop').click(function() {
+        $('html,body').animate({'scrollTop': 0}, 500);
+    })
+})

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 11 - 0
arrow360one/assets/js/swiper.min.js


Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 11 - 0
arrow360one/assets/swiper.min.css


+ 22 - 0
arrow360one/commentForm.php

@@ -0,0 +1,22 @@
+<div class="ny_join7">
+    <form method="post" id="contact-form" action="<?php echo admin_url('admin-ajax.php'); ?>">
+    <ul>
+        <h3>感谢您的选择!<p>箭冠汽配连锁的大门为您敞开</p></h3>
+        <li><input type="text" id="rename" name="comment_author" required placeholder="请输入您的姓名 * "></li>
+        <li><input type="text" id="phone" name="comment_author_phone" required maxlength="11" placeholder="请输入您的电话号码 * "></li>
+        <li><input type="text" name="comment_author_email" placeholder="请输入您的电子邮箱"></li>
+        <li><input type="text" name="comment_compname" maxlength="250" placeholder="请输入您的主营项目"></li>
+        <li>
+            <input type="text" name="comment_provinces" placeholder="请输入省份  " maxlength="50" style="width: 267px;height: 45px;">
+            
+            <input type="text" name="comment_city" placeholder="请输入城市 " maxlength="50" style="width: 268px;height: 45px;float: right;">
+        </li>
+        <li><input type="text" name="comment_address" maxlength="100" placeholder="请输入您的地址"></li>
+        <li><textarea name="comment" maxlength="300" placeholder="留言内容"></textarea></li>
+        <input type="hidden" name="action" value="submit_custom_comment">
+        <!-- <input type="hidden" name="comment_post_ID" value="367" id="comment_post_ID">  -->
+        <input type="hidden" name="comment_author_IP" value="<? echo $_SERVER['REMOTE_ADDR']; ?>" id="comment_author_IP">
+        <button type="submit">马上提交</button>
+    </ul>
+    </form>
+</div>

+ 24 - 0
arrow360one/commentFormMini.php

@@ -0,0 +1,24 @@
+<div class="w1200 msg">
+    <h3>选择赢未来<p>今天的加盟就是明天辉煌的起点</p></h3>
+    <form method="post" id="contact-form" action="<?php echo admin_url('admin-ajax.php'); ?>">
+    <ul>
+        <li class="rename"><span><em>*</em> 联系人:</span><input id="rename" type="text" required name="comment_author" maxlength="30" placeholder="  请输入姓名  "></li>
+        <li class="tel"><span><em>*</em> 联系电话:</span><input id="phone" type="number" required name="comment_author_phone" maxlength="11" placeholder="  请输入电话号码  "></li>
+        <li class="addr">
+            <span>加盟地区:</span>
+            <input type="text" name="comment_provinces" maxlength="50" placeholder="  请输入省份  ">
+            <input type="text" name="comment_city" maxlength="50" placeholder="  请输入城市 " style="margin: 0px 16px;">
+            <input type="text" name="comment_area" maxlength="50" placeholder="  请输入区域 ">
+        </li>
+        <!-- <li class="company">
+            <span>主营项目:</span>
+            <input type="text" name="comment_compname" maxlength="300" placeholder="  请输入主营项目  ">
+        </li> -->
+        <li class="text"><span>备注留言:</span><textarea name="comment" maxlength="300" placeholder="请输入留言信息(最多300字符) "></textarea></li>
+        <input type="hidden" name="action" value="submit_custom_comment">
+        <input type="hidden" name="comment_post_ID" value="367" id="comment_post_ID"> 
+        <input type="hidden" name="comment_author_IP" value="<? echo $_SERVER['REMOTE_ADDR']; ?>" id="comment_author_IP">
+        <li class="btn"><button type="submit">马上提交</button></li>
+    </ul>
+    </form>
+    </div>

+ 11 - 0
arrow360one/concat.php

@@ -0,0 +1,11 @@
+<div class="box">
+    <div class="tit">联系方式</div>
+    <div class="bor con">
+        <p><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/about_06.jpg">地 址:中国广东省东莞市茶山镇</p>
+        <p>&nbsp; &nbsp; &nbsp; &nbsp;茶山工业园</p>
+        <p><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/about_07.jpg">电 话:400-881-2323</p>
+        <p><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/about_08.jpg">传 真:0769-81860108</p>
+        <p><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/about_09.jpg">邮箱:pengtao@360arrow.com</p>
+        <p class="ewm"><img src="/wp-content/uploads/2024/03/2019072012291230.jpg"></p>    
+    </div>
+</div>	

+ 132 - 0
arrow360one/custom-aboutus.php

@@ -0,0 +1,132 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom Aboutus*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513575281.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">走进箭冠</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 18;
+            // 输出目录
+            echo get_slider_submenus('about',3,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>	
+</div>
+	<div class="r">
+        <div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/about">走进箭冠</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con">
+        <?php
+            if($cat_id != 24){
+                 // 获取该分类下的第一篇文章
+                 $args = array(
+                    'cat' => $cat_id, // 分类ID
+                    'posts_per_page' => 1, // 每页显示的文章数量
+                    'orderby' => 'date', // 按日期排序
+                    'order' => 'ASC', // 升序
+                );
+
+                $cur_post = get_posts($args);
+                
+                if ($cur_post) {
+                    $content = $cur_post[0]->post_content; // 文章内容
+                    echo $content;
+                } else {
+                    echo '文章不存在';
+                }
+
+                // 释放查询结果
+                wp_reset_postdata();
+            }
+
+             
+            // 假设你已经在WordPress环境中,并且有分类ID $category_id
+            $category_id = $cat_id; // 替换为你的分类ID
+            
+            // 获取分页参数
+            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+            
+            // 查询参数
+            $args = array(
+                'cat' => $category_id, // 分类ID
+                'posts_per_page' => 9, // 每页显示的文章数量
+                'paged' => $paged
+            );
+            
+            // 查询文章
+            $query = new WP_Query($args);
+            
+            if ($query->have_posts()) {
+                echo '<div class="ny_product"><ul>';
+                while ($query->have_posts()) {
+                    $query->the_post();
+                    // 在这里编写你的文章列表
+                    $post_id = get_the_ID(); // 获取文章ID
+                    $excerpt = get_the_excerpt(); // 获取摘要
+                    if ( mb_strlen( $excerpt ) > 90 ) { // 如果字数超过200字
+                        $excerpt = mb_substr( $excerpt, 0, 90 ); // 截取前200个字符
+                        $excerpt .= '...'; // 添加省略号
+                    }
+                    // 门店展示
+                    if($cat_id == 24){   
+            ?>
+                <li>
+                    <div>
+                        <?php
+                        if(has_post_thumbnail()){
+                            // 获取特色图片的ID
+                            $thumbnail_id = get_post_thumbnail_id();
+                            // 获取特色图片的URL
+                            $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                            
+                        ?>
+                            <a href="#"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                        <?php
+                            }
+                        ?>
+                    </div>
+                    <h3><a href="#"><?php the_title(); ?></a></h3>
+                    <p><?php echo $excerpt; ?></p>
+                </li>
+        <?php
+                 }     
+             }
+                echo '</ul></div>';
+                // 分页导航
+                lingfeng_pagenavi();
+            } else {
+                // 没有找到文章的提示
+                echo '没有找到文章。';
+            }
+            
+            // 重置WordPress查询
+            wp_reset_postdata();
+        ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+    .ny_product>ul li h3{text-align:center;}
+    .ny_product>ul li div{padding:5px;overflow: hidden;}
+    .ny_product>ul li div a{display:flex;height:100%;width:100%;align-items: center;justify-content: center;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 108 - 0
arrow360one/custom-contact.php

@@ -0,0 +1,108 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom Contact*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513474886.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">联系我们</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 38;
+            // 输出目录
+            echo get_slider_submenus('contact',37,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>	
+</div>
+	<div class="r">
+        <div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/contact">联系我们</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con">
+        <?php
+            if($cat_id != 45){
+                // 获取该分类下的第一篇文章
+                $args = array(
+                    'cat' => $cat_id, // 分类ID
+                    'posts_per_page' => 1, // 每页显示的文章数量
+                    'orderby' => 'date', // 按日期排序
+                    'order' => 'ASC', // 升序
+                );
+
+                $cur_post = get_posts($args);
+
+                if ($cur_post) {
+                    $content = $cur_post[0]->post_content; // 文章内容
+                    echo $content;
+                } else {
+                    echo '文章不存在';
+                }
+
+                // 释放查询结果
+                wp_reset_postdata();
+            }
+        ?>
+        <?php 
+            if($cat_id == 38){
+                include 'map.php';
+            }
+        ?>
+        <?php
+            // 加盟申请
+            if($cat_id == 45){
+                include 'commentForm.php';
+            }
+            ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+<script>
+    jQuery(document).ready(function($) {
+        $('#contact-form').submit(function(e) {
+            e.preventDefault();
+            if($("#rename").val()==''){
+                alert('请输入姓名!');
+                return
+            }
+            if($("#phone").val()==''){
+                alert('请输入电话!');
+                return
+            }
+            
+            $.ajax({
+                url: $(this).attr('action'),
+                type: 'post',
+                data: {
+                    action: 'submit_custom_comment',
+                    comment_data: $(this).serialize()
+                },
+                success: function(response) {
+                    alert('提交成功!');
+                    $('#contact-form')[0].reset();
+                },
+                error: function() {
+                    alert('提交失败,请重试.');
+                }
+            });
+        });
+    });
+</script>
+</body>
+</html>

+ 116 - 0
arrow360one/custom-jobs.php

@@ -0,0 +1,116 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom Jobs*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513414199.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">诚聘英才</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 40;
+            // 输出目录
+            echo get_slider_submenus('jobs',39,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>	
+</div>
+	<div class="r">
+        <div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/jobs">诚聘英才</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con">
+        <?php
+            // 假设你已经在WordPress环境中,并且有分类ID $category_id
+            $category_id = $cat_id; // 替换为你的分类ID
+            
+            // 获取分页参数
+            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+            
+            // 查询参数
+            $args = array(
+                'cat' => $category_id, // 分类ID
+                'posts_per_page' => 9, // 每页显示的文章数量
+                'paged' => $paged
+            );
+            
+            // 查询文章
+            $query = new WP_Query($args);
+
+            if ($query->have_posts()) {
+                if($cat_id == 40){  
+                    echo '<div class="ny_jobs"><ul>';
+                }
+                if($cat_id == 41){  
+                    echo '<div class="ny_jobs2"><ul>';
+                }
+                while ($query->have_posts()) {
+                    $query->the_post();
+                    // 在这里编写你的文章列表
+                    $post_id = get_the_ID(); // 获取文章ID
+                    $excerpt = get_the_excerpt(); // 获取摘要
+                     
+                    // 招聘信息
+                    if($cat_id == 40){  
+        ?>
+                    <li>
+                        <h3><?php the_title(); ?></h3>
+                        <p><?php echo $excerpt; ?></p>
+                    </li>
+         <?php
+                    } 
+                    // 员工风采 
+                    if($cat_id == 41){  
+        ?>
+                        <li>
+                            <div>
+                                <?php
+                                if(has_post_thumbnail()){
+                                    // 获取特色图片的ID
+                                    $thumbnail_id = get_post_thumbnail_id();
+                                    // 获取特色图片的URL
+                                    $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                                    
+                                ?>
+                                    <a href="#"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                                <?php
+                                    }
+                                ?>
+                            </div>
+                            <h3><a href="#"><?php the_title(); ?></a></h3>
+                        </li>
+        <?php
+                    }
+             }
+                echo '</ul></div>';
+                // 分页导航
+                lingfeng_pagenavi();
+            } else {
+                // 没有找到文章的提示
+                echo '没有找到文章。';
+            }
+            
+            // 重置WordPress查询
+            wp_reset_postdata();
+        ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 156 - 0
arrow360one/custom-join.php

@@ -0,0 +1,156 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom Join*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513554171.png"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">我要加盟</div>
+    <div class="bor">
+        <ul class="lm">
+            <li><a href="/joinIndex"><span>&gt;&gt;</span>加盟首页</a></li>
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 12;
+            // 输出目录
+            echo get_slider_submenus('join',10,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>
+</div>
+	<div class="r">
+        <div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/join">我要加盟</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con">
+        <?php
+            if($cat_id != 16 && $cat_id != 17){
+                // 获取该分类下的第一篇文章
+                $args = array(
+                    'cat' => $cat_id, // 分类ID
+                    'posts_per_page' => 1, // 每页显示的文章数量
+                    'orderby' => 'date', // 按日期排序
+                    'order' => 'ASC', // 升序
+                );
+
+                $cur_post = get_posts($args);
+                setup_postdata($cur_post);
+
+                if (count($cur_post)>0) {
+                    $content = $cur_post[0]->post_content; // 文章内容
+                    echo $content;
+                } else {
+                    echo '文章不存在';
+                }
+
+                // 释放查询结果
+                wp_reset_postdata();
+            }
+
+            // 加盟解答
+            if($cat_id == 16){
+                // 假设你已经在WordPress环境中,并且有分类ID $category_id
+                $category_id = $cat_id; // 替换为你的分类ID
+                
+                // 获取分页参数
+                $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+                
+                // 查询参数
+                $args = array(
+                    'cat' => $category_id, // 分类ID
+                    'posts_per_page' => 10, // 每页显示的文章数量
+                    'paged' => $paged
+                );
+
+                // 查询文章
+                $query = new WP_Query($args);
+                $index = 0 + ($paged-1) * 10;
+
+                echo '<div class="ny_join6">';
+                if ($query->have_posts()) {  
+                    while ($query->have_posts()) {
+                        $query->the_post();
+                        // 在这里编写你的文章列表
+                        $post_id = get_the_ID(); // 获取文章ID
+                        $index = $index + 1;
+                        $content = get_post_field('post_content', $post_id);
+        ?>
+                    <dl>
+                        <dt><div></div><span><?php echo $index ?></span><?php the_title(); ?></dt>
+                        <dd><?php echo $content ?></dd>
+                    </dl>
+        <?php
+                    }
+                    // 分页导航
+                  lingfeng_pagenavi();
+                } else {
+                    // 没有找到文章的提示
+                    echo '没有找到文章。';
+                }
+                echo '</div>';
+            }
+
+            // 加盟申请
+            if($cat_id == 17){
+                include 'commentForm.php';
+            }
+        ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+ 
+<script>
+    jQuery(document).ready(function($) {
+        $('.ny_join6 dl dt').click(function(){
+            var a=$(this).parent('dl').attr('class');
+            if(a=='on'){
+                $(this).parent('dl').removeClass('on');
+            }else{
+                $(this).parent('dl').addClass('on').siblings().removeClass('on');
+            }
+        });
+
+        $('#contact-form').submit(function(e) {
+            e.preventDefault();
+            if($("#rename").val()==''){
+                alert('请输入姓名!');
+                return
+            }
+            if($("#phone").val()==''){
+                alert('请输入电话!');
+                return
+            }
+            
+            $.ajax({
+                url: $(this).attr('action'),
+                type: 'post',
+                data: {
+                    action: 'submit_custom_comment',
+                    comment_data: $(this).serialize()
+                },
+                success: function(response) {
+                    alert('提交成功!');
+                    $('#contact-form')[0].reset();
+                },
+                error: function() {
+                    alert('提交失败,请重试.');
+                }
+            });
+        });
+    });
+</script>
+</body>
+</html>

+ 57 - 0
arrow360one/custom-joinIndex.php

@@ -0,0 +1,57 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom JoinIndex*/
+get_header();
+?> 
+<div class="ny_join">
+	
+<div class="box">
+    <p>
+        <img src="/wp-content/ueditor/php/upload/image/20200216/1581847576824131.jpg" title="1581847576824131.jpg" alt="加盟BAN.jpg">
+        <img src="/wp-content/ueditor/php/upload/image/20200216/1581847581166303.jpg" title="1581847581166303.jpg" alt="箭冠汽配216.jpg">
+    </p>
+    <p><img src="/wp-content/ueditor/php/upload/image/20210128/1611815505611501.jpg" title="1611815505611501.jpg" alt="join_06.jpg"></p>
+</div>
+    
+<div class="box">
+    <img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/join_08.jpg">
+    <?php include 'commentFormMini.php'; ?>
+</div>
+</div>
+<?php get_footer(); ?>
+<script>
+    jQuery(document).ready(function($) {
+        $('#contact-form').submit(function(e) {
+            e.preventDefault();
+            if($("#rename").val()==''){
+                alert('请输入联系人姓名!');
+                return
+            }
+            if($("#phone").val()==''){
+                alert('请输入联系电话!');
+                return
+            }
+            
+            $.ajax({
+                url: $(this).attr('action'),
+                type: 'post',
+                data: {
+                    action: 'submit_custom_comment',
+                    comment_data: $(this).serialize()
+                },
+                success: function(response) {
+                    alert('提交成功!');
+                    $('#contact-form')[0].reset();
+                },
+                error: function() {
+                    alert('提交失败,请重试.');
+                }
+            });
+        });
+    });
+</script>
+</body>
+</html>

+ 105 - 0
arrow360one/custom-news.php

@@ -0,0 +1,105 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom News*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513571726.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">新闻中心</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 6;
+            // 输出目录
+            echo get_slider_submenus('news',5,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>
+</div>
+	<div class="r">
+		<div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/news">新闻中心</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con ny_news">
+        <ul>
+        <?php
+            // 假设你已经在WordPress环境中,并且有分类ID $category_id
+            $category_id = $cat_id; // 替换为你的分类ID
+            
+            // 获取分页参数
+            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+            
+            // 查询参数
+            $args = array(
+                'cat' => $category_id, // 分类ID
+                'posts_per_page' => 5, // 每页显示的文章数量
+                'paged' => $paged
+            );
+            
+            // 查询文章
+            $query = new WP_Query($args);
+            
+            if ($query->have_posts()) {
+                while ($query->have_posts()) {
+                    $query->the_post();
+                    // 在这里编写你的文章列表
+                    $post_id = get_the_ID(); // 获取文章ID
+                    $excerpt = get_the_excerpt(); // 获取摘要
+                    if ( mb_strlen( $excerpt ) > 90 ) { // 如果字数超过200字
+                        $excerpt = mb_substr( $excerpt, 0, 90 ); // 截取前200个字符
+                        $excerpt .= '...'; // 添加省略号
+                    } 
+        ?>
+                <li>
+                    <div>
+                        <?php
+                        if(has_post_thumbnail()){
+                            // 获取特色图片的ID
+                            $thumbnail_id = get_post_thumbnail_id();
+                            // 获取特色图片的URL
+                            $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                            
+                        ?>
+                            <a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                        <?php
+                            }
+                        ?>
+                    </div>
+                    <h3><a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><?php the_title(); ?></a></h3>
+                    <span><?php echo get_the_date(); ?></span>
+                    <p><?php echo $excerpt; ?></p>
+                    <a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>">查看详情 &gt;&gt;</a>
+                </li>
+        <?php
+                }
+                // 分页导航
+                lingfeng_pagenavi();
+            } else {
+                // 没有找到文章的提示
+                echo '没有找到文章。';
+            }
+            
+            // 重置WordPress查询
+            wp_reset_postdata();
+        ?>
+        </ul>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 109 - 0
arrow360one/custom-newsDetail.php

@@ -0,0 +1,109 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom NewsDetail*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513571726.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">新闻中心</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 6;
+            
+            // 输出目录
+            echo get_slider_submenus('news',5,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>
+</div>
+	<div class="r">
+		<div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/news">新闻中心</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con ny_news_detail">
+        <?php
+            // 文章id
+            $post_id = $_REQUEST['id'];
+            if($post_id) {
+                // 获取文章标题
+                $title = get_post_field('post_title', $post_id);
+                // 获取文章内容
+                $content = get_post_field('post_content', $post_id);
+                // 获取作者ID
+                $author_id = get_post_field('post_author', $post_id);
+                // 获取作者名字
+                $author_name = get_the_author_meta('display_name', $author_id);
+                // 获取发布时间
+                $published_date = get_the_date('', $post_id);
+            }
+            // 检查文章是否存在
+            $post = get_post($post_id);
+            setup_postdata($post);
+            if ($post) {
+                 // 获取当前文章的浏览计数
+                 $post_views = (int) get_post_meta($post->ID, 'views', true);
+        ?>
+            <h3><?php echo $title; ?></h3>
+			<div class="infos">
+				<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/news_detail_03.jpg">发布时间:<?php echo $published_date ?></span>
+				<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/news_detail_04.jpg">发布者:<?php echo $author_name ?></span>
+				<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/news_detail_05.jpg">浏览次数:<?php echo $post_views ?>次</span>
+				<!-- <span><img src="images/news_detail_06.jpg">分享到:<img src="images/news_detail_07.jpg"></span> -->
+			</div>
+			<div class="con">
+                <?php echo $content; ?>
+		    </div>
+
+            <div class="prev_next">
+            <?php
+               
+                // 更新浏览计数
+                update_post_meta($post->ID, 'views', $post_views + 1);
+
+                // 获取上一篇文章
+                $previous_post = get_adjacent_post(true, '', false);
+                // 获取下一篇文章
+                $next_post = get_adjacent_post(true, '', true);
+
+                // 输出前后文章的链接和标题
+                if (!empty($previous_post)) {
+                 echo '<div>上一篇:<a href="/newsDetail/?id=' . $previous_post->ID .'&&fid='.$cat_id. '">' . get_the_title($previous_post) . '</a></div> ';
+                }else{
+                 echo '<div>上一篇:<span>没有啦</span></div>';
+                }
+                if (!empty($next_post)) {
+                 echo '<div>下一篇:<a href="/newsDetail/?id=' . $next_post->ID .'&&fid='.$cat_id. '">' . get_the_title($next_post) . '</a></div> ';
+                }else{
+                 echo '<div>下一篇:<span>没有啦</span></div>';
+                }
+            ?> 
+            </div>
+        <?php   
+            } else {
+                // 没有找到文章的提示
+                echo '没有找到文章。';
+            }
+            
+            wp_reset_postdata();
+        ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 131 - 0
arrow360one/custom-product.php

@@ -0,0 +1,131 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom Product*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513554171.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">产品介绍</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 27;
+            // 输出目录
+            echo get_slider_submenus('product',26,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>
+</div>
+	<div class="r">
+		<div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/product">产品介绍</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con ny_product">
+        
+        <?php
+            // 产品查询
+            if($cat_id == 28){
+                // 获取该分类下的第一篇文章
+                $args = array(
+                    'cat' => $cat_id, // 分类ID
+                    'posts_per_page' => 1, // 每页显示的文章数量
+                    'orderby' => 'date', // 按日期排序
+                    'order' => 'ASC', // 升序
+                );
+
+                $cur_post = get_posts($args);
+                
+                if ($cur_post) {
+                    $content = $cur_post[0]->post_content; // 文章内容
+                    echo $content;
+                } else {
+                    echo '文章不存在';
+                }
+
+                // 释放查询结果
+                wp_reset_postdata();
+            }
+            
+            // 假设你已经在WordPress环境中,并且有分类ID $category_id
+            $category_id = $cat_id; // 替换为你的分类ID
+            
+            // 获取分页参数
+            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+            
+            // 查询参数
+            $args = array(
+                'cat' => $category_id, // 分类ID
+                'posts_per_page' => 9, // 每页显示的文章数量
+                'paged' => $paged
+            );
+            
+            // 查询文章
+            $query = new WP_Query($args);
+            
+            if ($query->have_posts()) {
+                echo '<ul>';
+                while ($query->have_posts()) {
+                    $query->the_post();
+                    // 在这里编写你的文章列表
+                    $post_id = get_the_ID(); // 获取文章ID
+                    $excerpt = get_the_excerpt(); // 获取摘要
+                    if ( mb_strlen( $excerpt ) > 90 ) { // 如果字数超过200字
+                        $excerpt = mb_substr( $excerpt, 0, 90 ); // 截取前200个字符
+                        $excerpt .= '...'; // 添加省略号
+                    }
+                    // 产品介绍模板
+                    if($cat_id == 27){   
+        ?>
+                <li>
+                    <div>
+                        <?php
+                        if(has_post_thumbnail()){
+                            // 获取特色图片的ID
+                            $thumbnail_id = get_post_thumbnail_id();
+                            // 获取特色图片的URL
+                            $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                            
+                        ?>
+                            <a href="#"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                        <?php
+                            }
+                        ?>
+                    </div>
+                    <h3><a href="#"><?php the_title(); ?></a></h3>
+                    <p><?php echo $excerpt; ?></p>
+                </li>
+        <?php
+                 }     
+             }
+                echo '</ul>';
+                // 分页导航
+                lingfeng_pagenavi();
+            } else {
+                // 没有找到文章的提示
+                echo '没有找到文章。';
+            }
+            
+            // 重置WordPress查询
+            wp_reset_postdata();
+        ?>
+        
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 171 - 0
arrow360one/custom-school.php

@@ -0,0 +1,171 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom School*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513545162.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">创业大学</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 30;
+            // 输出目录
+            echo get_slider_submenus('school',29,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>	
+</div>
+	<div class="r">
+        <div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/school">创业大学</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con">
+        <?php
+                if($cat_id != 32&&$cat_id != 35&&$cat_id != 36){
+                    echo "<div>";
+                    if($cat_id == 31){ 
+                        echo "<div class='ny_school2'>";
+                    }
+                    // 获取该分类下的第一篇文章
+                    $args = array(
+                        'cat' => $cat_id, // 分类ID
+                        'posts_per_page' => 1, // 每页显示的文章数量
+                        'orderby' => 'date', // 按日期排序
+                        'order' => 'ASC', // 升序
+                    );
+
+                    $cur_post = get_posts($args);
+
+                    if ($cur_post) {
+                        $content = $cur_post[0]->post_content; // 文章内容
+                        echo $content;
+                    } else {
+                        echo '文章不存在';
+                    }
+                    echo "</div>";
+                    // 释放查询结果
+                    wp_reset_postdata();    
+                }
+
+            // 假设你已经在WordPress环境中,并且有分类ID $category_id
+            $category_id = $cat_id; // 替换为你的分类ID
+            
+            // 获取分页参数
+            $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
+            
+            // 查询参数
+            $args = array(
+                'cat' => $category_id, // 分类ID
+                'posts_per_page' => 12, // 每页显示的文章数量
+                'paged' => $paged
+            );
+            
+            // 查询文章
+            $query = new WP_Query($args);
+            
+            if ($query->have_posts()) {
+                if($cat_id == 32){ 
+                    echo '<div class="ny_school3"><ul>';
+                }
+                if($cat_id == 35){ 
+                    echo '<div class="ny_school6"><ul>';
+                }
+                if($cat_id == 36){ 
+                    echo '<div class="ny_school7"><ul>';
+                }
+                while ($query->have_posts()) {
+                    $query->the_post();
+                    // 在这里编写你的文章列表
+                    $post_id = get_the_ID(); // 获取文章ID
+                    $post_slug = get_post_field( 'post_name', $post_id ); // 获取文章别名
+                    $excerpt = get_the_excerpt(); // 获取摘要
+                    
+                    // 师资力量
+                    if($cat_id == 32){  
+            ?>
+                        <li>
+                            <div>
+                                <?php
+                                if(has_post_thumbnail()){
+                                    // 获取特色图片的ID
+                                    $thumbnail_id = get_post_thumbnail_id();
+                                    // 获取特色图片的URL
+                                    $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                                    
+                                ?>
+                                    <a href="#"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                                <?php
+                                    }
+                                ?>
+                            </div>
+                            <h3><a href="#"><?php the_title(); ?></a></h3>
+                            <p><?php echo $excerpt; ?></p>
+                        </li>
+            <?php
+                        } 
+                        // 学员分享
+                        if($cat_id == 35){ 
+            ?>
+                            <li>
+                                <h3><a href="/schoolDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><span>&gt;&gt;</span><?php the_title(); ?></a></h3>
+                                <div><?php echo $excerpt; ?> </div>
+                            </li>
+            <?php
+                        }
+                        // 成功案例
+                        if($cat_id == 36){
+            ?>
+                        <li>
+                            <div>
+                                <?php
+                                if(has_post_thumbnail()){
+                                    // 获取特色图片的ID
+                                    $thumbnail_id = get_post_thumbnail_id();
+                                    // 获取特色图片的URL
+                                    $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                                    
+                                ?>
+                                    <a href="/schoolDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                                <?php
+                                    }
+                                ?>
+                            </div>
+                            <h3><a href="/schoolDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><?php the_title(); ?></a></h3>
+                            <span><?php echo urldecode($post_slug); ?></span>
+                            <p><?php echo $excerpt; ?></p>
+                        </li>
+            <?php
+                        }    
+                    }
+                        echo '</ul></div>';
+                        // 分页导航
+                        lingfeng_pagenavi();
+                    } else {
+                        // 没有找到文章的提示
+                        echo '没有找到文章。';
+                    }
+                    
+                    // 重置WordPress查询
+                    wp_reset_postdata();
+            ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 109 - 0
arrow360one/custom-schoolDetail.php

@@ -0,0 +1,109 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+/*Template Name: Custom SchoolDetail*/
+get_header();
+?>
+<div class="ny_ban"><img src="/wp-content/uploads/2024/03/2019072513571726.jpg"></div>
+
+<div class="ny_main w1200">
+	<div class="l">
+		<div class="box">
+    <div class="tit">创业大学</div>
+    <div class="bor">
+        <ul class="lm">
+            <?php
+            // 获取当前子分类
+            $cat_id = $_REQUEST['fid'] ?? 30;
+            
+            // 输出目录
+            echo get_slider_submenus('school',29,$cat_id)
+            ?>
+        </ul>
+    </div>
+</div>		
+<?php include 'concat.php'; ?>
+</div>
+	<div class="r">
+		<div class="tit">
+			<div class="lj">您当前位置 :<a href="/index">首页</a> > <a href="/school">创业大学</a> > <span><?php echo get_cat_name($cat_id) ?></span></div>
+			<span><?php echo get_cat_name($cat_id) ?></span>
+		</div>
+        <div class="con ny_news_detail">
+        <?php
+            // 文章id
+            $post_id = $_REQUEST['id'];
+            if($post_id) {
+                // 获取文章标题
+                $title = get_post_field('post_title', $post_id);
+                // 获取文章内容
+                $content = get_post_field('post_content', $post_id);
+                // 获取作者ID
+                $author_id = get_post_field('post_author', $post_id);
+                // 获取作者名字
+                $author_name = get_the_author_meta('display_name', $author_id);
+                // 获取发布时间
+                $published_date = get_the_date('', $post_id);
+            }
+            // 检查文章是否存在
+            $post = get_post($post_id);
+            setup_postdata($post);
+            if ($post) {
+                 // 获取当前文章的浏览计数
+                 $post_views = (int) get_post_meta($post->ID, 'views', true);
+        ?>
+            <h3><?php echo $title; ?></h3>
+			<div class="infos">
+				<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/news_detail_03.jpg">发布时间:<?php echo $published_date ?></span>
+				<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/news_detail_04.jpg">发布者:<?php echo $author_name ?></span>
+				<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/news_detail_05.jpg">浏览次数:<?php echo $post_views ?>次</span>
+				<!-- <span><img src="images/news_detail_06.jpg">分享到:<img src="images/news_detail_07.jpg"></span> -->
+			</div>
+			<div class="con">
+                <?php echo $content; ?>
+		    </div>
+
+            <div class="prev_next">
+            <?php
+               
+                // 更新浏览计数
+                update_post_meta($post->ID, 'views', $post_views + 1);
+
+                // 获取上一篇文章
+                $previous_post = get_adjacent_post(true, '', false);
+                // 获取下一篇文章
+                $next_post = get_adjacent_post(true, '', true);
+
+                // 输出前后文章的链接和标题
+                if (!empty($previous_post)) {
+                 echo '<div>上一篇:<a href="/schoolDetail/?id=' . $previous_post->ID .'&&fid='.$cat_id. '">' . get_the_title($previous_post) . '</a></div> ';
+                }else{
+                 echo '<div>上一篇:<span>没有啦</span></div>';
+                }
+                if (!empty($next_post)) {
+                 echo '<div>下一篇:<a href="/schoolDetail/?id=' . $next_post->ID .'&&fid='.$cat_id. '">' . get_the_title($next_post) . '</a></div> ';
+                }else{
+                 echo '<div>下一篇:<span>没有啦</span></div>';
+                }
+            ?> 
+            </div>
+        <?php   
+            } else {
+                // 没有找到文章的提示
+                echo '没有找到文章。';
+            }
+            
+            wp_reset_postdata();
+        ?>
+        </div>
+    </div>
+</div>
+<style>
+    .swiper-wrapper{height:auto;}
+</style>
+<?php get_footer(); ?>
+
+</body>
+</html>

+ 91 - 0
arrow360one/footer.php

@@ -0,0 +1,91 @@
+<footer>
+	<div class="w1200">
+		<div class="ewm"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_115.jpg"><p>扫一扫,手机浏览</p></div>
+		<div class="menu">
+			<dl>
+				<dt>走进箭冠</dt>
+				<?php echo get_footer_submenus('about',3) ?>
+			</dl>
+			<dl>
+				<dt>新闻中心</dt>
+				<?php echo get_footer_submenus('news',5) ?>
+            </dl>
+			<dl>
+				<dt>我要加盟</dt>
+				<dd><a href="/joinIndex">加盟首页</a></dd>
+				<?php echo get_footer_submenus('join',10) ?>
+			</dl>
+			<dl>
+				<dt>产品介绍</dt>
+				<?php echo get_footer_submenus('product',26) ?>
+			</dl>
+			<dl>
+				<dt>联系我们</dt>
+				<?php echo get_footer_submenus('contact',37) ?>
+			</dl>
+			<dl>
+				<dt>诚聘英才</dt>
+				<?php echo get_footer_submenus('jobs',39) ?>
+			</dl>
+		</div>
+		<div class="clear"></div>
+		<!-- <div class="links"><span>友情链接:</span>
+       	        <a href="https://www.360arrow.com/" target="_blank">箭冠商城</a>|
+        </div> -->
+	</div>
+	<div class="copyright">
+		<p>
+			<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 14px;">
+			地 址:中国广东省东莞市茶山镇茶山工业园 电 话:400-881-2323 传 真:0769-81860108 邮箱:pengtao@360arro</span>
+			<span style="font-family: 微软雅黑, &quot;Microsoft YaHei&quot;; font-size: 14px;">w.com</span>
+		</p>
+		Copyright 2019 东莞市箭冠汽车配件制造有限公司  
+		<a href="http://beian.miit.gov.cn/" target="_blank">粤ICP备19113340号</a> 
+	</div>
+	
+</footer>
+
+<div class="r_online">
+	<ul>
+		<li><a href="/contact/?fid=45"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/r_online_01.png?ee"></a></li>
+		<li><em><em style=" background-image:url(<?php echo get_stylesheet_directory_uri(); ?>/assets/images/r_online_02.png);"></em></em><div>电话:400-881-2323</div></li>
+		<li><em><em style=" background-image:url(<?php echo get_stylesheet_directory_uri(); ?>/assets/images/r_online_03.png);"></em></em><div>邮箱:pengtao@360arrow.com</div></li>
+		<li><em><em style=" background-image:url(<?php echo get_stylesheet_directory_uri(); ?>/assets/images/r_online_04.png);"></em></em><div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/contact_04.jpg"></div></li>
+		<li class="scrolltop"><em><em style=" background-image:url(<?php echo get_stylesheet_directory_uri(); ?>/assets/images/r_online_05.png);"></em></em></li>
+		<div class="clear"></div>
+	</ul>
+</div>
+
+<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/js/jquery-1.8.3.min.js"></script>
+<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/js/js.js"></script>
+<script type="text/javascript">
+//返回顶部
+$(function(){
+	var st=$('.scrolltop');
+	st.click(function(){
+		$('body,html').animate({scrollTop:0},500)
+	});
+	showorhide(st);
+	$(window).scroll(function(){
+		showorhide(st);
+	});
+
+	// 主菜单高亮显示
+	var hrefs = location.href;
+	var menusId = ['index','about','news','join','product','school','contact','jobs'];
+	var indexs = menusId.findIndex(item => hrefs.indexOf('/'+item) >= 0);
+	if(indexs>=0){
+		$('.menu').find("[href*='/"+menusId[indexs]+"']").parent().addClass('on');
+	}else{
+		$('.menu li').first().addClass('on');
+	}
+});
+function showorhide(obj){
+	var w_top=$(window).scrollTop();
+	if(w_top>300){
+		obj.fadeIn();
+	}else{
+		obj.fadeOut();
+	}
+}
+</script>

+ 186 - 0
arrow360one/functions.php

@@ -0,0 +1,186 @@
+<?php
+add_theme_support( 'custom-aboutus' );
+add_theme_support( 'custom-news' );
+add_theme_support( 'custom-newsDetail' );
+add_theme_support( 'custom-join' );
+add_theme_support( 'custom-joinIndex' );
+add_theme_support( 'custom-product' );
+add_theme_support( 'custom-school' );
+add_theme_support( 'custom-schoolDetail' );
+add_theme_support( 'custom-contact' );
+add_theme_support( 'custom-jobs' );
+ 
+// 自定义评论留言
+function submit_custom_comment() {
+	if (isset($_POST['comment_data'])) {
+			parse_str($_POST['comment_data'], $commentData); // 解析评论数据
+			// 构建评论数据数组
+			$comment_args = array(
+				'comment_post_ID'      => $commentData['comment_post_ID'],
+                'comment_author_IP'    => $commentData['comment_author_IP'],
+				'comment_author_url'   => $commentData['comment_author_url'],
+				'comment_author'       => $commentData['comment_author'],
+				'comment_author_email' => $commentData['comment_author_email'],
+				'comment_content'      => $commentData['comment'],
+				'comment_type'         => 'comment',
+				'comment_meta'         => array(
+					'phone'            => $commentData['comment_author_phone'], // 将自定义字段添加到评论元数据中
+					'compname'         => $commentData['comment_compname'], // 将自定义字段添加到评论元数据中
+                    'address'          => $commentData['comment_provinces'].$commentData['comment_city'].$commentData['comment_area'].' '.$commentData['comment_address'], // 将自定义字段添加到评论元数据中
+				)
+			);
+			// 插入评论
+			$comment_id = wp_insert_comment($comment_args);
+			if ($comment_id !== 0) {
+                echo json_encode(['status' => 'success', 'comment_id' => $comment_id]);
+            } else {
+                echo json_encode(['status' => 'error', 'message' => 'Failed to submit comment.']);
+            }
+	}
+	die(); // 必须终止脚本
+}
+add_action('wp_ajax_submit_custom_comment', 'submit_custom_comment'); // 钩子 - 处理登录用户的请求
+add_action('wp_ajax_nopriv_submit_custom_comment', 'submit_custom_comment'); // 钩子 - 处理非登录用户的请求
+
+// 添加后台评论处显示自定义字段代码
+add_filter( 'manage_edit-comments_columns', 'my_comments_columns' );
+add_action( 'manage_comments_custom_column', 'output_my_comments_columns', 10, 3 );
+ 
+function my_comments_columns( $columns ){
+   $columns[ 'phone' ] = __( '电话' ); 
+   $columns[ 'compname' ] = __( '主营项目' );
+   $columns[ 'address' ] = __( '地址' ); 
+    return $columns;
+}
+ 
+function output_my_comments_columns( $column_name, $comment_id ){
+    switch( $column_name ) {
+	case "phone" :
+	echo get_comment_meta( $comment_id, 'phone', true );
+	break;
+	case "compname" :
+	echo get_comment_meta( $comment_id, 'compname', true );
+    break;
+    case "address" :
+    echo get_comment_meta( $comment_id, 'address', true );
+	break;
+	}
+}
+
+// 在文章被创建时设置初始浏览计数
+add_action('draft_to_publish', 'set_post_views_on_publish');
+add_action('save_post', 'set_post_views_on_publish');
+function set_post_views_on_publish($post_ID) {
+    if (!isset($_POST['post_ID'])) {
+        return;
+    }
+    $post_ID = $_POST['post_ID'];
+    if (!isset($_POST['post_status']) || 'publish' !== $_POST['post_status']) {
+        return;
+    }
+    $count_key = 'views';
+    $count = (int) get_post_meta($post_ID, $count_key, true);
+    if (!$count) {
+        delete_post_meta($post_ID, $count_key);
+        add_post_meta($post_ID, $count_key, '0');
+    }
+}
+
+// 添加封面图片选项到文章编辑页面
+function add_featured_image_field_to_edit_page() {
+    add_meta_box('featured_image_meta_box', '设置封面图片', 'render_featured_image_meta_box', 'post', 'normal', 'high');
+}
+add_action('add_meta_boxes', 'add_featured_image_field_to_edit_page');
+ 
+// 渲染封面图片选项界面
+function render_featured_image_meta_box($post) {
+    // 非必要代码,用于在编辑页面显示提示信息
+    echo '<p>请上传作为文章封面的图片:</p>';
+    // 创建图片上传表单
+    wp_nonce_field('featured_image_nonce', 'featured_image_nonce_field');
+    ?>
+    <input type="hidden" name="featured_image_id" value="<?php echo get_post_thumbnail_id($post->ID) ?: ''; ?>">
+    <input type="file" name="featured_image">
+    <?php
+}
+ 
+// 保存封面图片选项
+function save_featured_image_meta($post_id) {
+    if (!isset($_POST['featured_image_nonce_field']) || !wp_verify_nonce($_POST['featured_image_nonce_field'], 'featured_image_nonce')) {
+        return;
+    }
+ 
+    if (!current_user_can('edit_post', $post_id)) {
+        return;
+    }
+ 
+    if (isset($_FILES['featured_image']) && !empty($_FILES['featured_image']['name'])) {
+        $attachment_id = media_handle_upload('featured_image', $post_id);
+        if ($attachment_id) {
+            update_post_meta($post_id, '_thumbnail_id', $attachment_id);
+        }
+    } elseif (isset($_POST['featured_image_id']) && !empty($_POST['featured_image_id'])) {
+        update_post_meta($post_id, '_thumbnail_id', $_POST['featured_image_id']);
+    }
+}
+add_action('save_post', 'save_featured_image_meta');
+
+add_theme_support('post-thumbnails');
+
+/**
+* 数字分页函数
+* 因为wordpress默认仅仅提供简单分页
+* 所以要实现数字分页,需要自定义函数
+* @Param int $range            数字分页的宽度
+* @Return string|empty        输出分页的HTML代码        
+*/
+function lingfeng_pagenavi( $range = 4 ) {
+    global $paged,$query;
+    $max_page = 0;
+    if ( !$max_page ) {
+        $max_page = $query->max_num_pages;
+    }
+    if( $max_page >1 ) {
+        echo "<div class='fenye'>"; 
+        echo '<span>共'.$max_page.'页</span>';
+        if( !$paged ){
+            $paged = 1;
+        }
+        if( $paged != 1 ) {
+            echo "<a href='".get_pagenum_link(1) ."' class='extend' title='跳转到首页'>首页</a>";
+        }
+
+        previous_posts_link('上一页');
+
+        if ( $max_page >$range ) {
+            if( $paged <$range ) {
+                for( $i = 1; $i <= ($range +1); $i++ ) {
+                    echo "<a href='".get_pagenum_link($i) ."'";
+                if($i==$paged) echo " class='current'";echo ">$i</a>";
+                }
+            }elseif($paged >= ($max_page -ceil(($range/2)))){
+                for($i = $max_page -$range;$i <= $max_page;$i++){
+                    echo "<a href='".get_pagenum_link($i) ."'";
+                    if($i==$paged)echo " class='current'";echo ">$i</a>";
+                    }
+            }elseif($paged >= $range &&$paged <($max_page -ceil(($range/2)))){
+                    for($i = ($paged -ceil($range/2));$i <= ($paged +ceil(($range/2)));$i++){
+                        echo "<a href='".get_pagenum_link($i) ."'";if($i==$paged) echo " class='current'";echo ">$i</a>";
+                    }
+                }
+        }else{
+                for($i = 1;$i <= $max_page;$i++){
+                    echo "<a href='".get_pagenum_link($i) ."'";
+                    if($i==$paged)echo " class='current'";echo ">$i</a>";
+                }
+            }
+
+        next_posts_link('下一页',$max_page);
+
+        if($paged != $max_page){
+            echo "<a href='".get_pagenum_link($max_page) ."' class='extend' title='跳转到最后一页'>尾页</a>";
+        }
+        echo "</div>\n";  
+    }
+}
+?>

+ 9 - 0
arrow360one/head.php

@@ -0,0 +1,9 @@
+<head>
+<meta charset="utf-8">
+<title><?php echo get_bloginfo('name'); ?></title>
+<meta name="keywords" content="箭冠汽配,箭冠汽配连锁,箭冠汽配加盟,汽车配件,汽车配件连锁加盟,汽配加盟,箭冠汽车配件连锁加盟,汽车易损易耗件配件加盟,汽配创业加盟,箭牌滤清器,TBU刹车片,德路斯润滑油,汇箭蓄电池,稳升点火线圈,">
+<meta name="description" content="东莞箭冠汽车配件制造有限公司(www.360aap.com),简称箭冠汽配,成立于2001年5月,是一家’产业+互联网S2B2b’商业生态平台.’箭冠汽配连锁’线下连锁门店超过1000家,以&quot;汽车易损易耗件&quot;为品类定位,主营产品:箭牌滤清器、箭牌雨刮片、箭牌喇叭、德路斯润滑油、TBU刹车片、汇箭蓄电池、稳升点火线圈,ngk火花塞等,加盟咨询电话:400-881-2323.">
+<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+<link rel="shortcut icon" href="favicon.ico">
+<link rel="bookmark" href="favicon.ico">
+</head>

+ 116 - 0
arrow360one/header.php

@@ -0,0 +1,116 @@
+<?php include 'libs.php'; ?>
+<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/style.css?d=213331">
+<header>
+	<div class="top1">
+		<div class="w1200">
+			<div class="yy"><a href="/index.php"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_05.jpg">中文</a><a href="/en/index.html"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_07.jpg">EN</a></div>
+			<div class="tel"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_03.jpg">加盟热线:<strong>400-881-2323</strong></div>
+			<p><?php echo get_bloginfo('description'); ?></p>
+		</div>
+	</div>
+	<div class="top2">
+		<div class="w1200">
+			<div class="logo"><a href="/cn/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/logo.jpg"></a></div>
+			 <!-- pc菜单 -->
+			<div class="menu">
+				<ul>
+					<li><a href="/index.php">首页</a></li>
+					<li><a href="/about">走进箭冠</a>
+						<ul>
+							<?php echo get_submenus('about',3) ?>
+						</ul>
+					</li>
+					<li><a href="/news">新闻中心</a>
+						<ul>
+							 <?php echo get_submenus('news',5) ?>
+                         </ul>
+					</li>
+					<li><a href="/joinIndex">我要加盟</a>
+						<ul>
+							<li><a href="/joinIndex">加盟首页</a></li>
+							<?php echo get_submenus('join',10) ?>
+						</ul>
+					</li>
+					<li><a href="/product">产品介绍</a>
+						<ul>
+							<?php echo get_submenus('product',26) ?>
+						</ul>
+					</li>
+					<li><a href="/school">创业大学</a>
+						<ul>
+							<?php echo get_submenus('school',29) ?>
+						</ul>
+					</li>
+					<!-- <li><a href="https://www.360arrow.com/" target="_blank">箭冠商城</a></li> -->
+					<li><a href="/contact">联系我们</a>
+						<ul>
+							<?php echo get_submenus('contact',37) ?>
+						</ul>
+					</li>
+					<li><a href="/jobs">诚聘英才</a>
+						<ul>
+							<?php echo get_submenus('jobs',39) ?>
+						</ul>
+					</li>
+				</ul>
+				<!-- <div class="search"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_16.jpg"></div> -->
+			</div>
+			<!-- 手机菜单 -->
+			<div class="phone_menu_trigger">
+				<div></div>
+				<div></div>
+				<div></div>
+			</div>
+			<ul class="phone_menu" style="display: none;">
+				<li><a href="index.php">首页</a></li>
+				<li class="MpNav">
+					<a>走进箭冠</a>
+					<ul class="phone_menu_tab">
+						<?php echo get_submenus('about',3) ?>
+					</ul>
+				</li>
+				<li class="MpNav">
+					<a>新闻中心</a>
+					<ul class="phone_menu_tab">
+						<?php echo get_submenus('news',5) ?>
+					</ul>
+				</li>
+				<li class="MpNav">
+					<a>我要加盟</a>
+					<ul class="phone_menu_tab">
+						<li><a href="/joinIndex">加盟首页</a></li>
+						<?php echo get_submenus('join',10) ?>
+					</ul>
+				</li>
+				<li class="MpNav">
+					<a>产品介绍</a>
+					<ul class="phone_menu_tab">
+						<?php echo get_submenus('product',26) ?>
+					</ul>
+				</li>
+				<li class="MpNav">
+					<a>创业大学</a>
+					<ul class="phone_menu_tab">
+						<?php echo get_submenus('school',29) ?>
+					</ul>
+				</li>
+				<li><a href="https://www.360arrow.com/" target="_blank">箭冠商城</a></li>
+				<li class="MpNav">
+					<a>联系我们</a>
+					<ul class="phone_menu_tab">
+						<?php echo get_submenus('contact',37) ?>
+						<li><a href="/message">在线留言</a></li>
+					</ul>
+				</li>
+				<li class="MpNav">
+					<a>诚聘英才</a>
+					<ul class="phone_menu_tab">
+						<?php echo get_submenus('jobs',39) ?>
+					</ul>
+				</li>
+				<div class="yy"><a href="cn/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_05.jpg">中文</a><a href="en/index.htm"><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_07.jpg">EN</a></div>
+			</ul>
+			<div class="clear"></div>
+		</div>
+	</div>
+</header>

+ 452 - 0
arrow360one/index.php

@@ -0,0 +1,452 @@
+<!doctype html>
+<html>
+<?php include 'head.php'; ?>
+<body>
+<?php
+get_header(); // 获取头部
+?>
+
+<div class="ind_ban">
+	<div class="swiper-container sw1">
+		<ul class="swiper-wrapper">
+            <li class="swiper-slide"><a href="javascript:;"><img src="/wp-content/uploads/2024/03/2019092410171721.jpg"></a></li>
+            <li class="swiper-slide"><a href="javascript:;"><img src="/wp-content/uploads/2024/03/2019072515043198.jpg"></a></li>
+            <li class="swiper-slide"><a href="javascript:;"><img src="/wp-content/uploads/2024/03/2019072515054593.jpg"></a></li>
+        </ul>
+		<!--<div class="swiper-pagination swp1"></div>-->
+		<div class="swiper-button-prev swbp1"></div>
+		<div class="swiper-button-next swbn1"></div>
+	</div>
+</div>
+
+<div class="ind_box1">
+	<div class="ind_tit1">
+		<h3>关于我们</h3>
+		<p><span>“产业+互联网”S2B2b商业生态平台</span></p>
+	</div>
+	<div class="w1200">
+		<ul>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_25.jpg"></div>
+				<h3>1000<span>+</span></h3>
+				<p>连锁门店</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_26.jpg"></div>
+				<h3>30<span>+</span></h3>
+				<p>专利技术</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_27.jpg"></div>
+				<h3>17<span>+</span></h3>
+				<p>品牌权益 </p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_28.jpg"></div>
+				<h3>5000<span>+</span></h3>
+				<p>修配联合</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_29.jpg"></div>
+				<h3>5万<span>+</span></h3>
+				<p>社区站点</p>
+			</li>
+		</ul>
+	</div>
+</div>
+
+<div class="ind_box2">
+	<div class="l">
+        <video id="video1" loop poster="" width="100%" height="auto">
+            <source src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/video.mp4" type="video/mp4">
+        </video> 
+    </div>
+	<div class="r">
+		<ul>
+			<li>
+				<span>产业</span>
+				<div>是一家专业研发、生产、销售、服务汽车易损易耗件的一体化、生态化的综合性汽配企业。</div>
+			</li>
+			<li>
+				<span>定位</span>
+				<div>以“汽车易损易耗件”为品类定位,以“终端汽修汽保店”为客户定位</div>
+			</li>
+			<li>
+				<span>模式</span>
+				<div>推行“汽车易损易耗件产业+互联网”的新商业模式,全力打造全产业链全流程互联网化的管理服务S2B2b2C商业生态平台</div>
+			</li>
+			<a href="/about" class="more">更多 >></a>
+		</ul>
+	</div>
+</div>
+
+<div class="ind_box3">
+	<div class="ind_tit2">
+		<h3>门店展示</h3>
+		<p><span>千店连锁成功见证</span></p>
+	</div>
+	<div class="w1200">
+		<div class="swiper-container sw2">
+			<ul class="swiper-wrapper">
+				<?php
+				 
+				// 查询参数
+				$args0 = array(
+					'cat' => 24, // 分类ID
+					'posts_per_page' => 9, // 每页显示的文章数量
+					'paged' => $paged
+				);
+				
+				// 查询文章
+				$query0 = new WP_Query($args0);
+				
+				if ($query0->have_posts()) {
+					while ($query0->have_posts()) {
+						$query0->the_post();
+						// 在这里编写你的文章列表
+						$excerpt = get_the_excerpt(); // 获取摘要
+						if ( mb_strlen( $excerpt ) > 90 ) { // 如果字数超过200字
+							$excerpt = mb_substr( $excerpt, 0, 90 ); // 截取前200个字符
+							$excerpt .= '...'; // 添加省略号
+						}
+				  
+				?>
+				<li class="swiper-slide">
+                    <div>
+                        <?php
+                        if(has_post_thumbnail()){
+                            // 获取特色图片的ID
+                            $thumbnail_id = get_post_thumbnail_id();
+                            // 获取特色图片的URL
+                            $thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+                            
+                        ?>
+                            <a href="#"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+                        <?php
+                            }
+                        ?>
+                    </div>
+                    <h3><?php the_title(); ?></h3>
+                </li>
+				<?php    
+					  }
+					} 
+					// 重置WordPress查询
+					wp_reset_postdata();
+				?>
+			</ul>
+		</div>
+		<div class="swiper-button-prev swbp2"></div>
+		<div class="swiper-button-next swbn2"></div>
+		<a href="/about/?fid=24" class="more">更多 >></a>
+	</div>
+</div>
+
+<div class="ind_box4">
+	<div class="ind_tit2">
+		<h3>新闻中心</h3>
+		<p><span>与时俱进,箭冠第一手新闻</span></p>
+	</div>
+	<ul class="lm">
+        <li><a href="/news/?fid=6"><span><span style="background: url(/wp-content/uploads/2024/03/2019072012523265.png);"></span></span>公司资讯</a></li>	
+        <li><a href="/news/?fid=7"><span><span style="background: url(/wp-content/uploads/2024/03/2019072012525057.png);"></span></span>门店速递</a></li>	
+        <li><a href="/news/?fid=8"><span><span style="background: url(/wp-content/uploads/2024/03/2019072012530973.png);"></span></span>行业资讯</a></li>	
+        <li><a href="/news/?fid=9"><span><span style="background: url(/wp-content/uploads/2024/03/2019072012534612.png);"></span></span>品类知识</a></li>
+    </ul>
+	<?php 
+		// 查询参数
+		$args = array(
+			'cat' => 5,
+			'posts_per_page' => 6,
+			'orderby' => 'post_date',
+			'order' => 'DESC',
+			'post_status' => 'publish',
+			'ignore_sticky_posts' => true
+		);
+
+		// 查询文章
+		$query = new WP_Query( $args );
+		if ($query->have_posts()) {
+	?>
+	<div class="list w1200">
+		<?php
+			// 取出第一篇文章
+			$query->the_post();
+		?>
+		<div class="l">
+			<div>
+				<?php
+				if(has_post_thumbnail()){
+					// 获取特色图片的ID
+					$thumbnail_id = get_post_thumbnail_id();
+					// 获取特色图片的URL
+					$thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+					// 标题
+					$title = get_the_title(); 
+                    if ( mb_strlen( $title ) > 22 ) { 
+						$title = mb_substr(  $title, 0, 22 ); 
+						$title .= '...'; // 添加省略号
+                    }
+
+					$categories = get_the_category();
+					if ( ! empty( $categories ) ) {
+						// 获取第一个分类的ID
+						$category_id = $categories[0]->term_id;
+						if($category_id == 5){
+							$category_id = $categories[1]->term_id;
+						}
+					}
+				?>
+					<a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+				<?php
+					}
+				?>
+			</div>
+			<h3><span>[<?php echo get_the_date(); ?>]</span><a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><?php echo $title; ?></a></h3>
+		</div>
+		<?php 
+			rewind_posts(); // 重置查询指针,以便下次使用
+		?>
+		<div class="r">
+			<?php
+				// 取出第二篇文章
+				$query->the_post();
+			?>
+				<div>
+					<div>
+						<?php
+						if(has_post_thumbnail()){
+							// 获取特色图片的ID
+							$thumbnail_id = get_post_thumbnail_id();
+							// 获取特色图片的URL
+							$thumbnail_url = wp_get_attachment_url( $thumbnail_id );
+
+							$excerpt = get_the_excerpt(); // 获取摘要
+							if ( mb_strlen( $excerpt ) > 70 ) { // 如果字数超过200字
+								$excerpt = mb_substr( $excerpt, 0, 70 ); // 截取前200个字符
+								$excerpt .= '...'; // 添加省略号
+							} 
+							$categories = get_the_category();
+							if ( ! empty( $categories ) ) {
+								// 获取第一个分类的ID
+								$category_id = $categories[0]->term_id;
+								if($category_id == 5){
+									$category_id = $categories[1]->term_id;
+								}
+							}
+						?>
+							<a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><img src="<?php echo $thumbnail_url ?>" width="100%"></a>
+						<?php
+							}
+						?>
+					</div>
+					<h3><a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><?php the_title(); ?></a></h3>
+					<span><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_76.jpg"><?php echo get_the_date(); ?></span>
+					<p><?php echo $excerpt; ?></p>
+				</div>
+			<?php 
+				rewind_posts(); // 重置查询指针,以便下次使用
+			?>
+				<ul>
+				<?php 
+					while ($query->have_posts()) {
+						$query->the_post();
+						// 标题
+						$title1 = get_the_title(); 
+						if ( mb_strlen( $title ) > 22 ) { 
+							$title = mb_substr(  $title, 0, 22 ); 
+							$title .= '...'; // 添加省略号
+						} 
+						$categories = get_the_category();
+						if ( ! empty( $categories ) ) {
+							// 获取第一个分类的ID
+							$category_id = $categories[0]->term_id;
+							if($category_id == 5){
+								$category_id = $categories[1]->term_id;
+							}
+						}
+				?>
+					<li>
+					<span>[<?php echo get_the_date(); ?>]</span><a href="/newsDetail/?id=<?php echo the_id() ?>&&fid=<?php echo $category_id ?>"><?php echo $title1; ?></a>
+					</li>
+				<?php 
+					}
+					// 重置WordPress查询
+					wp_reset_postdata();
+				?>
+				</ul>
+				<a href="/news" class="more">更多 >></a>
+		</div>
+	</div>
+	<?php 
+		}
+	?>
+</div>
+
+<div class="ind_box5">
+	<div class="w1200">
+		<div>行业老字号 创业更可靠</div>
+		<h3>中国汽车易损易耗件连锁领跑品牌</h3>
+		<p>加盟热线:400-881-2323</p>
+	</div>
+</div>
+
+<div class="ind_box6">
+	<div class="ind_tit2">
+		<h3>加盟流程</h3>
+		<p><span>全产业链 全流程 互联网化</span></p>
+	</div>
+	<div class="w1200">
+		<ul>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_81.jpg"></div>
+				<p>了解箭冠</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_82.jpg"></div>
+				<p>加盟申请</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_83.jpg"></div>
+				<p>达成协议</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_84.jpg"></div>
+				<p>支付定金</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_85.jpg"></div>
+				<p>统一培训</p>
+			</li>
+			<li>
+				<div><img src="<?php echo get_stylesheet_directory_uri(); ?>/assets/images/index_86.jpg"></div>
+				<p>新店开张</p>
+			</li>
+		</ul>
+	</div>
+</div>
+
+<div class="ind_box7">
+	<?php include 'commentFormMini.php'; ?>
+</div>
+
+<?php
+get_footer(); // 获取尾部
+?>
+<link rel="stylesheet" type="text/css" href="<?php echo get_stylesheet_directory_uri(); ?>/assets/swiper.min.css">
+<style>
+    .swiper-wrapper{
+        height: auto;
+    }
+	.sw2 ul li > div{
+		height: 235px;
+		overflow: hidden;
+		padding:5px;
+		border: 1px solid #ddd;
+		border-radius: 3px;
+	}
+    .sw2 ul li div a{display:flex;height:100%;width:100%;align-items: center;justify-content: center;}
+</style>
+<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/assets/js/swiper.min.js"></script>
+<script type="text/javascript">
+// 提交表单
+jQuery(document).ready(function($) {
+        $('#contact-form').submit(function(e) {
+            e.preventDefault();
+            if($("#rename").val()==''){
+                alert('请输入联系人姓名!');
+                return
+            }
+            if($("#phone").val()==''){
+                alert('请输入联系电话!');
+                return
+            }
+            
+            $.ajax({
+                url: $(this).attr('action'),
+                type: 'post',
+                data: {
+                    action: 'submit_custom_comment',
+                    comment_data: $(this).serialize()
+                },
+                success: function(response) {
+                    alert('提交成功!');
+                    $('#contact-form')[0].reset();
+                },
+                error: function() {
+                    alert('提交失败,请重试.');
+                }
+            });
+        });
+    });
+
+//首页-banner图片
+var swiper1 = new Swiper('.sw1', {
+	slidesPerView: 1,
+	spaceBetween: 0,
+	slidesPerGroup: 1,
+	loop: true,
+	autoplay: {
+		delay: 6000,//秒            
+		disableOnInteraction: false,//滑动不会失效
+		reverseDirection: false,//如果最后一个 反向播放
+	},
+	pagination: {
+		el: '.swp1',
+		clickable: true,
+	},
+	navigation: {
+		nextEl: '.swbp1',
+		prevEl: '.swbn1',
+	},
+});
+//首页-门店展示
+var ww = $(window).width();
+var swiper2 = new Swiper('.sw2', {
+	slidesPerView: ww < 768 ? (ww < 560 ? 1 : 2) : 4,
+	spaceBetween: 16,
+	slidesPerGroup: 1,
+	loop: true,
+	autoplay: {
+		delay: 5000,//秒            
+		disableOnInteraction: false,//滑动不会失效
+		reverseDirection: false,//如果最后一个 反向播放
+	},
+	pagination: {
+		el: '.swp2',
+		clickable: true,
+	},
+	navigation: {
+		nextEl: '.swbp2',
+		prevEl: '.swbn2',
+	},
+});
+
+//控制视频播放
+var video1=document.getElementById("video1");
+video1.onclick=function(){
+    if(video1.paused){
+		video1.play();
+	}else{
+		video1.pause();
+	}
+}
+video1.addEventListener('canplaythrough', function() {
+    video1.play();
+});
+$(window).scroll(function(e){
+    video1.muted = true;
+    if($(this).scrollTop() > $('.ind_box2').offset().top - window.innerHeight){
+        if(video1.paused){
+            video1.play();
+            video1.muted = false;
+        }
+    }else{
+        if(!video1.paused){
+            video1.pause();
+        }
+    }
+})
+</script>
+</body>
+</html>

+ 64 - 0
arrow360one/libs.php

@@ -0,0 +1,64 @@
+<?php
+// 获取特定分类别名下的所有文章
+function get_posts_by_category_slug($category_slug) {
+    $args = array(
+        'numberposts' => -1, // 获取所有文章
+        'post_type' => 'post', // 文章类型
+        'category_name' => $category_slug, // 分类别名
+        'orderby' => 'date', // 按日期排序
+        'order' => 'ASC', // 降序排序
+    );
+    
+    $posts = get_posts($args);
+    return $posts;
+}
+
+// 获取特定分类下所有子目录
+function get_subdirectories($parent_category_id) {
+    $args = array(
+        'parent' => $parent_category_id,
+        'taxonomy' => 'category',
+        'hide_empty' => false,
+        'exclude' => array($parent_category_id), // 排除父分类本身
+        'orderby' => 'id', // 按日期排序
+        'order' => 'ASC', // 降序排序
+    );
+    $subcategories = get_terms( $args );
+    return $subcategories;
+}
+
+// 返回并输出下拉菜单
+function get_submenus($flus, $parent_category_id) {
+        $subdirs = get_subdirectories($parent_category_id);
+        $li = '';
+        if ( !empty( $subdirs ) && !is_wp_error( $subdirs ) ) {
+            foreach ( $subdirs as $category ) {
+                $li.= '<li><a href="/'.$flus.'?fid='.$category->term_id.'">'.$category->name.'</a></li>';
+            }
+        }
+        return $li;
+}
+// 底部菜单导航
+function get_footer_submenus($flus, $parent_category_id) {
+    $subdirs = get_subdirectories($parent_category_id);
+    $li = '';
+    if ( !empty( $subdirs ) && !is_wp_error( $subdirs ) ) {
+        foreach ( $subdirs as $category ) {
+            $li.= '<dd><a href="/'.$flus.'?fid='.$category->term_id.'">'.$category->name.'</a></dd>';
+        }
+    }
+    return $li;
+}
+
+// 输出左侧栏菜单
+function get_slider_submenus($flus, $parent_category_id, $cur_id) {
+    $subdirs = get_subdirectories($parent_category_id);
+    $li = '';
+    if ( !empty( $subdirs ) && !is_wp_error( $subdirs ) ) {
+        foreach ( $subdirs as $category ) {
+            $li.= '<li class="'.($cur_id == $category->term_id ? 'on' : '').'"><a href="/'.$flus.'?fid='.$category->term_id.'"><span>&gt;&gt;</span>'.$category->name.'</a></li>';
+        }
+    }
+    return $li;
+}
+?>

Tiedoston diff-näkymää rajattu, sillä se on liian suuri
+ 13 - 0
arrow360one/map.php


Kaikkia tiedostoja ei voida näyttää, sillä liian monta tiedostoa muuttui tässä diffissä