-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.js
36 lines (34 loc) · 1.09 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
const { __ } = wp.i18n;
/**
* Import blocks.
*/
import "./extensions/restriction-settings";
/**
* Import blocks.
*/
import "./blocks/block-account-page/index.js";
import "./blocks/block-login-form/index.js";
import "./blocks/block-login-link/index.js";
import "./blocks/block-logout-link/index.js";
import "./blocks/block-password-recovery-form/index.js";
import "./blocks/block-profile-card/index.js";
import "./blocks/block-profile-page/index.js";
import "./blocks/block-recently-registered-users/index.js";
import "./blocks/block-registration-form/index.js";
import "./blocks/block-user-directory/index.js";
import "./blocks/block-post-form/index.js";
import "./blocks/block-group-directory/index.js";
import "./blocks/block-like-button/index.js";
import "./blocks/block-social-login-buttons/index.js";
import "./blocks/block-private-content/index.js";
import "./style.scss";
// Setup custom icon for the WPUM blocks category.
wp.blocks.updateCategory("wpum", {
icon: (
<img
style={{ height: "20px", "margin-top": "-2px" }}
src={wpum_blocks.wpum_svg_logo}
alt={__("WP User Manager")}
/>
)
});