You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$wp_customize->add_control('rd_messenger_enable',array('type'=>'checkbox','priority'=>1,'section'=>'rd_messenger','label'=>__('Switch on the Facebook Messenger','rd_messenger')));
$wp_customize->add_control('rd_messenger_minimized',array('type'=>'checkbox','priority'=>2,'section'=>'rd_messenger','label'=>__('Minimized (optional)','rd_messenger'),'description'=>__('Specifies whether the plugin should be minimized or shown. Defaults to true on desktop and false on mobile browsers.', 'rd_messenger')));
$wp_customize->add_control('rd_messenger_page',array('type'=>'text','priority'=>4,'section'=>'rd_messenger','label'=>__('Page ID','rd_messenger'),'description'=>__('Enter your numeric page id here','rd_messenger')));
$wp_customize->add_control('rd_messenger_webhook',array('type'=>'text','priority'=> 5,'section'=>'rd_messenger','label' => __('Webhook (optional)','rd_messenger'),'description'=>__('Custom string passed to your webhook in messaging_postbacks and messaging_referrals events','rd_messenger')));
A very simple plug-in that facilitates the process of adding facebook messenger to your website
13
+
14
+
== Description ==
15
+
16
+
Spectrum Engine is a simple but very life-enhancing plugin for developers. With it you can quickly create custom Customizer menu and add your own options to it.
17
+
With one `spectrum()` function, you have access to both modified and not yet edited options.
18
+
You can add the spectrum as an element of your WordPress Theme and dramatically speed up your work.
19
+
Spectrum Engine ready for theme is available at:
20
+
https://github.com/rapiddtc
21
+
22
+
Note, the plugin includes an optional option, which is Google Fonts.
23
+
If you do not remove this option, you must accept Google's terms and privacy policy.
24
+
https://www.google.com/policies/privacy/
25
+
https://developers.google.com/terms/
26
+
27
+
== Installation ==
28
+
29
+
1. Upload `rd_messenger` folder to the `/wp-content/plugins/` directory
30
+
2. Activate the plugin through the 'Plugins' menu in WordPress
31
+
3. Add your APP ID and Facebook page ID in Customizer
32
+
33
+
== Frequently asked questions ==
34
+
35
+
= What types of options are available? =
36
+
37
+
You can now use: HTML, CHECKBOX, URL, TEXT, TEXTAREA, SELECT, COLOR, IMG, PAGE, MULTIPAGE, DROPDOWN, MULTISELECT
38
+
39
+
= Where are my options kept? =
40
+
41
+
Options and menu layout are in `spectrum_engine/_options.php` file
42
+
43
+
= How to add my own option? =
44
+
45
+
You need to add an option to the matching section, as shown below:
You need to create a menu according to the scheme below:
56
+
$customization = [
57
+
['section_id'] =>
58
+
[
59
+
'Title',
60
+
'Description'
61
+
],
62
+
['panel_id'] =>
63
+
'Title',
64
+
'Description',
65
+
[
66
+
['section_id', 'label', 'description']
67
+
]
68
+
];
69
+
70
+
== Screenshots ==
71
+
72
+
1. This is the file with options
73
+
2. Dashboard with view of active options and menus
74
+
3. Google fonts
75
+
4. Available types of options
76
+
77
+
== Changelog ==
78
+
79
+
= 2.2.4 =
80
+
1. Fixed an error when the main section has no description
81
+
2. Fixed an error when the subsection has no description
82
+
83
+
= 2.2.3 =
84
+
1. Fixed issue with Google fonts during customization
85
+
86
+
= 2.2.2 =
87
+
1. Bug fixes
88
+
89
+
= 2.2.1 =
90
+
1. Bug fixes
91
+
92
+
= 2.2.1 =
93
+
1. Improved connectivity with files
94
+
2. Bug fixes
95
+
96
+
= 2.1.0 =
97
+
1. `spectrum()` function stores settings, works in personalization, and does not require so many database connections
98
+
99
+
= 2.0.0 =
100
+
1. Completely rewritten engine revamp for Spectrum theme
101
+
102
+
= 1.3.0 =
103
+
1. Bug fixes
104
+
2. Added `cc("option_id")` functions as storing settings
105
+
106
+
= 1.2.0 =
107
+
1. Bug fixes
108
+
2. Added `global $cc;` as a variable storing settings
109
+
110
+
= 1.1.0 =
111
+
1. Bug fixes
112
+
2. Added support for PAGE, MULTIPAGE, DROPDOWN, MULTISELECT
113
+
114
+
= 1.0.0 =
115
+
1. CCreation Engine was created for the CCreation theme
116
+
2. Added support for HTML, CHECKBOX, URL, TEXT, TEXTAREA, SELECT, COLOR, IMG
117
+
118
+
== Upgrade notice ==
119
+
The latest `spectrum()` functions works in personalization. Added support for Google fonts
120
+
121
+
122
+
== License ==
123
+
124
+
Copyright 2017 RapidDev Leszek Pomianowski
125
+
126
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
127
+
128
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
129
+
130
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
0 commit comments