151 |
--------------------------------------------------------------------------------
/core/editor.php:
--------------------------------------------------------------------------------
1 | bottom = array('editor', 'button');
3 | Typecho_Plugin::factory('admin/write-page.php')->bottom = array('editor', 'button');
4 | class editor
5 | {
6 | public static function button(){
7 | ?>
10 |
56 |
101 |
146 |
147 |
189 |
231 |
2 | need('header.php'); ?>
3 |
4 |
34 |
35 |
36 |
37 |
75 |
76 |
77 |
78 |
79 | content,$this,$this->user->hasLogin()); ?>
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 | need('comments.php'); ?>
88 |
89 |
90 |
91 |
转一转~
92 |
96 |
101 |
102 |
103 |
104 |
105 | need('footer.php'); ?>
106 |
--------------------------------------------------------------------------------
/index.php:
--------------------------------------------------------------------------------
1 |
13 |
14 | need('header.php');
15 | $this->need('modules/sticky.php');
16 | ?>
17 |
18 |
options->bcool_animate)): ?>animate__animated animate__options->bcool_animate() ?>">
19 |
20 |
21 |
22 | have()): ?>
23 | next()): ?>
24 |
25 |
26 |
27 |
28 | sticky();?>
29 |
category('
', false,'暂无分类'); ?>
30 |
31 |
32 | title('20', '...') ?>
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
author() ?>
41 |
42 |
43 | date(); ?>
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 | Not Found
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 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 | 啊哦~这里空空如也
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
到底啦~
176 |
177 |
178 |
179 |
加载错误
180 |
181 |
182 |
183 |
184 | pageLink('下一页','next'); ?>
185 |
186 |
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 | need('footer.php'); ?>
196 |
--------------------------------------------------------------------------------
/post.php:
--------------------------------------------------------------------------------
1 |
2 | need('header.php'); ?>
3 |
4 |
36 |
37 |
38 |
39 |
74 |
75 |
76 |
77 |
78 | content,$this,$this->user->hasLogin()); ?>
79 |
80 |
81 |
82 |
83 |
84 |
85 |
87 |
88 |
89 | widget('Widget_Archive@recommend'.$prevId, 'pageSize=1&type=post', 'cid='.$prevId)->to($prev);?>
90 |
91 |
92 |
上一篇
93 |
94 | title)):?>没有了~title();?>
95 |
96 |
97 |
98 |
99 |
100 | widget('Widget_Archive@recommend'.$nextId, 'pageSize=1&type=post', 'cid='.$nextId)->to($next);?>
101 |
102 |
103 |
下一篇
104 |
105 | title)):?>没有了~title();?>
106 |
107 |
108 |
109 |
110 |
111 | need('comments.php'); ?>
112 |
113 |
114 |
115 |
转一转~
116 |
120 |
125 |
126 |
127 |
128 |
129 | need('footer.php'); ?>
130 |
--------------------------------------------------------------------------------
/archive.php:
--------------------------------------------------------------------------------
1 |
2 | need('header.php');
3 | ?>
4 |
options->bcool_animate)): ?>animate__animated animate__options->bcool_animate() ?>">
5 |
6 |
7 |
8 |
首页 /
archiveTitle(array(
9 | 'category' => _t('分类'),
10 | 'search' => _t('关键字'),
11 | 'tag' => _t('标签'),
12 | 'author' => _t('作者')
13 | ), '', ''); ?> /
archiveTitle(array(
14 | 'category' => _t('%s'),
15 | 'search' => _t('包含关键字 %s'),
16 | 'tag' => _t('标签 %s'),
17 | 'author' => _t('%s')
18 | ), '', ''); ?>
19 |
20 |
21 |
22 |
42 |
43 |
44 |
45 |
46 |
47 |
48 | have()): ?>
49 | next()): ?>
50 |
51 |
52 |
53 |
54 |
55 |
56 |
tags('
', false, '暂无标签'); ?>
57 |
58 |
59 |
60 | title('20', '...') ?>
61 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
author(); ?>
69 |
70 |
71 | date(); ?>
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 | Not Found
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 |
120 |
121 |
122 |
123 |
124 |
125 |
126 |
127 |
128 |
129 |
130 |
131 |
132 |
133 |
134 |
135 |
136 |
137 |
138 |
139 |
140 |
141 |
142 |
143 |
144 |
145 |
146 |
147 |
148 |
149 |
150 |
151 |
152 |
153 |
154 |
155 |
156 |
157 |
158 |
159 |
160 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
169 |
170 |
171 |
172 |
173 |
174 |
175 |
176 |
177 |
178 |
179 |
180 |
181 |
182 |
183 |
184 |
185 |
186 |
187 |
188 |
189 | 啊哦~这里空空如也
190 |
191 |
192 |
193 |
194 |
195 |
196 |
197 |
198 |
199 |
200 |
201 |
到底啦~
202 |
203 |
204 |
205 |
加载错误
206 |
207 |
208 |
209 | pageLink('下一页','next'); ?>
210 |
211 |
212 |
213 |
214 |
215 |
216 |
217 |
218 | need('footer.php'); ?>
219 |
--------------------------------------------------------------------------------
/functions.php:
--------------------------------------------------------------------------------
1 |
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 |
51 |
52 | 本主题设置项请勿添加emoji表情,否则可能导致其他配置项被清空的情况。
53 | 主题用户交流QQ群:561848356
54 | 主题讨论微社区:戳这里访问
55 |
56 |
57 |
58 | 本主题为瀑布流式摄影类博客主题,适合喜欢瀑布流的摄影类博客站长使用
59 | 不懂的问题或本主题存在的问题可加群或在微社区中进行反馈
60 | 最后,祝您使用愉快:)
61 |
62 |
63 |
64 |
81 | themeVersion()){
83 | echo '
84 | 本主题最新版本为V'.$Versions['version'].',您的版本为V'.themeVersion().',请及时完成更新!
85 |
86 |
';
87 | }
88 |
89 | ?>
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
101 |
107 |
108 |
109 | HTML;
110 |
111 | $layout = new Typecho_Widget_Helper_Layout();
112 | $layout->html(_t($Html));
113 | $layout->setAttribute('class', 'bearui_content bearui_global');
114 | $form->addItem($layout);
115 |
116 | $bcool_title = new Typecho_Widget_Helper_Form_Element_Text('bcool_title',null,$options->title, '站点标题', '请填入站点标题,不要太长');
117 | $bcool_title->setAttribute('class', 'bearui_content bearui_global');
118 | $form->addInput($bcool_title);
119 | $bcool_titleb = new Typecho_Widget_Helper_Form_Element_Text('bcool_titleb',null,'', '站点副标题', '请填入站点副标题,不要太长,将显示在站点标题的后面,不填则不显示');
120 | $bcool_titleb->setAttribute('class', 'bearui_content bearui_global');
121 | $form->addInput($bcool_titleb);
122 | $bcool_keywords = new Typecho_Widget_Helper_Form_Element_Text('bcool_keywords',null,$options->keywords, '站点SEO关键词', '请填入站点SEO关键词,请以半角逗号 "," 分割多个关键字.');
123 | $bcool_keywords->setAttribute('class', 'bearui_content bearui_global');
124 | $form->addInput($bcool_keywords);
125 | $bcool_description = new Typecho_Widget_Helper_Form_Element_Text('bcool_description',null,$options->description, '站点SEO描述', '请填入站点SEO描述,不要太长.');
126 | $bcool_description->setAttribute('class', 'bearui_content bearui_global');
127 | $form->addInput($bcool_description);
128 |
129 | $bcool_logo = new Typecho_Widget_Helper_Form_Element_Text('bcool_logo',null,'', '站点LOGO图片地址', '请填入站点LOGO图片地址,,当该项为空时默认显示站点标题作为文字LOGO');
130 | $bcool_logo->setAttribute('class', 'bearui_content bearui_global');
131 | $form->addInput($bcool_logo);
132 |
133 | $bcool_favicon = new Typecho_Widget_Helper_Form_Element_Text('bcool_favicon',null,'', '站点Favicon', '请填入站点Favicon图标地址');
134 | $bcool_favicon->setAttribute('class', 'bearui_content bearui_global');
135 | $form->addInput($bcool_favicon);
136 |
137 | $bcool_menu = new Typecho_Widget_Helper_Form_Element_Select('bcool_menu', array('1' => '集合为下拉列表', '2' => '形成单独导航'), '2', '独立页面在导航菜单的表现形式', '默认为集合下拉列表,若有需要形成单独导航则选择第二个即可');
138 | $bcool_menu->setAttribute('class', 'bearui_content bearui_global');
139 | $form->addInput($bcool_menu->multiMode());
140 |
141 | $Html = <<
143 |
149 |
150 |
151 | HTML;
152 |
153 | $layout = new Typecho_Widget_Helper_Layout();
154 | $layout->html(_t($Html));
155 | $layout->setAttribute('class', 'bearui_content bearui_global');
156 | $form->addItem($layout);
157 |
158 | $bcool_icp = new Typecho_Widget_Helper_Form_Element_Text('bcool_icp',null,'', 'ICP备案号', '请在这里填入站点ICP备案号');
159 | $bcool_icp->setAttribute('class', 'bearui_content bearui_global');
160 | $form->addInput($bcool_icp);
161 |
162 | $bcool_police = new Typecho_Widget_Helper_Form_Element_Text('bcool_police',null,'', '公安备案号', '请在这里填入站点公安备案号');
163 | $bcool_police->setAttribute('class', 'bearui_content bearui_global');
164 | $form->addInput($bcool_police);
165 |
166 | $bcool_myqq = new Typecho_Widget_Helper_Form_Element_Text('bcool_myqq',null,'', '我的QQ二维码', '请在这里填入QQ二维码图片直链,不填则不显示');
167 | $bcool_myqq->setAttribute('class', 'bearui_content bearui_global');
168 | $form->addInput($bcool_myqq);
169 |
170 | $bcool_mywechat = new Typecho_Widget_Helper_Form_Element_Text('bcool_mywechat',null,'', '我的微信二维码', '请在这里填入微信二维码图片直链,不填则不显示');
171 | $bcool_mywechat->setAttribute('class', 'bearui_content bearui_global');
172 | $form->addInput($bcool_mywechat);
173 |
174 | $bcool_myweibo = new Typecho_Widget_Helper_Form_Element_Text('bcool_myweibo',null,'', '我的微博链接', '请在这里填入微博链接,不填则不显示');
175 | $bcool_myweibo->setAttribute('class', 'bearui_content bearui_global');
176 | $form->addInput($bcool_myweibo);
177 |
178 | $bcool_mygithub = new Typecho_Widget_Helper_Form_Element_Text('bcool_mygithub',null,'', '我的Github链接', '请在这里填入Github链接,不填则不显示');
179 | $bcool_mygithub->setAttribute('class', 'bearui_content bearui_global');
180 | $form->addInput($bcool_mygithub);
181 |
182 | $bcool_mytg = new Typecho_Widget_Helper_Form_Element_Text('bcool_mytg',null,'', '我的小飞机链接', '请在这里填入小飞机链接,不填则不显示');
183 | $bcool_mytg->setAttribute('class', 'bearui_content bearui_global');
184 | $form->addInput($bcool_mytg);
185 |
186 | $bcool_cover = new Typecho_Widget_Helper_Form_Element_Textarea('bcool_cover',null,'', '文章自定义封面图片', '请填入首页、分类等页面输出文章时的文章自定义封面图片
优先级:文章封面->附件首图->文章首图->自定义随机图片,无图片时将随机显示
自定义图片链接可固定一张,多张随机使用|分割
例如:https://www.xxx.com/xxx.png|https://www.xxx.com/xxxx.png');
187 | $bcool_cover->setAttribute('class', 'bearui_content bearui_high');
188 | $form->addInput($bcool_cover);
189 |
190 | $bcool_pic = new Typecho_Widget_Helper_Form_Element_Textarea('bcool_pic',null,'', '页面底部图片集', '请填入七张不同的图片直链,我绝对不会说是用来填充底部不显得单调的QAQ
使用|分割
例如:https://www.xxx.com/xxx.png|https://www.xxx.com/xxxx.png,
当本项为空或者图片数量少于7张时默认调用随机风景图 ');
191 | $bcool_pic->setAttribute('class', 'bearui_content bearui_high');
192 | $form->addInput($bcool_pic);
193 |
194 | $bcool_Gravatar = new Typecho_Widget_Helper_Form_Element_Select('bcool_Gravatar', array('1' => 'Gravatar官方源','2' => 'LOLI.TOP*Gravatar镜像源', '3' => 'V2EX*Gravatar镜像源','4' => 'LOLI.NET*Gravatar镜像源','5' => '极客族*Gravatar镜像源','6' => '七牛*Gravatar镜像源'), '2', 'Gravatar源选择', '因Gravatar官方在中国大陆地区被Q,导致在中国大陆访问使用Gravatar的站点时头像不显示,这里支持您自主选择合适的源
本功能适配QQ,当填写的邮箱为QQ邮箱时则显示QQ头像');
195 | $bcool_Gravatar->setAttribute('class', 'bearui_content bearui_high');
196 | $form->addInput($bcool_Gravatar->multiMode());
197 |
198 | //评论设置
199 | $Html = <<
201 |
208 |
209 |
210 | HTML;
211 |
212 | $layout = new Typecho_Widget_Helper_Layout();
213 | $layout->html(_t($Html));
214 | $layout->setAttribute('class', 'bearui_content bearui_article');
215 | $form->addItem($layout);
216 |
217 | $Sticky = new Typecho_Widget_Helper_Form_Element_Textarea('sticky_cid',null,'', '置顶文章CID', '多篇文章使用英文逗号或空格进行分隔');
218 | $Sticky->setAttribute('class', 'bearui_content bearui_article');
219 | $form->addInput($Sticky);
220 |
221 | $Html = <<
223 |
230 |
231 |
232 | HTML;
233 |
234 | $layout = new Typecho_Widget_Helper_Layout();
235 | $layout->html(_t($Html));
236 | $layout->setAttribute('class', 'bearui_content bearui_article');
237 | $form->addItem($layout);
238 |
239 | $BearSpam_IP = new Typecho_Widget_Helper_Form_Element_Textarea('BearSpam_IP',null,'', '过滤IP', '多条IP请用换行符隔开
支持用*号匹配IP段,如:192.168.*.*');
240 | $BearSpam_IP->setAttribute('class', 'bearui_content bearui_article');
241 | $form->addInput($BearSpam_IP);
242 | //
243 | $BearSpam_EMAIL = new Typecho_Widget_Helper_Form_Element_Textarea('BearSpam_EMAIL',null,'', '过滤邮箱', '多个邮箱请用换行符隔开
可以是邮箱的全部,或者邮箱部分关键词');
244 | $BearSpam_EMAIL->setAttribute('class', 'bearui_content bearui_article');
245 | $form->addInput($BearSpam_EMAIL);
246 | //
247 | $BearSpam_URL = new Typecho_Widget_Helper_Form_Element_Textarea('BearSpam_URL',null,'', '过滤网址', '多个网址请用换行符隔开
可以是网址的全部,或者网址部分关键词。如果网址为空,该项不会起作用。');
248 | $BearSpam_URL->setAttribute('class', 'bearui_content bearui_article');
249 | $form->addInput($BearSpam_URL);
250 | //
251 | $BearSpam_ArticleTitle = new Typecho_Widget_Helper_Form_Element_Select('BearSpam_ArticleTitle',array('1' => '是', '2' => '否'),'', '过滤含有文章标题的评论
252 | ', '根据研究表明机器人发表的内容可能含有评论文章的标题');
253 | $BearSpam_ArticleTitle->setAttribute('class', 'bearui_content bearui_article');
254 | $form->addInput($BearSpam_ArticleTitle);
255 | //
256 | $BearSpam_NAME = new Typecho_Widget_Helper_Form_Element_Textarea('BearSpam_NAME',null,'', '过滤昵称', '如果评论发布者的昵称含有该关键词,将执行该操作,多个请直接换行');
257 | $BearSpam_NAME->setAttribute('class', 'bearui_content bearui_article');
258 | $form->addInput($BearSpam_NAME);
259 | //
260 | $BearSpam_NAMEMIN = new Typecho_Widget_Helper_Form_Element_Text('BearSpam_NAMEMIN',null,'', '昵称允许的最短长度', '如果评论发布者的昵称小于该最短长度将拦截');
261 | $BearSpam_NAMEMIN->setAttribute('class', 'bearui_content bearui_article');
262 | $form->addInput($BearSpam_NAMEMIN);
263 | //
264 | $BearSpam_NAMEMAX = new Typecho_Widget_Helper_Form_Element_Text('BearSpam_NAMEMAX',null,'', '昵称允许的最长长度', '如果评论发布者的昵称大于该最长长度将拦截');
265 | $BearSpam_NAMEMAX->setAttribute('class', 'bearui_content bearui_article');
266 | $form->addInput($BearSpam_NAMEMAX);
267 | //
268 | $BearSpam_NAMEURL = new Typecho_Widget_Helper_Form_Element_Select('BearSpam_NAMEURL',array('1' => '是', '2' => '否'),'', '过滤昵称为网址的评论', '根据研究表明机器人发表的评论,昵称很有可能为网址');
269 | $BearSpam_NAMEURL->setAttribute('class', 'bearui_content bearui_article');
270 | $form->addInput($BearSpam_NAMEURL);
271 | //
272 | $BearSpam_Chinese = new Typecho_Widget_Helper_Form_Element_Select('BearSpam_Chinese',array('1' => '是', '2' => '否'),'', '过滤不包含中文的评论', '当评论内容中没有中文时进行拦截');
273 | $BearSpam_Chinese->setAttribute('class', 'bearui_content bearui_article');
274 | $form->addInput($BearSpam_Chinese);
275 | //
276 | $BearSpam_MIN = new Typecho_Widget_Helper_Form_Element_Text('BearSpam_MIN',null,'', '评论内容允许的最短长度', '如果评论发布者的评论内容小于该最短长度将拦截');
277 | $BearSpam_MIN->setAttribute('class', 'bearui_content bearui_article');
278 | $form->addInput($BearSpam_MIN);
279 | //
280 | $BearSpam_MAX = new Typecho_Widget_Helper_Form_Element_Text('BearSpam_MAX',null,'', '评论内容允许的最大长度', '如果评论发布者的评论内容长度大于该最大长度将拦截');
281 | $BearSpam_MAX->setAttribute('class', 'bearui_content bearui_article');
282 | $form->addInput($BearSpam_MAX);
283 | //
284 | $BearSpam_Words = new Typecho_Widget_Helper_Form_Element_Textarea('BearSpam_Words',null,'', '过滤敏感词', '多个词汇请用换行符隔开');
285 | $BearSpam_Words->setAttribute('class', 'bearui_content bearui_article');
286 | $form->addInput($BearSpam_Words);
287 |
288 | $Html = <<
290 |
297 |
298 |
299 | HTML;
300 |
301 | $layout = new Typecho_Widget_Helper_Layout();
302 | $layout->html(_t($Html));
303 | $layout->setAttribute('class', 'bearui_content bearui_article');
304 | $form->addItem($layout);
305 |
306 | //水印设置
307 | $Watermark = new Typecho_Widget_Helper_Form_Element_Select('Watermark', array('1' => '否', '2' => '是'), '2', '是否开启文章图片水印功能', '开启后可对本功能进行详细设置,前台输出图片时自动打上水印');
308 | $Watermark->setAttribute('class', 'bearui_content bearui_article');
309 | $form->addInput($Watermark->multiMode());
310 |
311 | $WatermarkType = new Typecho_Widget_Helper_Form_Element_Select('WatermarkType', array('1' => '文字', '2' => '图片'), '1', '水印类型', '选择要打上什么样式的水印,若选择图片方式的话在非当前域名下可能存在跨域方面的问题,需自行根据服务器情况设置');
312 | $WatermarkType->setAttribute('class', 'bearui_content bearui_article');
313 | $form->addInput($WatermarkType->multiMode());
314 |
315 | $waterMarkName = new Typecho_Widget_Helper_Form_Element_Text('waterMarkName', NULL, '', _t('水印文字/图片地址'),'若水印类型选择的是文本,则填写文字,若选择的是图片,则请填写图片直链');
316 | $waterMarkName->setAttribute('class', 'bearui_content bearui_article');
317 | $form->addInput($waterMarkName);
318 |
319 | $waterMarkKd = new Typecho_Widget_Helper_Form_Element_Text('waterMarkKd', NULL, '130', _t('水印宽度'),'填写水印宽度,单位px,填写数字即可,默认则为130');
320 | $waterMarkKd->setAttribute('class', 'bearui_content bearui_article');
321 | $form->addInput($waterMarkKd);
322 |
323 | $waterMarkTextSize = new Typecho_Widget_Helper_Form_Element_Text('waterMarkTextSize', NULL, '12', _t('水印文字大小'),'[仅当水印类型为文字的时候本项有效]
填写水印文字大小,单位是px,填写数字即可,默认则为12');
324 | $waterMarkTextSize->setAttribute('class', 'bearui_content bearui_article');
325 | $form->addInput($waterMarkTextSize);
326 |
327 | $waterMarkTextColor = new Typecho_Widget_Helper_Form_Element_Text('waterMarkTextColor', NULL, 'white', _t('水印文字颜色'),'[仅当水印类型为文字的时候本项有效]
填写水印文字颜色,可以是HEX或者RGBA 颜色代码,举个最简单的例子,比如填white,则为白色,black则为黑色');
328 | $waterMarkTextColor->setAttribute('class', 'bearui_content bearui_article');
329 | $form->addInput($waterMarkTextColor);
330 |
331 | $waterMarkTextBackground = new Typecho_Widget_Helper_Form_Element_Text('waterMarkTextBackground', NULL, 'black', _t('水印文字背景颜色'),'[仅当水印类型为文字的时候本项有效]
填写水印文字背景颜色,可以是HEX或者RGBA 颜色代码,举个最简单的例子,比如填white,则为白色,black则为黑色');
332 | $waterMarkTextBackground->setAttribute('class', 'bearui_content bearui_article');
333 | $form->addInput($waterMarkTextBackground);
334 |
335 | $waterMarkLocation = new Typecho_Widget_Helper_Form_Element_Select('waterMarkLocation', array('nw' => '左上角', 'n' => '正上方', 'ne' => '右上角','w' => '正左边','e' => '正右边','sw' => '左下角','s' => '正下方','se' => '右下角','c' => '正中间'), 'c', _t('水印位置'),'选择水印位置');
336 | $waterMarkLocation->setAttribute('class', 'bearui_content bearui_article');
337 | $form->addInput($waterMarkLocation);
338 |
339 | $waterMarkOpacity = new Typecho_Widget_Helper_Form_Element_Text('waterMarkOpacity', NULL, '0.7', _t('水印透明度'),'填写水印透明度,在0-1之间填写一个数字,默认0.7');
340 | $waterMarkOpacity->setAttribute('class', 'bearui_content bearui_article');
341 | $form->addInput($waterMarkOpacity);
342 |
343 | $waterMarkMargin = new Typecho_Widget_Helper_Form_Element_Text('waterMarkMargin', NULL, '10', _t('水印到图片边缘的距离'),'填写水印到图片边缘的距离,填写数字即可,默认10');
344 | $waterMarkMargin->setAttribute('class', 'bearui_content bearui_article');
345 | $form->addInput($waterMarkMargin);
346 |
347 | $waterMarkOutput = new Typecho_Widget_Helper_Form_Element_Select('waterMarkOutput', array('null'=>'使用原图格式','jpeg'=>'jpeg','png'=>'png','webp'=>'webp'), '', _t('打上水印后的图片格式'),'选择打上水印后的图片格式,默认情况下原图啥格式,输出就啥格式');
348 | $waterMarkOutput->setAttribute('class', 'bearui_content bearui_article');
349 | $form->addInput($waterMarkOutput);
350 |
351 | $bcool_gray = new Typecho_Widget_Helper_Form_Element_Select('bcool_gray', array('1' => '关闭','2' => '开启'), '1', '是否开启哀悼模式', '开启后全站变灰。');
352 | $bcool_gray->setAttribute('class', 'bearui_content bearui_other');
353 | $form->addInput($bcool_gray->multiMode());
354 |
355 | $bcool_animate = new Typecho_Widget_Helper_Form_Element_Select(
356 | 'bcool_animate',
357 | array(
358 | 'close' => '关闭',
359 | 'bounce' => 'bounce',
360 | 'flash' => 'flash',
361 | 'pulse' => 'pulse',
362 | 'rubberBand' => 'rubberBand',
363 | 'headShake' => 'headShake',
364 | 'swing' => 'swing',
365 | 'tada' => 'tada',
366 | 'wobble' => 'wobble',
367 | 'jello' => 'jello',
368 | 'heartBeat' => 'heartBeat',
369 | 'bounceIn' => 'bounceIn',
370 | 'bounceInDown' => 'bounceInDown',
371 | 'bounceInLeft' => 'bounceInLeft',
372 | 'bounceInRight' => 'bounceInRight',
373 | 'bounceInUp' => 'bounceInUp',
374 | 'bounceOut' => 'bounceOut',
375 | 'bounceOutDown' => 'bounceOutDown',
376 | 'bounceOutLeft' => 'bounceOutLeft',
377 | 'bounceOutRight' => 'bounceOutRight',
378 | 'bounceOutUp' => 'bounceOutUp',
379 | 'fadeIn' => 'fadeIn',
380 | 'fadeInDown' => 'fadeInDown',
381 | 'fadeInDownBig' => 'fadeInDownBig',
382 | 'fadeInLeft' => 'fadeInLeft',
383 | 'fadeInLeftBig' => 'fadeInLeftBig',
384 | 'fadeInRight' => 'fadeInRight',
385 | 'fadeInRightBig' => 'fadeInRightBig',
386 | 'fadeInUp' => 'fadeInUp',
387 | 'fadeInUpBig' => 'fadeInUpBig',
388 | 'fadeOut' => 'fadeOut',
389 | 'fadeOutDown' => 'fadeOutDown',
390 | 'fadeOutDownBig' => 'fadeOutDownBig',
391 | 'fadeOutLeft' => 'fadeOutLeft',
392 | 'fadeOutLeftBig' => 'fadeOutLeftBig',
393 | 'fadeOutRight' => 'fadeOutRight',
394 | 'fadeOutRightBig' => 'fadeOutRightBig',
395 | 'fadeOutUp' => 'fadeOutUp',
396 | 'fadeOutUpBig' => 'fadeOutUpBig',
397 | 'flip' => 'flip',
398 | 'flipInX' => 'flipInX',
399 | 'flipInY' => 'flipInY',
400 | 'flipOutX' => 'flipOutX',
401 | 'flipOutY' => 'flipOutY',
402 | 'rotateIn' => 'rotateIn',
403 | 'rotateInDownLeft' => 'rotateInDownLeft',
404 | 'rotateInDownRight' => 'rotateInDownRight',
405 | 'rotateInUpLeft' => 'rotateInUpLeft',
406 | 'rotateInUpRight' => 'rotateInUpRight',
407 | 'rotateOut' => 'rotateOut',
408 | 'rotateOutDownLeft' => 'rotateOutDownLeft',
409 | 'rotateOutDownRight' => 'rotateOutDownRight',
410 | 'rotateOutUpLeft' => 'rotateOutUpLeft',
411 | 'rotateOutUpRight' => 'rotateOutUpRight',
412 | 'hinge' => 'hinge',
413 | 'jackInTheBox' => 'jackInTheBox',
414 | 'rollIn' => 'rollIn',
415 | 'rollOut' => 'rollOut',
416 | 'zoomIn' => 'zoomIn',
417 | 'zoomInDown' => 'zoomInDown',
418 | 'zoomInLeft' => 'zoomInLeft',
419 | 'zoomInRight' => 'zoomInRight',
420 | 'zoomInUp' => 'zoomInUp',
421 | 'zoomOut' => 'zoomOut',
422 | 'zoomOutDown' => 'zoomOutDown',
423 | 'zoomOutLeft' => 'zoomOutLeft',
424 | 'zoomOutRight' => 'zoomOutRight',
425 | 'zoomOutUp' => 'zoomOutUp',
426 | 'slideInDown' => 'slideInDown',
427 | 'slideInLeft' => 'slideInLeft',
428 | 'slideInRight' => 'slideInRight',
429 | 'slideInUp' => 'slideInUp',
430 | 'slideOutDown' => 'slideOutDown',
431 | 'slideOutLeft' => 'slideOutLeft',
432 | 'slideOutRight' => 'slideOutRight',
433 | 'slideOutUp' => 'slideOutUp',
434 | ),
435 | 'off',
436 | '选择一款显示动画',
437 | '开启后,首页等位置都将显示此动画'
438 | );
439 | $bcool_animate->setAttribute('class', 'bearui_content bearui_other');
440 | $form->addInput($bcool_animate->multiMode());
441 |
442 | require_once('core/upgrade.php');
443 | }
444 |
445 |
--------------------------------------------------------------------------------
/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
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 | $img): ?>
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
103 |
104 |