Version 0.1.16 - Fixes trailing commas that were causing errors on PHP < 7.3

This commit is contained in:
mateuswetah 2022-06-10 17:25:27 -03:00
parent af7335fd3e
commit 10df0202a3
47 changed files with 165 additions and 2150 deletions

View File

@ -5,7 +5,7 @@ Tags: museums, libraries, archives, GLAM, collections, repository, tainacan, blo
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 5.6
Stable tag: 0.1.15
Stable tag: 0.1.16
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
@ -58,6 +58,9 @@ License details: https://github.com/tainacan/blocksy-tainacan/blob/master/LICENS
== Changelog ==
= 0.1.16 =
* Fixes trailing commas that were causing errors on PHP < 7.3
= 0.1.15 =
* New metadata sections layouts (requires Tainacan 0.19)
* New options to lightbox view (requires Tainacan 0.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.1.15
Version: 0.1.16
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.15';
const TAINACAN_BLOCKSY_VERSION = '0.1.16';
const TAINACAN_BLOCKSY_IS_CHILD_THEME = false;
/* Tools to define our next constants */

View File

@ -176,7 +176,7 @@ blc_call_fnc(['fnc' => 'blocksy_output_border'], [
'style' => 'solid',
'color' => [
'color' => 'rgba(125, 125, 125, 0.5)',
],
]
]),
'responsive' => true
]);
@ -193,7 +193,7 @@ blc_call_fnc(['fnc' => 'blocksy_output_border'], [
'style' => 'solid',
'color' => [
'color' => 'rgba(125, 125, 125, 0.5)',
],
]
]),
'responsive' => true
]);

View File

@ -42,7 +42,7 @@ $options = [
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ]
],
@ -53,7 +53,7 @@ $options = [
'color2' => [ 'color' => '#ece6db' ],
'color3' => [ 'color' => '#f4eee2' ],
'color4' => [ 'color' => '#f4eee2' ],
'color5' => [ 'color' => '#dfd9cd' ],
'color5' => [ 'color' => '#dfd9cd' ]
],
@ -64,7 +64,7 @@ $options = [
'color2' => [ 'color' => '#282828' ],
'color3' => [ 'color' => '#333333' ],
'color4' => [ 'color' => '#333333' ],
'color5' => [ 'color' => '#1e1e1e' ],
'color5' => [ 'color' => '#1e1e1e' ]
]
]
@ -101,7 +101,7 @@ $options = [
'color2' => [ 'color' => 'var(--headingColor, rgba(44, 62, 80, 1))' ],
'color3' => [ 'color' => 'var(--color, #454647)' ],
'color4' => [ 'color' => '#555758' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ]
],
@ -112,7 +112,7 @@ $options = [
'color2' => [ 'color' => 'rgb(80, 54, 44)' ],
'color3' => [ 'color' => '#474545' ],
'color4' => [ 'color' => '#585655' ],
'color5' => [ 'color' => '#474545' ],
'color5' => [ 'color' => '#474545' ]
],
@ -123,7 +123,7 @@ $options = [
'color2' => [ 'color' => 'rgb(207, 216, 225)' ],
'color3' => [ 'color' => '#f0f0f0' ],
'color4' => [ 'color' => '#c8c8c8' ],
'color5' => [ 'color' => '#f0f0f0' ],
'color5' => [ 'color' => '#f0f0f0' ]
]
]

View File

@ -12,6 +12,6 @@ $options = [
'sync' => '',
'choices' => blocksy_ordered_keys(
$view_modes['enabled_view_modes']
),
)
]
];

View File

@ -27,8 +27,8 @@ $options = [
'view' => 'text',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy'),
],
'boxed' => __('Boxed', 'blocksy')
]
],
blocksy_rand_md5() => [
'type' => 'ct-condition',
@ -79,8 +79,8 @@ $options = [
'desc' => __( 'Display the filters button inside the search control bar instead of floating aside.', 'tainacan-blocksy' ),
'sync' => ''
],
],
]
]
],
$prefix . 'filters_fixed_on_scroll' => [
'label' => __( 'Filters fixed on scroll', 'tainacan-blocksy' ),
@ -96,6 +96,6 @@ $options = [
'desc' => __( 'Display the filters panel as a full screen modal instead of aside, even on desktop.', 'tainacan-blocksy' ),
'sync' => ''
]
],
],
]
]
];

View File

@ -29,8 +29,8 @@ $options = [
'view' => 'text',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy'),
],
'boxed' => __('Boxed', 'blocksy')
]
],
$prefix . 'hero_elements' => [
'label' => __('Elements', 'blocksy'),
@ -63,8 +63,8 @@ $options = [
'h5' => 'H5',
'h6' => 'H6',
]
),
],
)
]
],
'hero_item_spacing' => [
@ -76,12 +76,12 @@ $options = [
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
],
],
],
]
]
]
]
]
]
];

View File

@ -49,8 +49,8 @@ $options = [
'view' => 'text',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy'),
],
'boxed' => __('Boxed', 'blocksy')
]
],
$prefix . 'hero_elements' => [
'label' => __('Elements', 'blocksy'),
@ -73,13 +73,13 @@ $options = [
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
]
],
'custom_thumbnail' => [
'label' => __('Thumbnail', 'blocksy'),
'label' => __('Thumbnail', 'blocksy')
],
'custom_title' => [
@ -104,8 +104,8 @@ $options = [
'h5' => 'H5',
'h6' => 'H6',
]
),
],
)
]
],
@ -128,9 +128,9 @@ $options = [
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
]
],
'custom_description' => [
@ -151,12 +151,12 @@ $options = [
'choices' => blocksy_ordered_keys([
'desktop' => __( 'Desktop', 'blocksy' ),
'tablet' => __( 'Tablet', 'blocksy' ),
'mobile' => __( 'Mobile', 'blocksy' ),
'mobile' => __( 'Mobile', 'blocksy' )
]),
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
]
],
'hero_item_spacing' => [
@ -168,12 +168,12 @@ $options = [
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
],
],
],
]
]
]
]
]
]
];

View File

@ -34,6 +34,6 @@ $options = [
'desc' => __( 'Display the button for jumping to an specific page.', 'tainacan-blocksy' ),
'sync' => ''
]
],
],
]
]
];

View File

@ -15,7 +15,7 @@ $options = [
'inner-options' => [
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Textual search', 'tainacan-blocksy' ),
'label' => __( 'Textual search', 'tainacan-blocksy' )
],
$prefix . 'show_search' => [
'label' => __( 'Show simple search', 'tainacan-blocksy' ),
@ -37,12 +37,12 @@ $options = [
'desc' => __( 'Display a link to open the advanced search panel.', 'tainacan-blocksy' ),
'sync' => ''
],
],
]
]
],
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Sorting', 'tainacan-blocksy' ),
'label' => __( 'Sorting', 'tainacan-blocksy' )
],
$prefix . 'show_sorting_area' => [
'label' => __( 'Show sorting options', 'tainacan-blocksy' ),
@ -64,12 +64,12 @@ $options = [
'desc' => __( 'Display the "Sort by" button, to select a metadata to sort by.', 'tainacan-blocksy' ),
'sync' => ''
],
],
]
]
],
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'View modes', 'tainacan-blocksy' ),
'label' => __( 'View modes', 'tainacan-blocksy' )
],
blocksy_rand_md5() => [
'type' => 'ct-condition',
@ -103,7 +103,7 @@ $options = [
],
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Exposers', 'tainacan-blocksy' ),
'label' => __( 'Exposers', 'tainacan-blocksy' )
],
$prefix . 'show_exposers_button' => [
'label' => __( 'Show "View as..." button', 'tainacan-blocksy' ),
@ -111,7 +111,7 @@ $options = [
'value' => 'yes',
'desc' => __( 'Display the "View as..." button, which opens the exposers modal.', 'tainacan-blocksy' ),
'sync' => ''
],
],
],
]
]
]
];

View File

@ -10,7 +10,7 @@ $options = [
'inner-options' => blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/posts/tainacan-item-archive.php', [
'prefix' => 'tainacan-repository-items',
'is_general_cpt' => true
], false),
],
],
], false)
]
]
];

View File

@ -11,7 +11,7 @@ $options = [
'inner-options' => blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/posts/tainacan-item-archive.php', [
'prefix' => 'tainacan-terms-items',
'is_general_cpt' => true
], false),
],
],
], false)
]
]
];

View File

@ -4,8 +4,8 @@ $options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Page Elements', 'blocksy' ),
],
'label' => __( 'Page Elements', 'blocksy' )
]
],
blocksy_get_options(
@ -33,5 +33,5 @@ $options = [
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/color-palettes.php', [
'prefix' => $prefix . '_archive'
], false),
], false)
];

View File

@ -12,8 +12,8 @@ $options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Tainacan Item Elements', 'tainacan-blocksy' ),
],
'label' => __( 'Tainacan Item Elements', 'tainacan-blocksy' )
]
],
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/tainacan-single-structure.php', [
'prefix' => $post_type->name . '_single',

View File

@ -18,5 +18,5 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -24,5 +24,5 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to not open a modal when clicking in the document.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -33,7 +33,7 @@ $options = [
'color1' => [ 'color' => 'var(--paletteColor6, #edeff2)' ],
'color2' => [ 'color' => 'var(--paletteColor4, #2c3e50)' ],
'color3' => [ 'color' => 'var(--paletteColor1, #3eaf7c)' ],
'color3' => [ 'color' => 'var(--paletteColor1, #3eaf7c)' ]
],
@ -42,14 +42,14 @@ $options = [
'color1' => [ 'color' => 'var(--paletteColor3, #415161)' ],
'color2' => [ 'color' => 'var(--paletteColor7, #f8f9fb)' ],
'color3' => [ 'color' => 'var(--paletteColor2, #33a370)' ],
'color3' => [ 'color' => 'var(--paletteColor2, #33a370)' ]
],
]
]
],
'sync' => '',
]
]
],
]
];

View File

@ -28,7 +28,7 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
],
]
]
]
];

View File

@ -17,15 +17,15 @@ $options = [
'choices' => [
'gallery-type-1' => [
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-1.svg' ),
'title' => __( 'Document and Attachments separate', 'tainacan-blocksy' ),
'title' => __( 'Document and Attachments separate', 'tainacan-blocksy' )
],
'gallery-type-2' => [
'src' => tainacan_blocksy_image_picker_url( 'gallery-type-2.svg' ),
'title' => __( 'Document and Attachments merged', 'tainacan-blocksy' ),
],
'title' => __( 'Document and Attachments merged', 'tainacan-blocksy' )
]
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -108,7 +108,7 @@ $options = [
], false)
]
]
],
]
]
]
]

View File

@ -17,5 +17,5 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -17,5 +17,5 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -13,7 +13,7 @@ $options = [
'divider' => 'top',
'choices' => [
'dark' => __('Dark', 'blocksy'),
'light' => __('Light', 'blocksy'),
],
'light' => __('Light', 'blocksy')
]
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to never display a "Download" button when hovering the document.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -15,6 +15,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document caption on the lightbox.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document caption on the main view.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document description on the lightbox.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document description on the main view.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document name on the lightbox view.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document name on the main view.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -16,6 +16,6 @@ $options = [
'desc' => __( 'Toggle to hide the attachments and document name on the carousel.', 'tainacan-blocksy' ),
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix,
]),
])
]
];

View File

@ -29,16 +29,16 @@ $options = [
'choices' => [
'carousel' => [
'src' => tainacan_blocksy_image_picker_url( 'items-carousel.svg' ),
'title' => __( 'Carousel', 'tainacan-blocksy' ),
'title' => __( 'Carousel', 'tainacan-blocksy' )
],
'grid' => [
'src' => tainacan_blocksy_image_picker_url( 'items-grid.svg' ),
'title' => __( 'Grid', 'tainacan-blocksy' ),
'title' => __( 'Grid', 'tainacan-blocksy' )
],
'list' => [
'src' => tainacan_blocksy_image_picker_url( 'items-list.svg' ),
'title' => __( 'List', 'tainacan-blocksy' ),
],
'title' => __( 'List', 'tainacan-blocksy' )
]
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix

View File

@ -23,12 +23,12 @@ $options = [
'unit' => 'vw',
'min' => 20,
'max' => 100,
],
]
]),
'responsive' => true,
'divider' => 'bottom',
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -8,8 +8,8 @@ $options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Metadata Label', 'tainacan-blocksy' ),
],
'label' => __( 'Metadata Label', 'tainacan-blocksy' )
]
],
$prefix . 'tainacan_metadata_label_font' => [
'type' => 'ct-typography',
@ -51,10 +51,10 @@ $options = [
'style' => 'solid',
'color' => [
'color' => 'rgba(125, 125, 125, 0.5)',
],
]
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -14,16 +14,16 @@ $options = [
'choices' => [
'metadata-type-1' => [
'src' => tainacan_blocksy_image_picker_url( 'metadata-type-1.svg' ),
'title' => __( 'Label above values', 'tainacan-blocksy' ),
'title' => __( 'Label above values', 'tainacan-blocksy' )
],
'metadata-type-2' => [
'src' => tainacan_blocksy_image_picker_url( 'metadata-type-2.svg' ),
'title' => __( 'Label aside values', 'tainacan-blocksy' ),
],
'title' => __( 'Label aside values', 'tainacan-blocksy' )
]
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -10,8 +10,8 @@ $general_tab_options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Metadata List', 'tainacan-blocksy' ),
],
'label' => __( 'Metadata List', 'tainacan-blocksy' )
]
],
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/metadata-list-structure.php', [
'prefix' => $prefix
@ -36,12 +36,14 @@ if ( function_exists('tainacan_get_the_metadata_sections') ) {
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Metadata Sections', 'tainacan-blocksy' ),
],
'label' => __( 'Metadata Sections', 'tainacan-blocksy' )
]
],
[
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/metadata-sections.php', [
'prefix' => $prefix
], false),
], false)
]
);
}
@ -70,7 +72,7 @@ $options = [
blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/single-elements/metadata-values.php', [
'prefix' => $prefix
], false)
],
]
]
]
]

View File

@ -14,23 +14,23 @@ $options = [
'choices' => [
'metadata-section-type-1' => [
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-1.svg' ),
'title' => __( 'Default', 'tainacan-blocksy' ),
'title' => __( 'Default', 'tainacan-blocksy' )
],
'metadata-section-type-2' => [
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-2.svg' ),
'title' => __( 'Tabs', 'tainacan-blocksy' ),
'title' => __( 'Tabs', 'tainacan-blocksy' )
],
'metadata-section-type-3' => [
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-3.svg' ),
'title' => __( 'Collapses', 'tainacan-blocksy' ),
'title' => __( 'Collapses', 'tainacan-blocksy' )
],
'metadata-section-type-4' => [
'src' => tainacan_blocksy_image_picker_url( 'metadata-section-type-4.svg' ),
'title' => __( 'Accordion', 'tainacan-blocksy' ),
'title' => __( 'Accordion', 'tainacan-blocksy' )
]
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -8,8 +8,8 @@ $options = [
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Metadata Value', 'tainacan-blocksy' ),
],
'label' => __( 'Metadata Value', 'tainacan-blocksy' )
]
],
$prefix . 'tainacan_metadata_value_font' => [
'type' => 'ct-typography',
@ -50,10 +50,10 @@ $options = [
'style' => 'solid',
'color' => [
'color' => 'rgba(125, 125, 125, 0.5)',
],
]
],
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
];

View File

@ -66,7 +66,7 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
]
],
blocksy_rand_md5() => [
@ -84,7 +84,7 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
]
],
blocksy_rand_md5() => [
@ -103,7 +103,7 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
]
],
$prefix . 'section_metadata_label' => [
@ -131,9 +131,9 @@ $options = [
'sync' => blocksy_sync_single_post_container([
'prefix' => $prefix
])
],
]
],
],
],
]
]
]
]
];

View File

@ -15,34 +15,34 @@ $options = [
'choices' => [
'type-dam' => [
'src' => tainacan_blocksy_image_picker_url( 'type-dam.svg' ),
'title' => __( 'Document, Attachments, Metadata', 'tainacan-blocksy' ),
'title' => __( 'Document, Attachments, Metadata', 'tainacan-blocksy' )
],
'type-dma' => [
'src' => tainacan_blocksy_image_picker_url( 'type-dma.svg' ),
'title' => __( 'Document, Metadata, Attachments', 'tainacan-blocksy' ),
'title' => __( 'Document, Metadata, Attachments', 'tainacan-blocksy' )
],
'type-mda' => [
'src' => tainacan_blocksy_image_picker_url( 'type-mda.svg' ),
'title' => __( 'Metadata, Document, Attachments', 'tainacan-blocksy' ),
'title' => __( 'Metadata, Document, Attachments', 'tainacan-blocksy' )
],
'type-gm' => [
'src' => tainacan_blocksy_image_picker_url( 'type-gm.svg' ),
'title' => __( 'Metadata to the right', 'tainacan-blocksy' ),
'title' => __( 'Metadata to the right', 'tainacan-blocksy' )
],
'type-mg' => [
'src' => tainacan_blocksy_image_picker_url( 'type-mg.svg' ),
'title' => __( 'Metadata to the left', 'tainacan-blocksy' ),
'title' => __( 'Metadata to the left', 'tainacan-blocksy' )
],
// 'type-gtm' => [
// 'src' => tainacan_blocksy_image_picker_url( 'type-gtm.svg' ),
// 'title' => __( 'Document and Attachments above Title', 'tainacan-blocksy' ),
// ],
// ]
],
'sync' => ''
],
]
];

File diff suppressed because it is too large Load Diff

View File

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

View File

@ -15,7 +15,7 @@ $background_color_palette = get_theme_mod($prefix . '_items_list_background_pale
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ]
]);
$page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';';
@ -29,7 +29,7 @@ $text_color_palette = get_theme_mod($prefix . '_items_list_text_palette',
'color2' => [ 'color' => 'var(--headingColor, rgba(44, 62, 80, 1))' ],
'color3' => [ 'color' => 'var(--color, #454647)' ],
'color4' => [ 'color' => '#555758' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ]
]);
$page_container_style .= '--tainacan-secondary:' . $text_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-heading-color:' . $text_color_palette['color2']['color'] . ';';

View File

@ -16,7 +16,7 @@ $background_color_palette = get_theme_mod($repository_items_prefix . '_items_lis
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ]
]);
$page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';';
@ -30,7 +30,7 @@ $text_color_palette = get_theme_mod($repository_items_prefix . '_items_list_text
'color2' => [ 'color' => 'var(--headingColor, rgba(44, 62, 80, 1))' ],
'color3' => [ 'color' => 'var(--color, #454647)' ],
'color4' => [ 'color' => '#555758' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ]
]);
$page_container_style .= '--tainacan-secondary:' . $text_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-heading-color:' . $text_color_palette['color2']['color'] . ';';

View File

@ -16,7 +16,7 @@ $background_color_palette = get_theme_mod($terms_items_prefix . '_items_list_bac
'color2' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color3' => [ 'color' => 'var(--cardBackground, #ffffff)' ],
'color4' => [ 'color' => 'var(--formBackgroundInitialColor, #ffffff)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ],
'color5' => [ 'color' => 'var(--background-color, #f8f9fb)' ]
]);
$page_container_style .= '--tainacan-background-color:' . $background_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-item-background-color:' . $background_color_palette['color2']['color'] . ';';
@ -30,7 +30,7 @@ $text_color_palette = get_theme_mod($terms_items_prefix . '_items_list_text_pale
'color2' => [ 'color' => 'var(--headingColor, rgba(44, 62, 80, 1))' ],
'color3' => [ 'color' => 'var(--color, #454647)' ],
'color4' => [ 'color' => '#555758' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ],
'color5' => [ 'color' => 'var(--formTextInitialColor, #454647)' ]
]);
$page_container_style .= '--tainacan-secondary:' . $text_color_palette['color1']['color'] . ';';
$page_container_style .= '--tainacan-heading-color:' . $text_color_palette['color2']['color'] . ';';

View File

@ -56,7 +56,7 @@ add_action( 'blocksy:hero:before', function() use ( $page_structure_type, $prefi
[
'color1' => [ 'color' => 'var(--paletteColor6, #edeff2)' ],
'color2' => [ 'color' => 'var(--paletteColor4, #2c3e50)' ],
'color3' => [ 'color' => 'var(--paletteColor1, #3eaf7c)' ],
'color3' => [ 'color' => 'var(--paletteColor1, #3eaf7c)' ]
]);
$media_component_style .= '--tainacan-media-background-color:' . $media_component_color_palette['color1']['color'] . ';';