dever 4 tahun lalu
induk
melakukan
9b1c77af5a

+ 22 - 0
main/template/xuniren/activity.php

@@ -45,6 +45,28 @@ $view
         
     )
 )
+
+# 广告
+->loop
+(
+    '.ad-swiper .swiper-slide',
+    'main/content.ad|key=act_ad&name=活动广告',
+    array
+    (
+        'a' => array
+        (
+            'href' => '$v.link',
+            'title' => '$v.name',
+        ),
+
+        'img' => array
+        (
+            'src' => '$v.pic',
+            'alt' => '$v.name',
+        ),
+    )
+)
+
 ->fetch('.activity-module@style', 'main/content.news?type=4', 'none')
 
 ->append('body', '<div id="page" dever-page-link="<{Dever::pageInfo()["link"]}>" dever-page-list=".news-module"></div>')

+ 21 - 0
main/template/xuniren/contact.php

@@ -11,6 +11,27 @@ $view
 
 ->fetch('.contact-article', 'main/content.getAbout#content')
 
+# 广告
+->loop
+(
+    '.ad-swiper .swiper-slide',
+    'main/content.ad|key=contact_ad&name=联系我们广告',
+    array
+    (
+        'a' => array
+        (
+            'href' => '$v.link',
+            'title' => '$v.name',
+        ),
+
+        'img' => array
+        (
+            'src' => '$v.pic',
+            'alt' => '$v.name',
+        ),
+    )
+)
+
 ->import('inc/foot')
 
 ->display();   

+ 21 - 0
main/template/xuniren/video.php

@@ -99,6 +99,27 @@ $view
     )
 )
 
+# 广告
+->loop
+(
+    '.ad-swiper .swiper-slide',
+    'main/content.ad|key=video_ad&name=视频广告',
+    array
+    (
+        'a' => array
+        (
+            'href' => '$v.link',
+            'title' => '$v.name',
+        ),
+
+        'img' => array
+        (
+            'src' => '$v.pic',
+            'alt' => '$v.name',
+        ),
+    )
+)
+
 
 ->fetch('.common-pagination', '<{Dever::pageInfo()["html"]}>')