mirror of
https://ghproxy.net/https://github.com/AlxMedia/textdash.git
synced 2025-08-26 16:49:40 +08:00
Add option to disable search/social sidebar
This commit is contained in:
parent
37e62d50ef
commit
152135dfb1
3 changed files with 95 additions and 74 deletions
|
@ -632,6 +632,15 @@ Kirki::add_field( 'textdash_theme', array(
|
|||
'section' => 'styling',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Styling: Disable Social Sidebar
|
||||
Kirki::add_field( 'textdash_theme', array(
|
||||
'type' => 'switch',
|
||||
'settings' => 'social-sidebar',
|
||||
'label' => esc_html__( 'Social Sidebar', 'textdash' ),
|
||||
'description' => esc_html__( 'Disable to hide the social and search sidebar', 'textdash' ),
|
||||
'section' => 'styling',
|
||||
'default' => 'on',
|
||||
) );
|
||||
// Styling: Font
|
||||
Kirki::add_field( 'textdash_theme', array(
|
||||
'type' => 'select',
|
||||
|
|
38
header.php
38
header.php
|
@ -42,25 +42,29 @@
|
|||
|
||||
</header><!--/#header-->
|
||||
|
||||
<div class="sidebar s2">
|
||||
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
|
||||
<div class="search-trap-focus">
|
||||
<button class="toggle-search" data-target=".search-trap-focus">
|
||||
<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>
|
||||
</button>
|
||||
<div class="search-expand">
|
||||
<div class="search-expand-inner">
|
||||
<?php get_search_form(); ?>
|
||||
<?php if ( get_theme_mod( 'social-sidebar', 'on' ) == 'on' ): ?>
|
||||
|
||||
<div class="sidebar s2">
|
||||
<?php if ( get_theme_mod( 'header-search', 'on' ) == 'on' ): ?>
|
||||
<div class="search-trap-focus">
|
||||
<button class="toggle-search" data-target=".search-trap-focus">
|
||||
<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>
|
||||
</button>
|
||||
<div class="search-expand">
|
||||
<div class="search-expand-inner">
|
||||
<?php get_search_form(); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?>
|
||||
<?php textdash_social_links() ; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php if ( get_theme_mod( 'header-social', 'on' ) == 'on' ): ?>
|
||||
<?php textdash_social_links() ; ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="main" id="page">
|
||||
|
||||
<?php if ( has_nav_menu('header') ): ?>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: Textdash\n"
|
||||
"POT-Creation-Date: 2021-08-14 18:52+0200\n"
|
||||
"POT-Creation-Date: 2021-08-15 12:09+0200\n"
|
||||
"PO-Revision-Date: 2018-09-21 21:27+0100\n"
|
||||
"Last-Translator: \n"
|
||||
"Language-Team: \n"
|
||||
|
@ -631,147 +631,155 @@ msgid "Turn on to use the styling options below"
|
|||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:639
|
||||
msgid "Font"
|
||||
msgid "Social Sidebar"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:640
|
||||
msgid "Select font for the theme"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:644
|
||||
msgid "Titillium Web, Latin (Self-hosted)"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:645
|
||||
msgid "Titillium Web, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:646
|
||||
msgid "Droid Serif, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:647
|
||||
msgid "Source Sans Pro, Latin-Ext"
|
||||
msgid "Disable to hide the social and search sidebar"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:648
|
||||
msgid "Lato, Latin"
|
||||
msgid "Font"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:649
|
||||
msgid "Raleway, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:650
|
||||
msgid "Ubuntu, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:651
|
||||
msgid "Ubuntu, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:652
|
||||
msgid "Roboto, Latin-Ext"
|
||||
msgid "Select font for the theme"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:653
|
||||
msgid "Roboto, Latin / Cyrillic-Ext"
|
||||
msgid "Titillium Web, Latin (Self-hosted)"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:654
|
||||
msgid "Roboto Condensed, Latin-Ext"
|
||||
msgid "Titillium Web, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:655
|
||||
msgid "Roboto Condensed, Latin / Cyrillic-Ext"
|
||||
msgid "Droid Serif, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:656
|
||||
msgid "Roboto Slab, Latin-Ext"
|
||||
msgid "Source Sans Pro, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:657
|
||||
msgid "Roboto Slab, Latin / Cyrillic-Ext"
|
||||
msgid "Lato, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:658
|
||||
msgid "Playfair Display, Latin-Ext"
|
||||
msgid "Raleway, Latin"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:659
|
||||
msgid "Playfair Display, Latin / Cyrillic"
|
||||
msgid "Ubuntu, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:660
|
||||
msgid "Open Sans, Latin-Ext"
|
||||
msgid "Ubuntu, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:661
|
||||
msgid "Open Sans, Latin / Cyrillic-Ext"
|
||||
msgid "Roboto, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:662
|
||||
msgid "PT Serif, Latin-Ext"
|
||||
msgid "Roboto, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:663
|
||||
msgid "PT Serif, Latin / Cyrillic-Ext"
|
||||
msgid "Roboto Condensed, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:664
|
||||
msgid "Arial"
|
||||
msgid "Roboto Condensed, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:665
|
||||
msgid "Georgia"
|
||||
msgid "Roboto Slab, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:666
|
||||
msgid "Verdana"
|
||||
msgid "Roboto Slab, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:667
|
||||
msgid "Tahoma"
|
||||
msgid "Playfair Display, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:668
|
||||
msgid "Playfair Display, Latin / Cyrillic"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:669
|
||||
msgid "Open Sans, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:670
|
||||
msgid "Open Sans, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:671
|
||||
msgid "PT Serif, Latin-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:672
|
||||
msgid "PT Serif, Latin / Cyrillic-Ext"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:673
|
||||
msgid "Arial"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:674
|
||||
msgid "Header Logo Image Max-height"
|
||||
msgid "Georgia"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:675
|
||||
msgid "Verdana"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:676
|
||||
msgid "Tahoma"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:683
|
||||
msgid "Header Logo Image Max-height"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:684
|
||||
msgid ""
|
||||
"Your logo image should have the double height of this to be high resolution"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:688
|
||||
#: functions/theme-options.php:697
|
||||
msgid "Website Max-width"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:689
|
||||
#: functions/theme-options.php:698
|
||||
msgid "Max-width of the container."
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:702
|
||||
#: functions/theme-options.php:711
|
||||
msgid "Article Max-width"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:703
|
||||
#: functions/theme-options.php:712
|
||||
msgid "Max-width of the articles."
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:716
|
||||
#: functions/theme-options.php:725
|
||||
msgid "Primary Color"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:724
|
||||
#: functions/theme-options.php:733
|
||||
msgid "Secondary Color"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:732
|
||||
#: functions/theme-options.php:741
|
||||
msgid "Social Sidebar Color"
|
||||
msgstr ""
|
||||
|
||||
#: functions/theme-options.php:740
|
||||
#: functions/theme-options.php:749
|
||||
msgid "Background Color"
|
||||
msgstr ""
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue