mirror of
https://ghproxy.net/https://github.com/AlxMedia/gridzone.git
synced 2025-08-27 01:40:13 +08:00
Regen lang files, fix search/search close svg for light and dark
This commit is contained in:
parent
9a39877357
commit
aec661a412
7 changed files with 68 additions and 33 deletions
6
dark.css
6
dark.css
|
@ -298,4 +298,8 @@ h1, h2, h3, h4, h5, h6,
|
|||
.nav-menu.mobile ul li a { color: #fff; }
|
||||
.nav-menu.mobile ul button { border-left: 1px solid #3a3a3a; }
|
||||
|
||||
.menu-toggle-icon span { background: #fff; }
|
||||
.menu-toggle-icon span { background: #fff; }
|
||||
|
||||
/* search */
|
||||
.toggle-search .svg-icon { fill: #fff; }
|
||||
.themeform.searchform div:after { color: #666; }
|
|
@ -109,6 +109,7 @@ $nav->enqueue(
|
|||
);
|
||||
$nav->init();
|
||||
|
||||
|
||||
/* Custom logo
|
||||
/* ------------------------------------ */
|
||||
if ( ! function_exists( 'gridzone_custom_logo' ) ) {
|
||||
|
|
|
@ -164,7 +164,7 @@ class Nav {
|
|||
*/
|
||||
public static function nav_menu( $args, $toggle_label = false, $nav_classes = 'main-navigation nav-menu' ) {
|
||||
if ( false === $toggle_label ) {
|
||||
$toggle_label = '<span class="screen-reader-text">' . esc_html__( 'Expand Menu', 'textdomain' ) . '</span><div class="menu-toggle-icon"><span></span><span></span><span></span></div>';
|
||||
$toggle_label = '<span class="screen-reader-text">' . esc_html__( 'Expand Menu', 'gridzone' ) . '</span><div class="menu-toggle-icon"><span></span><span></span><span></span></div>';
|
||||
}
|
||||
?>
|
||||
<nav id="<?php echo esc_attr( $args['menu_id'] ); ?>-nav" class="<?php echo esc_attr( $nav_classes ); ?>">
|
||||
|
@ -200,7 +200,7 @@ class Nav {
|
|||
// Skip when the item has no sub-menu.
|
||||
if ( in_array( 'menu-item-has-children', $item->classes, true ) ) {
|
||||
$html = '<span class="menu-item-wrapper has-arrow">';
|
||||
$item_output .= '<button onClick="alxMediaMenu.toggleItem(this)"><span class="screen-reader-text">' . esc_html__( 'Toggle Child Menu', 'textdomain' ) . '</span><svg class="svg-icon" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 20 12"><polygon fill="" fill-rule="evenodd" points="1319.899 365.778 1327.678 358 1329.799 360.121 1319.899 370.021 1310 360.121 1312.121 358" transform="translate(-1310 -358)"></polygon></svg></button>';
|
||||
$item_output .= '<button onClick="alxMediaMenu.toggleItem(this)"><span class="screen-reader-text">' . esc_html__( 'Toggle Child Menu', 'gridzone' ) . '</span><svg class="svg-icon" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="14" height="8" viewBox="0 0 20 12"><polygon fill="" fill-rule="evenodd" points="1319.899 365.778 1327.678 358 1329.799 360.121 1319.899 370.021 1310 360.121 1312.121 358" transform="translate(-1310 -358)"></polygon></svg></button>';
|
||||
}
|
||||
|
||||
$html .= $item_output;
|
||||
|
@ -270,8 +270,8 @@ class Nav {
|
|||
*/
|
||||
return sprintf(
|
||||
/* Translators: %1$s: "Current Page:". %2$s: The menu-item title. */
|
||||
__( '<span class="screen-reader-text">%1$s </span>%2$s', 'textdomain' ),
|
||||
esc_html__( 'Current Page:', 'textdomain' ),
|
||||
__( '<span class="screen-reader-text">%1$s </span>%2$s', 'gridzone' ),
|
||||
esc_html__( 'Current Page:', 'gridzone' ),
|
||||
$title
|
||||
);
|
||||
}
|
||||
|
@ -284,8 +284,8 @@ class Nav {
|
|||
*/
|
||||
return sprintf(
|
||||
/* Translators: %1$s: "Current Page Parent:". %2$s: The menu-item title. */
|
||||
__( '<span class="screen-reader-text">%1$s </span>%2$s', 'textdomain' ),
|
||||
esc_html__( 'Current Page Parent', 'textdomain' ),
|
||||
__( '<span class="screen-reader-text">%1$s </span>%2$s', 'gridzone' ),
|
||||
esc_html__( 'Current Page Parent', 'gridzone' ),
|
||||
$title
|
||||
);
|
||||
}
|
||||
|
|
|
@ -42,7 +42,10 @@
|
|||
|
||||
<div class="sidebar s2 group">
|
||||
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
|
||||
<div class="toggle-search"><i class="fas fa-search"></i></div>
|
||||
<div class="toggle-search">
|
||||
<svg class="svg-icon" id="svg-search" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="23" height="23" viewBox="0 0 23 23"><path d="M38.710696,48.0601792 L43,52.3494831 L41.3494831,54 L37.0601792,49.710696 C35.2632422,51.1481185 32.9839107,52.0076499 30.5038249,52.0076499 C24.7027226,52.0076499 20,47.3049272 20,41.5038249 C20,35.7027226 24.7027226,31 30.5038249,31 C36.3049272,31 41.0076499,35.7027226 41.0076499,41.5038249 C41.0076499,43.9839107 40.1481185,46.2632422 38.710696,48.0601792 Z M36.3875844,47.1716785 C37.8030221,45.7026647 38.6734666,43.7048964 38.6734666,41.5038249 C38.6734666,36.9918565 35.0157934,33.3341833 30.5038249,33.3341833 C25.9918565,33.3341833 22.3341833,36.9918565 22.3341833,41.5038249 C22.3341833,46.0157934 25.9918565,49.6734666 30.5038249,49.6734666 C32.7048964,49.6734666 34.7026647,48.8030221 36.1716785,47.3875844 C36.2023931,47.347638 36.2360451,47.3092237 36.2726343,47.2726343 C36.3092237,47.2360451 36.347638,47.2023931 36.3875844,47.1716785 Z" transform="translate(-20 -31)"></path></svg>
|
||||
<svg class="svg-icon" id="svg-close" aria-hidden="true" role="img" focusable="false" xmlns="http://www.w3.org/2000/svg" width="23" height="23" viewBox="0 0 16 16"><polygon fill="" fill-rule="evenodd" points="6.852 7.649 .399 1.195 1.445 .149 7.899 6.602 14.352 .149 15.399 1.195 8.945 7.649 15.399 14.102 14.352 15.149 7.899 8.695 1.445 15.149 .399 14.102"></polygon></svg>
|
||||
</div>
|
||||
<div class="search-expand">
|
||||
<div class="search-expand-inner">
|
||||
<?php get_search_form(); ?>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Gridzone\n"
|
||||
"POT-Creation-Date: 2020-03-23 21:24+0100\n"
|
||||
"POT-Creation-Date: 2020-05-17 13:04+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
@ -63,75 +63,75 @@ msgstr ""
|
|||
msgid "Header"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:169
|
||||
#: functions.php:182
|
||||
msgid "Primary"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:169
|
||||
#: functions.php:182
|
||||
msgid "Normal full width sidebar"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:171 functions/theme-options.php:255
|
||||
#: functions.php:184 functions/theme-options.php:255
|
||||
msgid "Footer Ads"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:171
|
||||
#: functions.php:184
|
||||
msgid "Footer ads area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:173
|
||||
#: functions.php:186
|
||||
msgid "Frontpage Top 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:173 functions.php:174 functions.php:175 functions.php:176
|
||||
#: functions.php:186 functions.php:187 functions.php:188 functions.php:189
|
||||
msgid "Frontpage area"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:174
|
||||
#: functions.php:187
|
||||
msgid "Frontpage Top 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:175
|
||||
#: functions.php:188
|
||||
msgid "Frontpage Bottom 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:176
|
||||
#: functions.php:189
|
||||
msgid "Frontpage Bottom 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:178
|
||||
#: functions.php:191
|
||||
msgid "Footer 1"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:178 functions.php:179 functions.php:180 functions.php:181
|
||||
#: functions.php:191 functions.php:192 functions.php:193 functions.php:194
|
||||
msgid "Widgetized footer"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:179
|
||||
#: functions.php:192
|
||||
msgid "Footer 2"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:180
|
||||
#: functions.php:193
|
||||
msgid "Footer 3"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:181
|
||||
#: functions.php:194
|
||||
msgid "Footer 4"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:676
|
||||
#: functions.php:689
|
||||
msgid "Alx Extensions"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:680
|
||||
#: functions.php:693
|
||||
msgid "Meta Box"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:684
|
||||
#: functions.php:697
|
||||
msgid "Regenerate Thumbnails"
|
||||
msgstr ""
|
||||
|
||||
#: functions.php:688
|
||||
#: functions.php:701
|
||||
msgid "WP-PageNavi"
|
||||
msgstr ""
|
||||
|
||||
|
@ -160,6 +160,27 @@ msgstr ""
|
|||
msgid "Post Options"
|
||||
msgstr ""
|
||||
|
||||
#: functions/nav.php:167
|
||||
msgid "Expand Menu"
|
||||
msgstr ""
|
||||
|
||||
#: functions/nav.php:203
|
||||
msgid "Toggle Child Menu"
|
||||
msgstr ""
|
||||
|
||||
#: functions/nav.php:273 functions/nav.php:287
|
||||
#, php-format
|
||||
msgid "<span class=\"screen-reader-text\">%1$s </span>%2$s"
|
||||
msgstr ""
|
||||
|
||||
#: functions/nav.php:274
|
||||
msgid "Current Page:"
|
||||
msgstr ""
|
||||
|
||||
#: functions/nav.php:288
|
||||
msgid "Current Page Parent"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:16
|
||||
msgid "AlxMedia"
|
||||
msgstr ""
|
||||
|
|
|
@ -87,12 +87,13 @@
|
|||
.site-title { padding: 10px 0; margin: 0; width: 100%; float: none; line-height: 50px; border-bottom: 1px solid #eee; }
|
||||
.site-title a { text-align: center; }
|
||||
|
||||
.toggle-search { background: none; border: 0; position: absolute; left: 10px; top: -50px; z-index: 103; color: #333; margin: 0; padding: 12px; }
|
||||
.toggle-search { background: none; border: 0; position: absolute; left: 10px; top: -50px; z-index: 103; color: #333; margin: 0; padding: 10px 12px; }
|
||||
.toggle-search:hover,
|
||||
.toggle-search.active { background: transparent; color: #333; }
|
||||
.search-expand { top: auto; left: 0; bottom: -36px; width: 100%; padding: 0; }
|
||||
.toggle-search.active { background: transparent; color: #333; padding-top: 10px; padding-bottom: 10px; }
|
||||
.search-expand { top: -1px; left: 0; width: 100%; padding: 0; }
|
||||
.search-expand-inner { padding: 0; width: 100%; }
|
||||
.search-expand .themeform input { border-radius: 0; }
|
||||
.search-expand .themeform.searchform div input { border-radius: 0; padding: 22px 22px 22px 60px; }
|
||||
.s2 .themeform.searchform div:after { top: 22px; left: 26px; }
|
||||
#nav-header.nav-container { margin-top: 0; }
|
||||
|
||||
#profile-inner { padding-left: 80px; }
|
||||
|
|
|
@ -686,7 +686,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
|
||||
/* header : search
|
||||
/* ------------------------------------ */
|
||||
.toggle-search { background: #fff; border: 1px solid #eee; color: #333; text-align: center; font-size: 20px; line-height: 24px; cursor: pointer; border-radius: 10px; padding: 18px 0; margin: 10px; display: block; }
|
||||
.toggle-search { background: #fff; border: 1px solid #eee; color: #333; text-align: center; font-size: 20px; line-height: 24px; cursor: pointer; border-radius: 10px; padding: 16px 0; margin: 10px; display: block; }
|
||||
.toggle-search:hover { color: #333; }
|
||||
.toggle-search.active { background: #f1f1f1; color: #333; border-radius: 10px 0 0 10px; }
|
||||
.toggle-search.active i:before { content: "\f00d"; }
|
||||
|
@ -694,6 +694,11 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
.search-expand-inner { }
|
||||
.search-expand .themeform input { background: #fff; width: 100%; border: 1px solid #ddd; }
|
||||
.search-expand .themeform input:focus { border-color: #ccc; }
|
||||
.toggle-search.active { padding-top: 18px; padding-bottom: 19px; }
|
||||
.toggle-search .svg-icon { fill: #333; margin: 0 auto; }
|
||||
.toggle-search #svg-close { display: none; }
|
||||
.toggle-search.active #svg-search { display: none; }
|
||||
.toggle-search.active #svg-close { display: block; }
|
||||
|
||||
|
||||
/* ------------------------------------------------------------------------- *
|
||||
|
@ -785,7 +790,7 @@ box-shadow: 0 0 2px rgba(255,255,255,0.4);
|
|||
.nav-menu.mobile ul ul { background: #f5f5f5; }
|
||||
.nav-menu.mobile ul li .menu-item-wrapper { justify-content: space-between; width: 100%; border-bottom: 1px solid #eee; }
|
||||
.nav-menu.mobile > div > ul > li:first-child .menu-item-wrapper { border-top: 1px solid #eee; }
|
||||
.nav-menu.mobile > div > ul > li:last-child { margin-bottom: 48px; }
|
||||
.nav-menu.mobile > div > ul > li:last-child { margin-bottom: 52px; }
|
||||
.nav-menu.mobile ul li a { font-size: 16px; color: #333; font-weight: 600; padding: 14px 20px; }
|
||||
.nav-menu.mobile ul ul li a { font-size: 14px; }
|
||||
.nav-menu.mobile ul ul li a { padding: 12px 0 12px 40px; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue