From 92cc62ad815b3474f19d69a408931f7e6cd158e2 Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Fri, 6 Nov 2020 15:48:46 -0300 Subject: [PATCH] Makes fixed filters logic disabled by default. --- src/functions/customizer.php | 7 +++--- src/languages/pt_BR.mo | Bin 24125 -> 24114 bytes src/languages/pt_BR.po | 42 +++++++++++++++++------------------ 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/src/functions/customizer.php b/src/functions/customizer.php index 1b2198f..09194b1 100644 --- a/src/functions/customizer.php +++ b/src/functions/customizer.php @@ -1166,7 +1166,7 @@ function tainacan_customize_register( $wp_customize ) { $wp_customize->add_setting( 'tainacan_items_page_filters_fixed_on_scroll', array( 'type' => 'theme_mod', 'capability' => 'edit_theme_options', - 'default' => true, + 'default' => false, 'transport' => 'refresh', 'sanitize_callback' => 'tainacan_callback_sanitize_checkbox' ) ); @@ -1175,7 +1175,7 @@ function tainacan_customize_register( $wp_customize ) { 'priority' => 10, // Within the section. 'section' => 'tainacan_items_page_filters_panel', 'label' => __( 'Filters side panel fixed on scroll', 'tainacan-interface' ), - 'description' => __( 'Toggle to if you don\'t want filters panel to get fixed on screen when scrolling down the items list. This will only take effect if the items list itself is taller than the screen height.', 'tainacan-interface' ) + 'description' => __( 'Toggle to if you want filters panel to get fixed on screen when scrolling down the items list. This will only take effect if the items list itself is taller than the screen height.', 'tainacan-interface' ) ) ); } @@ -2379,7 +2379,7 @@ add_action( 'wp_head', 'tainacan_single_item_metadata_columns_count_output'); * @see wp_add_inline_style() */ function tainacan_items_page_filters_fixed_on_scroll_output() { - $should_use_fixed_filters_logic = get_theme_mod( 'tainacan_items_page_filters_fixed_on_scroll', true ); + $should_use_fixed_filters_logic = (version_compare(TAINACAN_VERSION, '0.17RC') >= 0) && get_theme_mod( 'tainacan_items_page_filters_fixed_on_scroll', false ); if (!$should_use_fixed_filters_logic) return; @@ -2392,6 +2392,7 @@ function tainacan_items_page_filters_fixed_on_scroll_output() { :not(.wp-block-tainacan-faceted-search)>.theme-items-list:not(.is-fullscreen).is-filters-menu-open.is-filters-menu-fixed-at-top .filters-menu:not(.filters-menu-modal) { position: fixed; top: 0px !important; + z-index: 9; } :not(.wp-block-tainacan-faceted-search)>.theme-items-list:not(.is-fullscreen).is-filters-menu-open.is-filters-menu-fixed-at-top .filters-menu:not(.filters-menu-modal) .modal-content { position: absolute; diff --git a/src/languages/pt_BR.mo b/src/languages/pt_BR.mo index 4d7455c225cd84e13fa23bea1e8622927ab9d75f..424521422105bc5d6adcdba27ddb23fac45e7b7b 100644 GIT binary patch delta 2221 zcmXZdeN5F=9LMqRRUU*89}q%s7jM7?9}qMmq)^P;6;LoB1wM3>zjMCld(QdY zvps?1J%M8bN!|%FD=IOI;&tTDB6H2EaV6Ga7dGNeY{$xZF8&yo5eFVJdl~ET1^fi- zFEH z`SDQ<5g)^^$MBEo#9ifP6R;b{Vo$keRzstgj!Bp@-(?!aEaC{>kCmu|R-h7DgBqyK z@Aoi=cqc014{$ObMOEk=szRw1W~*@vX5uA}hF1P7j>9{?!>9=pA2quV(@+Cs<5Jv# z`urlM;$>7xuj6_gK_&j&V{Sp)a4PW*-vd}k?472e0j{AE_yfcE7pi2Lm2M^ZSVmlq zN@x?RVp~xw*^Nr*AgVGSVKSaZZB;Ke;tkaE&AD5#l zvksj1fO9p zev1V-gt{G}#V(Fwn0TY_Zq$U`sDuVkE5C&yOyiC#v012jTF}#d-$g@vbp~~vK1ZG6 zKAeFUa5@g52FQBCB@)Fv;tjYI_h2p#;w-#}N~j>_T#nk>ElAOAZ;bn|``k~5N;{Sf zO~k3Fgr=kRst|Q(mf#d@LT$;5sI&13D$xUee;?}lUP9f1-%u6!50yZu+HFZiHTBnN zT||erpaC_|HY~)$sB3c`HP8)A#t~Eki8by}rK2XyM)jBAM4a!(wW#NtFoGK~0pIdy z=>ETpI-Q3w3A<4b#8GGAJZevWL?!eOs??KfxzkvNdf}YGR=j{3rRm$psFGdv9q|qFB^{~?)PT*XfsP>O(*jSr_e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O{{cw@6k7lQ diff --git a/src/languages/pt_BR.po b/src/languages/pt_BR.po index af57f21..f9f47c4 100644 --- a/src/languages/pt_BR.po +++ b/src/languages/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: WordPress Blank Pot v1.0.0\n" "Report-Msgid-Bugs-To: Translator Name \n" -"POT-Creation-Date: 2020-10-30 17:30-0300\n" +"POT-Creation-Date: 2020-11-06 15:47-0300\n" "PO-Revision-Date: \n" "Last-Translator: \n" "Language-Team: Your Team \n" @@ -172,24 +172,24 @@ msgstr "Roxo" msgid "Violet" msgstr "Violeta" -#: functions.php:240 +#: functions.php:249 msgid "Tainacan Sidebar Right" msgstr "Barra lateral direita do Tainacan" -#: functions.php:255 +#: functions.php:264 msgid "Tainacan Sidebar Footer" msgstr "Rodapé do Tainacan" -#: functions.php:276 +#: functions.php:285 msgctxt "Block pattern category" msgid "Tainacan Interface" msgstr "Tainacan Interface" -#: functions.php:283 +#: functions.php:292 msgid "Tainacan heading section" msgstr "Sessão de título Tainacan" -#: functions.php:284 +#: functions.php:293 msgctxt "Block pattern description" msgid "" "A left-aligned heading section containing a light sub-heading and an " @@ -198,33 +198,33 @@ msgstr "" "Uma sessão de título alinhada à esquerda contendo um discreto sub-título e " "uma linha abaixo do título." -#: functions.php:285 functions.php:303 functions.php:365 +#: functions.php:294 functions.php:312 functions.php:374 msgid "Section title" msgstr "Título da sessão" -#: functions.php:285 +#: functions.php:294 msgid "Section optional description..." msgstr "Descrição opcional da sessão..." -#: functions.php:292 +#: functions.php:301 msgid "Tainacan highlight section" msgstr "Sessão de destaque Tainacan" -#: functions.php:293 +#: functions.php:302 msgctxt "Block pattern description" msgid "A hero section with a background color and columns for image and text." msgstr "" "Uma sessão de destaque com uma cor de fundo e colunas para imagem e texto." -#: functions.php:325 functions.php:381 +#: functions.php:334 functions.php:390 msgid "View more..." msgstr "Veja mais..." -#: functions.php:343 +#: functions.php:352 msgid "Tainacan highlight section (alt)" msgstr "Sessão de destaque Tainacan (alt)" -#: functions.php:344 +#: functions.php:353 msgctxt "Block pattern description" msgid "" "Another hero section with a background color and columns for image headings " @@ -233,11 +233,11 @@ msgstr "" "Outra sessão de destaque com um fundo colorido e colunas para imagens, " "títulos e texto." -#: functions.php:437 +#: functions.php:446 msgid "Navigation menu below header" msgstr "Menu de navegação abaixo do cabeçalho" -#: functions.php:482 functions/breadcrumb.php:51 functions/breadcrumb.php:91 +#: functions.php:491 functions/breadcrumb.php:51 functions/breadcrumb.php:91 #: functions/customizer.php:199 searchform.php:66 msgid "Collections" msgstr "Coleções" @@ -875,13 +875,13 @@ msgstr "Painel lateral dos filtros fixo no scroll" #: functions/customizer.php:1178 msgid "" -"Toggle to if you don't want filters panel to get fixed on screen when " -"scrolling down the items list. This will only take effect if the items list " -"itself is taller than the screen height." +"Toggle to if you want filters panel to get fixed on screen when scrolling " +"down the items list. This will only take effect if the items list itself is " +"taller than the screen height." msgstr "" -"Troque se você não quiser que o painel de filtros fique fixado na tela " -"quando se aplica scroll para baixo na lista de itens. Isto só tem efeito se " -"a lista de itens em si é mais alta que a altura da tela." +"Troque se você quiser que o painel de filtros fique fixado na tela quando se " +"aplica scroll para baixo na lista de itens. Isto só tem efeito se a lista de " +"itens em si é mais alta que a altura da tela." #: functions/customizer.php:1196 msgid "Filters as modal."