Skip to content

Commit 9fb3d8d

Browse files
committed
add banner images
1 parent 5395df4 commit 9fb3d8d

File tree

13 files changed

+158
-54
lines changed

13 files changed

+158
-54
lines changed

build/index.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-dom-ready', 'wp-html-entities', 'wp-polyfill', 'wp-url'), 'version' => 'bf5d02cb0417478c00a42da392e7b10c');
1+
<?php return array('dependencies' => array('lodash', 'react', 'react-dom', 'wp-dom-ready', 'wp-html-entities', 'wp-polyfill', 'wp-url'), 'version' => '1e1714bd540a6b7173fa1233d14cbf9b');

build/index.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21571,15 +21571,15 @@ __webpack_require__.r(__webpack_exports__);
2157121571
/* harmony import */ var _query_client__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./query-client */ "./src/addons/template-library/query-client.js");
2157221572
/* harmony import */ var _stores_library__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./stores/library */ "./src/addons/template-library/stores/library.js");
2157321573

21574-
/**
21575-
* WordPress Dependencies
21574+
/**
21575+
* WordPress Dependencies
2157621576
*/
2157721577

2157821578

2157921579

2158021580

21581-
/**
21582-
* Custom Dependencies
21581+
/**
21582+
* Custom Dependencies
2158321583
*/
2158421584

2158521585

@@ -22949,10 +22949,10 @@ function _getTemplates() {
2294922949
__webpack_require__.r(__webpack_exports__);
2295022950
/* harmony import */ var zustand__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! zustand */ "./node_modules/zustand/index.js");
2295122951
/* harmony import */ var zustand__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(zustand__WEBPACK_IMPORTED_MODULE_0__);
22952-
/**
22953-
*
22954-
* zustand Dependencies
22955-
*
22952+
/**
22953+
*
22954+
* zustand Dependencies
22955+
*
2295622956
*/
2295722957

2295822958
var useLibrary = zustand__WEBPACK_IMPORTED_MODULE_0___default()(function (set) {

build/settings.asset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '33495f2403a800db9b3f432240babfda');
1+
<?php return array('dependencies' => array('lodash', 'wp-polyfill'), 'version' => '32ba406fdea6988edc334ddea80f5bef');

build/settings.js

Lines changed: 27 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15166,14 +15166,14 @@ __webpack_require__.r(__webpack_exports__);
1516615166
/* harmony import */ var _wordpress_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__);
1516715167
/* harmony import */ var _hooks_use_setting__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../hooks/use-setting */ "./src/admin/hooks/use-setting.js");
1516815168

15169-
/**
15170-
* WordPress Dependencies
15169+
/**
15170+
* WordPress Dependencies
1517115171
*/
1517215172

1517315173

1517415174

15175-
/**
15176-
* Custom Dependencies
15175+
/**
15176+
* Custom Dependencies
1517715177
*/
1517815178

1517915179
function AddonsManager() {
@@ -15819,12 +15819,12 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
1581915819

1582015820

1582115821

15822-
/**
15823-
* A custom hook that allows fetching of wp settings easier.
15824-
*
15825-
* @param {string} key - Setting key.
15826-
*
15827-
* @return any - Setting value
15822+
/**
15823+
* A custom hook that allows fetching of wp settings easier.
15824+
*
15825+
* @param {string} key - Setting key.
15826+
*
15827+
* @return any - Setting value
1582815828
*/
1582915829
function useSetting(key) {
1583015830
var onSuccess = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function () {
@@ -15967,7 +15967,6 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
1596715967

1596815968

1596915969

15970-
1597115970
/**
1597215971
* WordPress dependencies
1597315972
*/
@@ -16026,6 +16025,7 @@ var EditorsKitSettings = /*#__PURE__*/function (_Component) {
1602616025
activeClass: "active-tab",
1602716026
tabs: tabs
1602816027
}, function (tab) {
16028+
var _editorskitData$block, _editorskitData, _editorskitData$templ, _editorskitData2;
1602916029
switch (tab.name) {
1603016030
case 'ek-getting-started':
1603116031
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(Fragment, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("div", {
@@ -16051,9 +16051,23 @@ var EditorsKitSettings = /*#__PURE__*/function (_Component) {
1605116051
className: "editorskit-features-manager-items-wrapper"
1605216052
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_extensions_components_manager_components_manager__WEBPACK_IMPORTED_MODULE_7__["default"], null)));
1605316053
case 'ek-blocks-manager':
16054-
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(Fragment, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", null, __('Manage each individual blocks! You can enable or disable any blocks you want and it will be reflected on Gutenberg block manager settings. Just uncheck the box and it will automatically be saved.', 'block-options')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_block_manager___WEBPACK_IMPORTED_MODULE_8__["default"], null));
16054+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(Fragment, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", {
16055+
href: "https://shop.gutenberghub.com/blocks/",
16056+
target: "_blank"
16057+
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("img", {
16058+
width: "100%",
16059+
height: "100%",
16060+
src: (_editorskitData$block = (_editorskitData = editorskitData) === null || _editorskitData === void 0 ? void 0 : _editorskitData.blockBanner) !== null && _editorskitData$block !== void 0 ? _editorskitData$block : ""
16061+
})), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", null, __('Manage each individual blocks! You can enable or disable any blocks you want and it will be reflected on Gutenberg block manager settings. Just uncheck the box and it will automatically be saved.', 'block-options')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_block_manager___WEBPACK_IMPORTED_MODULE_8__["default"], null));
1605516062
case 'ek-template-library':
16056-
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(Fragment, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", null, __('Here you can enable/disable the integrated GutenbergHub\'s template library.', 'block-options')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_addons_manager__WEBPACK_IMPORTED_MODULE_11__["default"], null));
16063+
return Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(Fragment, null, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("a", {
16064+
href: "https://shop.gutenberghub.com/patterns/",
16065+
target: "_blank"
16066+
}, Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("img", {
16067+
width: "100%",
16068+
height: "100%",
16069+
src: (_editorskitData$templ = (_editorskitData2 = editorskitData) === null || _editorskitData2 === void 0 ? void 0 : _editorskitData2.templateBanner) !== null && _editorskitData$templ !== void 0 ? _editorskitData$templ : ""
16070+
})), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])("p", null, __('Here you can enable/disable the integrated GutenbergHub\'s template library.', 'block-options')), Object(_wordpress_element__WEBPACK_IMPORTED_MODULE_5__["createElement"])(_addons_manager__WEBPACK_IMPORTED_MODULE_11__["default"], null));
1605716071
}
1605816072
});
1605916073
};

build/template-library-addon.js.map

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

images/blocks.png

90.3 KB
Loading

images/templates.png

149 KB
Loading
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?php
2+
/**
3+
* Editorskit Plugin Images
4+
*
5+
* @package Editorskit
6+
*/
7+
8+
/**
9+
* Responsible for creating images links.
10+
*/
11+
class Editorskit_Plugin_Images_Links {
12+
13+
/**
14+
* The Plugin version.
15+
*
16+
* @var string $slug
17+
*/
18+
private $slug;
19+
20+
/**
21+
* Constructor.
22+
*
23+
* @return void
24+
*/
25+
public function __construct() {
26+
$this->slug = 'editorskit';
27+
$this->plugin_image_links();
28+
}
29+
/**
30+
* Generates Plugins images.
31+
*/
32+
public function plugin_image_links() {
33+
34+
$template_banner = EDITORSKIT_PLUGIN_URL . 'images/templates.png';
35+
$block_banner = EDITORSKIT_PLUGIN_URL . 'images/blocks.png';
36+
37+
// Localize data to pass variables to JavaScript.
38+
wp_localize_script(
39+
$this->slug . '-admin',
40+
'editorskitData',
41+
array(
42+
'templateBanner' => $template_banner,
43+
'blockBanner' => $block_banner,
44+
)
45+
);
46+
}
47+
};
48+
49+
new Editorskit_Plugin_Images_Links();

includes/class-editorskit-welcome.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public function enqueue() {
139139

140140
wp_add_inline_script( $this->slug . '-admin', 'window.editorskitSettings = ' . wp_json_encode( $global ) . ';', 'before' );
141141
wp_add_inline_script( $this->slug . '-admin', 'window.editorskitInfo = ' . wp_json_encode( $global ) . ';', 'before' );
142+
require_once EDITORSKIT_PLUGIN_DIR . 'includes/class-editorskit-plugin-images-links.php';
142143
}
143144

144145
/**

languages/editorskit.pot

Lines changed: 62 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,84 @@ msgstr ""
33
"Content-Type: text/plain; charset=utf-8\n"
44
"X-Generator: babel-plugin-makepot\n"
55

6-
#: src/addons/template-library/components/library-cloud.js:171
7-
msgid "Get Now"
6+
#: src/admin/index.js:101
7+
msgid ""
8+
"Manage each individual blocks! You can enable or disable any blocks you "
9+
"want and it will be reflected on Gutenberg block manager settings. Just "
10+
"uncheck the box and it will automatically be saved."
811
msgstr ""
912

10-
#: src/addons/template-library/components/library-cloud.js:195
11-
msgid "Deactivate"
13+
#: src/admin/index.js:112
14+
msgid "Here you can enable/disable the integrated GutenbergHub's template library."
1215
msgstr ""
1316

14-
#: src/addons/template-library/components/library-cloud.js:31
15-
msgid "Enter License Key"
17+
#: src/admin/index.js:127
18+
msgid "Settings → EditorsKit"
1619
msgstr ""
1720

18-
#: src/addons/template-library/components/library-cloud.js:44
19-
msgid "Cancel"
21+
#: src/admin/index.js:128
22+
msgid "Getting Started with"
2023
msgstr ""
2124

22-
#: src/addons/template-library/components/library-cloud.js:58
23-
msgid "Activating..."
25+
#: src/admin/index.js:129
26+
msgid ""
27+
"Congratulations! You've just unlocked more Gutenberg block editor tools for "
28+
"easier editing and better workflow. Check more information about the plugin "
29+
"below and please make sure to navigate through \"Tutorials and Docs\" tab "
30+
"to learn more on how to use each available features."
2431
msgstr ""
2532

26-
#: src/addons/template-library/components/library-cloud.js:73
27-
msgid "Activate"
33+
#: src/admin/index.js:139
34+
msgid "Buy me a Coffee"
2835
msgstr ""
2936

30-
#: src/addons/template-library/components/library-no-connections-found.js:15
31-
msgid "No Cloud Found"
37+
#: src/admin/index.js:147
38+
msgid "Leave a Review"
3239
msgstr ""
3340

34-
#: src/addons/template-library/components/library-no-connections-found.js:21
35-
msgid "You don't have any existing cloud. Try adding a new cloud."
41+
#: src/admin/index.js:23
42+
msgid "Getting Started"
3643
msgstr ""
3744

38-
#: src/addons/template-library/components/library-no-connections-found.js:30
39-
msgid "Add New Cloud"
45+
#: src/admin/index.js:28
46+
msgid "Tutorial and Docs"
4047
msgstr ""
4148

42-
#: src/addons/template-library/components/library-sidebar.js:72
43-
msgid "All"
49+
#: src/admin/index.js:33
50+
msgid "Features Manager"
51+
msgstr ""
52+
53+
#: src/admin/index.js:38
54+
msgid "Blocks Manager"
55+
msgstr ""
56+
57+
#: src/admin/index.js:43
58+
msgid "Template Library"
59+
msgstr ""
60+
61+
#: src/admin/index.js:60
62+
msgid ""
63+
"EditorsKit provides set of tools to extend the way you are building content "
64+
"on WordPress Gutenberg block editor. Designed and integrated to help users "
65+
"easily navigate; and control each block the way it should be."
66+
msgstr ""
67+
68+
#: src/admin/index.js:63
69+
msgid "EditorsKit video preview"
70+
msgstr ""
71+
72+
#: src/admin/index.js:68
73+
msgid ""
74+
"If you have any questions or suggestion, let us know through "
75+
"%1$sTwitter%4$s or our %2$sFacebook community %4$s. Also, %3$ssubscribe to "
76+
"our newsletter%4$s if you want to stay up to date with what's new and "
77+
"upcoming at EditorsKit."
78+
msgstr ""
79+
80+
#: src/admin/index.js:88
81+
msgid ""
82+
"All features are active by default but you have complete control over each "
83+
"one of them. Disable any features do not want to use and re-enable them "
84+
"anytime on this page or under the \"EditorsKit Settings\" on Gutenberg "
85+
"editor. Just uncheck the box and it will automatically be saved."
4486
msgstr ""

0 commit comments

Comments
 (0)