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}