-
Notifications
You must be signed in to change notification settings - Fork 2
/
readme.txt
147 lines (94 loc) · 7.04 KB
/
readme.txt
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
=== Backstage - Customizer Demo Access ===
Contributors: pixelgrade, vlad.olaru
Tags: customizer, demo, guest access, theme preview, site customization, sandbox, preview options, theme options, theme shop
Requires at least: 4.9.0
Tested up to: 5.3.0
Requires PHP: 5.4.0
Stable tag: 1.4.2
License: GPL v2.0 (or later)
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Showcase your product's flexibility the same way users will harness it, in the Customizer. All elegant and secure.
== Description ==
Allow your demo site visitors to easily access the Customizer without logging in. This way you can showcase your product's customization experience as close to reality as possible.
= Secure =
Everything is setup in such a way that people who are up to no good can't mess with your demo site data. We've put a lot of thought into this and we believe things are sound.
= Customizable =
We know that each of us has their own design sensibilities and particular technical setup. That is why we've made it *easy to integrate* the plugin in a multitude of scenarios.
You can change both the *frontend and the Customizer behavior* of the plugin.
For the frontend, you have several options:
* For most the default HTML and CSS styling will be just fine. You can customize the button text.
* You can choose to provide your own button HTML and CSS.
* Or you can go all custom and handle the button yourself.
When it comes to the Customizer guest experience, the plugin will introduce a *Back to Demo* button (instead of the *Publish* button) and *a notification* for setting user expectations. You can customize the button text and the notification content and behavior.
= Compatible =
Backstage should work with *any type of Customizer options* you have on your site:
* WordPress core controls;
* Colors and fonts controls;
* Layout and behavioral controls like content width or blog layout.
The plugin is compatible with any type of WordPress installation:
* Works with **regular, single installations;**
* Works with **Multisite setups;** you can activate the plugin **network-wide or per-blog.**
The following **limitations** are inherent to the reality of having a sandboxed Customizer:
* File uploads are not allowed; due to this, any controls that need file upload will not be allowed to be modified;
* Any time a visitor leaves the Customizer, any customization is lost and when he or she enters again, all will start clean;
= For theme authors by theme authors =
The main audience of this plugin are **theme and plugin authors** that wish to showcase to potential customers the awesome customization possibilities provided by their product.
Earn that extra confidence needed for your next sale by being fully open and letting your work speak for itself.
**Made with love by [Pixelgrade](https://pixelgrade.com)**
== Installation ==
Installing "Backstage" can be done either by searching for "Backstage" via the `Plugins → Add New` screen in your WordPress dashboard, or by using the following steps:
1. Download the plugin via WordPress.org.
2. Upload the ZIP file through the `Plugins → Add New → Upload` screen in your WordPress dashboard.
3. Activate the plugin through the `Plugins` menu in WordPress.
4. Head over to `Appearance → Backstage` (or `Network Settings → Backstage` if network-wide activated) and set it up.
== Translations ==
You can translate Backstage on [__translate.wordpress.org__](https://translate.wordpress.org/projects/wp-plugins/backstage).
== Issues ==
If you identify any errors or have an idea for improving the plugin, please open an [issue](https://github.com/pixelgrade/backstage/issues?stage=open). We're more than excited to see what the community thinks of this little plugin, and we welcome your input!
If Github is not your thing but you are passionate about Backstage and want to help us make it better, don't hesitate to [reach us](https://pixelgrade.com/contact/).
== Frequently Asked Questions ==
= Is this safe to use in production? =
We believe so. To put our money where our mouth is, we use it in production on our own [demo multisite installation](https://demos.pixelgrade.com).
We've strived to close off any endpoints that WordPress uses to save things (mainly the changeset logic specific to the Customizer experience).
= Without changesets how is the experience consistent with a real scenario? =
There is no point in showcasing a customization experience that is not consistent with the real one. We couldn't agree more. That is why we've studied the Customizer JavaScript logic and found ways to maintain the same results without saving anything in the database.
= When I navigate in the preview window, customizations don't get applied? =
Sometimes, WordPress themes will come with custom JavaScript that will bind to *click events* and stop their propagation. Due to this, the Customizer (not our's) logic can't catch that click and go the proper way of refreshing the preview window. We really have not way around that.
= Can I choose to hide certain Customizer sections or panels? =
The plugin doesn't provide this functionality as it is quite difficult to map it to a set of configuration options. But it should be quite straight forward to code a function that "removes" panels, sections or controls when the special pseudo-guest user is logged in.
= I am a developer. Can I easily change how things work? =
We are also developers (and designers, and marketers, and support people...) just like you. We know how important it is that plugins get coded in an open, thoughtful manner that is friendly towards those that have custom requirements.
The plugin provides *actions and filters* in all the right places allowing you to *introduce custom logic* just about anywhere, if the need arises.
== Credits ==
* [CMB2](https://github.com/CMB2/CMB2) Metaboxes, custom fields library - License: GPLv2 or later
* [CMB2 Conditionals](https://github.com/jcchavezs/cmb2-conditionals/) plugin for CMB2 - License: GPLv2 or later
== Changelog ==
= 1.4.2 =
* 2019-11-08
* Prevent aggressive sanitization for custom code fields.
= 1.4.1 =
* 2019-11-07
* Allow POST method also for REST API endpoint.
= 1.4 =
* 2019-11-06
* Added support for injecting custom CSS and JS in the Customizer.
* Added support for UTF-8 characters in the button text.
* Added support for extra query arguments to the REST API endpoint.
* Made sure that settings data in conditionally hidden fields is persistent so you wouldn't lose you custom code.
= 1.3 =
* 2019-10-08
* Added new settings and logic for enabling a REST API endpoint to fetch the secure customizer access link.
* Update CMB2 dependency to latest version (2.6.0).
= 1.2 =
* 2019-10-07
* Improved behaviour when working within multisite settings and the plugin is activated on a per site basis.
* Improved security checks to prevent edge-cases on multisite installations.
* Added upgrade routines for smoother plugin updates.
* Tested with WordPress 5.2.3.
= 1.1 =
* 2018-12-10
* Added frame busting when in an iframe because the Customizer doesn't play well when opened in an iframe.
* Tested with WordPress 5.0.
= 1.0 =
* 2018-10-05
* Initial release