Version 0.3.3.
This commit is contained in:
parent
e8460fc85b
commit
2c92c089e6
|
@ -5,7 +5,7 @@ Tags: museums, archives, collections, tainacan, blocksy
|
|||
Requires at least: 5.9
|
||||
Tested up to: 6.5
|
||||
Requires PHP: 7.0
|
||||
Stable tag: 0.3.2
|
||||
Stable tag: 0.3.3
|
||||
Requires Plugins: tainacan
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
@ -59,6 +59,10 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
|
|||
|
||||
== Changelog ==
|
||||
|
||||
= 0.3.3 =
|
||||
* Adds support for horizontal filters options
|
||||
* Basic styles for mosaic view mode
|
||||
|
||||
= 0.3.2 =
|
||||
* Adds Tainacan View Modes as a layout option for "Items related to this" section (requires Tainacan 0.21.5)
|
||||
* Adds media gallery thumbnails height and image size option (requires Tainacan 0.21.5)
|
||||
|
|
|
@ -4,7 +4,7 @@ Plugin Name: Tainacan Support for Blocksy
|
|||
Plugin URI: https://tainacan.org/
|
||||
Description: Tainacan plugin support for Blocksy theme
|
||||
Author: tainacan
|
||||
Version: 0.3.2
|
||||
Version: 0.3.3
|
||||
Text Domain: tainacan-blocksy
|
||||
License: GPLv2 or later
|
||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
@ -15,7 +15,7 @@ if (! defined('WP_DEBUG') ) {
|
|||
}
|
||||
|
||||
/** Theme/plugin version */
|
||||
const TAINACAN_BLOCKSY_VERSION = '0.3.2';
|
||||
const TAINACAN_BLOCKSY_VERSION = '0.3.3';
|
||||
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;
|
||||
|
||||
/* Tools to define our next constants */
|
||||
|
|
|
@ -114,7 +114,7 @@ if ( !function_exists('tainacan_blocksy_custom_post_types_single_options') ) {
|
|||
if ( is_array($item_extra_options) ) {
|
||||
array_splice(
|
||||
$options['options'][$post_type . '_single_section_options']['inner-options'][0],
|
||||
1,
|
||||
0,
|
||||
0,
|
||||
$item_extra_options
|
||||
);
|
||||
|
|
|
@ -199,9 +199,15 @@ if ( !function_exists('tainacan_blocksy_tooltip_and_modal_styles') ) {
|
|||
$page_container_classes = $page_container_classes . ' has-filters-panel-style-' . get_theme_mod($prefix . '_filters_panel_background_style', 'boxed');
|
||||
$page_container_classes = $page_container_classes . ' has-page-header-style-' . $page_hero_section_style;
|
||||
|
||||
if ( get_theme_mod( $prefix . '_hide_filters_area_header', 'no' ) === 'yes' )
|
||||
$page_container_classes .= ' has-filters-area-header-hidden';
|
||||
|
||||
$filters_panel_size = get_theme_mod($prefix . '_filters_panel_size', '20%');
|
||||
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
|
||||
|
||||
$filters_inline_size = get_theme_mod($prefix . '_filters_inline_size', '272px');
|
||||
$page_container_style .= '--tainacan-filters-inline-width:' . $filters_inline_size . ';';
|
||||
|
||||
$background_color_palette = get_theme_mod($prefix . '_items_list_background_palette',
|
||||
[
|
||||
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
|
||||
|
|
|
@ -169,7 +169,7 @@ blc_call_fnc(['fnc' => 'blocksy_output_border'], [
|
|||
'css' => $css,
|
||||
'tablet_css' => $tablet_css,
|
||||
'mobile_css' => $mobile_css,
|
||||
'selector' => blocksy_prefix_selector('.tainacan-item-section__metadata', $prefix),
|
||||
'selector' => blocksy_prefix_selector('.tainacan-metadata-label', $prefix),
|
||||
'variableName' => 'metadata-label-border',
|
||||
'value' => get_theme_mod( $prefix . '_metadata_label_border', [
|
||||
'width' => 0,
|
||||
|
@ -178,6 +178,13 @@ blc_call_fnc(['fnc' => 'blocksy_output_border'], [
|
|||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
]),
|
||||
'default' => [
|
||||
'width' => 0,
|
||||
'style' => 'solid',
|
||||
'color' => [
|
||||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
],
|
||||
'responsive' => true
|
||||
]);
|
||||
|
||||
|
@ -186,7 +193,7 @@ blc_call_fnc(['fnc' => 'blocksy_output_border'], [
|
|||
'css' => $css,
|
||||
'tablet_css' => $tablet_css,
|
||||
'mobile_css' => $mobile_css,
|
||||
'selector' => blocksy_prefix_selector('.tainacan-item-section__metadata', $prefix),
|
||||
'selector' => blocksy_prefix_selector('.tainacan-metadata-value', $prefix),
|
||||
'variableName' => 'metadata-value-border',
|
||||
'value' => get_theme_mod( $prefix . '_metadata_value_border', [
|
||||
'width' => 0,
|
||||
|
@ -195,6 +202,13 @@ blc_call_fnc(['fnc' => 'blocksy_output_border'], [
|
|||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
]),
|
||||
'default' => [
|
||||
'width' => 0,
|
||||
'style' => 'solid',
|
||||
'color' => [
|
||||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
],
|
||||
'responsive' => true
|
||||
]);
|
||||
|
||||
|
@ -247,4 +261,29 @@ blc_call_fnc(['fnc' => 'blocksy_output_responsive'], [
|
|||
'value' => get_theme_mod($prefix . '_tainacan_metadata_value_alignment', 'left')
|
||||
]);
|
||||
|
||||
|
||||
|
||||
blc_call_fnc(['fnc' => 'blocksy_output_border'], [
|
||||
'css' => $css,
|
||||
'tablet_css' => $tablet_css,
|
||||
'mobile_css' => $mobile_css,
|
||||
'selector' => blocksy_prefix_selector('.filter-item-forms .label', $prefix),
|
||||
'variableName' => 'filter-label-border',
|
||||
'value' => get_theme_mod( $prefix . '_filter_label_border', [
|
||||
'width' => 0,
|
||||
'style' => 'solid',
|
||||
'color' => [
|
||||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
]),
|
||||
'default' => [
|
||||
'width' => 0,
|
||||
'style' => 'solid',
|
||||
'color' => [
|
||||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
],
|
||||
'responsive' => true
|
||||
]);
|
||||
|
||||
?>
|
|
@ -12,14 +12,7 @@ if (! isset($enabled)) {
|
|||
$enabled = 'yes';
|
||||
}
|
||||
|
||||
$options = [
|
||||
$prefix . 'display_filters_panel' => [
|
||||
'label' => __( 'Filters panel', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-panel',
|
||||
'switch' => true,
|
||||
'value' => $enabled,
|
||||
'sync' => '',
|
||||
'inner-options' => [
|
||||
$inner_options = [
|
||||
$prefix . 'filters_panel_background_style' => [
|
||||
'label' => __('Panel style', 'blocksy'),
|
||||
'type' => 'ct-radio',
|
||||
|
@ -33,7 +26,8 @@ $options = [
|
|||
blocksy_rand_md5() => [
|
||||
'type' => 'ct-condition',
|
||||
'condition' => [
|
||||
$prefix . 'filters_as_modal' => 'no'
|
||||
$prefix . 'filters_as_modal' => 'no',
|
||||
$prefix . 'display_filters_horizontally' => 'no'
|
||||
],
|
||||
'options' => [
|
||||
$prefix . 'filters_panel_size' => [
|
||||
|
@ -79,15 +73,6 @@ $options = [
|
|||
|
||||
'desc' => __( 'Display the filters button inside the search control bar instead of floating aside.', 'tainacan-blocksy' ),
|
||||
'sync' => ''
|
||||
]
|
||||
]
|
||||
],
|
||||
$prefix . 'filters_fixed_on_scroll' => [
|
||||
'label' => __( 'Filters fixed on scroll', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-switch',
|
||||
'value' => 'no',
|
||||
'desc' => __( '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-blocksy' ),
|
||||
'sync' => ''
|
||||
],
|
||||
$prefix . 'filters_as_modal' => [
|
||||
'label' => __( 'Filters as modal', 'tainacan-blocksy' ),
|
||||
|
@ -96,6 +81,118 @@ $options = [
|
|||
'desc' => __( 'Display the filters panel as a full screen modal instead of aside, even on desktop.', 'tainacan-blocksy' ),
|
||||
'sync' => ''
|
||||
]
|
||||
],
|
||||
],
|
||||
blocksy_rand_md5() => [
|
||||
'type' => 'ct-condition',
|
||||
'condition' => [
|
||||
$prefix . 'display_filters_horizontally' => 'no',
|
||||
$prefix . 'filters_as_modal' => 'no'
|
||||
],
|
||||
'options' => [
|
||||
$prefix . 'filters_fixed_on_scroll' => [
|
||||
'label' => __( 'Filters fixed on scroll', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-switch',
|
||||
'value' => 'no',
|
||||
'desc' => __( '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-blocksy' ),
|
||||
'sync' => ''
|
||||
],
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
if ( null !== TAINACAN_VERSION && version_compare( TAINACAN_VERSION, '0.21.7' ) >= 0 ) {
|
||||
$inner_options[ $prefix . 'hide_filters_area_header' ] = [
|
||||
'label' => __( 'Hide filters area header', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-switch',
|
||||
'value' => 'no',
|
||||
'desc' => __( 'Toggle to not display the "Filter" label in the header of the filters area.', 'tainacan-blocksy' ),
|
||||
'sync' => ''
|
||||
];
|
||||
$inner_options[ $prefix . 'hide_filter_collapses' ] = [
|
||||
'label' => __( 'Hide filter collapses', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-switch',
|
||||
'value' => 'no',
|
||||
'desc' => __( 'Toggle to not display each filter label as a collapsable button. This is suggested when you have a small amount of filters.', 'tainacan-blocksy' ),
|
||||
'sync' => ''
|
||||
];
|
||||
$inner_options = array_merge(
|
||||
$inner_options,
|
||||
[
|
||||
blocksy_rand_md5() => [
|
||||
'type' => 'ct-condition',
|
||||
'condition' => [
|
||||
$prefix . 'filters_as_modal' => 'no'
|
||||
],
|
||||
'options' => [
|
||||
$prefix . 'display_filters_horizontally' => [
|
||||
'label' => __( 'Display filters horizontally', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-switch',
|
||||
'value' => 'no',
|
||||
'desc' => __( 'Toggle to show filters in an horizontal pane above the search control instead of a vertical sidebar. This layout fits better with select and textual input filters.', 'tainacan-blocksy' ),
|
||||
'sync' => ''
|
||||
],
|
||||
$prefix . 'should_not_hide_filters_on_mobile' => [
|
||||
'label' => __( 'Should not hide filters even on mobile', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-switch',
|
||||
'value' => 'no',
|
||||
'desc' => __( 'Toggle to keep filters area visible even on small screen sizes.', 'tainacan-blocksy' ),
|
||||
'sync' => ''
|
||||
],
|
||||
]
|
||||
],
|
||||
blocksy_rand_md5() => [
|
||||
'type' => 'ct-condition',
|
||||
'condition' => [
|
||||
$prefix . 'display_filters_horizontally' => 'yes'
|
||||
],
|
||||
'options' => [
|
||||
$prefix . 'filters_inline_size' => [
|
||||
'label' => __( 'Filters inline size', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-slider',
|
||||
'value' => '272px',
|
||||
'units' => blocksy_units_config([
|
||||
[
|
||||
'unit' => 'px',
|
||||
'min' => 100,
|
||||
'max' => 600,
|
||||
],
|
||||
[
|
||||
'unit' => 'vw',
|
||||
'min' => 5,
|
||||
'max' => 100,
|
||||
]
|
||||
]),
|
||||
'sync' => '',
|
||||
]
|
||||
]
|
||||
],
|
||||
$prefix . 'filter_label_border' => [
|
||||
'label' => __( 'Filter label bottom border', 'blocksy' ),
|
||||
'type' => 'ct-border',
|
||||
'design' => 'block',
|
||||
'responsive' => true,
|
||||
'setting' => [ 'transport' => 'postMessage' ],
|
||||
'value' => [
|
||||
'width' => 0,
|
||||
'style' => 'solid',
|
||||
'color' => [
|
||||
'color' => 'rgba(125, 125, 125, 0.5)',
|
||||
]
|
||||
],
|
||||
'sync' => ''
|
||||
]
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
$options = [
|
||||
$prefix . 'display_filters_panel' => [
|
||||
'label' => __( 'Filters panel', 'tainacan-blocksy' ),
|
||||
'type' => 'ct-panel',
|
||||
'switch' => true,
|
||||
'value' => $enabled,
|
||||
'sync' => '',
|
||||
'inner-options' => $inner_options
|
||||
]
|
||||
];
|
||||
|
|
|
@ -44,7 +44,6 @@ $options = [
|
|||
'label' => __( 'Separator', 'blocksy' ),
|
||||
'type' => 'ct-border',
|
||||
'design' => 'block',
|
||||
'responsive' => true,
|
||||
'setting' => [ 'transport' => 'postMessage' ],
|
||||
'value' => [
|
||||
'width' => 0,
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "tainacan-blocksy",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "tainacan-blocksy",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"license": "ISC",
|
||||
"devDependencies": {
|
||||
"clean-css-cli": "^4.3.0",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "tainacan-blocksy",
|
||||
"version": "0.3.2",
|
||||
"version": "0.3.3",
|
||||
"description": "A Blocksy plugin/child theme compatible with Tainacan",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -18,6 +18,31 @@
|
|||
grid-template-areas:
|
||||
". searchcontrol ."
|
||||
"itemslist itemslist itemslist";
|
||||
|
||||
&.has-horizontal-filters {
|
||||
grid-template-rows: auto auto 1fr;
|
||||
grid-template-areas:
|
||||
". searchcontrol ."
|
||||
"filterspanel filterspanel filterspanel"
|
||||
"itemslist itemslist itemslist";
|
||||
|
||||
#filters-modal {
|
||||
grid-area: filterspanel;
|
||||
}
|
||||
}
|
||||
@media screen and (max-width: 768px) {
|
||||
& {
|
||||
grid-template-rows: auto auto 1fr;
|
||||
grid-template-areas:
|
||||
". searchcontrol ."
|
||||
"filterspanel filterspanel filterspanel"
|
||||
"itemslist itemslist itemslist";
|
||||
|
||||
#filters-modal:not(.modal) {
|
||||
grid-area: filterspanel;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Search control */
|
||||
|
@ -53,24 +78,35 @@
|
|||
align-self: normal;
|
||||
width: 100%;
|
||||
|
||||
.modal-content {
|
||||
padding: 16px 10px 16px 0px !important;
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
&.modal .modal-content {
|
||||
padding: 16px 16px 16px 6vw !important;
|
||||
background-color: var(--tainacan-background-color, var(--backgroundColor, #f8f9fb));
|
||||
}
|
||||
}
|
||||
|
||||
.modal-content {
|
||||
|
||||
#filters-items-list {
|
||||
background-color: var(--tainacan-background-color, var(--backgroundColor, #f8f9fb));
|
||||
padding: 3px;
|
||||
margin: -3px;
|
||||
|
||||
.filters-components-list {
|
||||
margin-bottom: 24px;
|
||||
|
||||
.filter-item-forms .label {
|
||||
border-bottom: var(--filter-label-border, none);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.modal .modal-content {
|
||||
padding: 16px 10px 16px 0px !important;
|
||||
|
||||
#filters-items-list {
|
||||
margin: -3px;
|
||||
}
|
||||
}
|
||||
|
||||
&.tainacan-filter-list-fixed {
|
||||
left: 14px;
|
||||
|
@ -113,6 +149,19 @@
|
|||
font-size: 0.8125em !important;
|
||||
}
|
||||
}
|
||||
.tainacan-mosaic-container .tainacan-mosaic-item {
|
||||
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
|
||||
box-shadow: var(--theme-box-shadow, var(--boxShadow , 0px 12px 18px -6px rgba(34, 56, 101, 0.04)));
|
||||
border: var(--border, none);
|
||||
|
||||
.metadata-title p {
|
||||
font-weight: 500;
|
||||
}
|
||||
.metadata-value,
|
||||
.metadata-label {
|
||||
font-size: 0.8125em !important;
|
||||
}
|
||||
}
|
||||
.tainacan-records-container .tainacan-record,
|
||||
.tainacan-records-container .tainacan-record .list-metadata,
|
||||
.tainacan-list-container .tainacan-list {
|
||||
|
@ -250,6 +299,10 @@
|
|||
top: -52px !important;
|
||||
}
|
||||
|
||||
.page.has-filters-area-header-hidden #filters-modal #filters-label-landmark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Extra classes applied from customizer */
|
||||
.page.has-filters-panel-style-boxed {
|
||||
|
||||
|
@ -260,6 +313,18 @@
|
|||
padding: 20px;
|
||||
}
|
||||
}
|
||||
.page.has-filters-panel-style-simple .entry-content.ct-container {
|
||||
#filters-modal.horizontal-filters .modal-content {
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
}
|
||||
.page.has-filters-panel-style-simple .entry-content:not(.ct-container) {
|
||||
#filters-modal.horizontal-filters .modal-content {
|
||||
padding-left: 20px !important;
|
||||
padding-right: 20px !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* Tooltips and Modals are outside of the items list div */
|
||||
body:not(.tainacan-admin-page) {
|
||||
|
|
|
@ -176,6 +176,7 @@
|
|||
}
|
||||
.tainacan-metadata-label {
|
||||
text-align: var(--metadata-label-alignment, left);
|
||||
border-bottom: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
|
||||
}
|
||||
.tainacan-metadata-value {
|
||||
text-align: var(--metadata-value-alignment, left);
|
||||
|
@ -291,13 +292,14 @@
|
|||
}
|
||||
|
||||
&.metadata-type-2 {
|
||||
.tainacan-item-section__metadatum {
|
||||
.tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
|
||||
.tainacan-metadata-label {
|
||||
flex-basis: 40%;
|
||||
margin-bottom: .75rem;
|
||||
border-bottom: none;
|
||||
border-right: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
|
||||
}
|
||||
.tainacan-metadata-value {
|
||||
|
|
|
@ -66,6 +66,25 @@
|
|||
grid-template-areas: ". searchcontrol ." "itemslist itemslist itemslist";
|
||||
}
|
||||
|
||||
.theme-items-list:not(.is-fullscreen).has-horizontal-filters {
|
||||
grid-template-rows: auto auto 1fr;
|
||||
grid-template-areas: ". searchcontrol ." "filterspanel filterspanel filterspanel" "itemslist itemslist itemslist";
|
||||
}
|
||||
|
||||
.theme-items-list:not(.is-fullscreen).has-horizontal-filters #filters-modal {
|
||||
grid-area: filterspanel;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.theme-items-list:not(.is-fullscreen) {
|
||||
grid-template-rows: auto auto 1fr;
|
||||
grid-template-areas: ". searchcontrol ." "filterspanel filterspanel filterspanel" "itemslist itemslist itemslist";
|
||||
}
|
||||
.theme-items-list:not(.is-fullscreen) #filters-modal:not(.modal) {
|
||||
grid-area: filterspanel;
|
||||
}
|
||||
}
|
||||
|
||||
.theme-items-list .search-control {
|
||||
grid-area: searchcontrol;
|
||||
border-radius: 0 0 var(--theme-border-radius, var(--borderRadius, 3px)) var(--theme-border-radius, var(--borderRadius, 3px));
|
||||
|
@ -97,12 +116,8 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.theme-items-list #filters-modal .modal-content {
|
||||
padding: 16px 10px 16px 0px !important;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.theme-items-list #filters-modal .modal-content {
|
||||
.theme-items-list #filters-modal.modal .modal-content {
|
||||
padding: 16px 16px 16px 6vw !important;
|
||||
background-color: var(--tainacan-background-color, var(--backgroundColor, #f8f9fb));
|
||||
}
|
||||
|
@ -111,13 +126,24 @@
|
|||
.theme-items-list #filters-modal .modal-content #filters-items-list {
|
||||
background-color: var(--tainacan-background-color, var(--backgroundColor, #f8f9fb));
|
||||
padding: 3px;
|
||||
margin: -3px;
|
||||
}
|
||||
|
||||
.theme-items-list #filters-modal .modal-content #filters-items-list .filters-components-list {
|
||||
margin-bottom: 24px;
|
||||
}
|
||||
|
||||
.theme-items-list #filters-modal .modal-content #filters-items-list .filters-components-list .filter-item-forms .label {
|
||||
border-bottom: var(--filter-label-border, none);
|
||||
}
|
||||
|
||||
.theme-items-list #filters-modal.modal .modal-content {
|
||||
padding: 16px 10px 16px 0px !important;
|
||||
}
|
||||
|
||||
.theme-items-list #filters-modal.modal .modal-content #filters-items-list {
|
||||
margin: -3px;
|
||||
}
|
||||
|
||||
.theme-items-list #filters-modal.tainacan-filter-list-fixed {
|
||||
left: 14px;
|
||||
}
|
||||
|
@ -171,6 +197,21 @@
|
|||
font-size: 0.8125em !important;
|
||||
}
|
||||
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-mosaic-container .tainacan-mosaic-item {
|
||||
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
|
||||
box-shadow: var(--theme-box-shadow, var(--boxShadow, 0px 12px 18px -6px rgba(34, 56, 101, 0.04)));
|
||||
border: var(--border, none);
|
||||
}
|
||||
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-mosaic-container .tainacan-mosaic-item .metadata-title p {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-mosaic-container .tainacan-mosaic-item .metadata-value,
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-mosaic-container .tainacan-mosaic-item .metadata-label {
|
||||
font-size: 0.8125em !important;
|
||||
}
|
||||
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-records-container .tainacan-record,
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-records-container .tainacan-record .list-metadata,
|
||||
.theme-items-list #items-list-area #items-list-results .tainacan-list-container .tainacan-list {
|
||||
|
@ -307,6 +348,10 @@
|
|||
top: -52px !important;
|
||||
}
|
||||
|
||||
.page.has-filters-area-header-hidden #filters-modal #filters-label-landmark {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Extra classes applied from customizer */
|
||||
.page.has-filters-panel-style-boxed #filters-modal .modal-content #filters-items-list {
|
||||
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
|
||||
|
@ -315,6 +360,16 @@
|
|||
padding: 20px;
|
||||
}
|
||||
|
||||
.page.has-filters-panel-style-simple .entry-content.ct-container #filters-modal.horizontal-filters .modal-content {
|
||||
padding-left: 0 !important;
|
||||
padding-right: 0 !important;
|
||||
}
|
||||
|
||||
.page.has-filters-panel-style-simple .entry-content:not(.ct-container) #filters-modal.horizontal-filters .modal-content {
|
||||
padding-left: 20px !important;
|
||||
padding-right: 20px !important;
|
||||
}
|
||||
|
||||
/* Tooltips and Modals are outside of the items list div */
|
||||
body:not(.tainacan-admin-page) .tooltip,
|
||||
body:not(.tainacan-admin-page) .tainacan-modal,
|
||||
|
@ -663,6 +718,7 @@ body[data-prefix="tainacan-terms-items_archive"] .collection-thumbnail img {
|
|||
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-metadata-label {
|
||||
text-align: var(--metadata-label-alignment, left);
|
||||
border-bottom: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
|
||||
}
|
||||
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata .tainacan-metadata-value {
|
||||
|
@ -784,31 +840,32 @@ body[data-prefix="tainacan-terms-items_archive"] .collection-thumbnail img {
|
|||
margin: 0.5em 0 0.5em 40px;
|
||||
}
|
||||
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) {
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
}
|
||||
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum .tainacan-metadata-label {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) .tainacan-metadata-label {
|
||||
flex-basis: 40%;
|
||||
margin-bottom: .75rem;
|
||||
border-bottom: none;
|
||||
border-right: var(--metadata-label-border, 0px solid rgba(125, 125, 125, 0.5));
|
||||
}
|
||||
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum .tainacan-metadata-value {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) .tainacan-metadata-value {
|
||||
flex-basis: 60%;
|
||||
padding-left: 1rem;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 767px) {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum .tainacan-metadata-label {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) .tainacan-metadata-label {
|
||||
flex-basis: 100%;
|
||||
margin-bottom: 0.25rem;
|
||||
}
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum .tainacan-metadata-value {
|
||||
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata.metadata-type-2 .tainacan-item-section__metadatum:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) .tainacan-metadata-value {
|
||||
flex-basis: 100%;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -8,9 +8,15 @@ $page_container_classes = 'page type-page hentry singular';
|
|||
$page_container_classes = $page_container_classes . ' has-filters-panel-style-' . get_theme_mod($prefix . '_filters_panel_background_style', 'boxed');
|
||||
$page_container_classes = $page_container_classes . ' has-page-header-style-' . $page_hero_section_style;
|
||||
|
||||
if ( get_theme_mod( $prefix . '_hide_filters_area_header', 'no' ) === 'yes' )
|
||||
$page_container_classes .= ' has-filters-area-header-hidden';
|
||||
|
||||
$filters_panel_size = get_theme_mod($prefix . '_filters_panel_size', '20%');
|
||||
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
|
||||
|
||||
$filters_inline_size = get_theme_mod($prefix . '_filters_inline_size', '272px');
|
||||
$page_container_style .= '--tainacan-filters-inline-width:' . $filters_inline_size . ';';
|
||||
|
||||
$background_color_palette = get_theme_mod($prefix . '_items_list_background_palette',
|
||||
[
|
||||
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
|
||||
|
@ -184,8 +190,7 @@ add_filter('blocksy:hero:custom-source', function() use($prefix) {
|
|||
});
|
||||
|
||||
if ( $page_hero_section_style === 'type-2' ) {
|
||||
|
||||
if ( blocksy_akg_or_customizer('page_title_bg_type', blocksy_get_page_title_source()) === 'featured_image' ) {
|
||||
if ( blocksy_akg_or_customizer('page_title_bg_type', blocksy_get_page_title_source(), 'featured_image') === 'featured_image' ) {
|
||||
add_filter( 'blocksy:hero:type-2:image:attachment_id', function() {
|
||||
$collection = tainacan_get_collection();
|
||||
return $collection->get_header_image_id();
|
||||
|
@ -242,6 +247,9 @@ if ( $page_hero_section_style === 'type-2' ) {
|
|||
'show_fullscreen_with_view_modes' => get_theme_mod($prefix . '_show_fullscreen_with_view_modes', 'no') == 'yes',
|
||||
'hide_exposers_button' => get_theme_mod($prefix . '_show_exposers_button', 'yes') == 'no',
|
||||
'hide_pagination_area' => get_theme_mod($prefix . '_has_pagination', 'yes') == 'no',
|
||||
'should_not_hide_filters_on_mobile' => get_theme_mod($prefix . '_should_not_hide_filters_on_mobile', 'no') == 'yes',
|
||||
'display_filters_horizontally' => get_theme_mod($prefix . '_display_filters_horizontally', 'no') == 'yes',
|
||||
'hide_filter_collapses' => get_theme_mod($prefix . '_hide_filter_collapses', 'no') == 'yes',
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -9,9 +9,15 @@ $page_container_classes = 'page type-page hentry singular';
|
|||
$page_container_classes = $page_container_classes . ' has-filters-panel-style-' . get_theme_mod($repository_items_prefix . '_filters_panel_background_style', 'boxed');
|
||||
$page_container_classes = $page_container_classes . ' has-page-header-style-' . $page_hero_section_style;
|
||||
|
||||
if ( get_theme_mod( $repository_items_prefix . '_hide_filters_area_header', 'no' ) === 'yes' )
|
||||
$page_container_classes .= ' has-filters-area-header-hidden';
|
||||
|
||||
$filters_panel_size = get_theme_mod($repository_items_prefix . '_filters_panel_size', '20%');
|
||||
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
|
||||
|
||||
$filters_inline_size = get_theme_mod($repository_items_prefix . '_filters_inline_size', '272px');
|
||||
$page_container_style .= '--tainacan-filters-inline-width:' . $filters_inline_size . ';';
|
||||
|
||||
$background_color_palette = get_theme_mod($repository_items_prefix . '_items_list_background_palette',
|
||||
[
|
||||
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
|
||||
|
@ -158,7 +164,10 @@ if ( $page_hero_section_style === 'type-2' ) {
|
|||
'show_fullscreen_with_view_modes' => get_theme_mod($repository_items_prefix . '_show_fullscreen_with_view_modes', 'no') == 'yes',
|
||||
'hide_exposers_button' => get_theme_mod($repository_items_prefix . '_show_exposers_button', 'yes') == 'no',
|
||||
'hide_pagination_area' => get_theme_mod($repository_items_prefix . '_has_pagination', 'yes') == 'no',
|
||||
'default_view_mode' => get_theme_mod($repository_items_prefix . '_default_view_mode', 'masonry')
|
||||
'default_view_mode' => get_theme_mod($repository_items_prefix . '_default_view_mode', 'masonry'),
|
||||
'should_not_hide_filters_on_mobile' => get_theme_mod($repository_items_prefix . '_should_not_hide_filters_on_mobile', 'no') == 'yes',
|
||||
'display_filters_horizontally' => get_theme_mod($repository_items_prefix . '_display_filters_horizontally', 'no') == 'yes',
|
||||
'hide_filter_collapses' => get_theme_mod($repository_items_prefix . '_hide_filter_collapses', 'no') == 'yes',
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
|
|
|
@ -9,9 +9,15 @@ $page_container_classes = 'page type-page hentry singular';
|
|||
$page_container_classes = $page_container_classes . ' has-filters-panel-style-' . get_theme_mod($term_items_prefix . '_filters_panel_background_style', 'boxed');
|
||||
$page_container_classes = $page_container_classes . ' has-page-header-style-' . $page_hero_section_style;
|
||||
|
||||
if ( get_theme_mod( $term_items_prefix . '_hide_filters_area_header', 'no' ) === 'yes' )
|
||||
$page_container_classes .= ' has-filters-area-header-hidden';
|
||||
|
||||
$filters_panel_size = get_theme_mod($term_items_prefix . '_filters_panel_size', '20%');
|
||||
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
|
||||
|
||||
$filters_inline_size = get_theme_mod($term_items_prefix . '_filters_inline_size', '272px');
|
||||
$page_container_style .= '--tainacan-filters-inline-width:' . $filters_inline_size . ';';
|
||||
|
||||
$background_color_palette = get_theme_mod($term_items_prefix . '_items_list_background_palette',
|
||||
[
|
||||
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
|
||||
|
@ -190,7 +196,7 @@ get_header();
|
|||
|
||||
if ( $page_hero_section_style === 'type-2' ) {
|
||||
|
||||
if ( blocksy_akg_or_customizer('page_title_bg_type', blocksy_get_page_title_source()) === 'featured_image' ) {
|
||||
if ( blocksy_akg_or_customizer('page_title_bg_type', blocksy_get_page_title_source(), 'featured_image') === 'featured_image' ) {
|
||||
add_filter( 'blocksy:hero:type-2:image:attachment_id', function() use($image) {
|
||||
return $image;
|
||||
}, 10 );
|
||||
|
@ -238,7 +244,10 @@ if ( $page_hero_section_style === 'type-2' ) {
|
|||
'show_fullscreen_with_view_modes' => get_theme_mod($term_items_prefix . '_show_fullscreen_with_view_modes', 'no') == 'yes',
|
||||
'hide_exposers_button' => get_theme_mod($term_items_prefix . '_show_exposers_button', 'yes') == 'no',
|
||||
'hide_pagination_area' => get_theme_mod($term_items_prefix . '_has_pagination', 'yes') == 'no',
|
||||
'default_view_mode' => get_theme_mod($term_items_prefix . '_default_view_mode', 'masonry')
|
||||
'default_view_mode' => get_theme_mod($term_items_prefix . '_default_view_mode', 'masonry'),
|
||||
'should_not_hide_filters_on_mobile' => get_theme_mod($term_items_prefix . '_should_not_hide_filters_on_mobile', 'no') == 'yes',
|
||||
'display_filters_horizontally' => get_theme_mod($term_items_prefix . '_display_filters_horizontally', 'no') == 'yes',
|
||||
'hide_filter_collapses' => get_theme_mod($term_items_prefix . '_hide_filter_collapses', 'no') == 'yes',
|
||||
]);
|
||||
?>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue