feat: add admin bar switch option (#270)

pull/287/head
Seaton Jiang 2020-08-10 15:26:33 +08:00
parent daf62af4b0
commit d4e15b6fa6
No known key found for this signature in database
GPG Key ID: FC3D886E252D902B
3 changed files with 219 additions and 178 deletions

View File

@ -46,20 +46,22 @@ function theme_autoload()
wp_enqueue_style('fontawesome', ASSET_PATH . '/assets/css/fontawesome.min.css', array(), '5.13.0'); wp_enqueue_style('fontawesome', ASSET_PATH . '/assets/css/fontawesome.min.css', array(), '5.13.0');
} }
wp_enqueue_style('kratos', ASSET_PATH . '/assets/css/kratos.min.css', array(), THEME_VERSION); wp_enqueue_style('kratos', ASSET_PATH . '/assets/css/kratos.min.css', array(), THEME_VERSION);
$admin_bar_css = " if (kratos_option('g_adminbar', true)) {
@media screen and (max-width: 782px) { $admin_bar_css = "
.k-nav{ @media screen and (max-width: 782px) {
padding-top: 46px; .k-nav{
padding-top: 46px;
}
} }
} @media screen and (min-width: 782px) {
@media screen and (min-width: 782px) { .k-nav{
.k-nav{ padding-top: 32px;
padding-top: 32px; }
}
";
if (current_user_can('level_10')) {
wp_add_inline_style('kratos', $admin_bar_css);
} }
}
";
if (current_user_can('level_10')) {
wp_add_inline_style('kratos', $admin_bar_css);
} }
wp_enqueue_style('custom', get_template_directory_uri() . '/custom/custom.css', array(), THEME_VERSION); wp_enqueue_style('custom', get_template_directory_uri() . '/custom/custom.css', array(), THEME_VERSION);
// js // js
@ -85,8 +87,10 @@ function theme_autoload()
} }
add_action('wp_enqueue_scripts', 'theme_autoload'); add_action('wp_enqueue_scripts', 'theme_autoload');
// 禁用 Admin Bar // Admin Bar
// add_filter('show_admin_bar', '__return_false'); if (! kratos_option('g_adminbar', true)) {
add_filter('show_admin_bar', '__return_false');
}
// 移除自动保存、修订版本 // 移除自动保存、修订版本
remove_action('post_updated', 'wp_save_post_revision'); remove_action('post_updated', 'wp_save_post_revision');

View File

@ -72,6 +72,14 @@ function kratos_options()
'type' => 'color', 'type' => 'color',
); );
$options[] = array(
'name' => __('前台管理员导航', 'kratos'),
'desc' => __('开启前台管理员导航', 'kratos'),
'std' => '1',
'id' => 'g_adminbar',
'type' => 'checkbox',
);
$options[] = array( $options[] = array(
'name' => __('CSS 动画库', 'kratos'), 'name' => __('CSS 动画库', 'kratos'),
'desc' => __('开启 animate.css 效果', 'kratos'), 'desc' => __('开启 animate.css 效果', 'kratos'),

View File

@ -3,14 +3,14 @@ msgid ""
msgstr "" msgstr ""
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"Project-Id-Version: Kratos\n" "Project-Id-Version: Kratos\n"
"POT-Creation-Date: 2020-07-29 11:37+0800\n" "POT-Creation-Date: 2020-08-10 15:23+0800\n"
"PO-Revision-Date: 2020-02-14 23:32+0800\n" "PO-Revision-Date: 2020-02-14 23:32+0800\n"
"Last-Translator: \n" "Last-Translator: \n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3.1\n" "X-Generator: Poedit 2.4\n"
"X-Poedit-Basepath: ..\n" "X-Poedit-Basepath: ..\n"
"X-Poedit-Flags-xgettext: --add-comments=translators:\n" "X-Poedit-Flags-xgettext: --add-comments=translators:\n"
"X-Poedit-WPHeader: style.css\n" "X-Poedit-WPHeader: style.css\n"
@ -74,11 +74,11 @@ msgstr ""
msgid "提交评论" msgid "提交评论"
msgstr "" msgstr ""
#: footer.php:27 #: footer.php:27 inc/theme-widgets.php:81
msgid "搜点什么呢?" msgid "搜点什么呢?"
msgstr "" msgstr ""
#: header.php:74 inc/theme-options.php:470 #: header.php:76 inc/theme-options.php:478
msgid "一款专注于用户阅读体验的响应式博客主题" msgid "一款专注于用户阅读体验的响应式博客主题"
msgstr "" msgstr ""
@ -164,18 +164,22 @@ msgid "问题反馈:"
msgstr "" msgstr ""
#: inc/options-framework/includes/class-options-interface.php:243 #: inc/options-framework/includes/class-options-interface.php:243
msgid "常见问题:"
msgstr ""
#: inc/options-framework/includes/class-options-interface.php:244
msgid "更新日志:" msgid "更新日志:"
msgstr "" msgstr ""
#: inc/options-framework/includes/class-options-interface.php:245 #: inc/options-framework/includes/class-options-interface.php:246
msgid "讨论交流" msgid "讨论交流"
msgstr "" msgstr ""
#: inc/options-framework/includes/class-options-interface.php:247 #: inc/options-framework/includes/class-options-interface.php:248
msgid "版权声明" msgid "版权声明"
msgstr "" msgstr ""
#: inc/options-framework/includes/class-options-interface.php:248 #: inc/options-framework/includes/class-options-interface.php:249
msgid "" msgid ""
"主题源码使用 <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE" "主题源码使用 <a href=\"https://github.com/vtrois/kratos/blob/master/LICENSE"
"\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://" "\" target=\"_blank\">MIT 协议</a> 进行许可,说明文档使用 <a href=\"https://"
@ -183,11 +187,11 @@ msgid ""
"4.0</a> 进行许可。" "4.0</a> 进行许可。"
msgstr "" msgstr ""
#: inc/options-framework/includes/class-options-interface.php:249 #: inc/options-framework/includes/class-options-interface.php:250
msgid "打赏支持" msgid "打赏支持"
msgstr "" msgstr ""
#: inc/options-framework/includes/class-options-interface.php:255 #: inc/options-framework/includes/class-options-interface.php:256
msgid "测试邮件" msgid "测试邮件"
msgstr "" msgstr ""
@ -229,7 +233,7 @@ msgstr ""
msgid "描述" msgid "描述"
msgstr "" msgstr ""
#: inc/theme-article.php:397 inc/theme-options.php:204 #: inc/theme-article.php:397 inc/theme-options.php:212
msgid "关键词" msgid "关键词"
msgstr "" msgstr ""
@ -237,19 +241,19 @@ msgstr ""
msgid "SEO 设置" msgid "SEO 设置"
msgstr "" msgstr ""
#: inc/theme-core.php:63 #: inc/theme-core.php:80
msgid "您已经赞过了" msgid "您已经赞过了"
msgstr "" msgstr ""
#: inc/theme-core.php:64 #: inc/theme-core.php:81
msgid "感谢您的支持" msgid "感谢您的支持"
msgstr "" msgstr ""
#: inc/theme-core.php:65 #: inc/theme-core.php:82
msgid "打赏作者" msgid "打赏作者"
msgstr "" msgstr ""
#: inc/theme-core.php:66 #: inc/theme-core.php:83
msgid "扫码支付" msgid "扫码支付"
msgstr "" msgstr ""
@ -289,11 +293,11 @@ msgstr ""
msgid "知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议" msgid "知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议"
msgstr "" msgstr ""
#: inc/theme-options.php:42 inc/theme-options.php:453 #: inc/theme-options.php:42 inc/theme-options.php:461
msgid "图片导航" msgid "图片导航"
msgstr "" msgstr ""
#: inc/theme-options.php:43 inc/theme-options.php:445 #: inc/theme-options.php:43 inc/theme-options.php:453
msgid "颜色导航" msgid "颜色导航"
msgstr "" msgstr ""
@ -326,484 +330,492 @@ msgid "全站页面的背景颜色,需填写十六进制颜色码"
msgstr "" msgstr ""
#: inc/theme-options.php:76 #: inc/theme-options.php:76
msgid "CSS 动画库" msgid "前台管理员导航"
msgstr "" msgstr ""
#: inc/theme-options.php:77 #: inc/theme-options.php:77
msgid "开启 animate.css 效果" msgid "开启前台管理员导航"
msgstr "" msgstr ""
#: inc/theme-options.php:84 #: inc/theme-options.php:84
msgid "Font Awesome" msgid "CSS 动画库"
msgstr "" msgstr ""
#: inc/theme-options.php:85 #: inc/theme-options.php:85
msgid "开启 Font Awesome 字体" msgid "开启 animate.css 效果"
msgstr "" msgstr ""
#: inc/theme-options.php:92 #: inc/theme-options.php:92
msgid "静态资源加速" msgid "Font Awesome"
msgstr "" msgstr ""
#: inc/theme-options.php:93 #: inc/theme-options.php:93
msgid "开启静态资源加速CSS、JS、Font" msgid "开启 Font Awesome 字体"
msgstr "" msgstr ""
#: inc/theme-options.php:100 #: inc/theme-options.php:100
msgid "禁止生成缩略图" msgid "静态资源加速"
msgstr "" msgstr ""
#: inc/theme-options.php:101 #: inc/theme-options.php:101
msgid "是否禁止生成多种尺寸图片资源" msgid "开启静态资源加速CSS、JS、Font"
msgstr "" msgstr ""
#: inc/theme-options.php:108 #: inc/theme-options.php:108
msgid "媒体资源托管" msgid "禁止生成缩略图"
msgstr "" msgstr ""
#: inc/theme-options.php:109 #: inc/theme-options.php:109
msgid "是否将媒体资源托管到 DogeCloud 存储" msgid "是否禁止生成多种尺寸图片资源"
msgstr "" msgstr ""
#: inc/theme-options.php:116 #: inc/theme-options.php:116
msgid "媒体资源托管"
msgstr ""
#: inc/theme-options.php:117
msgid "是否将媒体资源托管到 DogeCloud 存储"
msgstr ""
#: inc/theme-options.php:124
msgid "存储空间名称" msgid "存储空间名称"
msgstr "" msgstr ""
#: inc/theme-options.php:123 #: inc/theme-options.php:131
msgid "加速域名" msgid "加速域名"
msgstr "" msgstr ""
#: inc/theme-options.php:125 #: inc/theme-options.php:133
msgid "例如https://cdn.xxx.com" msgid "例如https://cdn.xxx.com"
msgstr "" msgstr ""
#: inc/theme-options.php:131 #: inc/theme-options.php:139
msgid "AccessKey" msgid "AccessKey"
msgstr "" msgstr ""
#: inc/theme-options.php:138 #: inc/theme-options.php:146
msgid "SecretKey" msgid "SecretKey"
msgstr "" msgstr ""
#: inc/theme-options.php:145 #: inc/theme-options.php:153
msgid "Gutenberg 编辑器" msgid "Gutenberg 编辑器"
msgstr "" msgstr ""
#: inc/theme-options.php:146 #: inc/theme-options.php:154
msgid "开启 Gutenberg 编辑器" msgid "开启 Gutenberg 编辑器"
msgstr "" msgstr ""
#: inc/theme-options.php:153 #: inc/theme-options.php:161
msgid "Gravatar 加速" msgid "Gravatar 加速"
msgstr "" msgstr ""
#: inc/theme-options.php:154 #: inc/theme-options.php:162
msgid "开启 Gravatar 头像加速" msgid "开启 Gravatar 头像加速"
msgstr "" msgstr ""
#: inc/theme-options.php:161 #: inc/theme-options.php:169
msgid "Chrome 导航栏颜色" msgid "Chrome 导航栏颜色"
msgstr "" msgstr ""
#: inc/theme-options.php:162 #: inc/theme-options.php:170
msgid "Chrome 移动端浏览器导航栏的颜色" msgid "Chrome 移动端浏览器导航栏的颜色"
msgstr "" msgstr ""
#: inc/theme-options.php:169 inc/theme-options.php:327 #: inc/theme-options.php:177 inc/theme-options.php:335
msgid "微信二维码" msgid "微信二维码"
msgstr "" msgstr ""
#: inc/theme-options.php:170 #: inc/theme-options.php:178
msgid "开启页面右下角浮动微信二维码" msgid "开启页面右下角浮动微信二维码"
msgstr "" msgstr ""
#: inc/theme-options.php:184 #: inc/theme-options.php:192
msgid "404 页面图片" msgid "404 页面图片"
msgstr "" msgstr ""
#: inc/theme-options.php:191 #: inc/theme-options.php:199
msgid "收录配置" msgid "收录配置"
msgstr "" msgstr ""
#: inc/theme-options.php:196 #: inc/theme-options.php:204
msgid "分享图片" msgid "分享图片"
msgstr "" msgstr ""
#: inc/theme-options.php:197 #: inc/theme-options.php:205
msgid "搜索引擎或者社交工具分享首页时抓取的图片" msgid "搜索引擎或者社交工具分享首页时抓取的图片"
msgstr "" msgstr ""
#: inc/theme-options.php:205 #: inc/theme-options.php:213
msgid "每个关键词之间需要用「英文逗号」分割" msgid "每个关键词之间需要用「英文逗号」分割"
msgstr "" msgstr ""
#: inc/theme-options.php:211 #: inc/theme-options.php:219
msgid "站点描述" msgid "站点描述"
msgstr "" msgstr ""
#: inc/theme-options.php:217 #: inc/theme-options.php:225
msgid "统计代码" msgid "统计代码"
msgstr "" msgstr ""
#: inc/theme-options.php:218 #: inc/theme-options.php:226
msgid "注意:输入 HTML/JS 代码时请注意辨别代码安全!" msgid "注意:输入 HTML/JS 代码时请注意辨别代码安全!"
msgstr "" msgstr ""
#: inc/theme-options.php:224 #: inc/theme-options.php:232
msgid "robots.txt 配置" msgid "robots.txt 配置"
msgstr "" msgstr ""
#: inc/theme-options.php:225 #: inc/theme-options.php:233
msgid "- 需要 " msgid "- 需要 "
msgstr "" msgstr ""
#: inc/theme-options.php:225 #: inc/theme-options.php:233
msgid " 是开启的状态,下面的配置才会生效" msgid " 是开启的状态,下面的配置才会生效"
msgstr "" msgstr ""
#: inc/theme-options.php:230 #: inc/theme-options.php:238
msgid "- 如果网站根目录下已经有 robots.txt 文件,下面的配置不会生效" msgid "- 如果网站根目录下已经有 robots.txt 文件,下面的配置不会生效"
msgstr "" msgstr ""
#: inc/theme-options.php:235 #: inc/theme-options.php:243
msgid "- 点击 " msgid "- 点击 "
msgstr "" msgstr ""
#: inc/theme-options.php:235 #: inc/theme-options.php:243
msgid " 查看配置是否生效,如果网站开启了 CDN可能需要刷新缓存才会生效" msgid " 查看配置是否生效,如果网站开启了 CDN可能需要刷新缓存才会生效"
msgstr "" msgstr ""
#: inc/theme-options.php:246 #: inc/theme-options.php:254
msgid "首页配置" msgid "首页配置"
msgstr "" msgstr ""
#: inc/theme-options.php:251 #: inc/theme-options.php:259
msgid "哀悼功能" msgid "哀悼功能"
msgstr "" msgstr ""
#: inc/theme-options.php:252 #: inc/theme-options.php:260
msgid "开启站点首页黑白功能用于R.I.P." msgid "开启站点首页黑白功能用于R.I.P."
msgstr "" msgstr ""
#: inc/theme-options.php:258 #: inc/theme-options.php:266
msgid "特色图片" msgid "特色图片"
msgstr "" msgstr ""
#: inc/theme-options.php:259 #: inc/theme-options.php:267
msgid "开启站点首页特色图片功能" msgid "开启站点首页特色图片功能"
msgstr "" msgstr ""
#: inc/theme-options.php:266 #: inc/theme-options.php:274
msgid "默认特色图" msgid "默认特色图"
msgstr "" msgstr ""
#: inc/theme-options.php:267 #: inc/theme-options.php:275
msgid "当文章中没有图片并且没有设置特色图时在首页显示" msgid "当文章中没有图片并且没有设置特色图时在首页显示"
msgstr "" msgstr ""
#: inc/theme-options.php:275 #: inc/theme-options.php:283
msgid "无内容图片" msgid "无内容图片"
msgstr "" msgstr ""
#: inc/theme-options.php:276 #: inc/theme-options.php:284
msgid "当搜索不到文章或文章分类中没有文章时显示" msgid "当搜索不到文章或文章分类中没有文章时显示"
msgstr "" msgstr ""
#: inc/theme-options.php:283 #: inc/theme-options.php:291
msgid "文章配置" msgid "文章配置"
msgstr "" msgstr ""
#: inc/theme-options.php:288 #: inc/theme-options.php:296
msgid "知识共享协议" msgid "知识共享协议"
msgstr "" msgstr ""
#: inc/theme-options.php:289 #: inc/theme-options.php:297
msgid "开启文章知识共享协议" msgid "开启文章知识共享协议"
msgstr "" msgstr ""
#: inc/theme-options.php:295 #: inc/theme-options.php:303
msgid "选择文章的知识共享协议" msgid "选择文章的知识共享协议"
msgstr "" msgstr ""
#: inc/theme-options.php:304 #: inc/theme-options.php:312
msgid "网易云音乐" msgid "网易云音乐"
msgstr "" msgstr ""
#: inc/theme-options.php:305 #: inc/theme-options.php:313
msgid "开启网易云音乐自动播放" msgid "开启网易云音乐自动播放"
msgstr "" msgstr ""
#: inc/theme-options.php:311 #: inc/theme-options.php:319
msgid "文章打赏" msgid "文章打赏"
msgstr "" msgstr ""
#: inc/theme-options.php:312 #: inc/theme-options.php:320
msgid "开启文章页面打赏功能" msgid "开启文章页面打赏功能"
msgstr "" msgstr ""
#: inc/theme-options.php:318 #: inc/theme-options.php:326
msgid "支付宝二维码" msgid "支付宝二维码"
msgstr "" msgstr ""
#: inc/theme-options.php:336 #: inc/theme-options.php:344
msgid "页面布局" msgid "页面布局"
msgstr "" msgstr ""
#: inc/theme-options.php:337 #: inc/theme-options.php:345
msgid "是否显示侧边栏小工具(默认显示侧边栏),仅在文章页面生效" msgid "是否显示侧边栏小工具(默认显示侧边栏),仅在文章页面生效"
msgstr "" msgstr ""
#: inc/theme-options.php:347 #: inc/theme-options.php:355
msgid "站长配置" msgid "站长配置"
msgstr "" msgstr ""
#: inc/theme-options.php:352 #: inc/theme-options.php:360
msgid "个人头像" msgid "个人头像"
msgstr "" msgstr ""
#: inc/theme-options.php:359 #: inc/theme-options.php:367
msgid "个人昵称" msgid "个人昵称"
msgstr "" msgstr ""
#: inc/theme-options.php:366 inc/theme-widgets.php:137 #: inc/theme-options.php:374 inc/theme-widgets.php:178
msgid "个人简介" msgid "个人简介"
msgstr "" msgstr ""
#: inc/theme-options.php:367 inc/theme-widgets.php:154 #: inc/theme-options.php:375 inc/theme-widgets.php:195
#: pages/page-toolbar.php:13 #: pages/page-toolbar.php:13
msgid "保持饥渴的专注,追求最佳的品质" msgid "保持饥渴的专注,追求最佳的品质"
msgstr "" msgstr ""
#: inc/theme-options.php:373 #: inc/theme-options.php:381
msgid "邮件配置" msgid "邮件配置"
msgstr "" msgstr ""
#: inc/theme-options.php:378 #: inc/theme-options.php:386
msgid "SMTP 服务" msgid "SMTP 服务"
msgstr "" msgstr ""
#: inc/theme-options.php:379 #: inc/theme-options.php:387
msgid "开启 SMTP 服务功能" msgid "开启 SMTP 服务功能"
msgstr "" msgstr ""
#: inc/theme-options.php:385 #: inc/theme-options.php:393
msgid "邮件服务器" msgid "邮件服务器"
msgstr "" msgstr ""
#: inc/theme-options.php:386 #: inc/theme-options.php:394
msgid "填写发件服务器地址" msgid "填写发件服务器地址"
msgstr "" msgstr ""
#: inc/theme-options.php:393 #: inc/theme-options.php:401
msgid "服务器端口" msgid "服务器端口"
msgstr "" msgstr ""
#: inc/theme-options.php:394 #: inc/theme-options.php:402
msgid "填写发件服务器端口" msgid "填写发件服务器端口"
msgstr "" msgstr ""
#: inc/theme-options.php:401 #: inc/theme-options.php:409
msgid "授权方式" msgid "授权方式"
msgstr "" msgstr ""
#: inc/theme-options.php:402
msgid "填写登录鉴权的方式"
msgstr ""
#: inc/theme-options.php:409
msgid "邮箱帐号"
msgstr ""
#: inc/theme-options.php:410 #: inc/theme-options.php:410
msgid "填写邮箱账号" msgid "填写登录鉴权的方式ssl 或 tls"
msgstr "" msgstr ""
#: inc/theme-options.php:417 #: inc/theme-options.php:417
msgid "邮箱密码" msgid "邮箱帐号"
msgstr "" msgstr ""
#: inc/theme-options.php:418 #: inc/theme-options.php:418
msgid "填写邮箱账号"
msgstr ""
#: inc/theme-options.php:425
msgid "邮箱密码"
msgstr ""
#: inc/theme-options.php:426
msgid "填写邮箱密码" msgid "填写邮箱密码"
msgstr "" msgstr ""
#: inc/theme-options.php:431 #: inc/theme-options.php:439
msgid "顶部配置" msgid "顶部配置"
msgstr "" msgstr ""
#: inc/theme-options.php:436 #: inc/theme-options.php:444
msgid "顶部样式" msgid "顶部样式"
msgstr "" msgstr ""
#: inc/theme-options.php:437 #: inc/theme-options.php:445
msgid "请选择顶部样式(颜色导航或图片导航)" msgid "请选择顶部样式(颜色导航或图片导航)"
msgstr "" msgstr ""
#: inc/theme-options.php:461 #: inc/theme-options.php:469
msgid "副标题" msgid "副标题"
msgstr "" msgstr ""
#: inc/theme-options.php:469 #: inc/theme-options.php:477
msgid "标题描述" msgid "标题描述"
msgstr "" msgstr ""
#: inc/theme-options.php:477 #: inc/theme-options.php:485
msgid "页脚配置" msgid "页脚配置"
msgstr "" msgstr ""
#: inc/theme-options.php:482 #: inc/theme-options.php:490
msgid "选择需要开启的社交图标" msgid "选择需要开启的社交图标"
msgstr "" msgstr ""
#: inc/theme-options.php:483 #: inc/theme-options.php:491
msgid "国内平台" msgid "国内平台"
msgstr "" msgstr ""
#: inc/theme-options.php:488 #: inc/theme-options.php:496
msgid "新浪微博" msgid "新浪微博"
msgstr "" msgstr ""
#: inc/theme-options.php:495 #: inc/theme-options.php:503
msgid "例如https://weibo.com/xxxxx" msgid "例如https://weibo.com/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:501 #: inc/theme-options.php:509
msgid "哔哩哔哩" msgid "哔哩哔哩"
msgstr "" msgstr ""
#: inc/theme-options.php:508 #: inc/theme-options.php:516
msgid "例如https://space.bilibili.com/xxxxx" msgid "例如https://space.bilibili.com/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:514 #: inc/theme-options.php:522
msgid "CODING" msgid "CODING"
msgstr "" msgstr ""
#: inc/theme-options.php:521 #: inc/theme-options.php:529
msgid "例如https://xxxxx.coding.net/u/xxxxx" msgid "例如https://xxxxx.coding.net/u/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:527 #: inc/theme-options.php:535
msgid "码云 Gitee" msgid "码云 Gitee"
msgstr "" msgstr ""
#: inc/theme-options.php:534 #: inc/theme-options.php:542
msgid "例如https://gitee.com/xxxxx" msgid "例如https://gitee.com/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:540 #: inc/theme-options.php:548
msgid "海外平台" msgid "海外平台"
msgstr "" msgstr ""
#: inc/theme-options.php:545 #: inc/theme-options.php:553
msgid "Twitter" msgid "Twitter"
msgstr "" msgstr ""
#: inc/theme-options.php:552 #: inc/theme-options.php:560
msgid "例如https://twitter.com/xxxxx" msgid "例如https://twitter.com/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:558 #: inc/theme-options.php:566
msgid "Telegram" msgid "Telegram"
msgstr "" msgstr ""
#: inc/theme-options.php:565 #: inc/theme-options.php:573
msgid "例如https://t.me/xxxxx" msgid "例如https://t.me/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:571 #: inc/theme-options.php:579
msgid "LinkedIn" msgid "LinkedIn"
msgstr "" msgstr ""
#: inc/theme-options.php:578 #: inc/theme-options.php:586
msgid "例如https://www.linkedin.com/in/xxxxx" msgid "例如https://www.linkedin.com/in/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:584 #: inc/theme-options.php:592
msgid "YouTube" msgid "YouTube"
msgstr "" msgstr ""
#: inc/theme-options.php:591 #: inc/theme-options.php:599
msgid "例如https://www.youtube.com/channel/xxxxx" msgid "例如https://www.youtube.com/channel/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:597 #: inc/theme-options.php:605
msgid "Github" msgid "Github"
msgstr "" msgstr ""
#: inc/theme-options.php:604 #: inc/theme-options.php:612
msgid "例如https://github.com/xxxxx" msgid "例如https://github.com/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:610 #: inc/theme-options.php:618
msgid "Stack Overflow" msgid "Stack Overflow"
msgstr "" msgstr ""
#: inc/theme-options.php:617 #: inc/theme-options.php:625
msgid "例如https://stackoverflow.com/users/xxxxx" msgid "例如https://stackoverflow.com/users/xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:623 #: inc/theme-options.php:631
msgid "其他" msgid "其他"
msgstr "" msgstr ""
#: inc/theme-options.php:628 #: inc/theme-options.php:636
msgid "电子邮箱" msgid "电子邮箱"
msgstr "" msgstr ""
#: inc/theme-options.php:635 #: inc/theme-options.php:643
msgid "例如mailto:xxxxx@gmail.com" msgid "例如mailto:xxxxx@gmail.com"
msgstr "" msgstr ""
#: inc/theme-options.php:641 #: inc/theme-options.php:649
msgid "工信部备案信息" msgid "工信部备案信息"
msgstr "" msgstr ""
#: inc/theme-options.php:643 #: inc/theme-options.php:651
msgid "例如京ICP证xxxxxx号" msgid "例如京ICP证xxxxxx号"
msgstr "" msgstr ""
#: inc/theme-options.php:648 #: inc/theme-options.php:656
msgid "公安网备案信息" msgid "公安网备案信息"
msgstr "" msgstr ""
#: inc/theme-options.php:650 #: inc/theme-options.php:658
msgid "例如:京公网安备 xxxxxxxxxxxx号" msgid "例如:京公网安备 xxxxxxxxxxxx号"
msgstr "" msgstr ""
#: inc/theme-options.php:655 #: inc/theme-options.php:663
msgid "公安网备案连接" msgid "公安网备案连接"
msgstr "" msgstr ""
#: inc/theme-options.php:657 #: inc/theme-options.php:665
msgid "" msgid ""
"例如http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=xxxxx" "例如http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=xxxxx"
msgstr "" msgstr ""
#: inc/theme-options.php:662 #: inc/theme-options.php:670
msgid "版权信息" msgid "版权信息"
msgstr "" msgstr ""
#: inc/theme-options.php:669 #: inc/theme-options.php:677
msgid "广告配置" msgid "广告配置"
msgstr "" msgstr ""
#: inc/theme-options.php:674 #: inc/theme-options.php:682
msgid "文章页面广告" msgid "文章页面广告"
msgstr "" msgstr ""
#: inc/theme-options.php:675 #: inc/theme-options.php:683
msgid "开启顶部广告" msgid "开启顶部广告"
msgstr "" msgstr ""
#: inc/theme-options.php:688 inc/theme-options.php:708 #: inc/theme-options.php:696 inc/theme-options.php:716
msgid "选填广告连接,如果不填则只显示图片" msgid "选填广告连接,如果不填则只显示图片"
msgstr "" msgstr ""
#: inc/theme-options.php:695 #: inc/theme-options.php:703
msgid "开启底部广告" msgid "开启底部广告"
msgstr "" msgstr ""
#: inc/theme-options.php:715 #: inc/theme-options.php:723
msgid "关于主题" msgid "关于主题"
msgstr "" msgstr ""
@ -876,97 +888,114 @@ msgstr ""
msgid "侧边栏工具" msgid "侧边栏工具"
msgstr "" msgstr ""
#: inc/theme-widgets.php:68 #: inc/theme-widgets.php:67
msgid "A search form for your site."
msgstr ""
#: inc/theme-widgets.php:70
msgctxt "Search widget"
msgid "Search"
msgstr ""
#: inc/theme-widgets.php:81
msgid "搜索"
msgstr ""
#: inc/theme-widgets.php:89
msgid "Title:"
msgstr ""
#: inc/theme-widgets.php:109
msgid "图片广告" msgid "图片广告"
msgstr "" msgstr ""
#: inc/theme-widgets.php:69 #: inc/theme-widgets.php:110
msgid "显示自定义图片广告的工具" msgid "显示自定义图片广告的工具"
msgstr "" msgstr ""
#: inc/theme-widgets.php:85 inc/theme-widgets.php:107 #: inc/theme-widgets.php:126 inc/theme-widgets.php:148
msgid "广告" msgid "广告"
msgstr "" msgstr ""
#: inc/theme-widgets.php:113 #: inc/theme-widgets.php:154
msgid "副标题:" msgid "副标题:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:117 #: inc/theme-widgets.php:158
msgid "链接地址:" msgid "链接地址:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:121 #: inc/theme-widgets.php:162
msgid "广告图片:" msgid "广告图片:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:123 inc/theme-widgets.php:188 #: inc/theme-widgets.php:164 inc/theme-widgets.php:229
msgid "选择图片" msgid "选择图片"
msgstr "" msgstr ""
#: inc/theme-widgets.php:138 #: inc/theme-widgets.php:179
msgid "可跳转后台的个人简介展示工具" msgid "可跳转后台的个人简介展示工具"
msgstr "" msgstr ""
#. Theme Name of the plugin/theme #. Theme Name of the plugin/theme
#: inc/theme-widgets.php:155 #: inc/theme-widgets.php:196
msgid "Kratos" msgid "Kratos"
msgstr "" msgstr ""
#: inc/theme-widgets.php:186 #: inc/theme-widgets.php:227
msgid "背景图片:" msgid "背景图片:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:200 inc/theme-widgets.php:223 #: inc/theme-widgets.php:241 inc/theme-widgets.php:264
msgid "标签聚合" msgid "标签聚合"
msgstr "" msgstr ""
#: inc/theme-widgets.php:201 #: inc/theme-widgets.php:242
msgid "文章标签的展示工具" msgid "文章标签的展示工具"
msgstr "" msgstr ""
#: inc/theme-widgets.php:246 #: inc/theme-widgets.php:287
msgid "显示数量:" msgid "显示数量:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:250 #: inc/theme-widgets.php:291
msgid "显示排序:" msgid "显示排序:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:252 #: inc/theme-widgets.php:293
msgid "降序" msgid "降序"
msgstr "" msgstr ""
#: inc/theme-widgets.php:253 #: inc/theme-widgets.php:294
msgid "升序" msgid "升序"
msgstr "" msgstr ""
#: inc/theme-widgets.php:254 inc/theme-widgets.php:284 #: inc/theme-widgets.php:295 inc/theme-widgets.php:325
#: inc/theme-widgets.php:289 #: inc/theme-widgets.php:330
msgid "随机" msgid "随机"
msgstr "" msgstr ""
#: inc/theme-widgets.php:267 #: inc/theme-widgets.php:308
msgid "文章聚合" msgid "文章聚合"
msgstr "" msgstr ""
#: inc/theme-widgets.php:268 #: inc/theme-widgets.php:309
msgid "展示最热、随机、最新文章的工具" msgid "展示最热、随机、最新文章的工具"
msgstr "" msgstr ""
#: inc/theme-widgets.php:282 inc/theme-widgets.php:287 #: inc/theme-widgets.php:323 inc/theme-widgets.php:328
msgid "最新" msgid "最新"
msgstr "" msgstr ""
#: inc/theme-widgets.php:283 inc/theme-widgets.php:288 #: inc/theme-widgets.php:324 inc/theme-widgets.php:329
msgid "热点" msgid "热点"
msgstr "" msgstr ""
#: inc/theme-widgets.php:326 #: inc/theme-widgets.php:367
msgid "展示数量:" msgid "展示数量:"
msgstr "" msgstr ""
#: inc/theme-widgets.php:330 #: inc/theme-widgets.php:371
msgid "统计天数:" msgid "统计天数:"
msgstr "" msgstr ""