Skip to content

Commit 1ac53c4

Browse files
committed
Release new version 3.2.0
= 3.2.0 - 2024/01/12 = * This feature release adds Stickers for item cards and expander, a new Tags Meta Block and the Gutenberg editor to item posts. * Feature - new Portfolio Tags Meta block for use on Content or Single Portfolio Block Page * Feature - new Stickers for Item Card and Item Expander. * Feature - Portfolio Tags can be sued as to Create the Stickers. Add Sticker Colour on the tag edit page. * Feature - Add support for Gutenberg editor for content of Portfolio Edit page * Fix - make block Previews show * Fix - make Category meta and Tag meta show correct format on Portfolio Content.
1 parent 8fe4c91 commit 1ac53c4

File tree

8 files changed

+41
-8
lines changed

8 files changed

+41
-8
lines changed

a3-portfolio.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
/*
33
Plugin Name: a3 Portfolio
44
Description: Creates a beautiful fully mobile responsive, fully customizable, Google images style portfolio to showcase your work.
5-
Version: 3.1.2
5+
Version: 3.2.0
66
Author: a3rev Software
77
Author URI: https://a3rev.com/
88
Requires at least: 6.0
9-
Tested up to: 6.4.1
9+
Tested up to: 6.4.2
1010
Text Domain: a3-portfolio
1111
Domain Path: /languages
1212
License: GPLv2 or later
@@ -28,13 +28,14 @@
2828
define('A3_PORTFOLIO_JS_URL', A3_PORTFOLIO_URL . '/assets/js');
2929
define('A3_PORTFOLIO_CSS_URL', A3_PORTFOLIO_URL . '/assets/css');
3030
define('A3_PORTFOLIO_IMAGES_URL', A3_PORTFOLIO_URL . '/assets/images');
31+
define('A3_PORTFOLIO_JS_IMAGES_URL', untrailingslashit(plugins_url('/', __FILE__)) . '/assets/images');
3132
define('A3_PORTFOLIO_TEMPLATE_PATH', A3_PORTFOLIO_FILE_PATH . '/templates');
3233
define('A3_PORTFOLIO_TEMPLATE_CSS_URL', A3_PORTFOLIO_URL . '/templates/css');
3334
define('A3_PORTFOLIO_TEMPLATE_IMAGES_URL', A3_PORTFOLIO_URL . '/templates/images');
3435

3536
define( 'A3_PORTFOLIO_KEY', 'a3_portfolios' );
3637
define( 'A3_PORTFOLIO_PREFIX', 'a3_portfolio_' );
37-
define( 'A3_PORTFOLIO_VERSION', '3.1.2' );
38+
define( 'A3_PORTFOLIO_VERSION', '3.2.0' );
3839
define( 'A3_PORTFOLIO_G_FONTS', true );
3940

4041
if ( version_compare( PHP_VERSION, '5.6.0', '>=' ) ) {

changelog.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
== Changelog ==
22

3+
= 3.2.0 - 2024/01/12 =
4+
* This feature release adds Stickers for item cards and expander, a new Tags Meta Block and the Gutenberg editor to item posts.
5+
* Feature - new Portfolio Tags Meta block for use on Content or Single Portfolio Block Page
6+
* Feature - new Stickers for Item Card and Item Expander.
7+
* Feature - Portfolio Tags can be sued as to Create the Stickers. Add Sticker Colour on the tag edit page.
8+
* Feature - Add support for Gutenberg editor for content of Portfolio Edit page
9+
* Fix - make block Previews show
10+
* Fix - make Category meta and Tag meta show correct format on Portfolio Content.
11+
312
= 3.1.2 - 2023/11/23 =
413
* This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
514
* Tweak - Test for compatibility with WordPress 6.4.1

dist/blocks.build.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

readme.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
Contributors: a3rev, nguyencongtuan
44
Tags: a3 Portfolio, Portfolio, Post Portfolio, Showcase, Image Showcase, Image Portfolio, Gallery, Photo Gallery, Image Gallery
55
Requires at least: 6.0
6-
Tested up to: 6.4.1
7-
Stable tag: 3.1.2
6+
Tested up to: 6.4.2
7+
Stable tag: 3.2.0
88
License: GPLv3
99
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1010

@@ -167,6 +167,15 @@ Automatic installation is the easiest option as WordPress handles the file trans
167167

168168
== Changelog ==
169169

170+
= 3.2.0 - 2024/01/12 =
171+
* This feature release adds Stickers for item cards and expander, a new Tags Meta Block and the Gutenberg editor to item posts.
172+
* Feature - new Portfolio Tags Meta block for use on Content or Single Portfolio Block Page
173+
* Feature - new Stickers for Item Card and Item Expander.
174+
* Feature - Portfolio Tags can be sued as to Create the Stickers. Add Sticker Colour on the tag edit page.
175+
* Feature - Add support for Gutenberg editor for content of Portfolio Edit page
176+
* Fix - make block Previews show
177+
* Fix - make Category meta and Tag meta show correct format on Portfolio Content.
178+
170179
= 3.1.2 - 2023/11/23 =
171180
* This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
172181
* Tweak - Test for compatibility with WordPress 6.4.1
@@ -777,6 +786,9 @@ Automatic installation is the easiest option as WordPress handles the file trans
777786

778787
== Upgrade Notice ==
779788

789+
= 3.2.0 =
790+
This feature release adds Stickers for item cards and expander, a new Tags Meta Block and the Gutenberg editor to item posts.
791+
780792
= 3.1.2 =
781793
This maintenance release has plugin framework updates for compatibility with PHP 8.1 onwards, plus compatibility with WordPress 6.4.1
782794

src/blocks.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function cgb_editor_assets() { // phpcs:ignore
128128
'catList' => json_encode( $catList ),
129129
'tagList' => json_encode( $tagList ),
130130
'globalColumn' => $global_column,
131-
'preview' => A3_PORTFOLIO_IMAGES_URL. '/preview.jpg',
131+
'preview' => A3_PORTFOLIO_JS_IMAGES_URL. '/preview.jpg',
132132
) );
133133
}
134134

src/blocks/item-tags/block.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ export const settings = {
3434
},
3535

3636
attributes,
37+
example: {
38+
attributes: {
39+
isPreview: true,
40+
},
41+
},
3742
edit,
3843
save: () => {
3944
return null;

src/blocks/item-tags/block.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
"styleCardSticker": {
2020
"type": "object",
2121
"default": {}
22+
},
23+
"isPreview": {
24+
"type": "boolean",
25+
"default": false
2226
}
2327
},
2428
"supports": {

src/blocks/item-tags/edit.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,13 @@ export default function ItemTermsEdit( props ) {
5656
<Fragment>
5757
<Inspector { ...{ ...props } } />
5858
<div { ...blockProps }>
59+
{ ! attributes.isPreview && (
5960
<Disabled>
6061
<ServerSideRender block="a3-portfolio/tags-meta" attributes={ attributes } />
6162
</Disabled>
63+
) }
6264
{ ( ! itemID || "0" == itemID ) && (
63-
<div className="a3-portfolio-tags-sticker">
65+
<div className="a3-portfolio-tags-sticker under-image">
6466
{ postTerms.map( ( postTerm ) => (
6567
<span
6668
key={ postTerm.id }

0 commit comments

Comments
 (0)