From 6ba1ed871a4fe7060ecb535e33ca545148fac02b Mon Sep 17 00:00:00 2001 From: maxitio Date: Thu, 18 Jul 2019 11:42:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=95=86=E5=BA=97=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2legacy=E9=80=89=E9=A1=B9=EF=BC=8C=E5=8E=9F=E7=89=88ssp?= =?UTF-8?q?anel=E7=9A=84=E6=A0=B7=E5=BC=8F=EF=BC=8C=E9=9C=80=E8=A6=81?= =?UTF-8?q?=E6=9B=B4=E6=96=B0.malio=5Fconfig.php?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/.malio_config.example.php | 1 + resources/views/malio/user/shop.tpl | 63 +++++++++++++++++++++++++++++ 2 files changed, 64 insertions(+) diff --git a/config/.malio_config.example.php b/config/.malio_config.example.php index 884f3a4f..079945cc 100644 --- a/config/.malio_config.example.php +++ b/config/.malio_config.example.php @@ -62,6 +62,7 @@ $Malio_Config['share_account'] = [ // 一个array为一个共享账号 // 商店 +$Malio_Config['shop_style'] = 'plans'; // 商店的显示风格, legacy为SSPANEL原版,plans为新版 $Malio_Config['shop_sub_title'] = '竭尽全力为您提供优质的服务'; // 商店的小标题,可以使用 HTML 标签 $Malio_Config['plan_1_name'] = '标准版'; // 第一个会员计划的名字 diff --git a/resources/views/malio/user/shop.tpl b/resources/views/malio/user/shop.tpl index c7a8ee85..a30e38ed 100644 --- a/resources/views/malio/user/shop.tpl +++ b/resources/views/malio/user/shop.tpl @@ -59,6 +59,7 @@
{include file='user/navbar.tpl'} + {if $malio_config['shop_style'] == 'plans'}
@@ -293,6 +294,68 @@
+ {elseif $malio_config['shop_style'] == 'legacy'} +
+
+
+

商店

+
+
+

选择合适的会员订阅计划

+

{$malio_config['shop_sub_title']}

+ +
+ {foreach $shops as $shop} +
+
+
+ {$shop->name} +
+
+
+
¥{$shop->price}
+
每月
+
+
+
+
+
{$shop->bandwidth()}GB 使用流量
+
+
+
+
{$shop->class_expire()}天 会员时长
+
+ {if {$shop->connector()} > '0' } +
+
+
{$shop->connector()}个 在线客户端
+
+ {/if} + {if {$shop->speedlimit()} == '0' } +
+
+
{$shop->speedlimit()} 最高速率
+
+ {/if} + {foreach $shop->content_extra() as $service} +
+
+
{$service[1]}
+
+ {/foreach} +
+
+
+ 购买 +
+
+
+ {/foreach} +
+
+
+
+ {/if}