ripro主题美化教程_免费ripro主题美化代码-添加VIP引导页
ripro主题美化教程添加VIP引导页
第一步:主题ripro/parts目录下navbar.php,在“ < div class =“ actions”> ”和“ <?php if(is_site_shop_open()):?> ”之间添加如下代码
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
//
// Field: VIP页设置
//
CSF::createSection($prefix, array(
‘parent’ => ‘shop_fields’,
‘title’=> ‘VIP页设置’,
‘icon’=> ‘fa fa-circle’,
‘fields’ => array(
array(
‘id’=> ‘homevip_field’,
‘type’=> ‘fieldset’,
‘title’=> ‘头部大图相关设置’,
‘fields’ => array(
array(
‘id’=> ‘homevip_topimg’,
‘type’=> ‘upload’,
‘title’=> ‘VIP引导页头部大图’,
‘dsec’=> ‘上传一张显示在VIP引导页的大图’,
‘default’=> get_stylesheet_directory_uri() . ‘/assets/images/comvip-banner.png’,
),
array(
‘id’=> ‘homevip_top_title’,
‘type’=> ‘text’,
‘title’=> ‘头部大图文字’,
‘default’ => ‘开通VIP独享海量下载特权’,
),
array(
‘id’=> ‘homevip_top_description’,
‘type’=> ‘text’,
‘title’=> ‘头部大图描述’,
‘default’ => ‘现在努力只为 不再仰望大神的后背!’,
),
array(
‘id’=> ‘homevip_top_switcher’,
‘type’=> ‘switcher’,
‘title’=> ‘头部大图按钮开关’,
‘default’ => true,
),
array(
‘id’=> ‘homevip_top_text’,
‘type’=> ‘text’,
‘title’=> ‘按钮文字’,
‘default’ => ‘开通会员’,
‘dependency’ => array(‘homevip_top_switcher’, ‘==’, ‘true’),
),
),
),
array(
‘type’=> ‘notice’,
‘style’=> ‘success’,
‘content’ => ‘注意,这里添加特权说明时,请添加3或3的倍数个,不然不美观!!!特权图标示例 <span style=”color:red;”>fa fa-vimeo-square</span> <a target=”_blank”>图标获取地址:http://fontawesome.dashgame.com/</a>’,
‘dependency’ => array(‘is_show_homevip’, ‘==’, ‘true’),
),
array(
‘id’=> ‘homevip_numtext’,
‘type’=> ‘text’,
‘title’=> ‘VIP特权模块标题’,
‘default’ => ‘会员尊享6项特权’,
),
array(
‘id’=> ‘homevip_group’,
‘type’=> ‘group’,
‘title’=> ‘VIP特权说明’,
‘label’=> ‘请添加3或3的倍数个,不然不美观!!!’,
‘max’=> ‘6’,
‘fields’=> array(
array(
‘id’=> ‘_ico’,
‘type’=> ‘text’,
‘title’ => ‘特权图标’,
‘default’=>‘fa fa-vimeo-square’,
),
array(
‘id’=> ‘_text1’,
‘type’=> ‘text’,
‘title’ => ‘特权说明-1(大标题)’,
‘default’=>‘1000+资源,无限量下载’,
),
array(
‘id’=> ‘_text2’,
‘type’=> ‘text’,
‘title’ => ‘特权说明-2’,
‘default’=>‘真正的海量,无套路,诚意满满’,
),
),
‘default’ => array(
array(
‘_ico’=> ‘fa fa-vimeo-square’,
‘_text1’=> ‘1000+资源,无限量下载’,
‘_text2’=> ‘真正的海量,无套路,诚意满满’,
),
),
),
array(
‘id’=> ‘homevip_montext’,
‘type’=> ‘fieldset’,
‘title’=> ‘VIP资费设置’,
‘fields’ => array(
array(
‘id’=> ‘_title1’,
‘type’=> ‘text’,
‘title’ => ‘标题-1’,
‘default’=>‘VIP会员资费介绍’,
),
array(
‘id’=> ‘_title2’,
‘type’=> ‘text’,
‘title’ => ‘标题-2’,
‘attributes’ => array(
‘style’ => ‘width: 100%;’,
),
‘default’=>‘在这里,会员每平均10个用户开通会员, 下载资源 100+份~’,
),
),
),
),
));
第四步:主题目录打开functions.php,搜索“ pages / tags.php ”并进入到该处,换一行添加
第五步:ripro -> inc -> codestar-framework -> options 目录下打开 options.theme.php,搜索“开通套餐设置”,定位到该结果出,修改该处设置
|