This commit is contained in:
spirit 2019-11-16 10:13:37 +08:00
parent e01ff461c2
commit 4212feeccd
8 changed files with 48 additions and 37 deletions

View File

@ -38,15 +38,17 @@
</div>
</div><!-- .site-info -->
</footer><!-- #colophon -->
<?php if (akina_option('sakura_widget')) : ?>
<aside id="secondary" class="widget-area" role="complementary" style="left: -400px;">
<button class="show_hide">
<i class="fa fa-magic" aria-hidden="true"></i>
</button>
<div class="heading"><?php _e('Widget') /*小工具*/ ?></div>
<div class="heading"><?php _e('Widgets') /*小工具*/ ?></div>
<div class="sakura_widget">
<?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('sakura_widget')) : endif; ?>
</div>
</aside>
<?php endif; ?>
<div class="openNav no-select">
<div class="iconflat no-select">
<div class="icon"></div>

View File

@ -645,19 +645,19 @@ function wpjam_custom_upload_dir( $uploads ) {
* 删除自带小工具
*/
function unregister_default_widgets() {
//unregister_widget("WP_Widget_Pages");
unregister_widget("WP_Widget_Pages");
unregister_widget("WP_Widget_Calendar");
//unregister_widget("WP_Widget_Archives");
unregister_widget("WP_Widget_Archives");
unregister_widget("WP_Widget_Links");
unregister_widget("WP_Widget_Meta");
//unregister_widget("WP_Widget_Search");
unregister_widget("WP_Widget_Text");
//unregister_widget("WP_Widget_Categories");
//unregister_widget("WP_Widget_Recent_Posts");
unregister_widget("WP_Widget_Recent_Comments");
unregister_widget("WP_Widget_RSS");
unregister_widget("WP_Widget_Tag_Cloud");
//unregister_widget("WP_Nav_Menu_Widget");
unregister_widget("WP_Widget_Search");
//unregister_widget("WP_Widget_Text");
unregister_widget("WP_Widget_Categories");
unregister_widget("WP_Widget_Recent_Posts");
//unregister_widget("WP_Widget_Recent_Comments");
//unregister_widget("WP_Widget_RSS");
//unregister_widget("WP_Widget_Tag_Cloud");
unregister_widget("WP_Nav_Menu_Widget");
}
add_action("widgets_init", "unregister_default_widgets", 11);

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2019-11-15 23:51+0800\n"
"PO-Revision-Date: 2019-11-15 23:51+0800\n"
"POT-Creation-Date: 2019-11-16 10:08+0800\n"
"PO-Revision-Date: 2019-11-16 10:11+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: en_US\n"
@ -38,7 +38,7 @@ msgstr "Return to home page"
msgid "Don't worry, search in site?"
msgstr ""
#: 404.php:53 footer.php:71 search.php:42
#: 404.php:53 footer.php:73 search.php:42
msgid "Search..."
msgstr "Search..."
@ -130,15 +130,15 @@ msgstr ""
msgid "Site"
msgstr ""
#: footer.php:45
msgid "Widget"
#: footer.php:46
msgid "Widgets"
msgstr ""
#: footer.php:84 footer.php:92
#: footer.php:86 footer.php:94
msgid "Want to find something?"
msgstr ""
#: footer.php:94
#: footer.php:96
msgid "Search"
msgstr ""

View File

@ -3,7 +3,7 @@ msgid ""
msgstr ""
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2019-11-15 23:51+0800\n"
"POT-Creation-Date: 2019-11-16 10:11+0800\n"
"PO-Revision-Date: 2019-11-01 14:27+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -38,7 +38,7 @@ msgstr ""
msgid "Don't worry, search in site?"
msgstr ""
#: 404.php:53 footer.php:71 search.php:42
#: 404.php:53 footer.php:73 search.php:42
msgid "Search..."
msgstr ""
@ -130,15 +130,15 @@ msgstr ""
msgid "Site"
msgstr ""
#: footer.php:45
msgid "Widget"
#: footer.php:46
msgid "Widgets"
msgstr ""
#: footer.php:84 footer.php:92
#: footer.php:86 footer.php:94
msgid "Want to find something?"
msgstr ""
#: footer.php:94
#: footer.php:96
msgid "Search"
msgstr ""

Binary file not shown.

View File

@ -1,8 +1,8 @@
msgid ""
msgstr ""
"Project-Id-Version: Sakura\n"
"POT-Creation-Date: 2019-11-15 23:50+0800\n"
"PO-Revision-Date: 2019-11-15 23:50+0800\n"
"POT-Creation-Date: 2019-11-16 10:08+0800\n"
"PO-Revision-Date: 2019-11-16 10:11+0800\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: zh_CN\n"
@ -38,7 +38,7 @@ msgstr "返回首页"
msgid "Don't worry, search in site?"
msgstr "别着急,试试站内检索?"
#: 404.php:53 footer.php:71 search.php:42
#: 404.php:53 footer.php:73 search.php:42
msgid "Search..."
msgstr "搜索..."
@ -130,15 +130,15 @@ msgstr "禁止小广告😀"
msgid "Site"
msgstr "网站"
#: footer.php:45
msgid "Widget"
#: footer.php:46
msgid "Widgets"
msgstr "小工具"
#: footer.php:84 footer.php:92
#: footer.php:86 footer.php:94
msgid "Want to find something?"
msgstr "想要找点什么呢?"
#: footer.php:94
#: footer.php:96
msgid "Search"
msgstr "搜索"
@ -1020,10 +1020,8 @@ msgid "Post share"
msgstr "文章分享"
#: options.php:587
#, fuzzy
#| msgid "Previous"
msgid "Previous and Next"
msgstr "上一"
msgstr "上一篇下一篇"
#: options.php:597
msgid "Author profile"

View File

@ -8524,6 +8524,16 @@ h1[id*=toc-head]::before,h2[id*=toc-head]::before,h3[id*=toc-head]::before,h4[id
overflow-y: auto;
}
.widget-area .sakura_widget h2 {
border-bottom: 1px solid #000;
}
.widget-area .sakura_widget ol,.widget-area .sakura_widget ul {
margin: 0;
padding: 0;
list-style: none;
}
.widget-area .heading{
color: #555;
font-size: 20px;
@ -8542,6 +8552,7 @@ h1[id*=toc-head]::before,h2[id*=toc-head]::before,h3[id*=toc-head]::before,h4[id
border-color: #ddd;
outline:none;
box-shadow: none;
border: none;
border-left-width: 0;
}