Version 0.1.15

This commit is contained in:
mateuswetah 2022-05-23 21:01:08 -03:00
parent a609b6631b
commit af7335fd3e
5 changed files with 2054 additions and 49 deletions

View File

@ -3,9 +3,9 @@ Author: tainacan
Contributors: wetah, vnmedeiros, leogermani, tainacan
Tags: museums, libraries, archives, GLAM, collections, repository, tainacan, blocksy
Requires at least: 5.0
Tested up to: 5.8.2
Tested up to: 6.0
Requires PHP: 5.6
Stable tag: 0.1.14
Stable tag: 0.1.15
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -44,7 +44,7 @@ Also, this plugin will only work with [Blocksy theme](https://wordpress.org/them
== Copyright ==
Tainacan Support for Blocksy, Copyright 2021 Tainacan.org
Tainacan Support for Blocksy, Copyright 2022 Tainacan.org
Tainacan Support for Blocksy plugin is distributed under the terms of the GNU GPLv3
License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENSE
@ -58,6 +58,12 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
== Changelog ==
= 0.1.15 =
* New metadata sections layouts (requires Tainacan 0.19)
* New options to lightbox view (requires Tainacan 0.19)
* Safer scaping of some html tags and attributes
* Fixes some options unit compatibility with latest Blocksy
= 0.1.14 =
* Fixes advanced search layout

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

View File

@ -6,28 +6,7 @@ if (! isset($prefix)) {
$prefix = $prefix . '_';
}
$options = [
$prefix . 'metadata-list' => [
'label' => __( 'Item metadata list', 'tainacan-blocksy' ),
'type' => 'ct-panel',
'sync' => blocksy_sync_whole_page([
'prefix' => $prefix,
]),
'inner-options' => [
blocksy_rand_md5() => [
'title' => __( 'General', 'blocksy' ),
'type' => 'tab',
'options' => [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Metadata Sections', 'tainacan-blocksy' ),
],
],
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/metadata-sections.php', [
'prefix' => $prefix
], false),
$general_tab_options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
@ -47,9 +26,39 @@ $options = [
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/show-thumbnail.php', [
'prefix' => $prefix,
'enabled' => 'no'
], false),
], false)
];
/* Adds metadata section features */
if ( function_exists('tainacan_get_the_metadata_sections') ) {
array_unshift(
$general_tab_options,
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Metadata Sections', 'tainacan-blocksy' ),
],
],
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/metadata-sections.php', [
'prefix' => $prefix
], false),
);
}
$options = [
$prefix . 'metadata-list' => [
'label' => __( 'Item metadata', 'tainacan-blocksy' ),
'type' => 'ct-panel',
'sync' => blocksy_sync_whole_page([
'prefix' => $prefix,
]),
'inner-options' => [
blocksy_rand_md5() => [
'title' => __( 'General', 'blocksy' ),
'type' => 'tab',
'options' => $general_tab_options,
],
blocksy_rand_md5() => [
'title' => __( 'Design', 'blocksy' ),

File diff suppressed because it is too large Load Diff

View File

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