From b770426ce1def7c8892e6d5b75946341d213b4ec Mon Sep 17 00:00:00 2001 From: spirit Date: Wed, 27 Nov 2019 23:32:41 +0800 Subject: [PATCH] update api --- cover/img.txt | 3 +++ cover/index.php | 14 -------------- feature/img.txt | 2 ++ feature/index.php | 14 -------------- inc/api.php | 30 +++++++++++++++-------------- languages/en_US.mo | Bin 1233 -> 1233 bytes languages/en_US.po | 36 ++++++++++++++++------------------ languages/sakura.pot | 33 +++++++++++++++---------------- languages/zh_CN.mo | Bin 32344 -> 32499 bytes languages/zh_CN.po | 45 ++++++++++++++++++++----------------------- options.php | 4 ++-- 11 files changed, 77 insertions(+), 104 deletions(-) create mode 100644 cover/img.txt delete mode 100644 cover/index.php create mode 100644 feature/img.txt delete mode 100644 feature/index.php diff --git a/cover/img.txt b/cover/img.txt new file mode 100644 index 0000000..6ce78d5 --- /dev/null +++ b/cover/img.txt @@ -0,0 +1,3 @@ +https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.2/cover/gallery/pixar_up_movie_balloons_desktop_1920x1080_hd-wallpaper-507967.jpg +https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.2/cover/gallery/beyond_by_auroralion-dan5njb.jpg +https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.2/cover/gallery/海の空(56993195)_by_夏T.jpg diff --git a/cover/index.php b/cover/index.php deleted file mode 100644 index 4ebee33..0000000 --- a/cover/index.php +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/feature/img.txt b/feature/img.txt new file mode 100644 index 0000000..839fb03 --- /dev/null +++ b/feature/img.txt @@ -0,0 +1,2 @@ +https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.2/feature/gallery/1.jpg +https://cdn.jsdelivr.net/gh/mashirozx/Sakura@3.3.2/feature/gallery/2.jpg diff --git a/feature/index.php b/feature/index.php deleted file mode 100644 index 4ebee33..0000000 --- a/feature/index.php +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/inc/api.php b/inc/api.php index a175108..36e0229 100644 --- a/inc/api.php +++ b/inc/api.php @@ -276,13 +276,14 @@ EOS; * @rest api接口路径:https://sakura.2heng.xin/wp-json/sakura/v1/image/cover */ function cover_gallery() { - $img_array = glob(get_wp_root_path(). "/themes/Sakura/cover/gallery/*.{gif,jpg,png}",GLOB_BRACE); - $img = array_rand($img_array); - $imgurl = $img_array[$img]; - $mimetype = end(getimagesize($imgurl)); - $imgdata = file_get_contents($imgurl); - header("Content-type: ".$mimetype); - echo $imgdata; + $img_array = file(get_wp_root_path(). "/themes/Sakura/cover/img.txt"); + $img = mt_rand(0, count($img_array) - 1); + $imgurl = trim($img_array[$img]); + $data = array( 'cover image' ); + $response = new WP_REST_Response($data); + $response->set_status( 302 ); + $response->header( 'Location', $imgurl); + return $response; } /* @@ -290,11 +291,12 @@ function cover_gallery() { * @rest api接口路径:https://sakura.2heng.xin/wp-json/sakura/v1/image/feature */ function feature_gallery() { - $img_array = glob(get_wp_root_path(). "/themes/Sakura/feature/gallery/*.{gif,jpg,png}",GLOB_BRACE); - $img = array_rand($img_array); - $imgurl = $img_array[$img]; - $mimetype = end(getimagesize($imgurl)); - $imgdata = file_get_contents($imgurl); - header("Content-type: ".$mimetype); - echo $imgdata; + $img_array = file(get_wp_root_path(). "/themes/Sakura/feature/img.txt"); + $img = mt_rand(0, count($img_array) - 1); + $imgurl = trim($img_array[$img]); + $data = array( 'feature image' ); + $response = new WP_REST_Response($data); + $response->set_status( 302 ); + $response->header( 'Location', $imgurl); + return $response; } \ No newline at end of file diff --git a/languages/en_US.mo b/languages/en_US.mo index 4e717de017eed681663de3b02cc49ea6edc42789..827abab424cbcfa800d1ee343293d7741dfba416 100644 GIT binary patch delta 21 dcmcb}d69F&9Yzi#a|I(~D?@|LPZ-}a0RU5U2U-9C delta 21 dcmcb}d69F&9YzjAa|I(qD`TV0PZ-}a0RU5P2U`FD diff --git a/languages/en_US.po b/languages/en_US.po index 61a88a6..e62bc51 100644 --- a/languages/en_US.po +++ b/languages/en_US.po @@ -1,8 +1,8 @@ msgid "" msgstr "" "Project-Id-Version: Sakura\n" -"POT-Creation-Date: 2019-11-17 21:32+0800\n" -"PO-Revision-Date: 2019-11-17 21:32+0800\n" +"POT-Creation-Date: 2019-11-27 23:10+0800\n" +"PO-Revision-Date: 2019-11-27 23:10+0800\n" "Last-Translator: \n" "Language-Team: \n" "Language: en_US\n" @@ -171,41 +171,41 @@ msgstr "" msgid "Edit" msgstr "" -#: functions.php:485 +#: functions.php:486 msgid "" "Please install pulgin WP-Statistics" msgstr "" -#: functions.php:538 +#: functions.php:536 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "" -#: functions.php:1248 +#: functions.php:1246 msgid "All expand/collapse" msgstr "" -#: functions.php:1259 options.php:840 +#: functions.php:1257 options.php:840 msgid " " msgstr "" -#: functions.php:1263 +#: functions.php:1261 msgid " post(s)" msgstr "" -#: functions.php:1285 functions.php:1288 inc/theme_plus.php:479 +#: functions.php:1283 functions.php:1286 inc/theme_plus.php:479 msgid "Dashboard" msgstr "" -#: functions.php:1501 +#: functions.php:1499 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1581 +#: functions.php:1603 msgid "QQ" msgstr "" -#: functions.php:1637 +#: functions.php:1659 msgid "Sidebar" msgstr "" @@ -214,7 +214,7 @@ msgstr "" msgid "page %s " msgstr "" -#: inc/api.php:253 inc/theme_plus.php:728 +#: inc/api.php:252 inc/theme_plus.php:728 msgid "The comment is private" msgstr "" @@ -690,9 +690,9 @@ msgstr "" #: options.php:268 msgid "" -"The default image displayed without the article feature image set, use " -"random cover if left blank (the image to be displayed is placed in the /wp-" -"content/themes/Sakura/feature/gallery/ directory)" +"The default image to be displayed without the feature map of the article. " +"Leave blank here to use the built-in API (write the URL of the image to be " +"displayed randomly to the /feature/img.txt file)" msgstr "" #: options.php:274 @@ -870,8 +870,8 @@ msgstr "" #: options.php:423 msgid "" -"Leave this blank to use the built-in API (put the images that need to be " -"randomly displayed into the /cover/gallery/ directory)" +"Leave blank here to use the built-in API (write the URL of the image that " +"needs to be displayed randomly to the /cover/img.txt file))" msgstr "" #: options.php:429 @@ -1005,8 +1005,6 @@ msgid "Post share" msgstr "" #: options.php:587 -#, fuzzy -#| msgid "Previous" msgid "Previous and Next" msgstr "Previous" diff --git a/languages/sakura.pot b/languages/sakura.pot index f2818c3..890f66f 100644 --- a/languages/sakura.pot +++ b/languages/sakura.pot @@ -1,9 +1,8 @@ -#, fuzzy msgid "" msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Project-Id-Version: Sakura\n" -"POT-Creation-Date: 2019-11-17 21:32+0800\n" +"POT-Creation-Date: 2019-11-27 23:10+0800\n" "PO-Revision-Date: 2019-11-01 14:27+0800\n" "Last-Translator: \n" "Language-Team: \n" @@ -170,41 +169,41 @@ msgstr "" msgid "Edit" msgstr "" -#: functions.php:485 +#: functions.php:486 msgid "" "Please install pulgin WP-Statistics" msgstr "" -#: functions.php:538 +#: functions.php:536 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "" -#: functions.php:1248 +#: functions.php:1246 msgid "All expand/collapse" msgstr "" -#: functions.php:1259 options.php:840 +#: functions.php:1257 options.php:840 msgid " " msgstr "" -#: functions.php:1263 +#: functions.php:1261 msgid " post(s)" msgstr "" -#: functions.php:1285 functions.php:1288 inc/theme_plus.php:479 +#: functions.php:1283 functions.php:1286 inc/theme_plus.php:479 msgid "Dashboard" msgstr "" -#: functions.php:1501 +#: functions.php:1499 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1581 +#: functions.php:1603 msgid "QQ" msgstr "" -#: functions.php:1637 +#: functions.php:1659 msgid "Sidebar" msgstr "" @@ -213,7 +212,7 @@ msgstr "" msgid "page %s " msgstr "" -#: inc/api.php:253 inc/theme_plus.php:728 +#: inc/api.php:252 inc/theme_plus.php:728 msgid "The comment is private" msgstr "" @@ -685,9 +684,9 @@ msgstr "" #: options.php:268 msgid "" -"The default image displayed without the article feature image set, use random cover if left " -"blank (the image to be displayed is placed in the /wp-content/themes/Sakura/feature/gallery/ " -"directory)" +"The default image to be displayed without the feature map of the article. Leave blank here to " +"use the built-in API (write the URL of the image to be displayed randomly to the /feature/img." +"txt file)" msgstr "" #: options.php:274 @@ -861,8 +860,8 @@ msgstr "" #: options.php:423 msgid "" -"Leave this blank to use the built-in API (put the images that need to be randomly displayed " -"into the /cover/gallery/ directory)" +"Leave blank here to use the built-in API (write the URL of the image that needs to be " +"displayed randomly to the /cover/img.txt file))" msgstr "" #: options.php:429 diff --git a/languages/zh_CN.mo b/languages/zh_CN.mo index 1704ea2812d4d21b8bca642e668625941c445e9d..4e928d35fc712de86ec2af089b12d5a5f8e81be3 100644 GIT binary patch delta 8398 zcmbW+d0bXy-pBC^K~WS%1x4I$+?NEm6wy@5U0icF7nB<%SroyA$lG+ZUB^&Itue98 zEyqUG)U>^(V4;#?zKTiv+}lxx&it#gN(I9C-9V>Nu$d>13gKf)UL1*+Y5mS4kZ zm-7tUr(2t)x&HA44tS2FstpaPntS z9qvc1)H|q^I*WDiy5-f|cr)~&29$^mF$vYr800Cs>8R_LwPF2rqjgkt!d<9mc?QF= z92?_zI3H`Y^#-yOr;@KnZNe*7@7g)nfV>{|!H(D&=VB;6g}35%RJ%{xvHsfi*Q`Nw zd+$UnhEd-cZ^!PI7or9hKn?tU)T4OC^}&c9Ef^!V^AGWLT#=bR7U|!#-phA*O0|>VF_M; zfdmTGsThQta14foIClxv@%M?|%);1N+Re4FCbmX()D5*F15qnB0=40Nxy-g*UgoiL(@BjA{bfcf}Hmt_WtqTX@3Y>tN*=MMkoJFm`MfBk>7>$kCSsF+u zTH##F??GL^45R7at+5l&pq6rvxgYFbG!rmB%Lr}ZdkLqwaYGzNG`^-1YPmphv zyMS8B+N`fOSv>0cp;!-RVGb@q-e~u266>!S*6ZQT)Q5VF+L^bama4DiBd|94B-9PF zP%~X_K8$)BiZK#5;$Ym458?M%h(+u`)n7|y{Wa5+p3EMnp;lruYGrnzX7p#&jbAa3 z+xhoU13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2pvUCVfv=tj9OK8kBF zlhCoAXhUfA^w8;u;F<@=UJBZ};p84ieTM%`1d>T?q@d$7qAvA+1Z&=3FnYHi`9(uI zr4LCgxhlkml>bSzBL)&x$&E%GFL}6I_$t9Cz@@ZnxE+z+u$q>DN+a3T5nu+MKvy z7l|hcK4h*u=O<&PT~|zbgq8PEo`47vmp^@xZ&Du~-AM0NeH7z#?uTnouoFjBRtVg*4 zg%^TV=XRLi;T5Ibl>1>A zq5fS(3blzJROfh^m`Hq~$}f(aDsx>tQOWX~u|Cm~$grH~LUiZ4WXpYmb%_ha5zCF^ zy!sFRU&M#--^5m83{jQPF_eqS;(cNTagm55O6z8h6c2Y0mlAIg!-#aE6_HImIF?x< z7Pk;tg!*^C*AEUqF@%QuV;&Js`E`7s*g*X9@N=$&M5ra(Vg&IDF`aW+#HW-$BI1Z+ z#DgQ+3SFsJIxmizz@5L3v7V>GrVrc%x&!ie_7DniFZ&UGLjrTknlbW%L3If6262semS{k}7BPo%D)uEJiGhTUwL}7Oh?q>SKM_Uw zE8@WsLhg4|T3ccy^|_Rrs2*H@Oed*hk%t>a{SxIX#3aitG{qmR+>q-ASoux!G?pbl zf%pyO7DQ#8^QFzm$?@kF{I`(ricZC@uMsGimYMIHlAW5HyDX8z3V)Ono9 z%;l6CN=%zE+n<*>H8nfipEoa&OY;0_1vB#IHFX3183nHBO54KFqJoa+OBH2z9u~Uc zoo+QZ1d?hr^5y#rS_FsVwa)ly$CsJm%jPy4aFY#5DRp`=etJy{_UiRHXJ*T^8My^a zH<2;q`12D-q-GW7r6y+hQws|7{Qt*rie{v2tQ_8|gRga~PHkEjMGn1MGv?aHBgIR1 z{;w&NY}sG@#-^f*QWP-Statistics" @@ -179,35 +179,35 @@ msgstr "" "请安装插件 WP-Statistics" -#: functions.php:538 +#: functions.php:536 msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "这家伙好懒╮(╯▽╰)╭" -#: functions.php:1248 +#: functions.php:1246 msgid "All expand/collapse" msgstr "全部展开/收缩" -#: functions.php:1259 options.php:840 +#: functions.php:1257 options.php:840 msgid " " msgstr "" -#: functions.php:1263 +#: functions.php:1261 msgid " post(s)" msgstr " 篇文章" -#: functions.php:1285 functions.php:1288 inc/theme_plus.php:479 +#: functions.php:1283 functions.php:1286 inc/theme_plus.php:479 msgid "Dashboard" msgstr "管理中心" -#: functions.php:1501 +#: functions.php:1499 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1581 +#: functions.php:1603 msgid "QQ" msgstr "" -#: functions.php:1637 +#: functions.php:1659 msgid "Sidebar" msgstr "侧栏" @@ -216,7 +216,7 @@ msgstr "侧栏" msgid "page %s " msgstr "第 %s 页 " -#: inc/api.php:253 inc/theme_plus.php:728 +#: inc/api.php:252 inc/theme_plus.php:728 msgid "The comment is private" msgstr "该评论为私密评论" @@ -697,12 +697,12 @@ msgstr "默认文章特色图" #: options.php:268 msgid "" -"The default image displayed without the article feature image set, use " -"random cover if left blank (the image to be displayed is placed in the /wp-" -"content/themes/Sakura/feature/gallery/ directory)" +"The default image to be displayed without the feature map of the article. " +"Leave blank here to use the built-in API (write the URL of the image to be " +"displayed randomly to the /feature/img.txt file)" msgstr "" -"在未设置文章特色图的情况下展示的默认图像,留空则调用本地随机封面(要展示的图" -"片放入 /wp-content/themes/Sakura/feature/gallery/ 目录)" +"在未设置文章特色图的情况下展示的默认图像,此处留空则使用内置API(将需要随机展" +"示的图片url写入 /feature/img.txt 文件)" #: options.php:274 msgid "Comment shrink" @@ -881,9 +881,10 @@ msgstr "封面图" #: options.php:423 msgid "" -"Leave this blank to use the built-in API (put the images that need to be " -"randomly displayed into the /cover/gallery/ directory)" -msgstr "此处留空则使用内置API(将需要随机展示的图片放入 /cover/gallery/ 目录)" +"Leave blank here to use the built-in API (write the URL of the image that " +"needs to be displayed randomly to the /cover/img.txt file))" +msgstr "" +"此处留空则使用内置API(将需要随机展示的图片url写入 /cover/img.txt 文件)" #: options.php:429 msgid "Background image filter" @@ -1779,8 +1780,6 @@ msgid "This username has been registered." msgstr "该用户名已被注册。" #: user/page-register.php:24 -#, fuzzy -#| msgid "Please enter email address." msgid "Please enter email address." msgstr "请填写电子邮件地址。" @@ -1821,8 +1820,6 @@ msgid "Sign up" msgstr "注 册" #: user/page-register.php:92 -#, fuzzy -#| msgid "Registration is not open yet" msgid "Registration is not open yet." msgstr "暂未开放注册。" diff --git a/options.php b/options.php index 5690edb..ac94035 100644 --- a/options.php +++ b/options.php @@ -265,7 +265,7 @@ function optionsframework_options() { $options[] = array( 'name' => __('Default article feature image', 'sakura'),/*默认文章特色图*/ - 'desc' => __('The default image displayed without the article feature image set, use random cover if left blank (the image to be displayed is placed in the /wp-content/themes/Sakura/feature/gallery/ directory)', 'sakura'),/*在未设置文章特色图的情况下展示的默认图像,留空则调用本地随机封面(要展示的图片放入 /wp-content/themes/Sakura/feature/gallery/ 目录)*/ + 'desc' => __('The default image to be displayed without the feature map of the article. Leave blank here to use the built-in API (write the URL of the image to be displayed randomly to the /feature/img.txt file)', 'sakura'),/*在未设置文章特色图的情况下展示的默认图像,此处留空则使用内置API(将需要随机展示的图片url写入 /feature/img.txt 文件)*/ 'id' => 'default_feature_image', 'std' => 'https://api.mashiro.top/feature/', 'type' => 'text'); @@ -420,7 +420,7 @@ function optionsframework_options() { $options[] = array( 'name' => __('Cover image', 'sakura'),/*封面图*/ - 'desc' => __('Leave this blank to use the built-in API (put the images that need to be randomly displayed into the /cover/gallery/ directory)', 'sakura'),/*此处留空则使用内置API(将需要随机展示的图片放入 /cover/gallery/ 目录)*/ + 'desc' => __('Leave blank here to use the built-in API (write the URL of the image that needs to be displayed randomly to the /cover/img.txt file))', 'sakura'),/*此处留空则使用内置API(将需要随机展示的图片url写入 /cover/img.txt 文件)*/ 'id' => 'cover_img', 'std' => '', 'type' => 'text');