网盛资源- 最新刷机包,救砖解锁,刷机工具教程,免费下载,安卓免费APP下载,源码资源,破解软件资源,辅助游戏工具

 找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 2962|回复: 0

仿子比主题购买页面_推广页代码

[复制链接]

1万

主题

6395

帖子

4万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
49067
发表于 2023-9-3 21:04:58 | 显示全部楼层 |阅读模式
如果您是用户,那么您一定知道子比分销的重要性。许多网站都可以通过推广子比活动来获得一定的收益。今天,我们分享的是如何在网站上增加一个子比主题购买页面,非常实用。
b5d259610d153757.png

操作教程:
第一步:在主题目录wp-content/themes/zibll(或者其他主题的文件夹)/pages下创建一个goumai.php文件,并将以下php代码复制并粘贴到文件中。
  1. <?php

  2. /**
  3. * Template name: 购买页面
  4. * Description:   购买页面
  5. */

  6. // 内容购买页面

  7. get_header();
  8. //$header_style = zib_get_page_header_style();
  9. //$zibll_subtheme_jtzy = ZbPee_pz('jingtaiziyuan');//给ZbPee-Subtheme的JS和CSS复制为$zibll_subtheme_jtzy,用于更换CSS JS调取地址
  10. ?>
  11. <style>
  12. .product-container {
  13.     margin-top: 0px;
  14.     opacity: 1 !important;
  15.     transition: opacity .5s;
  16. }
  17. </style>
  18. <link rel='dns-prefetch' href='//s.w.org' rel="nofollow" />
  19. <link rel='stylesheet' id='pay_page-css'  href='https://tc.pengqi.club/boke/css_pay-page.css_ver=6.1.1.css' type='text/css' media='all' />
  20. <main role="main">

  21. <div class="countdown-activity flex jc" style="margin-top:-20px">
  22.     <div class="activity-content flex ac" style="margin-bottom: 20px;"><!--下降20px-->
  23.         <div class="activity-title mr10">子比主题 限时优惠</div>
  24.         <div class="activity-desc">9月01日至12月30日 子比主题直降30元</div></div><!--标题修改-->
  25.         <div class="countdown-content badg jb-yellow radius flex jc" style="margin-bottom: 20px;"><!--下降20px-->
  26.             <div class="countdown-desc">活动倒计时</div>
  27.             <div class="countdown-time flex0 em09-sm badg jb-vip2 radius" data-over-text="活动已结束" data-newtime="2023-09-01 06:29:29" data-countdown="12/30/2023 23:59:59">X天X小时X分X秒</div></div></div><!--活动时间修改-->

  28. <div class="product-container" style="opacity: 0;">
  29.     <div class="product-box relative">
  30.         <div class="product-background absolute" style="background:var(--linear-bg-5); "></div>
  31.         <div class="product-row relative">
  32.             <div class="payrow-6 payrow-left">
  33.                 <div class="relative zib-slider">
  34.                     <div class="new-swiper swiper-c pay-slides"  data-effect="slide" data-loop="true" data-interval=" data-autoplay="1"" data-spaceBetween="15" style="">
  35.                         <div class="swiper-wrapper">
  36.                             <div class="swiper-slide "><span>
  37. <!--轮播图开始-->
  38. <img class="lazyload swiper-lazy radius8"  data-src="https://tc.pengqi.club/i/2023/08/30/64ef0e552b624.jpg"
  39. src="https://tc.pengqi.club/boke/kongbai.svg"></span></div><div class="swiper-slide "><span>

  40. <img class="lazyload swiper-lazy radius8"  data-src="https://tc.pengqi.club/i/2023/08/30/64ef0e8b88d4e.jpg"
  41. src="https://tc.pengqi.club/boke/kongbai.svg"></span></div><div class="swiper-slide "><span>

  42. <img class="lazyload swiper-lazy radius8"  data-src="https://tc.pengqi.club/i/2023/08/30/64ef09f18a919.jpg"
  43. src="https://tc.pengqi.club/boke/kongbai.svg"></span></div><div class="swiper-slide "><span>

  44. <img class="lazyload swiper-lazy radius8"  data-src="https://tc.pengqi.club/g/2023/09/01/64f19c75d4a57.jpg"
  45. src="https://tc.pengqi.club/boke/kongbai.svg"></span></div></div>
  46. <!--轮播图结束-->
  47.             <div class="swiper-button-prev"></div>
  48.             <div class="swiper-button-next"></div>
  49.             <div class="swiper-pagination kaoyou"></div></div></div>
  50.             <div class="more-but text-center">
  51.     <a class="but hollow c-white" href="https://www.zibll.com/375.html?ref=4142" rel="nofollow" target="_blank">更新日志</a>
  52.     <a class="but hollow c-white" href="https://www.zibll.com/zibll_word?ref=4142" rel="nofollow" target="_blank">主题文档</a>
  53. <!--能运行就不要动-->
  54.     </div></div><div class="payrow-6 payrow-right"><div class="pay-content"><div class="product-header">Zibll子比主题</div>
  55. <!--能运行就不要动-->

  56. <div class="product-doc">
  57.     <div>简约优雅的设计风格、模块化组件、商城支付系统<br>社区论坛系统、深度SEO优化、专注阅读体验</div>
  58. <div class="mt6">
  59.     <a target="_blank" href="https://www.zxki.cn/" class="but c-white font-bold px12 p2-10">赠送本站年费钻石会员
  60.     <i class="ml6 fa fa-angle-right em12"></i></a>

  61.     <a target="_blank" href="https://www.zxki.cn/" class="but c-white font-bold px12 p2-10">赠送官网推广会员,享20%奖励
  62.     <i class="ml6 fa fa-angle-right em12"></i></a>
  63.     </div>

  64.     </div>

  65. <div class="px13"><b class="em3x"><span class="pay-mark">¥</span>569</b><!--现价修改-->
  66. <div class="inline-block ml10 text-left">
  67.     <badge><i class="fa fa-fw fa-bolt"></i>限时特惠</badge><br/>
  68.     <span class="original-price" title="原价 599"><span class="pay-mark">¥</span>599</span></div></div><!--原价修改-->
  69.     <div class="badg badg-lg payvip-icon">使用此链接,下单减10元,咨询再返利。</div>
  70. <div class="product-pay">
  71.     <a href="https://www.zxki.cn/" rel="nofollow"  class="but jb-red signin-loader" target="—_blank">
  72.         <i class="fa fa-angle-right" aria-hidden="true"></i>立即购买</a>

  73.     <a href="https://wpa.qq.com/msgrd?v=3&uin=715366739&site=qq&menu=yes&jumpflag=1" class="but jb-red signin-loader" target="—_blank">
  74.         <i class="fa fa-angle-right" aria-hidden="true"></i>联系本站客服</a>
  75. </div>
  76. </form>

  77. <div class="product-details box-body radius8">
  78. <ul>
  79. <li>最新版本:V7.3.0<a target="_blank" data-toggle="tooltip" title="" href="https://www.zxki.cn/" data-original-title="看看更新了什么?" class="ml10"><i class="fa fa-question-circle-o"></i></a></li>
  80. <li>更新时间:2023-07-20</li>
  81. <li>兼容 WP:5.0-6.1,推荐使用6.1版本</li>
  82. <li>兼用PHP:7.0及以上,推荐7.4版本</li>
  83. <li>授权数量:现在购买享<b style="background: linear-gradient(135deg, #ff9141 10%, #ee2336 100%);color: #fff;border-radius: 100px;padding: 0 6px">3个</b>域名授权</li>
  84. <li>授权更换:授权享免费更换且不限制次数</li>
  85. </ul>
  86. </div>
  87.        </div>
  88.               </div>
  89.                      </div>
  90.                              </div>
  91.                                      </div>

  92. <!--表头样式代码开始-->
  93.     <style>
  94.     .shop-single-z-btn .shouquan_guanli_anniu{
  95.     display: block;
  96.     text-align: center;
  97.     border-radius: 4px;
  98.     background-image: linear-gradient(300deg,#4c4d51 5%,#2a2a31 15%,#85858a 40%,#393a3c 60%,#393838 80%,#5e5f62 100%);
  99.     color: #fff;
  100.     }
  101.     .countdown-activity{background:linear-gradient(135deg, #f411ff 10%, #14d4df 100%);}
  102.     .jb-yellow, .order-type-3 .pay-tag{--this-bg:linear-gradient(135deg, #ff554f 10%, #facf28 100%);}
  103.     @media screen and (min-width: 900px){
  104.         .shop-single-z-btn .shouquan_guanli_anniu{
  105.             font-size: 16px;
  106.             height: 50px;
  107.             line-height: 50px;
  108.         }
  109.     }
  110.     @media screen and (max-width: 900px){
  111.         .shop-single-z-btn .shouquan_guanli_anniu{
  112.             font-size: 15px;
  113.             line-height: 40px;
  114.         }
  115.     }
  116. </style>
  117. <!--表头样式代码结束-->

  118.     <div class="container">
  119.     <div class="theme-box article-content">
  120. <article class="article wp-posts-content">

  121. <?php the_content(  ); ?>
  122. <?php comments_template('/template/comments.php', true); ?>        
  123.     </div></div>
  124.           </main>
  125. <?php
  126. get_footer();
复制代码
注意:将链接替换成您的推广链接。
第二步:在WordPress后台中,选择页面 -> 新建页面,填写页面标题,选择模板为“购买页面”,然后发布即可。
795ef7d367154142-1024x645.png

如果您需要修改页面内容,请到wp-content/themes/zibll(或其他主题文件夹)/pagess/goumai.php中修改您需要的内容。

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|小黑屋|网盛资源论坛 ( 粤ICP备2022085098号 )|网站地图

GMT+8, 2026-11-13 13:49 , Processed in 0.108267 second(s), 28 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表