Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 16 additions & 9 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
# Directories
/.git
/.github
/.wordpress-org
/node_modules
/src

# Configuration files
.distignore
.editorconfig
.gitattributes
.gitignore
.plugin-data
.wp-env.json
CHANGELOG.md
grumphp.yml
phpcs.xml.dist
psalm.xml.dist

# Dependency management
composer.json
composer.lock
grumphp.yml
LICENSE.md
package.json
package-lock.json
phpcs.xml.dist
phpunit.xml.dist
psalm.xml.dist

# Documentation (GitHub)
CHANGELOG.md
README.md
webpack.config.js
yarn.lock

# Development files
*.log
*.map
.DS_Store
Thumbs.db
19 changes: 17 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
# Directories
/.git export-ignore
/.github export-ignore
/node_modules export-ignore
/src export-ignore

# Configuration files
/.distignore export-ignore
/.editorconfig export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.plugin-data export-ignore
/CHANGELOG.md export-ignore
/.wp-env.json export-ignore
/grumphp.yml export-ignore
/phpcs.xml.dist export-ignore
/psalm.xml export-ignore
/psalm.xml.dist export-ignore

# Dependency management
/composer.json export-ignore
/composer.lock export-ignore
/package.json export-ignore
/package-lock.json export-ignore

# Documentation (GitHub)
/CHANGELOG.md export-ignore
/README.md export-ignore
2 changes: 1 addition & 1 deletion .plugin-data
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"version": "1.0.0",
"version": "1.0.1",
"slug": "blockparty-iframe"
}
11 changes: 8 additions & 3 deletions blockparty-iframe.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
/**
* Plugin Name: Blockparty Iframe
* Description: Add a block to display an embedded frame in the WordPress editor.
* Version: 1.0.0
* Version: 1.0.1
* Requires at least: 6.7
* Requires PHP: 7.4
* Requires PHP: 8.1
* Author: Be API Technical team
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand All @@ -19,11 +19,16 @@
exit; // Exit if accessed directly.
}

define( 'BLOCKPARTY_IFRAME_VERSION', '1.0.0' );
define( 'BLOCKPARTY_IFRAME_VERSION', '1.0.1' );
define( 'BLOCKPARTY_IFRAME_URL', plugin_dir_url( __FILE__ ) );
define( 'BLOCKPARTY_IFRAME_DIR', plugin_dir_path( __FILE__ ) );
define( 'BLOCKPARTY_IFRAME_PLUGIN_BASENAME', plugin_basename( __FILE__ ) );

// Require vendor
if ( file_exists( BLOCKPARTY_IFRAME_DIR . '/vendor/autoload.php' ) ) {
require BLOCKPARTY_IFRAME_DIR . '/vendor/autoload.php';
}

/**
* Registers the block using a `blocks-manifest.php` file, which improves the performance of block type registration.
* Behind the scenes, it also registers all assets so they can be enqueued
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "blockparty-iframe",
"version": "1.0.0",
"version": "1.0.1",
"description": "Add a block to display an embedded frame in the WordPress editor.",
"author": "Be API Technical team",
"license": "GPL-2.0-or-later",
Expand Down
2 changes: 1 addition & 1 deletion src/blockparty-iframe/block.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "blockparty/iframe",
"version": "1.0.0",
"version": "1.0.1",
"title": "Iframe",
"category": "widgets",
"description": "Display an embedded frame.",
Expand Down
Loading