Skip to content

Commit

Permalink
Change plugin name
Browse files Browse the repository at this point in the history
  • Loading branch information
aykanburcak committed May 26, 2022
1 parent 0e353d1 commit c609756
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 19 deletions.
6 changes: 3 additions & 3 deletions build/block.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/youtube-video-background",
"name": "create-block/video-background",
"version": "0.1.0",
"title": "YouTube Video Background",
"title": "Video Background",
"category": "widgets",
"icon": "video-alt",
"description": "Show a YouTube video as a background",
Expand All @@ -17,7 +17,7 @@
"type": "string"
}
},
"textdomain": "youtube-video-background",
"textdomain": "video-background",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
Expand Down
2 changes: 1 addition & 1 deletion build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '12fe2c07d2421732af6f');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-editor', 'wp-element', 'wp-i18n', 'wp-primitives'), 'version' => '0cb01a97508d16318412');
2 changes: 1 addition & 1 deletion build/index.css
Original file line number Diff line number Diff line change
@@ -1 +1 @@
.wp-block-create-block-youtube-video-background{background-color:#f3f3f3;padding:24px}
.wp-block-create-block-video-background{background-color:#f3f3f3;padding:24px}
2 changes: 1 addition & 1 deletion build/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/style-index.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "youtube-video-background",
"name": "video-background",
"version": "0.1.0",
"description": "The plugin that allows to add YouTube video backgrounds",
"author": "Aykan Burcak",
Expand Down
2 changes: 1 addition & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ This plugin adds a Gutenberg block container to your site so that you can add Yo

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/youtube-video-background` directory, or install the plugin through the WordPress plugins screen directly.
1. Upload the plugin files to the `/wp-content/plugins/video-background` directory, or install the plugin through the WordPress plugins screen directly.
2. Activate the plugin through the 'Plugins' screen in WordPress


Expand Down
6 changes: 3 additions & 3 deletions src/block.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 2,
"name": "create-block/youtube-video-background",
"name": "create-block/video-background",
"version": "0.1.0",
"title": "YouTube Video Background",
"title": "Video Background",
"category": "widgets",
"icon": "video-alt",
"description": "Show a YouTube video as a background",
Expand All @@ -17,7 +17,7 @@
"type": "string"
}
},
"textdomain": "youtube-video-background",
"textdomain": "video-background",
"editorScript": "file:./index.js",
"editorStyle": "file:./index.css",
"style": "file:./style-index.css"
Expand Down
2 changes: 1 addition & 1 deletion src/editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Replace them with your own styles or remove the file completely.
*/

.wp-block-create-block-youtube-video-background {
.wp-block-create-block-video-background {
background-color: #f3f3f3;
padding: 24px;
}
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import save from './save';
*
* @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-registration/
*/
registerBlockType('create-block/youtube-video-background', {
registerBlockType('create-block/video-background', {
/**
* @see ./edit.js
*/
Expand Down
2 changes: 1 addition & 1 deletion src/styles/block.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.wp-block-create-block-youtube-video-background {
.wp-block-create-block-video-background {
position: relative;
}
8 changes: 4 additions & 4 deletions youtube-video-background.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Plugin Name: Youtube Video Background
* Plugin Name: Video Background
* Description: The plugin that allows to add YouTube video backgrounds to Gutenberg blocks.
* Requires at least: 5.8
* Requires PHP: 7.0
Expand All @@ -9,7 +9,7 @@
* Author URI: https://www.aykanburcak.com
* License: GPL-2.0-or-later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: youtube-video-background
* Text Domain: video-background
*
* @package create-block
*/
Expand All @@ -28,8 +28,8 @@ function create_block_youtube_video_background_block_init() {

function youtube_video_background_block_assets() {
$id = get_the_ID();
if (has_block('create-block/youtube-video-background', $id)) {
wp_enqueue_script ( 'youtube-video-background', plugin_dir_url( __FILE__ ) . 'scripts/youtube-video-background.js', '', '', true );
if (has_block('create-block/video-background', $id)) {
wp_enqueue_script ( 'video-background', plugin_dir_url( __FILE__ ) . 'scripts/youtube-video-background.js', '', '', true );
}
}
add_action( 'enqueue_block_assets', 'youtube_video_background_block_assets' );

0 comments on commit c609756

Please sign in to comment.