Version 0.3.0

This commit is contained in:
mateuswetah 2023-10-27 15:21:31 -03:00
parent fbcdecfdd0
commit 8065679729
29 changed files with 2168 additions and 536 deletions

View File

@ -2,10 +2,10 @@
Author: tainacan
Contributors: wetah, vnmedeiros, leogermani, tainacan
Tags: museums, libraries, archives, GLAM, collections, repository, tainacan, blocksy
Requires at least: 5.0
Tested up to: 6.2.2
Requires PHP: 5.6
Stable tag: 0.2.0
Requires at least: 5.9
Tested up to: 6.4
Requires PHP: 7.0
Stable tag: 0.3.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -58,12 +58,26 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
== Changelog ==
= 0.3.0 =
* Adds page title default Blocksy banner options for Collection Items templates
* Adds page title section options to Repository and Taxonomy Term Items level templates
* Adds container size option to all Items list templates
* Adds thumbnail carousel positioning option for item single gallery (requires Tainacan 0.20.5)
* Adds inner spacing option for media gallery on item single gallery
* More improvements to compatibility with Blcoksy 2.0.0
* Improves post navigation markup to use latest filters
* Bug fix: label "Document" and "Documents" not displaying in the correct situations
* Bug fix: translation issues in breadcrumbs
* Bug fix: moves tainacan_blocksy_post_class() to integration for its classes to also work on child themes
* Bug fix: positioning of relationship metadata thumbnail
* Bug fix: thumbnail not being found in items navigation leading to a warning
= 0.2.0 =
* Adds Taxonomy Single (Terms list) page functionality (requires Tainacan 0.20.1)
* New layout for the Item Page: Media Gallery above page title
* Option to set default order by for Repository Items list
* Fixes to item thumbnail display inside sections
* Compatibility with Blocksy 2.0.0
* Initial compatibility with Blocksy 2.0.0
= 0.1.21 =
* Fixes breadcrumb hierarchy when inside taxonomy archives
@ -72,7 +86,7 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
* Small css improvements to geo coordinate metadatum
= 0.1.20 =
* Sorts related items by title
* Sorting related items by title
* Small css improvements
= 0.1.19 =

View File

@ -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.2.0
Version: 0.3.0
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.2.0';
const TAINACAN_BLOCKSY_VERSION = '0.3.0';
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;
/* Tools to define our next constants */

View File

@ -7,7 +7,8 @@
if ( !function_exists('tainacan_blocksy_add_repository_and_terms_items_options_panel') ) {
function tainacan_blocksy_add_repository_and_terms_items_options_panel($options) {
$options['tainacan_repository_items_list'] = blc_call_fnc(
/* Repository Items List */
$repository_items_extra_options = blc_call_fnc(
[
'fnc' => 'blocksy_get_options',
'default' => 'array'
@ -16,7 +17,36 @@ if ( !function_exists('tainacan_blocksy_add_repository_and_terms_items_options_p
[], false
);
$options['tainacan_terms_items_list'] = blc_call_fnc(
$repository_items_prefix = 'tainacan-repository-items_archive';
$items_extra_title_options = blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/page-header-simpler.php', [
'prefix' => $repository_items_prefix,
'is_general_cpt' => true
], false);
$default_title_options = blocksy_get_options('general/page-title', [
'prefix' => $repository_items_prefix,
'is_cpt' => true,
'is_archive' => true,
'enabled_label' => sprintf(
__('%s Title', 'blocksy'),
__('Items', 'tainacan-blocksy')
),
]);
$default_title_options_keys = array_keys($default_title_options[$repository_items_prefix . '_hero_enabled']['inner-options']);
$default_title_options[$repository_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$repository_items_prefix . '_hero_section']['choices'] = array_merge($default_title_options[$repository_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$repository_items_prefix . '_hero_section']['choices'], $items_extra_title_options[$repository_items_prefix . '_page-header-panel']['inner-options'][$repository_items_prefix . '_page_header_background_style']['choices']);
$default_title_options[$repository_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$repository_items_prefix . '_hero_section']['value'] = $items_extra_title_options[$repository_items_prefix . '_page-header-panel']['inner-options'][$repository_items_prefix . '_page_header_background_style']['choices'];
$default_title_options[$repository_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$repository_items_prefix . '_hero_section']['sync'] = '';
$default_title_options[$repository_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][1][$repository_items_prefix . '_hero_elements'] = $items_extra_title_options[$repository_items_prefix . '_page-header-panel']['inner-options'][$repository_items_prefix . '_hero_elements'];
$options['tainacan_repository_items_list'] = $repository_items_extra_options;
$options['tainacan_repository_items_list']['options']['tainacan_repository_items_list_section_options']['inner-options'][0] = $default_title_options;
/* Term Items List */
$term_items_extra_options = blc_call_fnc(
[
'fnc' => 'blocksy_get_options',
'default' => 'array'
@ -24,11 +54,39 @@ if ( !function_exists('tainacan_blocksy_add_repository_and_terms_items_options_p
TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archives/tainacan-terms-items.php',
[], false
);
$term_items_prefix = 'tainacan-terms-items_archive';
$items_extra_title_options = blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/page-header.php', [
'prefix' => $term_items_prefix,
'is_general_cpt' => true
], false);
$default_title_options = blocksy_get_options('general/page-title', [
'prefix' => $term_items_prefix,
'is_cpt' => true,
'is_archive' => true,
'enabled_label' => sprintf(
__('%s Title', 'blocksy'),
__('Items', 'tainacan-blocksy')
),
]);
$default_title_options_keys = array_keys($default_title_options[$term_items_prefix . '_hero_enabled']['inner-options']);
$default_title_options[$term_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$term_items_prefix . '_hero_section']['choices'] = array_merge($default_title_options[$term_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$term_items_prefix . '_hero_section']['choices'], $items_extra_title_options[$term_items_prefix . '_page-header-panel']['inner-options'][$term_items_prefix . '_page_header_background_style']['choices']);
$default_title_options[$term_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$term_items_prefix . '_hero_section']['value'] = $items_extra_title_options[$term_items_prefix . '_page-header-panel']['inner-options'][$term_items_prefix . '_page_header_background_style']['value'];
$default_title_options[$term_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$term_items_prefix . '_hero_section']['sync'] = '';
$default_title_options[$term_items_prefix . '_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][1][$term_items_prefix . '_hero_elements'] = $items_extra_title_options[$term_items_prefix . '_page-header-panel']['inner-options'][$term_items_prefix . '_hero_elements'];
$options['tainacan_term_items_list'] = $term_items_extra_options;
$options['tainacan_term_items_list']['options']['tainacan_terms_items_list_section_options']['inner-options'][0] = $default_title_options;
return $options;
}
}
add_filter( 'blocksy_extensions_customizer_options', 'tainacan_blocksy_add_repository_and_terms_items_options_panel' );
add_filter( 'blocksy_extensions_customizer_options', 'tainacan_blocksy_add_repository_and_terms_items_options_panel', 10, 1 );
/**
* Adds extra customizer options to items single page template
@ -118,8 +176,24 @@ if ( !function_exists('tainacan_blocksy_custom_post_types_archive_options') ) {
'is_general_cpt' => true
], false);
$items_extra_title_options = blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/page-header.php', [
'prefix' => $post_type_object->name,
'is_general_cpt' => true
], false);
if ( is_array($items_extra_options) ) {
$default_title_options = $options['options'][$post_type . '_section_options']['inner-options'][1];
$default_title_options_keys = array_keys($default_title_options[$post_type . '_archive_hero_enabled']['inner-options']);
$default_title_options[$post_type . '_archive_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$post_type .'_archive_hero_section']['choices'] = array_merge($default_title_options[$post_type . '_archive_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$post_type .'_archive_hero_section']['choices'], $items_extra_title_options[$post_type . '_page-header-panel']['inner-options'][$post_type . '_page_header_background_style']['choices']);
$default_title_options[$post_type . '_archive_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$post_type .'_archive_hero_section']['value'] = $items_extra_title_options[$post_type . '_page-header-panel']['inner-options'][$post_type . '_page_header_background_style']['value'];
$default_title_options[$post_type . '_archive_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][0][$post_type .'_archive_hero_section']['sync'] = '';
$default_title_options[$post_type . '_archive_hero_enabled']['inner-options'][$default_title_options_keys[0]]['options'][1][$post_type . '_archive_hero_elements'] = $items_extra_title_options[$post_type . '_page-header-panel']['inner-options'][$post_type . '_hero_elements'];
$options['options'][$post_type . '_section_options']['inner-options'] = $items_extra_options;
$options['options'][$post_type . '_section_options']['inner-options'][0] = $default_title_options;
}
// We also do some changes on the Collections
@ -168,7 +242,6 @@ add_filter( 'blocksy:custom_post_types:supported_list', 'tainacan_blocksy_custom
*/
if ( !function_exists('tainacan_blocksy_the_content_for_items') ) {
function tainacan_blocksy_the_content_for_items( $content ) {
// This should only happen if we have Tainacan plugin installed
if ( defined ('TAINACAN_VERSION') ) {
@ -203,4 +276,15 @@ if ( !function_exists('tainacan_blocksy_the_content_for_items') ) {
}
add_filter( 'the_content', 'tainacan_blocksy_the_content_for_items', 11);
?>
/**
* New filter from Blocksy 2.0.0 to allow using the page title styles
* in the Repository and Terms items list.
*/
add_filter(
'blocksy:hero:dynamic-styles:prefixes',
function ($prefixes) {
$prefixes[] = 'tainacan-repository-items_archive';
$prefixes[] = 'tainacan-terms-items_archive';
return $prefixes;
}
);

View File

@ -144,3 +144,20 @@ function tainacan_blocksy_render_media_gallery_above_title() {
}
add_action( 'blocksy:hero:before', 'tainacan_blocksy_render_media_gallery_above_title');
/**
* Adds extra class to help styling tainacan single items templates.
*/
if ( !function_exists('tainacan_blocksy_post_class') ) {
function tainacan_blocksy_post_class($classes) {
$collections_post_types = \Tainacan\Repositories\Repository::get_collections_db_identifiers();
$current_post_type = get_post_type();
if (in_array($current_post_type, $collections_post_types)) {
$classes[] = 'tainacan-item-single-page';
}
return $classes;
}
}
add_filter('post_class', 'tainacan_blocksy_post_class');

View File

@ -49,10 +49,10 @@ if ( !function_exists('tainacan_blocksy_get_adjacent_item_links') ) {
$next_thumb = '';
if (function_exists('tainacan_get_adjacent_items') && isset($_GET['pos'])) {
if ($adjacent_items['next']) {
if ($adjacent_items['next'] && $adjacent_items['next']['thumbnail'] && $adjacent_items['next']['thumbnail']['tainacan-medium']) {
$next_thumb = $adjacent_items['next']['thumbnail']['tainacan-medium'][0];
}
if ($adjacent_items['previous']) {
if ($adjacent_items['previous'] && $adjacent_items['previous']['thumbnail'] && $adjacent_items['previous']['thumbnail']['tainacan-medium']) {
$previous_thumb = $adjacent_items['previous']['thumbnail']['tainacan-medium'][0];
}
} else {
@ -110,6 +110,8 @@ if ( !function_exists('tainacan_blocksy_get_adjacent_item_links') ) {
*/
if ( !function_exists('blocksy_default_post_navigation') ) {
function blocksy_default_post_navigation() {
$prefix = blocksy_manager()->screen->get_prefix();
$next_post = apply_filters(
'blocksy:post-navigation:next-post',
get_adjacent_post(false, '', true)
@ -120,11 +122,57 @@ if ( !function_exists('blocksy_default_post_navigation') ) {
get_adjacent_post(false, '', false)
);
$post_nav_criteria = blocksy_get_theme_mod($prefix . '_post_nav_criteria', 'default');
if ($post_nav_criteria !== 'default') {
$post_type = get_post_type();
$post_nav_taxonomy_default = array_keys(blocksy_get_taxonomies_for_cpt(
$post_type
))[0];
$post_nav_taxonomy = blocksy_get_theme_mod(
$prefix . '_post_nav_taxonomy',
$post_nav_taxonomy_default
);
$next_post = apply_filters(
'blocksy:post-navigation:next-post',
get_adjacent_post(true, '', true, $post_nav_taxonomy)
);
$previous_post = apply_filters(
'blocksy:post-navigation:previous-post',
get_adjacent_post(true, '', false, $post_nav_taxonomy)
);
}
if (! $next_post && ! $previous_post) {
return '';
}
$prefix = blocksy_manager()->screen->get_prefix();
$title_class = 'item-title';
$title_class .= ' ' . blocksy_visibility_classes(blocksy_get_theme_mod(
$prefix . '_post_nav_title_visibility',
[
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
));
$thumb_size = blocksy_get_theme_mod($prefix . '_post_nav_thumb_size', 'medium');
$thumb_class = '';
$thumb_class .= ' ' . blocksy_visibility_classes(blocksy_get_theme_mod(
$prefix . '_post_nav_thumb_visibility',
[
'desktop' => true,
'tablet' => true,
'mobile' => true,
]
));
$container_class = 'post-navigation';
@ -137,7 +185,7 @@ if ( !function_exists('blocksy_default_post_navigation') ) {
]
));
$post_slug = get_post_type() === 'post' ? __( 'Post', 'blocksy' ) : get_post_type_object( get_post_type() )->labels->singular_name;
$post_slug = get_post_type_object(get_post_type())->labels->singular_name;
$post_slug = '<span>' . $post_slug . '</span>';
$has_thumb = get_theme_mod($prefix . '_has_post_nav_thumb', 'yes') === 'yes';
@ -150,44 +198,75 @@ if ( !function_exists('blocksy_default_post_navigation') ) {
if ($next_post) {
$next_title = '';
if ($has_title) {
$next_title = $next_post->post_title;
}
$next_title = get_the_title($next_post);
if ($has_thumb && get_post_thumbnail_id($next_post)) {
$next_post_image_output = blocksy_image(
[
'attachment_id' => get_post_thumbnail_id( $next_post ),
'ratio' => '1/1',
'inner_content' => '<svg width="20px" height="15px" viewBox="0 0 20 15"><polygon points="0,7.5 5.5,13 6.4,12.1 2.4,8.1 20,8.1 20,6.9 2.4,6.9 6.4,2.9 5.5,2 "/></svg>',
'tag_name' => 'figure'
]
);
if ( function_exists('blocksy_image') ) {
$next_post_image_output = blocksy_image(
[
'attachment_id' => get_post_thumbnail_id( $next_post ),
'ratio' => '1/1',
'inner_content' => '<svg width="20px" height="15px" viewBox="0 0 20 15"><polygon points="0,7.5 5.5,13 6.4,12.1 2.4,8.1 20,8.1 20,6.9 2.4,6.9 6.4,2.9 5.5,2 "/></svg>',
'tag_name' => 'figure'
]
);
} else if ( function_exists('blocksy_media') ) {
$next_post_image_output = blocksy_media(
[
'attachment_id' => get_post_thumbnail_id($next_post),
'post_id' => $next_post->ID,
'ratio' => '1/1',
'size' => $thumb_size,
'class' => $thumb_class,
'inner_content' => '<svg width="20px" height="15px" viewBox="0 0 20 15" fill="#ffffff"><polygon points="0,7.5 5.5,13 6.4,12.1 2.4,8.1 20,8.1 20,6.9 2.4,6.9 6.4,2.9 5.5,2 "/></svg>',
'tag_name' => 'figure'
]
);
}
}
}
if ($previous_post) {
$previous_title = '';
if ( $has_title ) {
$previous_title = $previous_post->post_title;
}
$previous_title = get_the_title($previous_post);
if ($has_thumb && get_post_thumbnail_id($previous_post)) {
$previous_post_image_output = blocksy_image(
[
'attachment_id' => get_post_thumbnail_id( $previous_post ),
'ratio' => '1/1',
'inner_content' => '<svg width="20px" height="15px" viewBox="0 0 20 15"><polygon points="14.5,2 13.6,2.9 17.6,6.9 0,6.9 0,8.1 17.6,8.1 13.6,12.1 14.5,13 20,7.5 "/></svg>',
'tag_name' => 'figure'
]
);
if ( function_exists('blocksy_image') ) {
$previous_post_image_output = blocksy_image(
[
'attachment_id' => get_post_thumbnail_id( $previous_post ),
'ratio' => '1/1',
'inner_content' => '<svg width="20px" height="15px" viewBox="0 0 20 15"><polygon points="14.5,2 13.6,2.9 17.6,6.9 0,6.9 0,8.1 17.6,8.1 13.6,12.1 14.5,13 20,7.5 "/></svg>',
'tag_name' => 'figure'
]
);
} else if ( function_exists('blocksy_media') ) {
$previous_post_image_output = blocksy_media(
[
'attachment_id' => get_post_thumbnail_id($previous_post),
'post_id' => $previous_post->ID,
'ratio' => '1/1',
'size' => $thumb_size,
'class' => $thumb_class,
'inner_content' => '<svg width="20px" height="15px" viewBox="0 0 20 15" fill="#ffffff"><polygon points="14.5,2 13.6,2.9 17.6,6.9 0,6.9 0,8.1 17.6,8.1 13.6,12.1 14.5,13 20,7.5 "/></svg>',
'tag_name' => 'figure'
]
);
}
}
}
$deep_link_args = [
'prefix' => $prefix,
'suffix' => $prefix . '_has_post_nav'
];
ob_start();
?>
<nav class="<?php echo esc_attr( $container_class ); ?>">
<nav class="<?php echo esc_attr( $container_class ); ?>" <?php if (function_exists('blocksy_generic_get_deep_link') ) echo blocksy_generic_get_deep_link($deep_link_args); ?>>
<?php if ($next_post): ?>
<a href="<?php echo esc_url(get_permalink($next_post)); ?>" class="nav-item-prev">
<?php if ($has_thumb): ?>
@ -201,15 +280,18 @@ if ( !function_exists('blocksy_default_post_navigation') ) {
<span class="item-label">
<?php
echo wp_kses_post(sprintf(
// translators: post title
__( 'Previous %s', 'blocksy' ),
apply_filters(
'blocksy:post-navigation:previous-post:label',
// translators: post title
__('Previous %s', 'blocksy')
),
$post_slug
));
?>
</span>
<?php if ( ! empty( $next_title ) ): ?>
<span class="item-title">
<span class="<?php echo esc_attr( $title_class ); ?>">
<?php echo wp_kses_post($next_title); ?>
</span>
<?php endif; ?>
@ -226,15 +308,18 @@ if ( !function_exists('blocksy_default_post_navigation') ) {
<span class="item-label">
<?php
echo wp_kses_post(sprintf(
// translators: post title
__( 'Next %s', 'blocksy' ),
apply_filters(
'blocksy:post-navigation:next-post:label',
// translators: post title
__('Next %s', 'blocksy')
),
$post_slug
));
?>
</span>
<?php if ( ! empty( $previous_title ) ) : ?>
<span class="item-title">
<span class="<?php echo esc_attr( $title_class ); ?>">
<?php echo wp_kses_post($previous_title); ?>
</span>
<?php endif; ?>
@ -408,13 +493,13 @@ if ( !function_exists('tainacan_blocksy_custom_breadcrumbs') ) {
$taxonomy = get_taxonomy( $term->taxonomy );
if ( $taxonomy && $taxonomy->labels )
$array[$collection_archive_link_index] = [ "name" => $taxonomy->labels->singular_name ];
$array[] = [ "name" => __('Items', 'blocksy-tainacan') ];
$array[] = [ "name" => __('Items', 'tainacan-blocksy') ];
}
}
}
// Check if we're inside a collection archive.
else if ( in_array($post_type, $collections_post_types) && is_archive() ) {
$array[] = [ "name" => __('Items', 'blocksy-tainacan') ];
$array[] = [ "name" => __('Items', 'tainacan-blocksy') ];
}
// Check if we're inside the main loop in a single Post.
else if ( in_array($post_type, $collections_post_types) && is_singular() && in_the_loop() && is_main_query() ) {

View File

@ -13,6 +13,10 @@ $default_hero_elements[] = [
'enabled' => true,
'heading_tag' => 'h1'
];
$default_hero_elements[] = [
'id' => 'breadcrumbs',
'enabled' => false
];
$options = [
$prefix . 'page-header-panel' => [
@ -24,12 +28,26 @@ $options = [
'inner-options' => [
$prefix . 'page_header_background_style' => [
'label' => __('Header style', 'tainacan-blocksy'),
'type' => 'ct-radio',
'type' => 'ct-image-picker',
'value' => 'boxed',
'view' => 'text',
'design' => 'block',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy')
'type-1' => [
'title' => __('Classic', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-type-1.svg'),
],
'type-2' => [
'title' => __('Banner', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-type-2.svg'),
],
'simple' => [
'title' => __('Gradient', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-simple.svg'),
],
'boxed' => [
'title' => __('Boxed', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-boxed.svg')
],
]
],
$prefix . 'hero_elements' => [
@ -80,7 +98,23 @@ $options = [
]
]
]
]
],
'breadcrumbs' => [
'label' => __('Breadcrumbs', 'blocksy'),
'options' => [
'hero_item_spacing' => [
'label' => __( 'Top Spacing', 'blocksy' ),
'type' => 'ct-slider',
'value' => 20,
'min' => 0,
'max' => 100,
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
]
]
]
],
]
]
]

View File

@ -34,6 +34,10 @@ $default_hero_elements[] = [
]
];
add_filter( 'blocksy:options:page-title:archives-have-hero', function() use ($prefix) {
return str_contains($prefix, 'tnc_col_') || $prefix === 'tainacan-terms-items_archive_';
});
$options = [
$prefix . 'page-header-panel' => [
'label' => __( 'Page header', 'tainacan-blocksy' ),
@ -44,12 +48,26 @@ $options = [
'inner-options' => [
$prefix . 'page_header_background_style' => [
'label' => __('Header style', 'tainacan-blocksy'),
'type' => 'ct-radio',
'type' => 'ct-image-picker',
'value' => 'boxed',
'view' => 'text',
'design' => 'block',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy')
'type-1' => [
'title' => __('Classic', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-type-1.svg'),
],
'type-2' => [
'title' => __('Banner', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-type-2.svg'),
],
'simple' => [
'title' => __('Gradient', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-simple.svg'),
],
'boxed' => [
'title' => __('Boxed', 'tainacan-blocksy'),
'src' => tainacan_blocksy_image_picker_url('header-boxed.svg')
],
]
],
$prefix . 'hero_elements' => [
@ -114,7 +132,7 @@ $options = [
'has_category_label' => [
'label' => __('Category Label', 'blocksy'),
'type' => 'ct-switch',
'value' => 'yes',
'value' => $prefix === 'tainacan-terms-items_archive_' ? 'yes' : 'no',
]
]
],

View File

@ -1,13 +1,6 @@
<?php
$options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Page Elements', 'blocksy' )
]
],
blocksy_get_options(
(
$prefix !== 'tainacan-repository-items' ?
@ -16,7 +9,6 @@ $options = [
), [
'prefix' => $prefix . '_archive'
], false),
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/search-control.php', [
'prefix' => $prefix . '_archive'
], false),
@ -33,5 +25,17 @@ $options = [
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/color-palettes.php', [
'prefix' => $prefix . '_archive'
], false)
], false),
$prefix . '_archive_container-width' => [
'label' => __( 'Container Width', 'blocksy' ),
'type' => 'ct-radio',
'value' => 'fluid',
'view' => 'text',
'design' => 'block',
'sync' => '',
'choices' => [
'fixed' => __( 'Default', 'blocksy' ),
'fluid' => __( 'Full Width', 'blocksy' ),
],
],
];

View File

@ -17,7 +17,7 @@ $options = [
[
'unit' => 'px',
'min' => 42,
'max' => 200,
'max' => 300,
]
]),
'responsive' => true,

View File

@ -27,5 +27,39 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
blocksy_rand_md5() => [
'type' => 'ct-condition',
'condition' => [
$prefix . 'document_attachments_structure' => 'gallery-type-2'
],
'options' => [
$prefix . 'document_attachments_position' => [
'label' => __( 'Thumbnails position', 'tainacan-blocksy' ),
'type' => 'ct-radio',
'value' => 'below',
'view' => 'text',
'design' => 'block',
'sync' => '',
'choices' => [
'left' => __( 'Left', 'tainacan-blocksy' ),
'below' => __( 'Below', 'tainacan-blocksy' ),
'right' => __( 'Right', 'tainacan-blocksy' ),
],
]
]
],
$prefix . 'document_attachments_spacing' => [
'label' => __( 'Inner spacing', 'tainacan-blocksy' ),
'desc' => __( 'Prefer using minimum only if your gallery contains mostly images which can be croped withour loss of information', 'tainacan-blocksy' ),
'type' => 'ct-radio',
'value' => 'default',
'view' => 'text',
'design' => 'block',
'sync' => '',
'choices' => [
'default' => __( 'Default', 'tainacan-blocksy' ),
'minimum' => __( 'Minimum', 'tainacan-blocksy' ),
],
]
];

View File

@ -54,7 +54,7 @@ $options = [
'type' => 'ct-condition',
'condition' => [
$prefix . 'document_attachments_structure' => 'gallery-type-1',
$prefix . 'page_structure_type' => 'type-dam | type-dma | type-mda | type-gm | type mg',
$prefix . 'page_structure_type' => 'type-dam | type-dma | type-mda | type-gm | type-mg',
],
'options' => [
$prefix . 'section_document_label' => [
@ -90,8 +90,8 @@ $options = [
blocksy_rand_md5() => [
'type' => 'ct-condition',
'condition' => [
$prefix . 'document_attachments_structure' => 'gallery-type-1',
$prefix . 'page_structure_type' => 'type-dam | type-dma | type-mda | type-gm | type mg'
$prefix . 'document_attachments_structure' => 'gallery-type-2',
$prefix . 'page_structure_type' => 'type-dam | type-dma | type-mda | type-gm | type-mg'
],
'options' => [
$prefix . 'section_documents_label' => [

View File

@ -91,21 +91,3 @@ if ( !function_exists('tainacan_blocksy_update_extensions_paths') ) {
}
}
add_filter( 'blocksy_extensions_paths', 'tainacan_blocksy_update_extensions_paths');
/**
* Adds extra class to help styling tainacan single items templates.
*/
if ( !function_exists('tainacan_blocksy_post_class') ) {
function tainacan_blocksy_post_class($classes) {
$collections_post_types = \Tainacan\Repositories\Repository::get_collections_db_identifiers();
$current_post_type = get_post_type();
if (in_array($current_post_type, $collections_post_types)) {
$classes[] = 'tainacan-item-single-page';
}
return $classes;
}
}
add_filter('post_class', 'tainacan_blocksy_post_class');

View File

@ -1,12 +1,12 @@
{
"name": "tainacan-blocksy",
"version": "0.2.0",
"version": "0.3.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "tainacan-blocksy",
"version": "0.2.0",
"version": "0.3.0",
"license": "ISC",
"devDependencies": {
"clean-css-cli": "^4.3.0",

View File

@ -1,6 +1,6 @@
{
"name": "tainacan-blocksy",
"version": "0.2.0",
"version": "0.3.0",
"description": "A Blocksy plugin/child theme compatible with Tainacan",
"main": "index.js",
"scripts": {

View File

@ -11,7 +11,7 @@
// --tainacan-input-color: var(--theme-text-color, rgba(44, 62, 80, 0.9));
// --tainacan-input-background-color: var(--theme-form-field-background-initial-color, white);
--tainacan-input-border-color: var(--theme-form-field-border-initial-color, var(--form-field-border-initial-color, #e0e5eb));
// --tainacan-heading-color: var(--theme-heading-color, var(--headingColor, rgba(44, 62, 80, 1)));
// --tainacan-heading-color: var(--theme-heading-color, var(--theme-heading-color, rgba(44, 62, 80, 1)));
// --tainacan-label-color: var(--theme-text-color, rgba(44, 62, 80, 0.9));
// --tainacan-info-color: var(--theme-text-color, rgba(44, 62, 80, 0.9));
--tainacan-skeleton-color: var(--tainacan-item-background-color, white);
@ -19,7 +19,6 @@
&:not(.is-fullscreen) {
justify-content: center;
background: transparent !important;
padding: 6px 18px;
@include display-grid;
grid-template-columns: 0fr 100% 1fr;
grid-template-rows: auto 1fr;
@ -32,8 +31,8 @@
.search-control {
grid-area: searchcontrol;
border-radius: 0 0 var(--theme-border-radius, var(--borderRadius, 3px)) var(--theme-border-radius, var(--borderRadius, 3px));
padding: 20px 20px 6px 20px !important;
margin: 5px 0px;
padding: 20px 0px 6px 0px !important;
.search-control-item {
margin-bottom: 20px !important;
@ -62,16 +61,16 @@
width: 100%;
.modal-content {
padding: 16px 10px !important;
padding: 16px 10px 16px 0px !important;
@media screen and (max-width: 768px){
padding: 16px 10px 16px 12vw;
background-color: var(--tainacan-item-background-color,#fff);
background-color: var(--background-color, var(--backgroundColor, #f8f9fb));
}
#filters-items-list {
background-color: var(--backgroundColor, #f8f9fb);
padding: 20px;
background-color: var(--background-color, var(--backgroundColor, #f8f9fb));
padding: 3px;
margin: -3px;
.filters-components-list {
@ -98,9 +97,9 @@
.table-container {
min-width: 100%;
padding-top: 0px;
padding-left: 10px;
padding-left: 0px;
padding-bottom: 14px;
padding-right: 10px;
padding-right: 0px;
}
/* Tainacan items list view modes */
@ -186,7 +185,7 @@
font-size: 14px;
font-weight: 600;
color: var(--theme-text-color, var(--color));
--linkInitialColor: var(--theme-text-color, var(--color));
--theme-link-initial-color: var(--theme-text-color, var(--color));
--theme-link-initial-color: var(--theme-text-color, var(--color));
transition: color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955), background 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955),border-color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
@ -234,16 +233,35 @@
}
}
:not(.wp-block-tainacan-faceted-search)>.theme-items-list:not(.is-fullscreen) {
.entry-content:not(.ct-container) .theme-items-list:not(.is-fullscreen) {
padding: 6px 18px;
.search-control {
padding: 20px 20px 6px 20px !important;
}
.table-container {
padding-left: 10px !important;
padding-right: 10px !important;
}
#filters-modal .modal-content {
padding: 16px 10px;
}
}
.page:not(.has-page-header-style-classic)>header+.entry-content:not(.wp-block-tainacan-faceted-search)>.theme-items-list:not(.is-fullscreen) {
top: -52px !important;
}
/* Extra classes applied from customizer */
.page {
&.has-filters-panel-style-boxed #filters-modal .modal-content #filters-items-list {
.page.has-filters-panel-style-boxed {
#filters-modal .modal-content #filters-items-list {
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
background-color: var(--tainacan-item-background-color, white);
box-shadow: var(--theme-box-shadow, var(--boxShadow , 0px 12px 18px -6px rgba(34, 56, 101, 0.04)));
padding: 20px;
}
}
@ -256,13 +274,13 @@ body:not(.tainacan-admin-page) {
--tainacan-base-font-size: var(--theme-font-size, var(--fontSize, 1em));
--tainacan-secondary: var(--theme-palette-color-1, var(--paletteColor1, #3eaf7c));
--tainacan-primary: var(--theme-form-field-border-initial-color, var(--form-field-border-initial-color, #e0e5eb));
--tainacan-background-color: var(--backgroundColor, #f8f9fb);
--tainacan-background-color: var(--background-color, var(--backgroundColor, #f8f9fb));
--tainacan-input-color: var(--theme-text-color, var(--color, rgba(44, 62, 80, 0.9)));
--tainacan-input-background-color: var(--theme-form-field-background-initial-color, var(--form-field-background-initial, white));
--tainacan-input-border-color: var(--theme-form-field-border-initial-color, #e0e5eb);
--tainacan-label-color: var(--theme-text-color, var(--color, rgba(44, 62, 80, 0.9)));
--tainacan-info-color: var(--theme-text-color, var(--color, rgba(44, 62, 80, 0.9)));
--tainacan-heading-color: var(--theme-heading-color, var(--headingColor, rgba(44, 62, 80, 1)));
--tainacan-heading-color: var(--theme-heading-color, var(--theme-heading-color, rgba(44, 62, 80, 1)));
}
.tainacan-modal-content {
@ -283,6 +301,49 @@ body:not(.tainacan-admin-page) {
}
/* Collection Items List */
// This affects all header types
body[class*=' post-type-archive-tnc_col_'],
body[class*=' tax-tnc_'],
body[data-prefix="tainacan-repository-items_archive"],
body[data-prefix="tainacan-terms-items_archive"] {
.hero-section[data-type="type-1"] {
padding-top: var(--theme-content-vertical-spacing);
}
.hero-section.has-thumbnail-enabled > [class*="ct-container"] {
display: block; // Only here the float will work
}
.hero-section.has-thumbnail-enabled {
.page-title {
margin-top: 0px;
margin-bottom: 4px;
display: block;
clear: none;
}
.page-description ,
.page-description p {
display: block !important;
clear: none;
}
}
.ct-title-label {
font-weight: normal;
&::after {
content: ': ';
}
}
.collection-thumbnail {
max-width: calc(var(--thumbnail-size, 20%) - 24px);
float: left;
margin-right: 24px;
img {
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
}
}
}
// This affects only tainacan special header types (gradient and boxed)
.tainacan-collection-header {
display: flex;
padding: 36px 18px 28px 18px;
@ -292,42 +353,13 @@ body:not(.tainacan-admin-page) {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
--headingColor: var(--tainacan-heading-color, rgba(44, 62, 80, 1));
--color: var(--tainacan-label-color, #454647);
--linkInitialColor: var(--tainacan-secondary, #3eaf7c);
--theme-heading-color: var(--tainacan-heading-color, rgba(44, 62, 80, 1));
--theme-text-color: var(--tainacan-label-color, #373839);
--theme-link-initial-color: var(--tainacan-secondary, #3eaf7c);
.tainacan-collection-header__box {
width: 100%;
padding: 20px;
.page-title {
>.collection-thumbnail+* {
margin-top: 0px;
margin-bottom: 4px;
display: block;
clear: none;
}
.ct-title-label {
font-weight: normal;
&::after {
content: ': ';
}
}
.collection-thumbnail {
max-width: calc(var(--thumbnail-size, 20%) - 24px);
float: left;
margin-right: 24px;
img {
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
}
}
.page-description ,
.page-description p {
display: block !important;
clear: none;
}
}
}
@ -348,6 +380,7 @@ body:not(.tainacan-admin-page) {
.search-control {
background-color: var(--tainacan-item-background-color, white);
box-shadow: var(--theme-box-shadow, var(--boxShadow , 0px 12px 18px -6px rgba(34, 56, 101, 0.04)));
padding-left: 20px !important;
padding-right: 20px !important;
}
}

View File

@ -131,7 +131,7 @@
page-break-inside: avoid;
break-inside: avoid;
&:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum) {
&:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) {
display: inline-block;
}
}
@ -576,6 +576,11 @@
padding-top: calc(var(--content-vertical-spacing)/2);
padding-bottom: calc(var(--content-vertical-spacing)/2);
&:empty {
display: none;
visibility: hidden;
}
.tainacan-media-component {
--tainacan-media-background: var(--tainacan-media-background-color, var(--theme-palette-color-7, var(--paletteColor7)));
--swiper-navigation-color: var(--tainacan-media-accent-color, var(--theme-palette-color-1, var(--paletteColor1)));
@ -587,3 +592,164 @@
margin: 0 auto;
}
}
/* Media gallery with minimum spacing */
.tainacan-media-component-wrapper-spacing--minimum {
--theme-border-radius: 0px;
.tainacan-media-component {
gap: 0px;
.tainacan-media-component__swiper-main {
ul.swiper-wrapper {
max-height: var(--tainacan-media-main-carousel-height, 60vh);
}
li.swiper-slide {
padding: 0;
}
.swiper-slide-content {
text-align: center;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
a:first-of-type,
p:first-of-type {
padding: 0;
flex-grow: 1;
}
img {
width: auto;
height: 100%;
max-width: unset;
object-fit: cover;
object-position: center;
}
@media (min-aspect-ratio: 1/1) {
img {
width: 100%;
height: auto;
}
}
video,
audio {
margin: calc( 1.5 * var(--swiper-navigation-size) );
}
}
li.swiper-slide .swiper-slide-metadata {
background-color: var(--tainacan-media-background-color,var(--theme-palette-color-7,var(--paletteColor7)));
border-radius: 2px;
padding: 0.5rem 1rem;
margin: 1rem;
bottom: 0;
position: absolute;
z-index: 99;
left: calc( 1.5 * var(--swiper-navigation-size) );
}
.swiper-button-prev,
.swiper-button-next {
border-radius: 100em;
padding: 1.5em;
width: var(--swiper-navigation-size);
background: rgba(255,255,255,0.0);
transition: background-color 0.2s ease;
}
&:hover,
&:focus {
.swiper-button-prev,
.swiper-button-next {
background: var(--tainacan-media-background-color,var(--theme-palette-color-7,var(--paletteColor7)));
}
}
}
.tainacan-media-component__swiper-thumbs {
ul.swiper-wrapper {
max-width: 100%;
margin: 0;
}
li.swiper-slide {
max-width: var(--tainacan-media-thumbs-carousel-item-size, 136px);
}
}
}
}
/* Media gallery with thumbnails to the left or right */
@media only screen and (min-width: 961px) {
.tainacan-media-component-wrapper-thumbnails-at--right,
.tainacan-media-component-wrapper-thumbnails-at--left {
.tainacan-media-component {
display: flex;
flex-direction: row;
gap: 0px;
max-height: var(--tainacan-media-main-carousel-height, 60vh);
.tainacan-media-component__swiper-main {
.swiper-slide-content {
@media (min-aspect-ratio: 4/3) {
img {
width: 100%;
height: auto;
}
}
}
}
.tainacan-media-component__swiper-thumbs {
flex-basis: var(--tainacan-media-thumbs-carousel-item-size, 140px);
flex-shrink: 0;
.swiper-wrapper {
max-height: var(--tainacan-media-main-carousel-height, 60vh);
width: 100%;
max-width: 100%;
margin-left: 0px;
margin-right: 0px;
.swiper-slide {
height: auto;
img {
margin: 0;
border-bottom: none;
}
}
}
.swiper-start-border {
background-image: linear-gradient(180deg, var(--tainacan-media-background, #ffffff) 25%, transparent);
width: 100%;
height: calc(32px + var(--swiper-navigation-size, 44px));
}
.swiper-end-border {
background-image: linear-gradient(0deg, var(--tainacan-media-background, #ffffff) 25%, transparent);
width: 100%;
height: calc(32px + var(--swiper-navigation-size, 44px));
bottom: 0px;
top: unset;
}
}
}
}
.tainacan-media-component-wrapper-thumbnails-at--left {
.tainacan-media-component__swiper-thumbs {
margin-right: 0px;
}
.tainacan-media-component__swiper-main {
margin-left: 0px;
}
.tainacan-media-component {
flex-direction: row-reverse;
}
}
.tainacan-media-component-wrapper-thumbnails-at--right {
.tainacan-media-component__swiper-thumbs {
margin-left: 0px;
}
.tainacan-media-component__swiper-main {
margin-right: 0px;
}
}
}

View File

@ -0,0 +1,214 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
id="Layer_1"
x="0"
y="0"
viewBox="0 0 100 70"
xml:space="preserve"
sodipodi:docname="header-box.svg"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs6"><linearGradient
id="linearGradient6"
inkscape:collect="always"><stop
style="stop-color:#c3c7ca;stop-opacity:1;"
offset="0"
id="stop6" /><stop
style="stop-color:#c3c7ca;stop-opacity:0;"
offset="1"
id="stop7" /></linearGradient><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6"
id="linearGradient7"
x1="23.964462"
y1="17.845284"
x2="23.964462"
y2="39.203964"
gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="8.7075149"
inkscape:cx="33.419409"
inkscape:cy="31.352229"
inkscape:window-width="2560"
inkscape:window-height="1044"
inkscape:window-x="1366"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="g18" /><style
id="style1">.st0{fill:#fff}</style><path
class="st0"
d="M13 73.5c-1.4 0-2.5-1.1-2.5-2.5V13c0-1.4 1.1-2.5 2.5-2.5h74c1.4 0 2.5 1.1 2.5 2.5v58c0 1.4-1.1 2.5-2.5 2.5H13z"
id="path1" /><path
d="M89 44.5H11V13.7c0-1.5.9-2.7 2-2.7h74c1.1 0 2 1.2 2 2.7v30.8z"
fill="#c3c7ca"
id="path2"
style="fill-opacity:1;fill:url(#linearGradient7)" /><path
d="M87 11c1.1 0 2 .9 2 2v58c0 1.1-.9 2-2 2H13c-1.1 0-2-.9-2-2V13c0-1.1.9-2 2-2h74m0-1H13c-1.7 0-3 1.3-3 3v58c0 1.7 1.3 3 3 3h74c1.6 0 3-1.3 3-3V13c0-1.7-1.4-3-3-3z"
fill="#565d66"
id="path3" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89135;stroke-miterlimit:3.7"
id="rect7-5"
width="60.934639"
height="21.466051"
x="19.532679"
y="15.912405"
rx="1.1794379"
ry="1.1794379" /><circle
class="st0"
cx="40"
cy="34.400002"
r="1"
id="circle8"
style="fill:#ffffff;fill-opacity:1" /><path
style="fill:#ffffff;fill-opacity:1"
d="m 46.5,34.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path9" /><rect
style="fill:#ffffff;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14"
width="13.276864"
height="0.97756892"
x="22.081238"
y="33.926273"
rx="0.43962872"
ry="0.48878446" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3"
width="16.299561"
height="31.911737"
x="14.098561"
y="41.062675"
rx="0"
ry="0" /><g
id="g18"
transform="matrix(1.0528843,0,0,1,-1.0345835,-2)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7"
width="10.519863"
height="13.545873"
x="45.997967"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1"
width="10.519863"
height="14.518681"
x="45.997967"
y="60.312542"
rx="0"
ry="0" /></g><g
id="g16"
transform="matrix(1.0528843,0,0,1,-1.4943595,-2)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3"
width="10.519863"
height="13.545873"
x="72.491707"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2"
width="10.519863"
height="14.518681"
x="72.491707"
y="60.312542"
rx="0"
ry="0" /></g><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6"
width="11.076198"
height="10.04931"
x="33.678417"
y="41.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56"
width="11.076198"
height="13.545873"
x="33.678417"
y="53.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1-7"
width="11.076198"
height="2.2601454"
x="33.678417"
y="70.667015"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5"
width="11.076198"
height="10.04931"
x="61.11348"
y="41.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9"
width="11.076198"
height="13.545873"
x="61.11348"
y="53.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2-0"
width="11.076198"
height="2.2601454"
x="61.11348"
y="70.667015"
rx="0"
ry="0" /><path
d="M 50,28.3 H 39.5 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 H 50 c 0.6,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path8"
style="fill:#ffffff" /><path
d="m 75.187402,28.3 h -20.9 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path7"
style="fill:#ffffff" /><path
d="m 60.5,24.1 h -21 c -0.5,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0.1,0.5 -0.4,1 -0.9,1 z"
id="path5"
style="fill:#ffffff" /><rect
style="fill:#ffffff;fill-opacity:1;stroke-width:2.89134;stroke-miterlimit:3.7"
id="rect7"
width="12.134384"
height="12.134384"
x="22.081238"
y="18.21216"
rx="0.71406108"
ry="0.71406108" /><circle
class="st0"
cx="58"
cy="34.400002"
r="1"
id="circle5"
style="fill:#ffffff;fill-opacity:1" /><path
style="fill:#ffffff;fill-opacity:1"
d="m 76.5,34.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path13" /><path
style="fill:#ffffff;fill-opacity:1"
d="m 70.5,34.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path12" /><path
style="fill:#ffffff;fill-opacity:1"
d="m 64.5,34.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path6" /><path
style="fill:#ffffff;fill-opacity:1"
d="m 52.5,34.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path11" /></svg>

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -0,0 +1,209 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
id="Layer_1"
x="0"
y="0"
viewBox="0 0 100 70"
xml:space="preserve"
sodipodi:docname="header-simple.svg"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs6"><linearGradient
id="linearGradient6"
inkscape:collect="always"><stop
style="stop-color:#c3c7ca;stop-opacity:1;"
offset="0"
id="stop6" /><stop
style="stop-color:#c3c7ca;stop-opacity:0;"
offset="1"
id="stop7" /></linearGradient><linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6"
id="linearGradient7"
x1="23.964462"
y1="17.845284"
x2="23.964462"
y2="39.203964"
gradientUnits="userSpaceOnUse" /></defs><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="8.7075149"
inkscape:cx="33.419409"
inkscape:cy="31.352229"
inkscape:window-width="2560"
inkscape:window-height="1044"
inkscape:window-x="1366"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" /><style
id="style1">.st0{fill:#fff}</style><path
class="st0"
d="M13 73.5c-1.4 0-2.5-1.1-2.5-2.5V13c0-1.4 1.1-2.5 2.5-2.5h74c1.4 0 2.5 1.1 2.5 2.5v58c0 1.4-1.1 2.5-2.5 2.5H13z"
id="path1" /><path
d="M89 44.5H11V13.7c0-1.5.9-2.7 2-2.7h74c1.1 0 2 1.2 2 2.7v30.8z"
fill="#c3c7ca"
id="path2"
style="fill-opacity:1;fill:url(#linearGradient7)" /><path
d="M87 11c1.1 0 2 .9 2 2v58c0 1.1-.9 2-2 2H13c-1.1 0-2-.9-2-2V13c0-1.1.9-2 2-2h74m0-1H13c-1.7 0-3 1.3-3 3v58c0 1.7 1.3 3 3 3h74c1.6 0 3-1.3 3-3V13c0-1.7-1.4-3-3-3z"
fill="#565d66"
id="path3" /><path
d="M 42,28.3 H 31.5 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 H 42 c 0.6,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path8"
style="fill:#ffffff" /><path
d="m 67.187402,28.3 h -20.9 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path7"
style="fill:#ffffff" /><path
d="m 52.5,24.1 h -21 c -0.5,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0.1,0.5 -0.4,1 -0.9,1 z"
id="path5"
style="fill:#ffffff" /><circle
class="st0"
cx="62"
cy="38.400002"
r="1"
id="circle5"
style="fill:#e6e7e8;fill-opacity:1" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 84.5,38.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path13" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 74.5,38.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path12" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 68.5,38.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path6" /><rect
style="fill:#ffffff;stroke-width:2.89134;stroke-miterlimit:3.7;fill-opacity:1"
id="rect7"
width="12.134384"
height="12.134384"
x="14.081238"
y="18.21216"
rx="0.71406108"
ry="0.71406108" /><circle
class="st0"
cx="38"
cy="38.400002"
r="1"
id="circle8"
style="fill:#e6e7e8;fill-opacity:1" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 56.5,38.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path11" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 50.5,38.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path10" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 44.5,38.9 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path9" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14"
width="15.734556"
height="0.97756892"
x="14.081238"
y="37.926273"
rx="0.52100879"
ry="0.48878446" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3"
width="16.299561"
height="29.9324"
x="14.098561"
y="43.062675"
rx="0"
ry="0" /><g
id="g18"
transform="matrix(1.0528843,0,0,1,-1.0345835,0)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7"
width="10.519863"
height="13.545873"
x="45.997967"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1"
width="10.519863"
height="13.545873"
x="45.997967"
y="59.242615"
rx="0"
ry="0" /></g><g
id="g16"
transform="matrix(1.0528843,0,0,1,-1.4943595,0)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3"
width="10.519863"
height="13.545873"
x="72.491707"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2"
width="10.519863"
height="13.545873"
x="72.491707"
y="59.242615"
rx="0"
ry="0" /></g><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6"
width="11.076198"
height="10.04931"
x="33.678417"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56"
width="11.076198"
height="13.545873"
x="33.678417"
y="55.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1-7"
width="11.076198"
height="2.1199591"
x="33.678417"
y="70.830795"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5"
width="11.076198"
height="10.04931"
x="61.11348"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9"
width="11.076198"
height="13.545873"
x="61.11348"
y="55.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2-0"
width="11.076198"
height="2.1199591"
x="61.11348"
y="70.830795"
rx="0"
ry="0" /></svg>

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

@ -0,0 +1,188 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
id="Layer_1"
x="0"
y="0"
viewBox="0 0 100 70"
xml:space="preserve"
sodipodi:docname="header-boxed (cópia).svg"
inkscape:version="1.3 (0e150ed6c4, 2023-07-21)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs6" /><sodipodi:namedview
id="namedview6"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="8.7075149"
inkscape:cx="33.419409"
inkscape:cy="31.352229"
inkscape:window-width="2560"
inkscape:window-height="1044"
inkscape:window-x="1366"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" /><style
id="style1">.st0{fill:#fff}</style><path
class="st0"
d="M13 73.5c-1.4 0-2.5-1.1-2.5-2.5V13c0-1.4 1.1-2.5 2.5-2.5h74c1.4 0 2.5 1.1 2.5 2.5v58c0 1.4-1.1 2.5-2.5 2.5H13z"
id="path1" /><path
d="M87 11c1.1 0 2 .9 2 2v58c0 1.1-.9 2-2 2H13c-1.1 0-2-.9-2-2V13c0-1.1.9-2 2-2h74m0-1H13c-1.7 0-3 1.3-3 3v58c0 1.7 1.3 3 3 3h74c1.6 0 3-1.3 3-3V13c0-1.7-1.4-3-3-3z"
fill="#565d66"
id="path3" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89132;stroke-miterlimit:3.7"
id="rect14-3"
width="16.299561"
height="34.03854"
x="14.098561"
y="39.062675"
rx="0"
ry="0" /><g
id="g18"
transform="matrix(1.0528843,0,0,1,-1.0345835,-4)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7"
width="10.519863"
height="13.545873"
x="45.997967"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1"
width="10.519863"
height="15.486299"
x="45.997967"
y="61.462185"
rx="0"
ry="0" /></g><g
id="g16"
transform="matrix(1.0528843,0,0,1,-1.4943595,-4)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3"
width="10.519863"
height="13.545873"
x="72.491707"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2"
width="10.519863"
height="15.486299"
x="72.491707"
y="61.462185"
rx="0"
ry="0" /></g><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6"
width="11.076198"
height="10.04931"
x="33.678417"
y="39.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56"
width="11.076198"
height="13.545873"
x="33.678417"
y="51.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1-7"
width="11.076198"
height="6.0105996"
x="33.678417"
y="67.040215"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5"
width="11.076198"
height="10.04931"
x="61.11348"
y="39.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9"
width="11.076198"
height="13.545873"
x="61.11348"
y="51.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2-0"
width="11.076198"
height="6.0105996"
x="61.11348"
y="67.040215"
rx="0"
ry="0" /><path
d="M 50,27.807403 H 39.5 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 H 50 c 0.6,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path8"
style="fill:#c3c7ca;fill-opacity:1" /><path
d="m 75.187402,27.807403 h -20.9 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path7"
style="fill:#c3c7ca;fill-opacity:1" /><path
d="m 60.5,23.607403 h -21 c -0.5,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0.1,0.5 -0.4,1 -0.9,1 z"
id="path5"
style="fill:#c3c7ca;fill-opacity:1" /><rect
style="fill:#c3c7ca;fill-opacity:1;stroke-width:2.89134;stroke-miterlimit:3.7"
id="rect7"
width="12.134384"
height="12.134384"
x="22.081238"
y="17.719563"
rx="0.71406108"
ry="0.71406108" /><circle
class="st0"
cx="62.60569"
cy="34.640182"
r="1"
id="circle5-3"
style="fill:#e6e7e8;fill-opacity:1" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 85.105689,35.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path13-6" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 75.105689,35.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path12-7" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 69.105689,35.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path6-5" /><circle
class="st0"
cx="38.60569"
cy="34.640182"
r="1"
id="circle8-3"
style="fill:#e6e7e8;fill-opacity:1" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 57.105689,35.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path11-5" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 51.105689,35.140181 h -3.999998 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 3.999998 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path10" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 45.105691,35.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path9-6" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-2"
width="15.734556"
height="0.97756892"
x="14.686929"
y="34.166454"
rx="0.52100879"
ry="0.48878446" /></svg>

After

Width:  |  Height:  |  Size: 6.7 KiB

View File

@ -0,0 +1,170 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
version="1.1"
id="Layer_1"
x="0"
y="0"
viewBox="0 0 100 70"
xml:space="preserve"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs6" /><style
id="style1">.st0{fill:#fff}</style><path
class="st0"
d="M13 73.5c-1.4 0-2.5-1.1-2.5-2.5V13c0-1.4 1.1-2.5 2.5-2.5h74c1.4 0 2.5 1.1 2.5 2.5v58c0 1.4-1.1 2.5-2.5 2.5H13z"
id="path1" /><path
d="M87 11c1.1 0 2 .9 2 2v58c0 1.1-.9 2-2 2H13c-1.1 0-2-.9-2-2V13c0-1.1.9-2 2-2h74m0-1H13c-1.7 0-3 1.3-3 3v58c0 1.7 1.3 3 3 3h74c1.6 0 3-1.3 3-3V13c0-1.7-1.4-3-3-3z"
fill="#565d66"
id="path3" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89132;stroke-miterlimit:3.7"
id="rect14-3"
width="16.299561"
height="31.984892"
x="14.098561"
y="41.062675"
rx="0"
ry="0" /><g
id="g18"
transform="matrix(1.0528843,0,0,1,-1.0345835,-2)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7"
width="10.519863"
height="13.545873"
x="45.997967"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1"
width="10.519863"
height="14.551964"
x="45.997967"
y="60.352089"
rx="0"
ry="0" /></g><g
id="g16"
transform="matrix(1.0528843,0,0,1,-1.4943595,-2)"
style="stroke-width:0.974562"><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3"
width="10.519863"
height="13.545873"
x="72.491707"
y="43.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.81779;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2"
width="10.519863"
height="14.551964"
x="72.491707"
y="60.352089"
rx="0"
ry="0" /></g><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6"
width="11.076198"
height="10.04931"
x="33.678417"
y="41.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56"
width="11.076198"
height="13.545873"
x="33.678417"
y="53.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-56-1-7"
width="11.076198"
height="4.2889371"
x="33.678417"
y="68.711266"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5"
width="11.076198"
height="10.04931"
x="61.11348"
y="41.402985"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9"
width="11.076198"
height="13.545873"
x="61.11348"
y="53.368607"
rx="0"
ry="0" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-3-6-7-5-3-9-2-0"
width="11.076198"
height="4.2889371"
x="61.11348"
y="68.711266"
rx="0"
ry="0" /><circle
class="st0"
cx="62.60569"
cy="36.640182"
r="1"
id="circle5-3"
style="fill:#e6e7e8;fill-opacity:1" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 85.105689,37.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path13-6" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 75.105689,37.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path12-7" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 69.105689,37.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path6-5" /><circle
class="st0"
cx="38.60569"
cy="36.640182"
r="1"
id="circle8-3"
style="fill:#e6e7e8;fill-opacity:1" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 57.105689,37.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path11-5" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 51.105689,37.140181 h -3.999998 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 3.999998 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path10" /><path
style="fill:#e6e7e8;fill-opacity:1"
d="m 45.105691,37.140181 h -4 c -0.3,0 -0.5,-0.2 -0.5,-0.5 0,-0.3 0.2,-0.5 0.5,-0.5 h 4 c 0.3,0 0.5,0.2 0.5,0.5 0,0.3 -0.2,0.5 -0.5,0.5 z"
id="path9-6" /><rect
style="fill:#e6e7e8;fill-opacity:1;stroke-width:2.89133;stroke-miterlimit:3.7"
id="rect14-2"
width="15.734556"
height="0.97756892"
x="14.686929"
y="36.166454"
rx="0.52100879"
ry="0.48878446" /><path
id="rect1"
style="fill:#c3c7ca;stroke-width:2.89134;stroke-miterlimit:3.7"
d="M 13 11 C 11.900001 11 11 11.900001 11 13 L 11 32.585938 L 89 32.585938 L 89 13 C 89 11.900001 88.099999 11 87 11 L 13 11 z " /><path
d="M 50,27.807403 H 39.5 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 H 50 c 0.6,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path8"
style="fill:#ffffff;fill-opacity:1" /><path
d="m 75.187402,27.807403 h -20.9 c -0.6,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0,0.5 -0.4,1 -1,1 z"
id="path7"
style="fill:#ffffff;fill-opacity:1" /><path
d="m 60.5,23.607403 h -21 c -0.5,0 -1,-0.4 -1,-1 0,-0.5 0.4,-1 1,-1 h 20.9 c 0.5,0 1,0.5 1,1 0.1,0.5 -0.4,1 -0.9,1 z"
id="path5"
style="fill:#ffffff;fill-opacity:1" /><rect
style="fill:#ffffff;fill-opacity:1;stroke-width:2.89134;stroke-miterlimit:3.7"
id="rect7"
width="12.134384"
height="12.134384"
x="22.081238"
y="17.719563"
rx="0.71406108"
ry="0.71406108" /></svg>

After

Width:  |  Height:  |  Size: 6.1 KiB

View File

@ -38,7 +38,6 @@
.theme-items-list:not(.is-fullscreen) {
justify-content: center;
background: transparent !important;
padding: 6px 18px;
flex-wrap: wrap;
display: flex;
display: -ms-grid;
@ -51,8 +50,8 @@
.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));
padding: 20px 20px 6px 20px !important;
margin: 5px 0px;
padding: 20px 0px 6px 0px !important;
}
.theme-items-list .search-control .search-control-item {
@ -80,19 +79,19 @@
}
.theme-items-list #filters-modal .modal-content {
padding: 16px 10px !important;
padding: 16px 10px 16px 0px !important;
}
@media screen and (max-width: 768px) {
.theme-items-list #filters-modal .modal-content {
padding: 16px 10px 16px 12vw;
background-color: var(--tainacan-item-background-color, #fff);
background-color: var(--background-color, var(--backgroundColor, #f8f9fb));
}
}
.theme-items-list #filters-modal .modal-content #filters-items-list {
background-color: var(--backgroundColor, #f8f9fb);
padding: 20px;
background-color: var(--background-color, var(--backgroundColor, #f8f9fb));
padding: 3px;
margin: -3px;
}
@ -120,9 +119,9 @@
.theme-items-list #items-list-area #items-list-results .table-container {
min-width: 100%;
padding-top: 0px;
padding-left: 10px;
padding-left: 0px;
padding-bottom: 14px;
padding-right: 10px;
padding-right: 0px;
}
.theme-items-list #items-list-area #items-list-results .tainacan-masonry-container .tainacan-masonry-item,
@ -222,7 +221,7 @@
font-size: 14px;
font-weight: 600;
color: var(--theme-text-color, var(--color));
--linkInitialColor: var(--theme-text-color, var(--color));
--theme-link-initial-color: var(--theme-text-color, var(--color));
--theme-link-initial-color: var(--theme-text-color, var(--color));
transition: color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955), background 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955), border-color 0.12s cubic-bezier(0.455, 0.03, 0.515, 0.955);
}
@ -264,7 +263,24 @@
border: 1px solid var(--tainacan-input-border-color);
}
:not(.wp-block-tainacan-faceted-search) > .theme-items-list:not(.is-fullscreen) {
.entry-content:not(.ct-container) .theme-items-list:not(.is-fullscreen) {
padding: 6px 18px;
}
.entry-content:not(.ct-container) .theme-items-list:not(.is-fullscreen) .search-control {
padding: 20px 20px 6px 20px !important;
}
.entry-content:not(.ct-container) .theme-items-list:not(.is-fullscreen) .table-container {
padding-left: 10px !important;
padding-right: 10px !important;
}
.entry-content:not(.ct-container) .theme-items-list:not(.is-fullscreen) #filters-modal .modal-content {
padding: 16px 10px;
}
.page:not(.has-page-header-style-classic) > header + .entry-content:not(.wp-block-tainacan-faceted-search) > .theme-items-list:not(.is-fullscreen) {
top: -52px !important;
}
@ -273,6 +289,7 @@
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
background-color: var(--tainacan-item-background-color, white);
box-shadow: var(--theme-box-shadow, var(--boxShadow, 0px 12px 18px -6px rgba(34, 56, 101, 0.04)));
padding: 20px;
}
/* Tooltips and Modals are outside of the items list div */
@ -282,13 +299,13 @@ body:not(.tainacan-admin-page) .tainacan-modal-content {
--tainacan-base-font-size: var(--theme-font-size, var(--fontSize, 1em));
--tainacan-secondary: var(--theme-palette-color-1, var(--paletteColor1, #3eaf7c));
--tainacan-primary: var(--theme-form-field-border-initial-color, var(--form-field-border-initial-color, #e0e5eb));
--tainacan-background-color: var(--backgroundColor, #f8f9fb);
--tainacan-background-color: var(--background-color, var(--backgroundColor, #f8f9fb));
--tainacan-input-color: var(--theme-text-color, var(--color, rgba(44, 62, 80, 0.9)));
--tainacan-input-background-color: var(--theme-form-field-background-initial-color, var(--form-field-background-initial, white));
--tainacan-input-border-color: var(--theme-form-field-border-initial-color, #e0e5eb);
--tainacan-label-color: var(--theme-text-color, var(--color, rgba(44, 62, 80, 0.9)));
--tainacan-info-color: var(--theme-text-color, var(--color, rgba(44, 62, 80, 0.9)));
--tainacan-heading-color: var(--theme-heading-color, var(--headingColor, rgba(44, 62, 80, 1)));
--tainacan-heading-color: var(--theme-heading-color, var(--theme-heading-color, rgba(44, 62, 80, 1)));
}
body:not(.tainacan-admin-page) .tainacan-modal-content {
@ -308,6 +325,72 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
}
/* Collection Items List */
body[class*=' post-type-archive-tnc_col_'] .hero-section[data-type="type-1"],
body[class*=' tax-tnc_'] .hero-section[data-type="type-1"],
body[data-prefix="tainacan-repository-items_archive"] .hero-section[data-type="type-1"],
body[data-prefix="tainacan-terms-items_archive"] .hero-section[data-type="type-1"] {
padding-top: var(--theme-content-vertical-spacing);
}
body[class*=' post-type-archive-tnc_col_'] .hero-section.has-thumbnail-enabled > [class*="ct-container"],
body[class*=' tax-tnc_'] .hero-section.has-thumbnail-enabled > [class*="ct-container"],
body[data-prefix="tainacan-repository-items_archive"] .hero-section.has-thumbnail-enabled > [class*="ct-container"],
body[data-prefix="tainacan-terms-items_archive"] .hero-section.has-thumbnail-enabled > [class*="ct-container"] {
display: block;
}
body[class*=' post-type-archive-tnc_col_'] .hero-section.has-thumbnail-enabled .page-title,
body[class*=' tax-tnc_'] .hero-section.has-thumbnail-enabled .page-title,
body[data-prefix="tainacan-repository-items_archive"] .hero-section.has-thumbnail-enabled .page-title,
body[data-prefix="tainacan-terms-items_archive"] .hero-section.has-thumbnail-enabled .page-title {
margin-top: 0px;
margin-bottom: 4px;
display: block;
clear: none;
}
body[class*=' post-type-archive-tnc_col_'] .hero-section.has-thumbnail-enabled .page-description,
body[class*=' post-type-archive-tnc_col_'] .hero-section.has-thumbnail-enabled .page-description p,
body[class*=' tax-tnc_'] .hero-section.has-thumbnail-enabled .page-description,
body[class*=' tax-tnc_'] .hero-section.has-thumbnail-enabled .page-description p,
body[data-prefix="tainacan-repository-items_archive"] .hero-section.has-thumbnail-enabled .page-description,
body[data-prefix="tainacan-repository-items_archive"] .hero-section.has-thumbnail-enabled .page-description p,
body[data-prefix="tainacan-terms-items_archive"] .hero-section.has-thumbnail-enabled .page-description,
body[data-prefix="tainacan-terms-items_archive"] .hero-section.has-thumbnail-enabled .page-description p {
display: block !important;
clear: none;
}
body[class*=' post-type-archive-tnc_col_'] .ct-title-label,
body[class*=' tax-tnc_'] .ct-title-label,
body[data-prefix="tainacan-repository-items_archive"] .ct-title-label,
body[data-prefix="tainacan-terms-items_archive"] .ct-title-label {
font-weight: normal;
}
body[class*=' post-type-archive-tnc_col_'] .ct-title-label::after,
body[class*=' tax-tnc_'] .ct-title-label::after,
body[data-prefix="tainacan-repository-items_archive"] .ct-title-label::after,
body[data-prefix="tainacan-terms-items_archive"] .ct-title-label::after {
content: ': ';
}
body[class*=' post-type-archive-tnc_col_'] .collection-thumbnail,
body[class*=' tax-tnc_'] .collection-thumbnail,
body[data-prefix="tainacan-repository-items_archive"] .collection-thumbnail,
body[data-prefix="tainacan-terms-items_archive"] .collection-thumbnail {
max-width: calc(var(--thumbnail-size, 20%) - 24px);
float: left;
margin-right: 24px;
}
body[class*=' post-type-archive-tnc_col_'] .collection-thumbnail img,
body[class*=' tax-tnc_'] .collection-thumbnail img,
body[data-prefix="tainacan-repository-items_archive"] .collection-thumbnail img,
body[data-prefix="tainacan-terms-items_archive"] .collection-thumbnail img {
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
}
.tainacan-collection-header {
display: flex;
padding: 36px 18px 28px 18px;
@ -317,12 +400,6 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
background-size: cover;
background-position: center;
background-repeat: no-repeat;
--headingColor: var(--tainacan-heading-color, rgba(44, 62, 80, 1));
--color: var(--tainacan-label-color, #454647);
--linkInitialColor: var(--tainacan-secondary, #3eaf7c);
--theme-heading-color: var(--tainacan-heading-color, rgba(44, 62, 80, 1));
--theme-text-color: var(--tainacan-label-color, #373839);
--theme-link-initial-color: var(--tainacan-secondary, #3eaf7c);
}
.tainacan-collection-header .tainacan-collection-header__box {
@ -330,35 +407,8 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
padding: 20px;
}
.tainacan-collection-header .tainacan-collection-header__box .page-title {
.tainacan-collection-header .tainacan-collection-header__box > .collection-thumbnail + * {
margin-top: 0px;
margin-bottom: 4px;
display: block;
clear: none;
}
.tainacan-collection-header .tainacan-collection-header__box .ct-title-label {
font-weight: normal;
}
.tainacan-collection-header .tainacan-collection-header__box .ct-title-label::after {
content: ': ';
}
.tainacan-collection-header .tainacan-collection-header__box .collection-thumbnail {
max-width: calc(var(--thumbnail-size, 20%) - 24px);
float: left;
margin-right: 24px;
}
.tainacan-collection-header .tainacan-collection-header__box .collection-thumbnail img {
border-radius: var(--theme-border-radius, var(--borderRadius, 3px));
}
.tainacan-collection-header .tainacan-collection-header__box .page-description,
.tainacan-collection-header .tainacan-collection-header__box .page-description p {
display: block !important;
clear: none;
}
.page.has-page-header-style-boxed .hero-section {
@ -379,6 +429,8 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
.page.has-page-header-style-boxed .search-control {
background-color: var(--tainacan-item-background-color, white);
box-shadow: var(--theme-box-shadow, var(--boxShadow, 0px 12px 18px -6px rgba(34, 56, 101, 0.04)));
padding-left: 20px !important;
padding-right: 20px !important;
}
/* Single Item Page */
@ -513,7 +565,7 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
break-inside: avoid;
}
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata div:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum) {
.tainacan-item-single-page .tainacan-item-single .tainacan-item-section__metadata div:not(.tainacan-content-embed__wrapper):not(.tainacan-compound-group):not(.tainacan-compound-metadatum):not(.tainacan-relationship-metadatum-header) {
display: inline-block;
}
@ -1002,6 +1054,11 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
padding-bottom: calc(var(--content-vertical-spacing)/2);
}
.tainacan-gallery-above-title:empty {
display: none;
visibility: hidden;
}
.tainacan-gallery-above-title .tainacan-media-component {
--tainacan-media-background: var(--tainacan-media-background-color, var(--theme-palette-color-7, var(--paletteColor7)));
--swiper-navigation-color: var(--tainacan-media-accent-color, var(--theme-palette-color-1, var(--paletteColor1)));
@ -1014,6 +1071,165 @@ body:not(.tainacan-admin-page) .tainacan-modal-content .modal-card-body {
margin: 0 auto;
}
/* Media gallery with minimum spacing */
.tainacan-media-component-wrapper-spacing--minimum {
--theme-border-radius: 0px;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component {
gap: 0px;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main ul.swiper-wrapper {
max-height: var(--tainacan-media-main-carousel-height, 60vh);
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main li.swiper-slide {
padding: 0;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content {
text-align: center;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content a:first-of-type,
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content p:first-of-type {
padding: 0;
flex-grow: 1;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content img {
width: auto;
height: 100%;
max-width: unset;
object-fit: cover;
object-position: center;
}
@media (min-aspect-ratio: 1 / 1) {
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content img {
width: 100%;
height: auto;
}
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content video,
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content audio {
margin: calc( 1.5 * var(--swiper-navigation-size));
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main li.swiper-slide .swiper-slide-metadata {
background-color: var(--tainacan-media-background-color, var(--theme-palette-color-7, var(--paletteColor7)));
border-radius: 2px;
padding: 0.5rem 1rem;
margin: 1rem;
bottom: 0;
position: absolute;
z-index: 99;
left: calc( 1.5 * var(--swiper-navigation-size));
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-button-prev,
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main .swiper-button-next {
border-radius: 100em;
padding: 1.5em;
width: var(--swiper-navigation-size);
background: rgba(255, 255, 255, 0);
transition: background-color 0.2s ease;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main:hover .swiper-button-prev,
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main:hover .swiper-button-next, .tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main:focus .swiper-button-prev,
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-main:focus .swiper-button-next {
background: var(--tainacan-media-background-color, var(--theme-palette-color-7, var(--paletteColor7)));
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-thumbs ul.swiper-wrapper {
max-width: 100%;
margin: 0;
}
.tainacan-media-component-wrapper-spacing--minimum .tainacan-media-component .tainacan-media-component__swiper-thumbs li.swiper-slide {
max-width: var(--tainacan-media-thumbs-carousel-item-size, 136px);
}
/* Media gallery with thumbnails to the left or right */
@media only screen and (min-width: 961px) {
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component {
display: flex;
flex-direction: row;
gap: 0px;
max-height: var(--tainacan-media-main-carousel-height, 60vh);
}
}
@media only screen and (min-width: 961px) and (min-aspect-ratio: 4 / 3) {
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content img,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-main .swiper-slide-content img {
width: 100%;
height: auto;
}
}
@media only screen and (min-width: 961px) {
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-thumbs,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-thumbs {
flex-basis: var(--tainacan-media-thumbs-carousel-item-size, 140px);
flex-shrink: 0;
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-wrapper,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-wrapper {
max-height: var(--tainacan-media-main-carousel-height, 60vh);
width: 100%;
max-width: 100%;
margin-left: 0px;
margin-right: 0px;
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-wrapper .swiper-slide,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-wrapper .swiper-slide {
height: auto;
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-wrapper .swiper-slide img,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-wrapper .swiper-slide img {
margin: 0;
border-bottom: none;
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-start-border,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-start-border {
background-image: linear-gradient(180deg, var(--tainacan-media-background, #ffffff) 25%, transparent);
width: 100%;
height: calc(32px + var(--swiper-navigation-size, 44px));
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-end-border,
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component .tainacan-media-component__swiper-thumbs .swiper-end-border {
background-image: linear-gradient(0deg, var(--tainacan-media-background, #ffffff) 25%, transparent);
width: 100%;
height: calc(32px + var(--swiper-navigation-size, 44px));
bottom: 0px;
top: unset;
}
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component__swiper-thumbs {
margin-right: 0px;
}
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component__swiper-main {
margin-left: 0px;
}
.tainacan-media-component-wrapper-thumbnails-at--left .tainacan-media-component {
flex-direction: row-reverse;
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component__swiper-thumbs {
margin-left: 0px;
}
.tainacan-media-component-wrapper-thumbnails-at--right .tainacan-media-component__swiper-main {
margin-right: 0px;
}
}
#tainacan-taxonomy-terms-list-form {
display: flex;
flex-wrap: nowrap;

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

View File

@ -2,9 +2,11 @@
$prefix = blocksy_manager()->screen->get_prefix();
$page_hero_section_style = get_theme_mod($prefix . '_hero_section' , get_theme_mod($prefix . '_page_header_background_style', 'boxed'));
$page_container_classes = 'page type-page hentry singular';
$page_container_classes = $page_container_classes . ( get_theme_mod($prefix . '_filters_panel_background_style', 'boxed') == 'boxed' ? ' has-filters-panel-style-boxed' : '' );
$page_container_classes = $page_container_classes . ( get_theme_mod($prefix . '_page_header_background_style', 'boxed') == 'boxed' ? ' has-page-header-style-boxed' : '' );
$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;
$filters_panel_size = get_theme_mod($prefix . '_filters_panel_size', '20%');
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
@ -42,143 +44,182 @@ $page_container_style .= '--tainacan-input-color:' . $text_color_palette['color5
$page_container_style .= 'background-color: var(--tainacan-background-color, #f8f9fb);';
global $post;
$hero_elements = blocksy_akg_or_customizer(
'hero_elements',
[ 'prefix' => $prefix ],
[
[
'id' => 'custom_thumbnail',
'enabled' => true,
],
[
'id' => 'custom_title',
'enabled' => true,
'heading_tag' => 'h1'
],
[
'id' => 'breadcrumbs',
'enabled' => true
],
[
'id' => 'custom_description',
'enabled' => true,
'description_visibility' => [
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
]
]
);
$elements = [];
foreach ($hero_elements as $index => $single_hero_element) {
if ($single_hero_element['id'] == 'custom_thumbnail' && $single_hero_element['enabled'] && has_post_thumbnail( tainacan_get_collection_id() )) {
$thumbnail_id = get_post_thumbnail_id( $post->ID );
$alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
$elements[] = '
<div class="collection-thumbnail">
<img src="' . get_the_post_thumbnail_url( tainacan_get_collection_id() ) . '" alt="' . esc_attr($alt) . '">
</div>
';
add_filter( 'blocksy:hero:wrapper-attr', function($attrs) {
$attrs['class'] .= ' has-thumbnail-enabled';
return $attrs;
});
} else if ($single_hero_element['id'] == 'custom_title' && $single_hero_element['enabled']) {
$title = '';
$has_category_label = blocksy_akg(
'has_category_label',
$single_hero_element,
'no'
);
if ( !empty(get_the_archive_title()) ) {
$title = wp_strip_all_tags(get_the_archive_title());
$divider_symbol = ':';
if (strpos($title, '') !== false) {
$divider_symbol = '';
}
if (strpos($title, $divider_symbol) !== false) {
$title_pieces = explode($divider_symbol, $title, 2);
$title = '<span class="ct-title-label">' . $title_pieces[0] . '</span>' . $title_pieces[1];
if ($has_category_label !== 'yes') {
$title = $title_pieces[1];
}
}
}
if ( !empty($title) ) {
$title = blocksy_html_tag(
blocksy_akg('heading_tag', $single_hero_element, 'h1'),
array_merge([
'class' => 'page-title',
], blocksy_schema_org_definitions('headline', [
'array' => true
])),
$title
);
}
do_action('blocksy:hero:title:before');
$elements[] = $title;
do_action('blocksy:hero:title:after');
} else if ($single_hero_element['id'] == 'custom_description' && $single_hero_element['enabled'] && get_the_archive_description()) {
$description_class = 'page-description';
$description_class .= ' ' . blocksy_visibility_classes(
blocksy_akg(
'description_visibility',
$single_hero_element,
[
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
)
);
$elements[] = '<div class="' . $description_class . '">' . get_the_archive_description() . '</div>';
} else if ($single_hero_element['id'] == 'breadcrumbs' && $single_hero_element['enabled']) {
if ( class_exists('Blocksy_Breadcrumbs_Builder') )
$breadcrumbs_builder = new Blocksy_Breadcrumbs_Builder();
else
$breadcrumbs_builder = new \Blocksy\BreadcrumbsBuilder();
$elements[] = $breadcrumbs_builder->render();
}
}
$html_elements = '';
foreach ($elements as $element) {
$html_elements .= $element;
}
get_header();
add_filter('blocksy:hero:custom-source', function() use($prefix) {
return [
'strategy' => 'customizer',
'prefix' => $prefix
];
});
if ( $page_hero_section_style === 'type-2' ) {
if ( blocksy_akg_or_customizer('page_title_bg_type', blocksy_get_page_title_source()) === 'featured_image' ) {
add_filter( 'blocksy:hero:type-2:image:attachment_id', function() {
$collection = tainacan_get_collection();
return $collection->get_header_image_id();
}, 10 );
}
echo blocksy_output_hero_section([
'type' => $page_hero_section_style,
'source' => false,
'elements' => $html_elements
]);
}
?>
<?php get_header(); ?>
<article class="<?php echo esc_attr($page_container_classes) ?>" style="<?php echo esc_attr($page_container_style) ?>">
<header
class="tainacan-collection-header"
style="background-image:
<?php if ( get_header_image() ) {
echo('linear-gradient(to bottom, rgba(255, 255, 255, ' . (get_theme_mod($prefix . '_page_header_background_style', 'boxed') == 'boxed' ? '0.3' : '0.8') . '), var(--tainacan-background-color, var(--background-color, #f8f9fb))), url(' . esc_url(get_header_image()) . ')');
} else {
echo '';
} ?>"
>
<div class="tainacan-collection-header__box">
<?php
$hero_elements = blocksy_akg_or_customizer(
'hero_elements',
[ 'prefix' => $prefix ],
[
[
'id' => 'custom_thumbnail',
'enabled' => true,
],
[
'id' => 'custom_title',
'enabled' => true,
'heading_tag' => 'h1'
],
[
'id' => 'breadcrumbs',
'enabled' => true
],
[
'id' => 'custom_description',
'enabled' => true,
'description_visibility' => [
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
]
]
);
<?php
if ( $page_hero_section_style === 'type-1' ) {
echo blocksy_output_hero_section([
'type' => $page_hero_section_style,
'source' => false,
'elements' => $html_elements
]);
}
if ( get_theme_mod($prefix . '_hero_enabled', 'yes') === 'yes' && $page_hero_section_style !== 'type-1' && $page_hero_section_style !== 'type-2' ): ?>
<header
class="tainacan-collection-header entry-header"
style="background-image:
<?php if ( get_header_image() )
echo('linear-gradient(to bottom, rgba(255, 255, 255, ' . ($page_hero_section_style == 'boxed' ? '0.3' : '0.8') . '), var(--tainacan-background-color, var(--background-color, #f8f9fb))), url(' . esc_url(get_header_image()) . ')');
else
echo 'none';
?>"
>
<div class="tainacan-collection-header__box">
<?php echo $html_elements; ?>
</div>
</header>
<?php endif; ?>
$elements = [];
foreach ($hero_elements as $index => $single_hero_element) {
if ($single_hero_element['id'] == 'custom_thumbnail' && $single_hero_element['enabled'] && has_post_thumbnail( tainacan_get_collection_id() )) {
$thumbnail_id = get_post_thumbnail_id( $post->ID );
$alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true);
$elements[] = '
<div class="collection-thumbnail">
<img src="' . get_the_post_thumbnail_url( tainacan_get_collection_id() ) . '" alt="' . esc_attr($alt) . '">
</div>
';
} else if ($single_hero_element['id'] == 'custom_title' && $single_hero_element['enabled']) {
$title = '';
$has_category_label = blocksy_akg(
'has_category_label',
$single_hero_element,
'yes'
);
if (! empty(get_the_archive_title())) {
$title = wp_strip_all_tags(get_the_archive_title());
$divider_symbol = ':';
if (strpos($title, '') !== false) {
$divider_symbol = '';
}
if (strpos($title, $divider_symbol) !== false) {
$title_pieces = explode($divider_symbol, $title, 2);
$title = '<span class="ct-title-label">' . $title_pieces[0] . '</span>' . $title_pieces[1];
if ($has_category_label !== 'yes') {
$title = $title_pieces[1];
}
}
}
if (! empty($title)) {
$title = blocksy_html_tag(
blocksy_akg('heading_tag', $single_hero_element, 'h1'),
array_merge([
'class' => 'page-title',
], blocksy_schema_org_definitions('headline', [
'array' => true
])),
$title
);
}
do_action('blocksy:hero:title:before');
$elements[] = $title;
do_action('blocksy:hero:title:after');
} else if ($single_hero_element['id'] == 'custom_description' && $single_hero_element['enabled'] && get_the_archive_description()) {
$description_class = 'page-description';
$description_class .= ' ' . blocksy_visibility_classes(
blocksy_akg(
'description_visibility',
$single_hero_element,
[
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
)
);
$elements[] = '<div class="' . $description_class . '">' . get_the_archive_description() . '</div>';
} else if ($single_hero_element['id'] == 'breadcrumbs' && $single_hero_element['enabled']) {
$breadcrumbs_builder = new Blocksy_Breadcrumbs_Builder();
$elements[] = $breadcrumbs_builder->render();
}
}
$html_elements = '';
foreach ($elements as $element) {
$html_elements .= $element;
}
echo blocksy_output_hero_section([
'type' => 'type-1',
'source' => false,
'elements' => $html_elements
]);
?>
</div>
</header>
<div class="entry-content">
<div class="entry-content <?php echo get_theme_mod($prefix . '_container-width', 'fluid') !== 'fluid' ? 'ct-container' : ''; ?>">
<?php
tainacan_the_faceted_search([
'hide_filters' => get_theme_mod($prefix . '_display_filters_panel', 'yes') == 'no',
@ -198,5 +239,7 @@ global $post;
]);
?>
</div>
</article>
<?php get_footer(); ?>

View File

@ -3,9 +3,11 @@
$repository_items_prefix = 'tainacan-repository-items_archive';
$_GET['blocksy_prefix'] = $repository_items_prefix;
$page_hero_section_style = get_theme_mod($repository_items_prefix . '_hero_section' , get_theme_mod($repository_items_prefix . '_page_header_background_style', 'boxed'));
$page_container_classes = 'page type-page hentry singular';
$page_container_classes = $page_container_classes . ( get_theme_mod($repository_items_prefix . '_filters_panel_background_style', 'boxed') == 'boxed' ? ' has-filters-panel-style-boxed' : '' );
$page_container_classes = $page_container_classes . ( get_theme_mod($repository_items_prefix . '_page_header_background_style', 'boxed') == 'boxed' ? ' has-page-header-style-boxed' : '' );
$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;
$filters_panel_size = get_theme_mod($repository_items_prefix . '_filters_panel_size', '20%');
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
@ -42,64 +44,98 @@ $page_container_style .= '--tainacan-input-color:' . $text_color_palette['color5
$page_container_style .= 'background-color: var(--tainacan-background-color, #f8f9fb);';
$hero_elements = get_theme_mod(
$repository_items_prefix . '_hero_elements',
[
[
'id' => 'custom_title',
'enabled' => true,
'heading_tag' => 'h1'
],
[
'id' => 'breadcrumbs',
'enabled' => false
],
]
);
$elements = [];
foreach ($hero_elements as $index => $single_hero_element) {
if ( isset($single_hero_element['id']) && $single_hero_element['id'] == 'custom_title' && $single_hero_element['enabled']) {
$title = wp_strip_all_tags(get_the_archive_title());
if (! empty($title)) {
$title = blocksy_html_tag(
blocksy_akg('heading_tag', $single_hero_element, 'h1'),
array_merge([
'class' => 'page-title',
], blocksy_schema_org_definitions('headline', [
'array' => true
])),
$title
);
}
do_action('blocksy:hero:title:before');
$elements[] = $title;
do_action('blocksy:hero:title:after');
} else if ( isset($single_hero_element['id']) && $single_hero_element['id'] == 'breadcrumbs' && $single_hero_element['enabled']) {
if ( class_exists('Blocksy_Breadcrumbs_Builder') )
$breadcrumbs_builder = new Blocksy_Breadcrumbs_Builder();
else
$breadcrumbs_builder = new \Blocksy\BreadcrumbsBuilder();
$elements[] = $breadcrumbs_builder->render();
}
}
$html_elements = '';
foreach ($elements as $element) {
$html_elements .= $element;
}
add_filter('blocksy:general:body-attr', function($attrs) {
$attrs['data-prefix'] = 'tainacan-repository-items_archive';
return $attrs;
}, 10, 1);
add_filter('blocksy:hero:custom-source', function() {
return [
'strategy' => 'customizer',
'prefix' => 'tainacan-repository-items_archive'
];
});
get_header();
if ( $page_hero_section_style === 'type-2' ) {
echo blocksy_output_hero_section([
'type' => $page_hero_section_style,
'source' => false,
'elements' => $html_elements
]);
}
?>
<?php get_header(); ?>
<article class="<?php echo esc_attr($page_container_classes) ?>" style="<?php echo esc_attr($page_container_style) ?>">
<header class="tainacan-collection-header tainacan-collection-header--repository-page">
<div class="tainacan-collection-header__box">
<?php
$hero_elements = get_theme_mod(
$repository_items_prefix . '_hero_elements',
[
[
'id' => 'custom_title',
'enabled' => true,
'heading_tag' => 'h1'
]
]
);
<?php
if ( $page_hero_section_style === 'type-1' ) {
echo blocksy_output_hero_section([
'type' => $page_hero_section_style,
'source' => false,
'elements' => $html_elements
]);
}
$elements = [];
foreach ($hero_elements as $index => $single_hero_element) {
if ($single_hero_element['id'] == 'custom_title' && $single_hero_element['enabled']) {
$title = '';
if ( get_theme_mod($repository_items_prefix . '_hero_enabled', 'yes') === 'yes' && $page_hero_section_style !== 'type-1' && $page_hero_section_style !== 'type-2' ): ?>
<header class="tainacan-collection-header tainacan-collection-header--repository-page entry-header">
<div class="tainacan-collection-header__box">
<?php echo $html_elements; ?>
</div>
</header>
<?php endif; ?>
if (! empty($title)) {
$title = blocksy_html_tag(
blocksy_akg('heading_tag', $single_hero_element, 'h1'),
array_merge([
'class' => 'page-title',
], blocksy_schema_org_definitions('headline', [
'array' => true
])),
$title
);
}
do_action('blocksy:hero:title:before');
$elements[] = $title;
do_action('blocksy:hero:title:after');
}
}
$html_elements = '';
foreach ($elements as $element) {
$html_elements .= $element;
}
echo blocksy_output_hero_section([
'type' => 'type-1',
'source' => false,
'elements' => $html_elements
]);
?>
</div>
</header>
<div class="entry-content">
<div class="entry-content <?php echo get_theme_mod($repository_items_prefix . '_container-width', 'fluid') !== 'fluid' ? 'ct-container' : ''; ?>">
<?php
tainacan_the_faceted_search([
'hide_filters' => get_theme_mod($repository_items_prefix . '_display_filters_panel', 'yes') == 'no',

View File

@ -1,16 +1,18 @@
<?php
$terms_items_prefix = 'tainacan-terms-items_archive';
$_GET['blocksy_prefix'] = $terms_items_prefix;
$term_items_prefix = 'tainacan-terms-items_archive';
$_GET['blocksy_prefix'] = $term_items_prefix;
$page_hero_section_style = get_theme_mod($term_items_prefix . '_hero_section' , get_theme_mod($term_items_prefix . '_page_header_background_style', 'boxed'));
$page_container_classes = 'page type-page hentry singular';
$page_container_classes = $page_container_classes . ( get_theme_mod($terms_items_prefix . '_filters_panel_background_style', 'boxed') == 'boxed' ? ' has-filters-panel-style-boxed' : '' );
$page_container_classes = $page_container_classes . ( get_theme_mod($terms_items_prefix . '_page_header_background_style', 'boxed') == 'boxed' ? ' has-page-header-style-boxed' : '' );
$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;
$filters_panel_size = get_theme_mod($terms_items_prefix . '_filters_panel_size', '20%');
$filters_panel_size = get_theme_mod($term_items_prefix . '_filters_panel_size', '20%');
$page_container_style = '--tainacan-filter-menu-width-theme:' . $filters_panel_size . ';';
$background_color_palette = get_theme_mod($terms_items_prefix . '_items_list_background_palette',
$background_color_palette = get_theme_mod($term_items_prefix . '_items_list_background_palette',
[
'color1' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
@ -26,7 +28,7 @@ $page_container_style .= '--tainacan-input-background-color:' . $background_colo
$page_container_style .= '--tainacan-primary:' . $background_color_palette['color5']['color'] . ';';
$page_container_style .= '--tainacan-input-border-color:' . $background_color_palette['color6']['color'] . ';';
$text_color_palette = get_theme_mod($terms_items_prefix . '_items_list_text_palette',
$text_color_palette = get_theme_mod($term_items_prefix . '_items_list_text_palette',
[
'color1' => [ 'color' => 'var(--theme-palette-color-1, var(--paletterColor1, #3eaf7c))' ],
'color2' => [ 'color' => 'var(--theme-heading-color, var(--headingColor, rgba(44, 62, 80, 1)))' ],
@ -49,149 +51,188 @@ $current_term = \Tainacan\Repositories\Terms::get_instance()->fetch($current_ter
$image = $current_term->get_header_image_id();
$thumbnail_src = wp_get_attachment_image_src($image, 'full');
$hero_elements = get_theme_mod(
$term_items_prefix . '_hero_elements',
[
[
'id' => 'custom_thumbnail',
'enabled' => true,
],
[
'id' => 'custom_title',
'enabled' => true,
'heading_tag' => 'h1'
],
[
'id' => 'breadcrumbs',
'enabled' => true
],
[
'id' => 'custom_description',
'enabled' => true,
'description_visibility' => [
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
]
]
);
$elements = [];
foreach ($hero_elements as $index => $single_hero_element) {
if ($single_hero_element['id'] == 'custom_thumbnail' && $single_hero_element['enabled'] && $thumbnail_src && $thumbnail_src[0]) {
$elements[] = '
<div class="collection-thumbnail">
<img src="' . $thumbnail_src[0] . '" alt="' . __('Term thumbnail', 'tainacan-blocksy') . '">
</div>
';
add_filter( 'blocksy:hero:wrapper-attr', function($attrs) {
$attrs['class'] .= ' has-thumbnail-enabled';
return $attrs;
});
} else if ($single_hero_element['id'] == 'custom_title' && $single_hero_element['enabled']) {
$title = '';
$has_category_label = blocksy_akg(
'has_category_label',
$single_hero_element,
'yes'
);
if ( !empty(get_the_archive_title()) ) {
$title = wp_strip_all_tags(get_the_archive_title());
$divider_symbol = ':';
if (strpos($title, '') !== false) {
$divider_symbol = '';
}
if (strpos($title, $divider_symbol) !== false) {
$title_pieces = explode($divider_symbol, $title, 2);
$title = '<span class="ct-title-label">' . $title_pieces[0] . '</span>' . $title_pieces[1];
if ($has_category_label !== 'yes') {
$title = $title_pieces[1];
}
}
}
if ( !empty($title) ) {
$title = blocksy_html_tag(
blocksy_akg('heading_tag', $single_hero_element, 'h1'),
array_merge([
'class' => 'page-title',
], blocksy_schema_org_definitions('headline', [
'array' => true
])),
$title
);
}
do_action('blocksy:hero:title:before');
$elements[] = $title;
do_action('blocksy:hero:title:after');
} else if ($single_hero_element['id'] == 'custom_description' && $single_hero_element['enabled'] && get_the_archive_description()) {
$description_class = 'page-description';
$description_class .= ' ' . blocksy_visibility_classes(
blocksy_akg(
'description_visibility',
$single_hero_element,
[
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
)
);
$elements[] = '<div class="' . $description_class . '">' . get_the_archive_description() . '</div>';
} else if ($single_hero_element['id'] == 'breadcrumbs' && $single_hero_element['enabled']) {
if ( class_exists('Blocksy_Breadcrumbs_Builder') )
$breadcrumbs_builder = new Blocksy_Breadcrumbs_Builder();
else
$breadcrumbs_builder = new \Blocksy\BreadcrumbsBuilder();
$elements[] = $breadcrumbs_builder->render();
}
}
$html_elements = '';
foreach ($elements as $element) {
$html_elements .= $element;
}
add_filter('blocksy:general:body-attr', function($attrs) {
$attrs['data-prefix'] = 'tainacan-terms-items_archive';
return $attrs;
}, 10, 1);
add_filter('blocksy:hero:custom-source', function() {
return [
'strategy' => 'customizer',
'prefix' => 'tainacan-terms-items_archive'
];
});
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' ) {
add_filter( 'blocksy:hero:type-2:image:attachment_id', function() use($image) {
return $image;
}, 10 );
}
echo blocksy_output_hero_section([
'type' => $page_hero_section_style,
'source' => false,
'elements' => $html_elements
]);
}
?>
<?php get_header(); ?>
<article class="<?php echo esc_attr($page_container_classes) ?>" style="<?php echo esc_attr($page_container_style) ?>">
<?php
if ( $page_hero_section_style === 'type-1' ) {
echo blocksy_output_hero_section([
'type' => $page_hero_section_style,
'source' => false,
'elements' => $html_elements
]);
}
<header class="tainacan-collection-header tainacan-collection-header--term-page">
<div class="tainacan-collection-header__box">
<?php
if ( get_theme_mod($term_items_prefix . '_hero_enabled', 'yes') === 'yes' && $page_hero_section_style !== 'type-1' && $page_hero_section_style !== 'type-2' ): ?>
<header class="tainacan-collection-header tainacan-collection-header--term-page">
<div class="tainacan-collection-header__box">
<?php echo $html_elements; ?>
</div>
</header>
<?php endif; ?>
$hero_elements = get_theme_mod(
$terms_items_prefix . '_hero_elements',
[
[
'id' => 'custom_thumbnail',
'enabled' => true,
],
[
'id' => 'custom_title',
'enabled' => true,
'heading_tag' => 'h1'
],
[
'id' => 'breadcrumbs',
'enabled' => true
],
[
'id' => 'custom_description',
'enabled' => true,
'description_visibility' => [
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
]
]
);
$elements = [];
foreach ($hero_elements as $index => $single_hero_element) {
if ($single_hero_element['id'] == 'custom_thumbnail' && $single_hero_element['enabled'] && $thumbnail_src && $thumbnail_src[0]) {
$elements[] = '
<div class="collection-thumbnail">
<img src="' . $thumbnail_src[0] . '" alt="' . __('Term thumbnail', 'tainacan-blocksy') . '">
</div>
';
} else if ($single_hero_element['id'] == 'custom_title' && $single_hero_element['enabled']) {
$title = '';
$has_category_label = blocksy_akg(
'has_category_label',
$single_hero_element,
'yes'
);
if (! empty(get_the_archive_title())) {
$title = wp_strip_all_tags(get_the_archive_title());
$divider_symbol = ':';
if (strpos($title, '') !== false) {
$divider_symbol = '';
}
if (strpos($title, $divider_symbol) !== false) {
$title_pieces = explode($divider_symbol, $title, 2);
$title = '<span class="ct-title-label">' . $title_pieces[0] . '</span>' . $title_pieces[1];
if ($has_category_label !== 'yes') {
$title = $title_pieces[1];
}
}
}
if (! empty($title)) {
$title = blocksy_html_tag(
blocksy_akg('heading_tag', $single_hero_element, 'h1'),
array_merge([
'class' => 'page-title',
], blocksy_schema_org_definitions('headline', [
'array' => true
])),
$title
);
}
do_action('blocksy:hero:title:before');
$elements[] = $title;
do_action('blocksy:hero:title:after');
} else if ($single_hero_element['id'] == 'custom_description' && $single_hero_element['enabled'] && get_the_archive_description()) {
$description_class = 'page-description';
$description_class .= ' ' . blocksy_visibility_classes(
blocksy_akg(
'description_visibility',
$single_hero_element,
[
'desktop' => true,
'tablet' => true,
'mobile' => false,
]
)
);
$elements[] = '<div class="' . $description_class . '">' . get_the_archive_description() . '</div>';
} else if ($single_hero_element['id'] == 'breadcrumbs' && $single_hero_element['enabled']) {
$breadcrumbs_builder = new Blocksy_Breadcrumbs_Builder();
$elements[] = $breadcrumbs_builder->render();
}
}
$html_elements = '';
foreach ($elements as $element) {
$html_elements .= $element;
}
echo blocksy_output_hero_section([
'type' => 'type-1',
'source' => false,
'elements' => $html_elements
]);
?>
</div>
</header>
<div class="entry-content">
<div class="entry-content <?php echo get_theme_mod($term_items_prefix . '_container-width', 'fluid') !== 'fluid' ? 'ct-container' : ''; ?>">
<?php
tainacan_the_faceted_search([
'hide_filters' => get_theme_mod($terms_items_prefix . '_display_filters_panel', 'yes') == 'no',
'start_with_filters_hidden' => get_theme_mod($terms_items_prefix . '_start_with_filters_hidden', 'no') == 'yes',
'hide_hide_filters_button' => get_theme_mod($terms_items_prefix . '_show_hide_filters_button', 'yes') == 'no',
'show_filters_button_inside_search_control' => get_theme_mod($terms_items_prefix . '_show_filters_button_inside_search_control', 'yes') == 'yes',
'filters_as_modal' => get_theme_mod($terms_items_prefix . '_filters_as_modal', 'no') == 'yes',
'hide_search' => get_theme_mod($terms_items_prefix . '_show_search', 'yes') == 'no',
'hide_advanced_search' => get_theme_mod($terms_items_prefix . '_show_advanced_search', 'yes') == 'no',
'hide_sorting_area' => get_theme_mod($terms_items_prefix . '_show_sorting_area', 'yes') == 'no',
'hide_sort_by_button' => get_theme_mod($terms_items_prefix . '_show_sort_by_button', 'yes') == 'no',
'hide_displayed_metadata_dropdown' => get_theme_mod($terms_items_prefix . '_show_displayed_metadata_dropdown', 'yes') == 'no',
'show_inline_view_mode_options' => get_theme_mod($terms_items_prefix . '_show_inline_view_mode_options', 'no') == 'yes',
'show_fullscreen_with_view_modes' => get_theme_mod($terms_items_prefix . '_show_fullscreen_with_view_modes', 'no') == 'yes',
'hide_exposers_button' => get_theme_mod($terms_items_prefix . '_show_exposers_button', 'yes') == 'no',
'hide_pagination_area' => get_theme_mod($terms_items_prefix . '_has_pagination', 'yes') == 'no',
'default_view_mode' => get_theme_mod($terms_items_prefix . '_default_view_mode', 'masonry')
'hide_filters' => get_theme_mod($term_items_prefix . '_display_filters_panel', 'yes') == 'no',
'start_with_filters_hidden' => get_theme_mod($term_items_prefix . '_start_with_filters_hidden', 'no') == 'yes',
'hide_hide_filters_button' => get_theme_mod($term_items_prefix . '_show_hide_filters_button', 'yes') == 'no',
'show_filters_button_inside_search_control' => get_theme_mod($term_items_prefix . '_show_filters_button_inside_search_control', 'yes') == 'yes',
'filters_as_modal' => get_theme_mod($term_items_prefix . '_filters_as_modal', 'no') == 'yes',
'hide_search' => get_theme_mod($term_items_prefix . '_show_search', 'yes') == 'no',
'hide_advanced_search' => get_theme_mod($term_items_prefix . '_show_advanced_search', 'yes') == 'no',
'hide_sorting_area' => get_theme_mod($term_items_prefix . '_show_sorting_area', 'yes') == 'no',
'hide_sort_by_button' => get_theme_mod($term_items_prefix . '_show_sort_by_button', 'yes') == 'no',
'hide_displayed_metadata_dropdown' => get_theme_mod($term_items_prefix . '_show_displayed_metadata_dropdown', 'yes') == 'no',
'show_inline_view_mode_options' => get_theme_mod($term_items_prefix . '_show_inline_view_mode_options', 'no') == 'yes',
'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')
]);
?>
</div>

View File

@ -1,9 +1,12 @@
<?php
$attachments = tainacan_get_the_attachments();
$prefix = blocksy_manager()->screen->get_prefix();
$page_structure_type = get_theme_mod( $prefix . '_page_structure_type', 'type-dam');
// Galley mode is a shortname for when documents and attachments are displayed merged in the same list
$is_gallery_mode = get_theme_mod( $prefix . '_document_attachments_structure', 'gallery-type-1' ) == 'gallery-type-2';
$gallery_position = get_theme_mod( $prefix . '_document_attachments_position', 'below' );
$gallery_spacing = get_theme_mod( $prefix . '_document_attachments_spacing', 'default');
$hide_file_name = get_theme_mod( $prefix . '_hide_files_name', 'no') == 'yes';
$hide_file_name_main = get_theme_mod( $prefix . '_hide_files_name_main', 'yes') == 'yes';
$hide_file_caption_main = get_theme_mod( $prefix . '_hide_files_caption_main', 'yes') == 'yes';
@ -15,17 +18,44 @@
$hide_file_description_lightbox = get_theme_mod( $prefix . '_hide_files_description_lightbox', 'no') == 'yes';
$has_light_dark_color_scheme = get_theme_mod( $prefix . '_gallery_color_scheme', 'dark' ) == 'light';
if ( $is_gallery_mode && $gallery_position !== 'below' ) {
add_filter( 'tainacan-swiper-thumbs-options', function($options) {
return array_merge(
$options,
array(
'breakpoints' => array(
'960' => array(
'direction' => 'vertical'
)
)
)
);
}, 10 , 1);
}
if ( $gallery_spacing === 'minimum' ) {
add_filter( 'tainacan-swiper-thumbs-options', function($options) {
return array_merge(
$options,
array(
'spaceBetween' => 0
)
);
}, 9 , 1);
}
global $post;
if ( function_exists('tainacan_the_media_component') && ( !empty( $attachments ) || ( $is_gallery_mode && tainacan_has_document() ) ) ) {
?>
<section class="tainacan-item-section tainacan-item-section--<?php echo ((!$is_gallery_mode ? 'attachments' : 'gallery')) ?>">
<?php if ( (get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes') && (!$is_gallery_mode) && get_theme_mod($prefix . '_section_attachments_label', __( 'Attachments', 'tainacan-blocksy' )) != '' ) : ?>
<section class="tainacan-item-section tainacan-item-section--<?php echo ( !$is_gallery_mode ? 'attachments' : ( 'gallery tainacan-media-component-wrapper-thumbnails-at--' . $gallery_position . ' tainacan-media-component-wrapper-spacing--' . $gallery_spacing) ) ?>">
<?php if ( $page_structure_type !== 'type-gtm' && (get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes') && (!$is_gallery_mode) && get_theme_mod($prefix . '_section_attachments_label', __( 'Attachments', 'tainacan-blocksy' )) != '' ) : ?>
<h2 class="tainacan-single-item-section" id="tainacan-item-attachments-label">
<?php echo esc_html( get_theme_mod($prefix . '_section_attachments_label', __( 'Attachments', 'tainacan-blocksy' ) ) ); ?>
</h2>
<?php endif; ?>
<?php if ( (get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes') && ($is_gallery_mode) && get_theme_mod($prefix . '_section_documents_label', __( 'Documents', 'tainacan-blocksy' )) != '') : ?>
<?php if ( $page_structure_type !== 'type-gtm' && (get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes') && ($is_gallery_mode) && get_theme_mod($prefix . '_section_documents_label', __( 'Documents', 'tainacan-blocksy' )) != '') : ?>
<h2 class="tainacan-single-item-section" id="tainacan-item-documents-label">
<?php echo esc_html( get_theme_mod($prefix . '_section_documents_label', __( 'Documents', 'tainacan-blocksy' )) ); ?>
</h2>

View File

@ -1,8 +1,10 @@
<?php
$prefix = blocksy_manager()->screen->get_prefix();
$page_structure_type = get_theme_mod( $prefix . '_page_structure_type', 'type-dam');
// Galley mode is a shortname for when documents and attachments are displayed merged in the same list
$is_gallery_mode = get_theme_mod( $prefix . '_document_attachments_structure', 'gallery-type-1' ) == 'gallery-type-2';
$gallery_spacing = get_theme_mod( $prefix . '_document_attachments_spacing', 'default');
$hide_file_name = get_theme_mod( $prefix . '_hide_files_name', 'no') == 'yes';
$hide_file_name_main = get_theme_mod( $prefix . '_hide_files_name_main', 'yes') == 'yes';
$hide_file_caption_main = get_theme_mod( $prefix . '_hide_files_caption_main', 'yes') == 'yes';
@ -14,10 +16,22 @@
$hide_file_description_lightbox = get_theme_mod( $prefix . '_hide_files_description_lightbox', 'no') == 'yes';
$has_light_dark_color_scheme = get_theme_mod( $prefix . '_gallery_color_scheme', 'dark' ) == 'light';
if ( $gallery_spacing === 'minimum' ) {
add_filter( 'tainacan-swiper-thumbs-options', function($options) {
return array_merge(
$options,
array(
'spaceBetween' => 0
)
);
}, 9 , 1);
}
global $post;
if ( tainacan_has_document() && !$is_gallery_mode ) : ?>
<section class="tainacan-item-section tainacan-item-section--document">
<?php if ( get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes' && get_theme_mod($prefix . '_section_document_label', __( 'Document', 'tainacan-blocksy' )) != '' ) : ?>
<section class="tainacan-item-section tainacan-item-section--document <?php echo ' tainacan-media-component-wrapper-spacing--' . $gallery_spacing ?>">
<?php if ( $page_structure_type !== 'type-gtm' && get_theme_mod($prefix . '_display_section_labels', 'yes') == 'yes' && get_theme_mod($prefix . '_section_document_label', __( 'Document', 'tainacan-blocksy' )) != '' ) : ?>
<h2 class="tainacan-single-item-section" id="tainacan-item-document-label">
<?php echo esc_html( get_theme_mod($prefix . '_section_document_label', __( 'Document', 'tainacan-blocksy' ) ) ); ?>
</h2>