mirror of
https://ghproxy.net/https://github.com/AlxMedia/boxstyle.git
synced 2025-08-26 15:31:21 +08:00
1.0.3, add footer menu area
This commit is contained in:
parent
fd38e2d448
commit
6d518e6c00
6 changed files with 94 additions and 33 deletions
12
footer.php
12
footer.php
|
@ -40,7 +40,15 @@
|
|||
|
||||
</div><!--/#footer-widgets-->
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ( has_nav_menu( 'footer' ) ): ?>
|
||||
<nav class="nav-container group" id="nav-footer">
|
||||
<div class="nav-toggle"><i class="fa fa-bars"></i></div>
|
||||
<div class="nav-text"><!-- put your mobile menu text here --></div>
|
||||
<div class="nav-wrap"><?php wp_nav_menu( array('theme_location'=>'footer','menu_class'=>'nav container group','container'=>'','menu_id'=>'','fallback_cb'=>false) ); ?></div>
|
||||
</nav><!--/#nav-footer-->
|
||||
<?php endif; ?>
|
||||
|
||||
<div id="footer-bottom">
|
||||
|
||||
<a id="back-to-top" href="#"><i class="fa fa-angle-up"></i></a>
|
||||
|
@ -78,7 +86,7 @@
|
|||
</div><!--/.pad-->
|
||||
|
||||
</div><!--/#footer-bottom-->
|
||||
|
||||
|
||||
</footer><!--/#footer-->
|
||||
|
||||
</div><!--/.main-->
|
||||
|
|
|
@ -80,6 +80,7 @@ if ( ! function_exists( 'boxstyle_setup' ) ) {
|
|||
register_nav_menus( array(
|
||||
'mobile' => esc_html__( 'Mobile', 'boxstyle' ),
|
||||
'header' => esc_html__( 'Header', 'boxstyle' ),
|
||||
'footer' => esc_html__( 'Footer', 'boxstyle' ),
|
||||
) );
|
||||
}
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Boxstyle\n"
|
||||
"POT-Creation-Date: 2019-01-25 13:00+0100\n"
|
||||
"POT-Creation-Date: 2019-01-26 21:46+0100\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
@ -49,19 +49,19 @@ msgstr ""
|
|||
msgid "Continue reading..."
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:60
|
||||
#: footer.php:68
|
||||
msgid "Y"
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:60
|
||||
#: footer.php:68
|
||||
msgid "All Rights Reserved."
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:66
|
||||
#: footer.php:74
|
||||
msgid "Powered by"
|
||||
msgstr ""
|
||||
|
||||
#: footer.php:66
|
||||
#: footer.php:74
|
||||
msgid "Theme by"
|
||||
msgstr ""
|
||||
|
||||
|
@ -73,79 +73,83 @@ msgstr ""
|
|||
msgid "Header"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:159
|
||||
#: functions.php:83 functions/theme-options.php:39
|
||||
msgid "Footer"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:160
|
||||
msgid "Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:159
|
||||
#: functions.php:160
|
||||
msgid "Normal full width sidebar"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:161 functions/theme-options.php:260
|
||||
#: functions.php:162 functions/theme-options.php:260
|
||||
msgid "Footer Ads"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:161
|
||||
#: functions.php:162
|
||||
msgid "Footer ads area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:163
|
||||
#: functions.php:164
|
||||
msgid "Frontpage Top 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:163 functions.php:164 functions.php:165 functions.php:166
|
||||
#: functions.php:164 functions.php:165 functions.php:166 functions.php:167
|
||||
msgid "Frontpage area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:164
|
||||
#: functions.php:165
|
||||
msgid "Frontpage Top 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:165
|
||||
#: functions.php:166
|
||||
msgid "Frontpage Bottom 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:166
|
||||
#: functions.php:167
|
||||
msgid "Frontpage Bottom 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:168
|
||||
#: functions.php:169
|
||||
msgid "Footer 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:168 functions.php:169 functions.php:170 functions.php:171
|
||||
#: functions.php:169 functions.php:170 functions.php:171 functions.php:172
|
||||
msgid "Widgetized footer"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:169
|
||||
#: functions.php:170
|
||||
msgid "Footer 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:170
|
||||
#: functions.php:171
|
||||
msgid "Footer 3"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:171
|
||||
#: functions.php:172
|
||||
msgid "Footer 4"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:632
|
||||
#: functions.php:634
|
||||
msgid "Alx Extensions"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:636
|
||||
#: functions.php:638
|
||||
msgid "Meta Box"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:640
|
||||
#: functions.php:642
|
||||
msgid "Regenerate Thumbnails"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:644
|
||||
#: functions.php:646
|
||||
msgid "WP-PageNavi"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:648
|
||||
#: functions.php:650
|
||||
msgid "Responsive Lightbox"
|
||||
msgstr ""
|
||||
|
||||
|
@ -186,10 +190,6 @@ msgstr ""
|
|||
msgid "Blog"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:39
|
||||
msgid "Footer"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:49
|
||||
msgid "Sidebars"
|
||||
msgstr ""
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Contributors: alxmedia
|
||||
Requires at least: 5.0
|
||||
Tested up to: 5.0
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
License: GPLv3
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0
|
||||
Tags: blog, one-column, two-columns, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, flexible-header, full-width-template, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, custom-logo, custom-header, custom-background
|
||||
|
@ -81,6 +81,9 @@ Sidebar images
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 1.0.3 - 2019-01-26 =
|
||||
* Add a footer menu area
|
||||
|
||||
= 1.0.2 - 2019-01-26 =
|
||||
* Fix sticky header for logged out users
|
||||
|
||||
|
|
|
@ -59,7 +59,8 @@
|
|||
.site-title { padding: 20px 0; margin: 0; width: 100%; float: none; line-height: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
|
||||
.site-title a { text-align: center; }
|
||||
#nav-mobile.nav-container,
|
||||
#nav-header.nav-container { padding-left: 0; padding-right: 0; }
|
||||
#nav-header.nav-container,
|
||||
#nav-footer.nav-container { padding-left: 0; padding-right: 0; }
|
||||
.toggle-search { left: 20px; right: auto; top: 5px; bottom: auto; }
|
||||
.search-expand { bottom: auto; right: 50px; left: 64px; top: 5px; width: auto; }
|
||||
|
||||
|
|
50
style.css
50
style.css
|
@ -1,7 +1,7 @@
|
|||
/*
|
||||
Theme Name: Boxstyle
|
||||
Theme URI: http://alxmedia.se/themes/boxstyle/
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
Description: <a href="http://alxmedia.se/themes/boxstyle/">Boxstyle</a> is a responsive 100% high resolution theme for personal blogs. The feature list is long: Unlimited accent colors, unlimited widget areas, 0-1 sidebars to the left or right that can be uniquely specified for each page or post, 220px fixed width sidebar, 0-4 footer widget columns, almost zero layout images, related posts and post nav, 5 post formats, good SEO, 2 flexible custom widgets, localisation support, social links, logo upload and many more useful admin panel features.
|
||||
Author: Alexander Agnarson
|
||||
Author URI: http://alxmedia.se
|
||||
|
@ -707,6 +707,54 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
#footer-bottom .social-links .social-tooltip:hover:after { background: #333; color: #fff; }
|
||||
#footer-bottom .social-links .social-tooltip:hover:before { border-color: #333 transparent; }
|
||||
|
||||
/* footer : nav
|
||||
/* ------------------------------------ */
|
||||
#nav-footer.nav-container { background: #f4f4f4; z-index: 97; border-bottom: 1px solid #e5e5e5; padding-left: 20px; padding-right: 20px; }
|
||||
#nav-footer .nav-toggle { background: transparent; color: #333; }
|
||||
#nav-footer .nav-text { color: #666; }
|
||||
|
||||
@media only screen and (min-width: 720px) {
|
||||
|
||||
/* common */
|
||||
#nav-footer .nav { font-weight: 600; }
|
||||
#nav-footer .nav li a { font-size: 14px; color: #777; }
|
||||
/* level 1 */
|
||||
#nav-footer .nav > li { margin-right: 30px; border-right: none; }
|
||||
#nav-footer .nav > li:first-child { margin-left: 30px; }
|
||||
#nav-footer .nav > li > a { padding: 18px 0; }
|
||||
#nav-footer .nav > li > a:hover,
|
||||
#nav-footer .nav > li:hover > a { background: transparent; }
|
||||
#nav-footer .nav li > a:hover,
|
||||
#nav-footer .nav li:hover > a,
|
||||
#nav-footer .nav li.current_page_item > a,
|
||||
#nav-footer .nav li.current-menu-item > a,
|
||||
#nav-footer .nav li.current-menu-ancestor > a,
|
||||
#nav-footer .nav li.current-post-parent > a { color: #333; }
|
||||
/* level 2 & 3 */
|
||||
#nav-footer .nav ul { background: #fff; bottom: 55px; top: auto; text-align: left; border-radius: 4px;
|
||||
-webkit-box-shadow: 0 -1px 4px rgba(0,0,0,0.1);
|
||||
box-shadow: 0 -1px 4px rgba(0,0,0,0.1); }
|
||||
#nav-footer .nav ul:before { content:''; display: inline-block; border-left: 8px solid transparent; border-right: 8px solid transparent; border-top: 8px solid #fff; border-bottom: 8px solid transparent; position: absolute; bottom: -16px; left: 20px; }
|
||||
#nav-footer .nav ul li { border-bottom: 1px solid #f4f4f4; }
|
||||
#nav-footer .nav ul li:last-child { border-bottom: none; }
|
||||
#nav-footer .nav ul li a { font-size: 13px; }
|
||||
/* level 3 */
|
||||
#nav-footer .nav ul ul { position: absolute; top: auto; bottom: -10px; }
|
||||
|
||||
}
|
||||
@media only screen and (max-width: 719px) {
|
||||
|
||||
/* common */
|
||||
#nav-footer .nav { padding-bottom: 20px; }
|
||||
#nav-footer .nav li a { color: #666; border-top: 1px solid #eee; }
|
||||
/* level 1 */
|
||||
#nav-footer .nav li > a:hover { background: #f4f4f4; color: #333; }
|
||||
#nav-footer .nav li.current_page_item > a,
|
||||
#nav-footer .nav li.current-menu-item > a,
|
||||
#nav-footer .nav li.current-post-parent > a { background: #f4f4f4; color: #333; }
|
||||
|
||||
}
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
* Post Entry
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue