Skip to content

Commit

Permalink
Preparing for version 0.3.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuswetah committed Mar 4, 2024
1 parent 6a725ad commit bb475fd
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
tainacan-blocksy/node_modules
tainacan-blocksy/*/node_modules
.vscode
1 change: 0 additions & 1 deletion tainacan-blocksy/.gitignore

This file was deleted.

8 changes: 6 additions & 2 deletions tainacan-blocksy/README.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
=== Tainacan Support for Blocksy ===
Author: tainacan
Contributors: wetah, vnmedeiros, leogermani, tainacan
Tags: museums, libraries, archives, GLAM, collections, repository, tainacan, blocksy
Tags: museums, archives, collections, tainacan, blocksy
Requires at least: 5.9
Tested up to: 6.4.1
Requires PHP: 7.0
Stable tag: 0.3.0
Stable tag: 0.3.1
Requires Plugins: tainacan
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -58,6 +59,9 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS

== Changelog ==

= 0.3.1 =
* Fixes customizer errors due to Blocksy changes in version 2.0.27

= 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
Expand Down
4 changes: 2 additions & 2 deletions tainacan-blocksy/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Plugin URI: https://tainacan.org/
Description: Tainacan plugin support for Blocksy theme
Author: tainacan
Version: 0.3.0
Version: 0.3.1
Text Domain: tainacan-blocksy
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -15,7 +15,7 @@
}

/** Theme/plugin version */
const TAINACAN_BLOCKSY_VERSION = '0.3.0';
const TAINACAN_BLOCKSY_VERSION = '0.3.1';
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;

/* Tools to define our next constants */
Expand Down
1 change: 1 addition & 0 deletions tainacan-blocksy/inc/enqueues.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function tainacan_blocksy_enqueue_scripts() {
if ( $blocksy_theme_version > '1.9' ) {
wp_enqueue_style( 'tainacan-blocksy-compatibility-style',
TAINACAN_BLOCKSY_PLUGIN_URL_PATH . '/compat.min.css',
array(),
TAINACAN_BLOCKSY_VERSION
);
}
Expand Down
2 changes: 1 addition & 1 deletion tainacan-blocksy/inc/integration.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function tainacan_blocksy_render_media_gallery_above_title() {
$media_component_style .= '--tainacan-media-color:' . $media_component_color_palette['color2']['color'] . ';';
$media_component_style .= '--tainacan-media-accent-color:' . $media_component_color_palette['color3']['color'] . ';';

echo '<div class="tainacan-gallery-above-title ' . $extra_classes . '" style="' . $media_component_style . '">';
echo '<div class="tainacan-gallery-above-title ' . esc_attr($extra_classes) . '" style="' . esc_attr($media_component_style) . '">';
tainacan_blocksy_get_template_part( 'template-parts/tainacan-item-single-document' );
do_action( 'tainacan-blocksy-single-item-after-document' );

Expand Down
4 changes: 2 additions & 2 deletions tainacan-blocksy/inc/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function blocksy_default_post_navigation() {
ob_start();

?>
<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); ?>>
<nav class="<?php echo esc_attr( $container_class ); ?>" <?php if (function_exists('blocksy_generic_get_deep_link') ) echo esc_attr(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): ?>
Expand Down Expand Up @@ -513,7 +513,7 @@ function tainacan_blocksy_custom_breadcrumbs( $array ) {
isset($args['ref']) &&
substr($array[$i]['url'], -strlen($args['ref']))===$args['ref']
) {
$ref = $args['ref'];
$ref = esc_js($args['ref']);
unset($args['pos']);
unset($args['ref']);
unset($args['source_list']);
Expand Down
4 changes: 2 additions & 2 deletions tainacan-blocksy/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tainacan-blocksy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tainacan-blocksy",
"version": "0.3.0",
"version": "0.3.1",
"description": "A Blocksy plugin/child theme compatible with Tainacan",
"main": "index.js",
"scripts": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

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 tainacan-media-component-wrapper-thumbnails-at--' . $gallery_position . ' tainacan-media-component-wrapper-spacing--' . $gallery_spacing) ) ?>">
<section class="tainacan-item-section tainacan-item-section--<?php echo esc_attr( !$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">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
global $post;

if ( tainacan_has_document() && !$is_gallery_mode ) : ?>
<section class="tainacan-item-section tainacan-item-section--document <?php echo ' tainacan-media-component-wrapper-spacing--' . $gallery_spacing ?>">
<section class="tainacan-item-section tainacan-item-section--document <?php echo esc_attr(' 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' ) ) ); ?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ob_start();
?>
<div class="tainacan-item-section__metadata-thumbnail">
<h3 class="tainacan-metadata-label"><?php _e( 'Thumbnail', 'tainacan-blocksy' ); ?></h3>
<h3 class="tainacan-metadata-label"><?php esc_html_e( 'Thumbnail', 'tainacan-blocksy' ); ?></h3>
<p class="tainacan-metadata-value"><?php the_post_thumbnail('tainacan-medium-full'); ?></p>
</div>
<?php
Expand Down

0 comments on commit bb475fd

Please sign in to comment.