Version Description
- Fix: Add wp_set_script_translations() to translate block editor
- Tweak: Add spacing to update nag in Settings area
Download this release
Release Info
Developer | edge22 |
Plugin | GenerateBlocks |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- assets/css/dashboard.css +6 -0
- includes/general.php +4 -0
- plugin.php +3 -6
- readme.txt +5 -1
assets/css/dashboard.css
CHANGED
@@ -251,6 +251,12 @@
|
|
251 |
padding-left: 0;
|
252 |
}
|
253 |
|
|
|
|
|
|
|
|
|
|
|
|
|
254 |
@media (max-width: 1180px){
|
255 |
.gblocks-inside-generatepress {
|
256 |
flex-wrap: wrap;
|
251 |
padding-left: 0;
|
252 |
}
|
253 |
|
254 |
+
.settings_page_generateblocks .update-nag,
|
255 |
+
.settings_page_generateblocks-settings .update-nag {
|
256 |
+
margin-bottom: 20px;
|
257 |
+
margin-left: 22px;
|
258 |
+
}
|
259 |
+
|
260 |
@media (max-width: 1180px){
|
261 |
.gblocks-inside-generatepress {
|
262 |
flex-wrap: wrap;
|
includes/general.php
CHANGED
@@ -28,6 +28,10 @@ function generateblocks_do_block_editor_assets() {
|
|
28 |
true
|
29 |
);
|
30 |
|
|
|
|
|
|
|
|
|
31 |
wp_enqueue_script(
|
32 |
'generateblocks-dompurify',
|
33 |
GENERATEBLOCKS_DIR_URL . 'assets/js/purify.min.js',
|
28 |
true
|
29 |
);
|
30 |
|
31 |
+
if ( function_exists( 'wp_set_script_translations' ) ) {
|
32 |
+
wp_set_script_translations( 'generateblocks', 'generateblocks' );
|
33 |
+
}
|
34 |
+
|
35 |
wp_enqueue_script(
|
36 |
'generateblocks-dompurify',
|
37 |
GENERATEBLOCKS_DIR_URL . 'assets/js/purify.min.js',
|
plugin.php
CHANGED
@@ -5,9 +5,10 @@
|
|
5 |
* Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
|
6 |
* Author: Tom Usborne
|
7 |
* Author URI: https://tomusborne.com
|
8 |
-
* Version: 1.0
|
9 |
* License: GPL2+
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
|
|
11 |
*
|
12 |
* @package GenerateBlocks
|
13 |
*/
|
@@ -16,7 +17,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
16 |
exit; // Exit if accessed directly.
|
17 |
}
|
18 |
|
19 |
-
define( 'GENERATEBLOCKS_VERSION', '1.0' );
|
20 |
define( 'GENERATEBLOCKS_CSS_VERSION', '1.0' );
|
21 |
define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
|
22 |
define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
|
@@ -35,11 +36,7 @@ add_action( 'plugins_loaded', 'generateblocks_load_plugin_textdomain' );
|
|
35 |
/**
|
36 |
* Load GenerateBlocks textdomain.
|
37 |
*
|
38 |
-
* Load gettext translate for Elementor text domain.
|
39 |
-
*
|
40 |
* @since 1.0
|
41 |
-
*
|
42 |
-
* @return void
|
43 |
*/
|
44 |
function generateblocks_load_plugin_textdomain() {
|
45 |
load_plugin_textdomain( 'generateblocks' );
|
5 |
* Description: A small collection of lightweight WordPress blocks that can accomplish nearly anything.
|
6 |
* Author: Tom Usborne
|
7 |
* Author URI: https://tomusborne.com
|
8 |
+
* Version: 1.0.1
|
9 |
* License: GPL2+
|
10 |
* License URI: https://www.gnu.org/licenses/gpl-2.0.txt
|
11 |
+
* Text Domain: generateblocks
|
12 |
*
|
13 |
* @package GenerateBlocks
|
14 |
*/
|
17 |
exit; // Exit if accessed directly.
|
18 |
}
|
19 |
|
20 |
+
define( 'GENERATEBLOCKS_VERSION', '1.0.1' );
|
21 |
define( 'GENERATEBLOCKS_CSS_VERSION', '1.0' );
|
22 |
define( 'GENERATEBLOCKS_DIR', plugin_dir_path( __FILE__ ) );
|
23 |
define( 'GENERATEBLOCKS_DIR_URL', plugin_dir_url( __FILE__ ) );
|
36 |
/**
|
37 |
* Load GenerateBlocks textdomain.
|
38 |
*
|
|
|
|
|
39 |
* @since 1.0
|
|
|
|
|
40 |
*/
|
41 |
function generateblocks_load_plugin_textdomain() {
|
42 |
load_plugin_textdomain( 'generateblocks' );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Tags: blocks, gutenberg, container, headline, grid, columns, page builder, wysiw
|
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
-
Stable tag: 1.0
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -75,5 +75,9 @@ GenerateBlocks was built to work hand-in-hand with [GeneratePress](https://gener
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
78 |
= 1.0 =
|
79 |
* Initial release
|
5 |
Requires at least: 5.0
|
6 |
Tested up to: 5.4
|
7 |
Requires PHP: 5.6
|
8 |
+
Stable tag: 1.0.1
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.0.1 =
|
79 |
+
* Fix: Add wp_set_script_translations() to translate block editor
|
80 |
+
* Tweak: Add spacing to update nag in Settings area
|
81 |
+
|
82 |
= 1.0 =
|
83 |
* Initial release
|