Skip to content

Commit

Permalink
Version 0.1.16 - Fixes trailing commas that were causing errors on PH…
Browse files Browse the repository at this point in the history
…P < 7.3
  • Loading branch information
mateuswetah committed Jun 10, 2022
1 parent af7335f commit 10df020
Show file tree
Hide file tree
Showing 47 changed files with 165 additions and 2,150 deletions.
5 changes: 4 additions & 1 deletion tainacan-blocksy/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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)
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.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
Expand All @@ -15,7 +15,7 @@
}

/** 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 */
Expand Down
4 changes: 2 additions & 2 deletions tainacan-blocksy/inc/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
'style' => 'solid',
'color' => [
'color' => 'rgba(125, 125, 125, 0.5)',
],
]
]),
'responsive' => true
]);
Expand All @@ -193,7 +193,7 @@
'style' => 'solid',
'color' => [
'color' => 'rgba(125, 125, 125, 0.5)',
],
]
]),
'responsive' => true
]);
Expand Down
12 changes: 6 additions & 6 deletions tainacan-blocksy/inc/options/archive-elements/color-palettes.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
'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)' ]

],

Expand All @@ -53,7 +53,7 @@
'color2' => [ 'color' => '#ece6db' ],
'color3' => [ 'color' => '#f4eee2' ],
'color4' => [ 'color' => '#f4eee2' ],
'color5' => [ 'color' => '#dfd9cd' ],
'color5' => [ 'color' => '#dfd9cd' ]

],

Expand All @@ -64,7 +64,7 @@
'color2' => [ 'color' => '#282828' ],
'color3' => [ 'color' => '#333333' ],
'color4' => [ 'color' => '#333333' ],
'color5' => [ 'color' => '#1e1e1e' ],
'color5' => [ 'color' => '#1e1e1e' ]

]
]
Expand Down Expand Up @@ -101,7 +101,7 @@
'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)' ]

],

Expand All @@ -112,7 +112,7 @@
'color2' => [ 'color' => 'rgb(80, 54, 44)' ],
'color3' => [ 'color' => '#474545' ],
'color4' => [ 'color' => '#585655' ],
'color5' => [ 'color' => '#474545' ],
'color5' => [ 'color' => '#474545' ]

],

Expand All @@ -123,7 +123,7 @@
'color2' => [ 'color' => 'rgb(207, 216, 225)' ],
'color3' => [ 'color' => '#f0f0f0' ],
'color4' => [ 'color' => '#c8c8c8' ],
'color5' => [ 'color' => '#f0f0f0' ],
'color5' => [ 'color' => '#f0f0f0' ]

]
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
'sync' => '',
'choices' => blocksy_ordered_keys(
$view_modes['enabled_view_modes']
),
)
]
];
12 changes: 6 additions & 6 deletions tainacan-blocksy/inc/options/archive-elements/filters-panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
'view' => 'text',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy'),
],
'boxed' => __('Boxed', 'blocksy')
]
],
blocksy_rand_md5() => [
'type' => 'ct-condition',
Expand Down Expand Up @@ -79,8 +79,8 @@

'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' ),
Expand All @@ -96,6 +96,6 @@
'desc' => __( 'Display the filters panel as a full screen modal instead of aside, even on desktop.', 'tainacan-blocksy' ),
'sync' => ''
]
],
],
]
]
];
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
'view' => 'text',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy'),
],
'boxed' => __('Boxed', 'blocksy')
]
],
$prefix . 'hero_elements' => [
'label' => __('Elements', 'blocksy'),
Expand Down Expand Up @@ -63,8 +63,8 @@
'h5' => 'H5',
'h6' => 'H6',
]
),
],
)
]
],

'hero_item_spacing' => [
Expand All @@ -76,12 +76,12 @@
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
]
]
]
],
],
],
]
]
]
];
38 changes: 19 additions & 19 deletions tainacan-blocksy/inc/options/archive-elements/page-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@
'view' => 'text',
'choices' => [
'simple' => __('Simple', 'blocksy'),
'boxed' => __('Boxed', 'blocksy'),
],
'boxed' => __('Boxed', 'blocksy')
]
],
$prefix . 'hero_elements' => [
'label' => __('Elements', 'blocksy'),
Expand All @@ -73,13 +73,13 @@
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
]
],

'custom_thumbnail' => [
'label' => __('Thumbnail', 'blocksy'),
'label' => __('Thumbnail', 'blocksy')
],

'custom_title' => [
Expand All @@ -104,8 +104,8 @@
'h5' => 'H5',
'h6' => 'H6',
]
),
],
)
]
],


Expand All @@ -128,9 +128,9 @@
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
]
],

'custom_description' => [
Expand All @@ -151,12 +151,12 @@
'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' => [
Expand All @@ -168,12 +168,12 @@
'responsive' => true,
'sync' => [
'id' => $prefix . 'hero_elements_spacing',
],
],
],
]
]
]
]
]
],
],
],
]
]
]
];
4 changes: 2 additions & 2 deletions tainacan-blocksy/inc/options/archive-elements/pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@
'desc' => __( 'Display the button for jumping to an specific page.', 'tainacan-blocksy' ),
'sync' => ''
]
],
],
]
]
];
22 changes: 11 additions & 11 deletions tainacan-blocksy/inc/options/archive-elements/search-control.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
'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' ),
Expand All @@ -37,12 +37,12 @@

'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' ),
Expand All @@ -64,12 +64,12 @@

'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',
Expand Down Expand Up @@ -103,15 +103,15 @@
],
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' ),
'type' => 'ct-switch',
'value' => 'yes',
'desc' => __( 'Display the "View as..." button, which opens the exposers modal.', 'tainacan-blocksy' ),
'sync' => ''
],
],
],
]
]
]
];
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
'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)
]
]
];
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'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)
]
]
];
6 changes: 3 additions & 3 deletions tainacan-blocksy/inc/options/posts/tainacan-item-archive.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[
blocksy_rand_md5() => [
'type' => 'ct-title',
'label' => __( 'Page Elements', 'blocksy' ),
],
'label' => __( 'Page Elements', 'blocksy' )
]
],

blocksy_get_options(
Expand Down Expand Up @@ -33,5 +33,5 @@

blocksy_get_options(TAINACAN_BLOCKSY_PLUGIN_DIR_PATH . '/inc/options/archive-elements/color-palettes.php', [
'prefix' => $prefix . '_archive'
], false),
], false)
];
4 changes: 2 additions & 2 deletions tainacan-blocksy/inc/options/posts/tainacan-item-single.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
[
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',
Expand Down
Loading

0 comments on commit 10df020

Please sign in to comment.