Changeset 2171131
- Timestamp:
- 10/10/2019 11:14:22 AM (6 years ago)
- Location:
- cloud-blocks
- Files:
-
- 1 deleted
- 4 edited
- 44 copied
-
tags/1.1.8 (copied) (copied from cloud-blocks/trunk)
-
tags/1.1.8/README.md (copied) (copied from cloud-blocks/trunk/README.md)
-
tags/1.1.8/assets (copied) (copied from cloud-blocks/trunk/assets)
-
tags/1.1.8/assets/css/style.css (copied) (copied from cloud-blocks/trunk/assets/css/style.css)
-
tags/1.1.8/assets/js/script.js (copied) (copied from cloud-blocks/trunk/assets/js/script.js)
-
tags/1.1.8/assets/js/script.min.js (copied) (copied from cloud-blocks/trunk/assets/js/script.min.js)
-
tags/1.1.8/assets/source/js/block-component.js (copied) (copied from cloud-blocks/trunk/assets/source/js/block-component.js)
-
tags/1.1.8/assets/source/js/block-details.js (copied) (copied from cloud-blocks/trunk/assets/source/js/block-details.js)
-
tags/1.1.8/assets/source/js/explorer-filter.js (copied) (copied from cloud-blocks/trunk/assets/source/js/explorer-filter.js)
-
tags/1.1.8/assets/source/js/script.js (copied) (copied from cloud-blocks/trunk/assets/source/js/script.js)
-
tags/1.1.8/assets/source/scss/style.css (copied) (copied from cloud-blocks/trunk/assets/source/scss/style.css)
-
tags/1.1.8/assets/source/scss/style.scss (copied) (copied from cloud-blocks/trunk/assets/source/scss/style.scss)
-
tags/1.1.8/assets/thumbnail.png (copied) (copied from cloud-blocks/trunk/assets/thumbnail.png)
-
tags/1.1.8/cloud-blocks.php (copied) (copied from cloud-blocks/trunk/cloud-blocks.php) (2 diffs)
-
tags/1.1.8/composer.json (copied) (copied from cloud-blocks/trunk/composer.json)
-
tags/1.1.8/composer.lock (copied) (copied from cloud-blocks/trunk/composer.lock)
-
tags/1.1.8/core (copied) (copied from cloud-blocks/trunk/core)
-
tags/1.1.8/core/Activator.php (copied) (copied from cloud-blocks/trunk/core/Activator.php)
-
tags/1.1.8/core/Blocks/Blocks.php (copied) (copied from cloud-blocks/trunk/core/Blocks/Blocks.php) (2 diffs)
-
tags/1.1.8/core/Blocks/Explore.php (copied) (copied from cloud-blocks/trunk/core/Blocks/Explore.php)
-
tags/1.1.8/core/Blocks/Options.php (copied) (copied from cloud-blocks/trunk/core/Blocks/Options.php)
-
tags/1.1.8/core/CloudBlocks.php (copied) (copied from cloud-blocks/trunk/core/CloudBlocks.php)
-
tags/1.1.8/core/Settings/Tools.php (copied) (copied from cloud-blocks/trunk/core/Settings/Tools.php)
-
tags/1.1.8/core/Settings/Translations.php (copied) (copied from cloud-blocks/trunk/core/Settings/Translations.php)
-
tags/1.1.8/core/Uninstall.php (copied) (copied from cloud-blocks/trunk/core/Uninstall.php)
-
tags/1.1.8/docs (copied) (copied from cloud-blocks/trunk/docs)
-
tags/1.1.8/docs/changelog.md (copied) (copied from cloud-blocks/trunk/docs/changelog.md) (1 diff)
-
tags/1.1.8/docs/create-block.md (copied) (copied from cloud-blocks/trunk/docs/create-block.md)
-
tags/1.1.8/docs/hooks.md (copied) (copied from cloud-blocks/trunk/docs/hooks.md)
-
tags/1.1.8/docs/migrate-block.md (copied) (copied from cloud-blocks/trunk/docs/migrate-block.md)
-
tags/1.1.8/docs/private-blocks.md (copied) (copied from cloud-blocks/trunk/docs/private-blocks.md)
-
tags/1.1.8/languages (copied) (copied from cloud-blocks/trunk/languages)
-
tags/1.1.8/languages/cloud-blocks-it_IT.mo (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-it_IT.mo)
-
tags/1.1.8/languages/cloud-blocks-it_IT.po (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-it_IT.po)
-
tags/1.1.8/languages/cloud-blocks-nb_NO.mo (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-nb_NO.mo)
-
tags/1.1.8/languages/cloud-blocks-nb_NO.po (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-nb_NO.po)
-
tags/1.1.8/languages/cloud-blocks-pl_PL.mo (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-pl_PL.mo)
-
tags/1.1.8/languages/cloud-blocks-pl_PL.po (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-pl_PL.po)
-
tags/1.1.8/languages/cloud-blocks-pt.mo (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-pt.mo)
-
tags/1.1.8/languages/cloud-blocks-pt.po (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-pt.po)
-
tags/1.1.8/languages/cloud-blocks-pt_PT.mo (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-pt_PT.mo)
-
tags/1.1.8/languages/cloud-blocks-pt_PT.po (copied) (copied from cloud-blocks/trunk/languages/cloud-blocks-pt_PT.po)
-
tags/1.1.8/readme.txt (copied) (copied from cloud-blocks/trunk/readme.txt) (2 diffs)
-
tags/1.1.8/vendor (copied) (copied from cloud-blocks/trunk/vendor)
-
tags/1.1.8/vendor/bin (deleted)
-
trunk/cloud-blocks.php (modified) (2 diffs)
-
trunk/core/Blocks/Blocks.php (modified) (2 diffs)
-
trunk/docs/changelog.md (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cloud-blocks/tags/1.1.8/cloud-blocks.php
r2098382 r2171131 2 2 /* 3 3 Plugin Name: Cloud Blocks 4 Version: 1.1. 74 Version: 1.1.8 5 5 Description: Your library of Gutenberg blocks in the cloud 6 6 Author: Frontkom … … 30 30 // Plugin version . 31 31 if ( ! defined( 'FGC_VERSION' ) ) { 32 define( 'FGC_VERSION', '1.1. 7' );32 define( 'FGC_VERSION', '1.1.8' ); 33 33 } 34 34 -
cloud-blocks/tags/1.1.8/core/Blocks/Blocks.php
r2065536 r2171131 239 239 240 240 // Extract block js and css files 241 foreach ($block_files as $file) { 242 if ( preg_match('/style.css$/i', $file) ) { 243 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_style ); 241 if ( isset( $block_files ) && !empty( $block_files ) ) { 242 foreach ($block_files as $file) { 243 if ( preg_match('/style.css$/i', $file) ) { 244 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_style ); 245 } 246 if ( preg_match('/editor.css$/i', $file) ) { 247 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $editor_style ); 248 } 249 if ( preg_match('/index.js$/i', $file) ) { 250 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_script ); 251 } 244 252 } 245 if ( preg_match('/editor.css$/i', $file) ) { 246 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $editor_style ); 247 } 248 if ( preg_match('/index.js$/i', $file) ) { 249 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_script ); 250 } 251 } 252 // Extract block screenshot 253 foreach ($screenshot as $img) { 254 if ( preg_match('/thumbnail|screenshot/i', $img) ) { 255 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $img, $block_thumbnail ); 253 // Extract block screenshot 254 foreach ($screenshot as $img) { 255 if ( preg_match('/thumbnail|screenshot/i', $img) ) { 256 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $img, $block_thumbnail ); 257 } 256 258 } 257 259 } … … 277 279 'isLocal' => true 278 280 ); 279 } 280 281 $local_blocks[] = array( 282 'name' => isset( $package_json->gutenbergCloud->name ) ? $package_json->gutenbergCloud->name : $package_json->name, 283 'packageName' => isset( $package_json->name ) ? $package_json->name : '', 284 'jsUrl' => ( isset( $block_script ) && !empty( $block_script ) ) ? site_url() . '/' . $block_script[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->js, 285 'cssUrl' => ( isset( $block_style ) && !empty( $block_style ) ) ? site_url() . '/' . $block_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->css, 286 'editorCss' => ( isset( $editor_style ) && !empty( $editor_style ) ) ? site_url() . '/' . $editor_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->editor, 287 'infoUrl' => 'https://www.npmjs.com/package/' . $package_json->name, 288 'imageUrl' => ( !isset( $block_thumbnail ) && empty( $block_thumbnail ) ) ? ( ( isset( $package_json->gutenbergCloud ) && !empty( $package_json->gutenbergCloud->thumbnail ) ) ? site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->thumbnail : '' ) : site_url() . '/' . $block_thumbnail[0], 289 'version' => isset( $package_json->version ) ? $package_json->version : '', 290 'blockManifest' => json_encode($block_manifest) 291 ); 292 281 282 $local_blocks[] = array( 283 'name' => isset( $package_json->gutenbergCloud->name ) ? $package_json->gutenbergCloud->name : $package_json->name, 284 'packageName' => isset( $package_json->name ) ? $package_json->name : '', 285 'jsUrl' => ( isset( $block_script ) && !empty( $block_script ) ) ? site_url() . '/' . $block_script[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->js, 286 'cssUrl' => ( isset( $block_style ) && !empty( $block_style ) ) ? site_url() . '/' . $block_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->css, 287 'editorCss' => ( isset( $editor_style ) && !empty( $editor_style ) ) ? site_url() . '/' . $editor_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->editor, 288 'infoUrl' => 'https://www.npmjs.com/package/' . $package_json->name, 289 'imageUrl' => ( !isset( $block_thumbnail ) && empty( $block_thumbnail ) ) ? ( ( isset( $package_json->gutenbergCloud ) && !empty( $package_json->gutenbergCloud->thumbnail ) ) ? site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->thumbnail : '' ) : site_url() . '/' . $block_thumbnail[0], 290 'version' => isset( $package_json->version ) ? $package_json->version : '', 291 'blockManifest' => json_encode($block_manifest) 292 ); 293 } 293 294 294 295 } -
cloud-blocks/tags/1.1.8/docs/changelog.md
r2098382 r2171131 1 1 ## Changelog 2 3 #### 1.1.8 4 * **Fix**: Fix an issue with local blocks directory which was losting every files as block 2 5 3 6 #### 1.1.7 -
cloud-blocks/tags/1.1.8/readme.txt
r2098382 r2171131 6 6 Tested up to: 5.2 7 7 Requires PHP: 5.4 8 Stable tag: 1.1. 78 Stable tag: 1.1.8 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 75 75 76 76 == Changelog == 77 78 = 1.1.8 = 79 *Fix: Fix an issue with local blocks directory which was losting every files as block 77 80 78 81 = 1.1.7 = -
cloud-blocks/trunk/cloud-blocks.php
r2098382 r2171131 2 2 /* 3 3 Plugin Name: Cloud Blocks 4 Version: 1.1. 74 Version: 1.1.8 5 5 Description: Your library of Gutenberg blocks in the cloud 6 6 Author: Frontkom … … 30 30 // Plugin version . 31 31 if ( ! defined( 'FGC_VERSION' ) ) { 32 define( 'FGC_VERSION', '1.1. 7' );32 define( 'FGC_VERSION', '1.1.8' ); 33 33 } 34 34 -
cloud-blocks/trunk/core/Blocks/Blocks.php
r2065536 r2171131 239 239 240 240 // Extract block js and css files 241 foreach ($block_files as $file) { 242 if ( preg_match('/style.css$/i', $file) ) { 243 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_style ); 241 if ( isset( $block_files ) && !empty( $block_files ) ) { 242 foreach ($block_files as $file) { 243 if ( preg_match('/style.css$/i', $file) ) { 244 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_style ); 245 } 246 if ( preg_match('/editor.css$/i', $file) ) { 247 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $editor_style ); 248 } 249 if ( preg_match('/index.js$/i', $file) ) { 250 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_script ); 251 } 244 252 } 245 if ( preg_match('/editor.css$/i', $file) ) { 246 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $editor_style ); 247 } 248 if ( preg_match('/index.js$/i', $file) ) { 249 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $file, $block_script ); 250 } 251 } 252 // Extract block screenshot 253 foreach ($screenshot as $img) { 254 if ( preg_match('/thumbnail|screenshot/i', $img) ) { 255 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $img, $block_thumbnail ); 253 // Extract block screenshot 254 foreach ($screenshot as $img) { 255 if ( preg_match('/thumbnail|screenshot/i', $img) ) { 256 preg_match( '/wp-content\/uploads\/gutenberg-blocks\/[a-zA-Z0-9-_\/.]*/i', $img, $block_thumbnail ); 257 } 256 258 } 257 259 } … … 277 279 'isLocal' => true 278 280 ); 279 } 280 281 $local_blocks[] = array( 282 'name' => isset( $package_json->gutenbergCloud->name ) ? $package_json->gutenbergCloud->name : $package_json->name, 283 'packageName' => isset( $package_json->name ) ? $package_json->name : '', 284 'jsUrl' => ( isset( $block_script ) && !empty( $block_script ) ) ? site_url() . '/' . $block_script[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->js, 285 'cssUrl' => ( isset( $block_style ) && !empty( $block_style ) ) ? site_url() . '/' . $block_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->css, 286 'editorCss' => ( isset( $editor_style ) && !empty( $editor_style ) ) ? site_url() . '/' . $editor_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->editor, 287 'infoUrl' => 'https://www.npmjs.com/package/' . $package_json->name, 288 'imageUrl' => ( !isset( $block_thumbnail ) && empty( $block_thumbnail ) ) ? ( ( isset( $package_json->gutenbergCloud ) && !empty( $package_json->gutenbergCloud->thumbnail ) ) ? site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->thumbnail : '' ) : site_url() . '/' . $block_thumbnail[0], 289 'version' => isset( $package_json->version ) ? $package_json->version : '', 290 'blockManifest' => json_encode($block_manifest) 291 ); 292 281 282 $local_blocks[] = array( 283 'name' => isset( $package_json->gutenbergCloud->name ) ? $package_json->gutenbergCloud->name : $package_json->name, 284 'packageName' => isset( $package_json->name ) ? $package_json->name : '', 285 'jsUrl' => ( isset( $block_script ) && !empty( $block_script ) ) ? site_url() . '/' . $block_script[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->js, 286 'cssUrl' => ( isset( $block_style ) && !empty( $block_style ) ) ? site_url() . '/' . $block_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->css, 287 'editorCss' => ( isset( $editor_style ) && !empty( $editor_style ) ) ? site_url() . '/' . $editor_style[0] : site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->editor, 288 'infoUrl' => 'https://www.npmjs.com/package/' . $package_json->name, 289 'imageUrl' => ( !isset( $block_thumbnail ) && empty( $block_thumbnail ) ) ? ( ( isset( $package_json->gutenbergCloud ) && !empty( $package_json->gutenbergCloud->thumbnail ) ) ? site_url() . '/wp-content/uploads/gutenberg-blocks/' . $block_name[0] . '/' . $package_json->gutenbergCloud->thumbnail : '' ) : site_url() . '/' . $block_thumbnail[0], 290 'version' => isset( $package_json->version ) ? $package_json->version : '', 291 'blockManifest' => json_encode($block_manifest) 292 ); 293 } 293 294 294 295 } -
cloud-blocks/trunk/docs/changelog.md
r2098382 r2171131 1 1 ## Changelog 2 3 #### 1.1.8 4 * **Fix**: Fix an issue with local blocks directory which was losting every files as block 2 5 3 6 #### 1.1.7 -
cloud-blocks/trunk/readme.txt
r2098382 r2171131 6 6 Tested up to: 5.2 7 7 Requires PHP: 5.4 8 Stable tag: 1.1. 78 Stable tag: 1.1.8 9 9 License: GPLv3 10 10 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 75 75 76 76 == Changelog == 77 78 = 1.1.8 = 79 *Fix: Fix an issue with local blocks directory which was losting every files as block 77 80 78 81 = 1.1.7 =
Note: See TracChangeset
for help on using the changeset viewer.