Preparing for version 0.3.1.
This commit is contained in:
parent
6a725ad365
commit
bb475fd3e5
|
@ -1,2 +1,3 @@
|
||||||
|
tainacan-blocksy/node_modules
|
||||||
tainacan-blocksy/*/node_modules
|
tainacan-blocksy/*/node_modules
|
||||||
.vscode
|
.vscode
|
|
@ -1 +0,0 @@
|
||||||
node_modules/
|
|
|
@ -1,11 +1,12 @@
|
||||||
=== Tainacan Support for Blocksy ===
|
=== Tainacan Support for Blocksy ===
|
||||||
Author: tainacan
|
Author: tainacan
|
||||||
Contributors: wetah, vnmedeiros, leogermani, 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
|
Requires at least: 5.9
|
||||||
Tested up to: 6.4.1
|
Tested up to: 6.4.1
|
||||||
Requires PHP: 7.0
|
Requires PHP: 7.0
|
||||||
Stable tag: 0.3.0
|
Stable tag: 0.3.1
|
||||||
|
Requires Plugins: tainacan
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
|
||||||
|
@ -58,6 +59,9 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 0.3.1 =
|
||||||
|
* Fixes customizer errors due to Blocksy changes in version 2.0.27
|
||||||
|
|
||||||
= 0.3.0 =
|
= 0.3.0 =
|
||||||
* Adds page title default Blocksy banner options for Collection Items templates
|
* 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 page title section options to Repository and Taxonomy Term Items level templates
|
||||||
|
|
|
@ -4,7 +4,7 @@ Plugin Name: Tainacan Support for Blocksy
|
||||||
Plugin URI: https://tainacan.org/
|
Plugin URI: https://tainacan.org/
|
||||||
Description: Tainacan plugin support for Blocksy theme
|
Description: Tainacan plugin support for Blocksy theme
|
||||||
Author: tainacan
|
Author: tainacan
|
||||||
Version: 0.3.0
|
Version: 0.3.1
|
||||||
Text Domain: tainacan-blocksy
|
Text Domain: tainacan-blocksy
|
||||||
License: GPLv2 or later
|
License: GPLv2 or later
|
||||||
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
|
@ -15,7 +15,7 @@ if (! defined('WP_DEBUG') ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Theme/plugin version */
|
/** Theme/plugin version */
|
||||||
const TAINACAN_BLOCKSY_VERSION = '0.3.0';
|
const TAINACAN_BLOCKSY_VERSION = '0.3.1';
|
||||||
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;
|
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;
|
||||||
|
|
||||||
/* Tools to define our next constants */
|
/* Tools to define our next constants */
|
||||||
|
|
|
@ -22,6 +22,7 @@ function tainacan_blocksy_enqueue_scripts() {
|
||||||
if ( $blocksy_theme_version > '1.9' ) {
|
if ( $blocksy_theme_version > '1.9' ) {
|
||||||
wp_enqueue_style( 'tainacan-blocksy-compatibility-style',
|
wp_enqueue_style( 'tainacan-blocksy-compatibility-style',
|
||||||
TAINACAN_BLOCKSY_PLUGIN_URL_PATH . '/compat.min.css',
|
TAINACAN_BLOCKSY_PLUGIN_URL_PATH . '/compat.min.css',
|
||||||
|
array(),
|
||||||
TAINACAN_BLOCKSY_VERSION
|
TAINACAN_BLOCKSY_VERSION
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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-color:' . $media_component_color_palette['color2']['color'] . ';';
|
||||||
$media_component_style .= '--tainacan-media-accent-color:' . $media_component_color_palette['color3']['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' );
|
tainacan_blocksy_get_template_part( 'template-parts/tainacan-item-single-document' );
|
||||||
do_action( 'tainacan-blocksy-single-item-after-document' );
|
do_action( 'tainacan-blocksy-single-item-after-document' );
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,7 @@ if ( !function_exists('blocksy_default_post_navigation') ) {
|
||||||
ob_start();
|
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): ?>
|
<?php if ($next_post): ?>
|
||||||
<a href="<?php echo esc_url(get_permalink($next_post)); ?>" class="nav-item-prev">
|
<a href="<?php echo esc_url(get_permalink($next_post)); ?>" class="nav-item-prev">
|
||||||
<?php if ($has_thumb): ?>
|
<?php if ($has_thumb): ?>
|
||||||
|
@ -513,7 +513,7 @@ if ( !function_exists('tainacan_blocksy_custom_breadcrumbs') ) {
|
||||||
isset($args['ref']) &&
|
isset($args['ref']) &&
|
||||||
substr($array[$i]['url'], -strlen($args['ref']))===$args['ref']
|
substr($array[$i]['url'], -strlen($args['ref']))===$args['ref']
|
||||||
) {
|
) {
|
||||||
$ref = $args['ref'];
|
$ref = esc_js($args['ref']);
|
||||||
unset($args['pos']);
|
unset($args['pos']);
|
||||||
unset($args['ref']);
|
unset($args['ref']);
|
||||||
unset($args['source_list']);
|
unset($args['source_list']);
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "tainacan-blocksy",
|
"name": "tainacan-blocksy",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "tainacan-blocksy",
|
"name": "tainacan-blocksy",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"clean-css-cli": "^4.3.0",
|
"clean-css-cli": "^4.3.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "tainacan-blocksy",
|
"name": "tainacan-blocksy",
|
||||||
"version": "0.3.0",
|
"version": "0.3.1",
|
||||||
"description": "A Blocksy plugin/child theme compatible with Tainacan",
|
"description": "A Blocksy plugin/child theme compatible with Tainacan",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
if ( function_exists('tainacan_the_media_component') && ( !empty( $attachments ) || ( $is_gallery_mode && tainacan_has_document() ) ) ) {
|
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' )) != '' ) : ?>
|
<?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">
|
<h2 class="tainacan-single-item-section" id="tainacan-item-attachments-label">
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
global $post;
|
global $post;
|
||||||
|
|
||||||
if ( tainacan_has_document() && !$is_gallery_mode ) : ?>
|
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' )) != '' ) : ?>
|
<?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">
|
<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' ) ) ); ?>
|
<?php echo esc_html( get_theme_mod($prefix . '_section_document_label', __( 'Document', 'tainacan-blocksy' ) ) ); ?>
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
ob_start();
|
ob_start();
|
||||||
?>
|
?>
|
||||||
<div class="tainacan-item-section__metadata-thumbnail">
|
<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>
|
<p class="tainacan-metadata-value"><?php the_post_thumbnail('tainacan-medium-full'); ?></p>
|
||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
Loading…
Reference in New Issue