From 3b8cb192949f6365f5d68a2c8b2cbe0a06d35a21 Mon Sep 17 00:00:00 2001 From: Spirit Date: Fri, 14 Feb 2020 00:09:01 +0800 Subject: [PATCH] perf: optmize --- comments.php | 2 +- inc/decorate.php | 3 +++ languages/en_US.mo | Bin 1570 -> 1568 bytes languages/en_US.po | 30 +++++++++++++++--------------- languages/sakura.pot | 28 ++++++++++++++-------------- languages/zh_CN.mo | Bin 34269 -> 34267 bytes languages/zh_CN.po | 30 +++++++++++++++--------------- tpl/content-none.php | 2 +- tpl/content-thumb.php | 3 +++ 9 files changed, 52 insertions(+), 46 deletions(-) diff --git a/comments.php b/comments.php index cbb5bbd..cf995b4 100644 --- a/comments.php +++ b/comments.php @@ -88,7 +88,7 @@ 'comment_notes_after' => '', 'comment_notes_before' => '', 'fields' => apply_filters( 'comment_form_default_fields', array( - 'avatar' => '
', + 'avatar' => '
', 'author' => '', 'email' => diff --git a/inc/decorate.php b/inc/decorate.php index 14855e0..b2a4691 100644 --- a/inc/decorate.php +++ b/inc/decorate.php @@ -61,6 +61,9 @@ if ( akina_option('theme_skin') ) { ?> } +.post-list-thumb{opacity: 0} +.post-list-show {opacity: 1} + $&PpmaKr<^=LffHWVFt^?8nK)M%5 zvjFLNK$-(cF9y;eb!&h$8<5@x%>$%kpmZjX<^=M~fHWVFZUE8(K)N4D zvjFJ@K$-(cF9p&db?bmM8<5@sXv=~t{k;{<^WCZK9wAT6@l hl5ry=m!YnKxq_j&m67@6FH9?#jr2@5&t-0A0ssZ=7O?;T diff --git a/languages/en_US.po b/languages/en_US.po index 34958bd..7f47aa0 100644 --- a/languages/en_US.po +++ b/languages/en_US.po @@ -1,15 +1,15 @@ msgid "" msgstr "" "Project-Id-Version: Sakura\n" -"POT-Creation-Date: 2020-01-07 17:27+0800\n" -"PO-Revision-Date: 2020-01-07 17:27+0800\n" +"POT-Creation-Date: 2020-02-13 23:59+0800\n" +"PO-Revision-Date: 2020-02-13 23:59+0800\n" "Last-Translator: \n" "Language-Team: \n" "Language: en_US\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2.4\n" +"X-Generator: Poedit 2.3\n" "X-Poedit-Basepath: ..\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n" "X-Poedit-Flags-xgettext: --add-comments=translators:\n" @@ -181,35 +181,35 @@ msgstr "" msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "" -#: functions.php:1327 +#: functions.php:1329 msgid "All expand/collapse" msgstr "" -#: functions.php:1348 options.php:834 +#: functions.php:1350 options.php:834 msgid " " msgstr "" -#: functions.php:1352 +#: functions.php:1354 msgid " post(s)" msgstr "" -#: functions.php:1375 functions.php:1378 inc/theme_plus.php:478 +#: functions.php:1377 functions.php:1380 inc/theme_plus.php:478 msgid "Dashboard" msgstr "" -#: functions.php:1604 +#: functions.php:1606 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1709 +#: functions.php:1711 msgid "QQ" msgstr "" -#: functions.php:1779 +#: functions.php:1781 msgid "Sidebar" msgstr "" -#: functions.php:1891 +#: functions.php:1893 msgid "" " For a better experience, please do not set permalink as plain. To do this, you may need to " @@ -1710,17 +1710,17 @@ msgstr "Search result: %s" msgid "NOTHING" msgstr "" -#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:53 +#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:56 #: tpl/content.php:34 msgid "Comment" msgstr "" -#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:53 +#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:56 #: tpl/content.php:34 msgid "Comments" msgstr "" -#: tpl/content-image.php:38 tpl/content-status.php:34 tpl/content-thumb.php:52 +#: tpl/content-image.php:38 tpl/content-status.php:34 tpl/content-thumb.php:55 #: tpl/content.php:37 msgid "Hit" msgid_plural "Hits" @@ -1728,7 +1728,7 @@ msgstr[0] "" msgstr[1] "" #: tpl/content-none.php:14 -msgid "There is noyhing here!" +msgid "There is nothing here!" msgstr "" #: tpl/content-none.php:21 diff --git a/languages/sakura.pot b/languages/sakura.pot index 54cb12a..146179a 100644 --- a/languages/sakura.pot +++ b/languages/sakura.pot @@ -3,14 +3,14 @@ msgid "" msgstr "" "Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" "Project-Id-Version: Sakura\n" -"POT-Creation-Date: 2020-01-07 17:27+0800\n" +"POT-Creation-Date: 2020-02-13 23:59+0800\n" "PO-Revision-Date: 2019-11-01 14:27+0800\n" "Last-Translator: \n" "Language-Team: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2.4\n" +"X-Generator: Poedit 2.3\n" "X-Poedit-Basepath: ..\n" "X-Poedit-Flags-xgettext: --add-comments=translators:\n" "X-Poedit-WPHeader: style.css\n" @@ -180,35 +180,35 @@ msgstr "" msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "" -#: functions.php:1327 +#: functions.php:1329 msgid "All expand/collapse" msgstr "" -#: functions.php:1348 options.php:834 +#: functions.php:1350 options.php:834 msgid " " msgstr "" -#: functions.php:1352 +#: functions.php:1354 msgid " post(s)" msgstr "" -#: functions.php:1375 functions.php:1378 inc/theme_plus.php:478 +#: functions.php:1377 functions.php:1380 inc/theme_plus.php:478 msgid "Dashboard" msgstr "" -#: functions.php:1604 +#: functions.php:1606 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1709 +#: functions.php:1711 msgid "QQ" msgstr "" -#: functions.php:1779 +#: functions.php:1781 msgid "Sidebar" msgstr "" -#: functions.php:1891 +#: functions.php:1893 msgid "" " For a better experience, please do not set " "permalink as plain. To do this, you may need to configure tFX8WSP5jNHH$U`!(!Q8Uy`af1|G8ce`jW^WM36wO>; zm^!XgiA@uYODXgE*BQ&=_4FXTAtfsb(reu)$C7WTv9>E3eG0#=~v9GPe}tun|Y$KFq~V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fOAo)tF{iCPy=l@_gno@RKMfqXQ<3v#W=iWaj#jvUn-_k zpNkr=${TP23Q9>0DpiM&<8?=|FGfA-9Gh`zs0V9NJKm03@OwB0&!HyhG24%mkBP(+ zu|F&EHSmJhzQ=jsw8j9*S8YA#A)EUk~Evyo?;A*@d zUq|(C#%#QZld$U?%d}*ES4}~w+lm_CAnL(0=4EUD12s|TT))HasD5#%`ZP?#5oQIR zCf-lBQ-G^1E`Ci3<9y~+s6ZM)_UFgsYUf3$ffk}N zv=Wu_EvO9~MULB@w)P>5EyGBr0S-pK8RjT+JZgX`7SBd~+ZUmZ zvL5x%XNSd~V=i$k>L}u>oqGTSxfFCp3o#!zpmy3~wwc#Z6aH=S9kUY|)WE$_hXOw=3s4+R}T%v%35nSz>V9>!rM)?qE`OV@9mzdQqQU=Xhu zYT^~o`+;9EcVRL02T%(MdBL}b;a1|FcVi|$OhFSiVj?!9F5NZM!v00AIC8xoC=PXd z`(q|fM76K8_FA(Z_52QNKWz1ls1I8chEJ!^VjWt|cJnV(>VjVMndpKVFctMW=Hgf^ zLM{9?)Iu6j8#vYQX3xv_1osZAd#O)#uyYMzeLo!(w4$Lk|8{s-MoRkdgpA=2Wo6cV RSF}GQGj&MA#>s^l{{!VcrSt#* diff --git a/languages/zh_CN.po b/languages/zh_CN.po index da5ad02..b65aad9 100644 --- a/languages/zh_CN.po +++ b/languages/zh_CN.po @@ -1,15 +1,15 @@ msgid "" msgstr "" "Project-Id-Version: Sakura\n" -"POT-Creation-Date: 2020-01-07 17:29+0800\n" -"PO-Revision-Date: 2020-01-07 17:32+0800\n" +"POT-Creation-Date: 2020-02-13 23:59+0800\n" +"PO-Revision-Date: 2020-02-13 23:59+0800\n" "Last-Translator: \n" "Language-Team: \n" "Language: zh_CN\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 2.2.4\n" +"X-Generator: Poedit 2.3\n" "X-Poedit-Basepath: ..\n" "Plural-Forms: nplurals=1; plural=0;\n" "X-Poedit-Flags-xgettext: --add-comments=translators:\n" @@ -183,35 +183,35 @@ msgstr "" msgid "This guy is so lazy ╮(╯▽╰)╭" msgstr "这家伙好懒╮(╯▽╰)╭" -#: functions.php:1327 +#: functions.php:1329 msgid "All expand/collapse" msgstr "全部展开/收缩" -#: functions.php:1348 options.php:834 +#: functions.php:1350 options.php:834 msgid " " msgstr "" -#: functions.php:1352 +#: functions.php:1354 msgid " post(s)" msgstr " 篇文章" -#: functions.php:1375 functions.php:1378 inc/theme_plus.php:478 +#: functions.php:1377 functions.php:1380 inc/theme_plus.php:478 msgid "Dashboard" msgstr "管理中心" -#: functions.php:1604 +#: functions.php:1606 msgid "ERROR: This email domain (@" msgstr "" -#: functions.php:1709 +#: functions.php:1711 msgid "QQ" msgstr "" -#: functions.php:1779 +#: functions.php:1781 msgid "Sidebar" msgstr "侧栏" -#: functions.php:1891 +#: functions.php:1893 msgid "" " For a better experience, please do not set permalink as plain. To do this, you may need to " @@ -1764,24 +1764,24 @@ msgstr "关于 %s 的搜索结果:" msgid "NOTHING" msgstr "啥也没有呀" -#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:53 +#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:56 #: tpl/content.php:34 msgid "Comment" msgstr "条评论" -#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:53 +#: tpl/content-image.php:35 tpl/content-status.php:31 tpl/content-thumb.php:56 #: tpl/content.php:34 msgid "Comments" msgstr "条评论" -#: tpl/content-image.php:38 tpl/content-status.php:34 tpl/content-thumb.php:52 +#: tpl/content-image.php:38 tpl/content-status.php:34 tpl/content-thumb.php:55 #: tpl/content.php:37 msgid "Hit" msgid_plural "Hits" msgstr[0] "热度" #: tpl/content-none.php:14 -msgid "There is noyhing here!" +msgid "There is nothing here!" msgstr "没有找到任何东西!" #: tpl/content-none.php:21 diff --git a/tpl/content-none.php b/tpl/content-none.php index dd894e6..0bc309f 100644 --- a/tpl/content-none.php +++ b/tpl/content-none.php @@ -11,7 +11,7 @@
diff --git a/tpl/content-thumb.php b/tpl/content-thumb.php index 1c668dc..c59747b 100644 --- a/tpl/content-thumb.php +++ b/tpl/content-thumb.php @@ -24,6 +24,9 @@ switch (akina_option('feature_align')) { default: $class = ($i%2 == 0) ? 'post-list-thumb-left' : ''; } +if( $i == 1 ){ + $class .= ' post-list-show'; +} if(has_post_thumbnail()){ $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'large'); $post_img = $large_image_url[0];