From 3e46b32a8c5e9fa8b9692e662bb27b2ea7eb594a Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Tue, 12 May 2020 13:20:16 -0300 Subject: [PATCH] New underscored notation for tainacan_the_faceted_search params. --- src/tainacan/archive-items.php | 28 +++++++++++++-------------- src/tainacan/archive-repository.php | 30 ++++++++++++++--------------- src/tainacan/archive-taxonomy.php | 30 ++++++++++++++--------------- 3 files changed, 44 insertions(+), 44 deletions(-) diff --git a/src/tainacan/archive-items.php b/src/tainacan/archive-items.php index 84fc424..5dfe0f1 100644 --- a/src/tainacan/archive-items.php +++ b/src/tainacan/archive-items.php @@ -2,20 +2,20 @@ get_theme_mod('tainacan_items_page_default_items_per_page', 12), - 'hide-filters' => get_theme_mod('tainacan_items_page_hide_filters', false), - 'hide-hide-filters-button' => get_theme_mod('tainacan_items_page_hide_hide_filters_button', false), - 'hide-search' => get_theme_mod('tainacan_items_page_hide_search', false), - 'hide-advanced-search' => get_theme_mod('tainacan_items_page_hide_advanced_search', false), - 'hide-sort-by-button' => get_theme_mod('tainacan_items_page_hide_sort_by_button', false), - 'hide-exposers-button' => get_theme_mod('tainacan_items_page_hide_exposers_button', false), - 'hide-items-per-page-button' => get_theme_mod('tainacan_items_page_hide_items_per_page_button', false), - 'hide-go-to-page-button' => get_theme_mod('tainacan_items_page_hide_go_to_page_button', false), - 'show-filters-button-inside-search-control' => get_theme_mod('tainacan_items_page_show_filters_button_inside_search_control', false), - 'start-with-filters-hidden' => get_theme_mod('tainacan_items_page_start_with_filters_hidden', false), - 'filters-as-modal' => get_theme_mod('tainacan_items_page_filters_as_modal', false), - 'show-inline-view-mode-options' => get_theme_mod('tainacan_items_page_show_inline_view_mode_options', false), - 'show-fullscreen-with-view-modes' => get_theme_mod('tainacan_items_page_show_fullscreen_with_view_modes', false) + 'default_items_per_page' => get_theme_mod('tainacan_items_page_default_items_per_page', 12), + 'hide_filters' => get_theme_mod('tainacan_items_page_hide_filters', false), + 'hide_hide_filters_button' => get_theme_mod('tainacan_items_page_hide_hide_filters_button', false), + 'hide_search' => get_theme_mod('tainacan_items_page_hide_search', false), + 'hide_advanced_search' => get_theme_mod('tainacan_items_page_hide_advanced_search', false), + 'hide_sort_by_button' => get_theme_mod('tainacan_items_page_hide_sort_by_button', false), + 'hide_exposers_button' => get_theme_mod('tainacan_items_page_hide_exposers_button', false), + 'hide_items_per_page_button' => get_theme_mod('tainacan_items_page_hide_items_per_page_button', false), + 'hide_go_to_page_button' => get_theme_mod('tainacan_items_page_hide_go_to_page_button', false), + 'show_filters_button_inside_search_control' => get_theme_mod('tainacan_items_page_show_filters_button_inside_search_control', false), + 'start_with_filters_hidden' => get_theme_mod('tainacan_items_page_start_with_filters_hidden', false), + 'filters_as_modal' => get_theme_mod('tainacan_items_page_filters_as_modal', false), + 'show_inline_view_mode_options' => get_theme_mod('tainacan_items_page_show_inline_view_mode_options', false), + 'show_fullscreen_with_view_modes' => get_theme_mod('tainacan_items_page_show_fullscreen_with_view_modes', false) ]); ?> get_theme_mod('tainacan_items_repository_list_default_view_mode', 'masonry'), - 'default-items-per-page' => get_theme_mod('tainacan_items_page_default_items_per_page', 12), - 'hide-filters' => get_theme_mod('tainacan_items_page_hide_filters', false), - 'hide-hide-filters-button' => get_theme_mod('tainacan_items_page_hide_hide_filters_button', false), - 'hide-search' => get_theme_mod('tainacan_items_page_hide_search', false), - 'hide-advanced-search' => get_theme_mod('tainacan_items_page_hide_advanced_search', false), - 'hide-sort-by-button' => get_theme_mod('tainacan_items_page_hide_sort_by_button', false), - 'hide-exposers-button' => get_theme_mod('tainacan_items_page_hide_exposers_button', false), - 'hide-items-per-page-button' => get_theme_mod('tainacan_items_page_hide_items_per_page_button', false), - 'hide-go-to-page-button' => get_theme_mod('tainacan_items_page_hide_go_to_page_button', false), - 'show-filters-button-inside-search-control' => get_theme_mod('tainacan_items_page_show_filters_button_inside_search_control', false), - 'start-with-filters-hidden' => get_theme_mod('tainacan_items_page_start_with_filters_hidden', false), - 'filters-as-modal' => get_theme_mod('tainacan_items_page_filters_as_modal', false), - 'show-inline-view-mode-options' => get_theme_mod('tainacan_items_page_show_inline_view_mode_options', false), - 'show-fullscreen-with-view-modes' => get_theme_mod('tainacan_items_page_show_fullscreen_with_view_modes', false) + 'default_view_mode' => get_theme_mod('tainacan_items_repository_list_default_view_mode', 'masonry'), + 'default_items_per_page' => get_theme_mod('tainacan_items_page_default_items_per_page', 12), + 'hide_filters' => get_theme_mod('tainacan_items_page_hide_filters', false), + 'hide_hide_filters_button' => get_theme_mod('tainacan_items_page_hide_hide_filters_button', false), + 'hide_search' => get_theme_mod('tainacan_items_page_hide_search', false), + 'hide_advanced_search' => get_theme_mod('tainacan_items_page_hide_advanced_search', false), + 'hide_sort_by_button' => get_theme_mod('tainacan_items_page_hide_sort_by_button', false), + 'hide_exposers_button' => get_theme_mod('tainacan_items_page_hide_exposers_button', false), + 'hide_items_per_page_button' => get_theme_mod('tainacan_items_page_hide_items_per_page_button', false), + 'hide_go_to_page_button' => get_theme_mod('tainacan_items_page_hide_go_to_page_button', false), + 'show_filters_button_inside_search_control' => get_theme_mod('tainacan_items_page_show_filters_button_inside_search_control', false), + 'start_with_filters_hidden' => get_theme_mod('tainacan_items_page_start_with_filters_hidden', false), + 'filters_as_modal' => get_theme_mod('tainacan_items_page_filters_as_modal', false), + 'show_inline_view_mode_options' => get_theme_mod('tainacan_items_page_show_inline_view_mode_options', false), + 'show_fullscreen_with_view_modes' => get_theme_mod('tainacan_items_page_show_fullscreen_with_view_modes', false) ]); ?> diff --git a/src/tainacan/archive-taxonomy.php b/src/tainacan/archive-taxonomy.php index 8b9ecf8..2a7a404 100644 --- a/src/tainacan/archive-taxonomy.php +++ b/src/tainacan/archive-taxonomy.php @@ -2,21 +2,21 @@ get_theme_mod('tainacan_items_repository_list_default_view_mode', 'masonry'), - 'default-items-per-page' => get_theme_mod('tainacan_items_page_default_items_per_page', 12), - 'hide-filters' => get_theme_mod('tainacan_items_page_hide_filters', false), - 'hide-hide-filters-button' => get_theme_mod('tainacan_items_page_hide_hide_filters_button', false), - 'hide-search' => get_theme_mod('tainacan_items_page_hide_search', false), - 'hide-advanced-search' => get_theme_mod('tainacan_items_page_hide_advanced_search', false), - 'hide-sort-by-button' => get_theme_mod('tainacan_items_page_hide_sort_by_button', false), - 'hide-exposers-button' => get_theme_mod('tainacan_items_page_hide_exposers_button', false), - 'hide-items-per-page-button' => get_theme_mod('tainacan_items_page_hide_items_per_page_button', false), - 'hide-go-to-page-button' => get_theme_mod('tainacan_items_page_hide_go_to_page_button', false), - 'show-filters-button-inside-search-control' => get_theme_mod('tainacan_items_page_show_filters_button_inside_search_control', false), - 'start-with-filters-hidden' => get_theme_mod('tainacan_items_page_start_with_filters_hidden', false), - 'filters-as-modal' => get_theme_mod('tainacan_items_page_filters_as_modal', false), - 'show-inline-view-mode-options' => get_theme_mod('tainacan_items_page_show_inline_view_mode_options', false), - 'show-fullscreen-with-view-modes' => get_theme_mod('tainacan_items_page_show_fullscreen_with_view_modes', false) + 'default_view_mode' => get_theme_mod('tainacan_items_repository_list_default_view_mode', 'masonry'), + 'default_items_per_page' => get_theme_mod('tainacan_items_page_default_items_per_page', 12), + 'hide_filters' => get_theme_mod('tainacan_items_page_hide_filters', false), + 'hide_hide_filters_button' => get_theme_mod('tainacan_items_page_hide_hide_filters_button', false), + 'hide_search' => get_theme_mod('tainacan_items_page_hide_search', false), + 'hide_advanced_search' => get_theme_mod('tainacan_items_page_hide_advanced_search', false), + 'hide_sort_by_button' => get_theme_mod('tainacan_items_page_hide_sort_by_button', false), + 'hide_exposers_button' => get_theme_mod('tainacan_items_page_hide_exposers_button', false), + 'hide_items_per_page_button' => get_theme_mod('tainacan_items_page_hide_items_per_page_button', false), + 'hide_go_to_page_button' => get_theme_mod('tainacan_items_page_hide_go_to_page_button', false), + 'show_filters_button_inside_search_control' => get_theme_mod('tainacan_items_page_show_filters_button_inside_search_control', false), + 'start_with_filters_hidden' => get_theme_mod('tainacan_items_page_start_with_filters_hidden', false), + 'filters_as_modal' => get_theme_mod('tainacan_items_page_filters_as_modal', false), + 'show_inline_view_mode_options' => get_theme_mod('tainacan_items_page_show_inline_view_mode_options', false), + 'show_fullscreen_with_view_modes' => get_theme_mod('tainacan_items_page_show_fullscreen_with_view_modes', false) ]); ?>