Version Description
- Tested for WP 4.7
- Improved copy colors
Download this release
Release Info
Developer | basszje |
Plugin | WordPress Button Plugin MaxButtons |
Version | 6.9 |
Comparing to | |
See all releases |
Code changes from version 6.8 to 6.9
- blocks/responsive.php +8 -5
- changelog.txt +324 -0
- js/init.js +0 -5
- js/maxbuttons-admin.js +7 -83
- js/min/maxbuttons-admin.js +1 -1
- js/min/responsive.js +1 -1
- js/responsive.js +67 -3
- maxbuttons.php +3 -3
- readme.txt +7 -327
blocks/responsive.php
CHANGED
@@ -147,9 +147,6 @@ class responsiveBlock extends maxBlock
|
|
147 |
|
148 |
if (is_null($queries))
|
149 |
return $data;
|
150 |
-
|
151 |
-
//echo "<PRE>"; print_R($queries); print_R($post); echo "</pRE>";
|
152 |
-
//exit();
|
153 |
|
154 |
foreach($queries as $i => $query)
|
155 |
{
|
@@ -220,6 +217,10 @@ class responsiveBlock extends maxBlock
|
|
220 |
$media_query = array_merge($names_used,$media_query);
|
221 |
|
222 |
?>
|
|
|
|
|
|
|
|
|
223 |
<div class="mb_tab option-container">
|
224 |
<div class="title"><?php _e('Responsive Settings', 'maxbuttons') ?></div>
|
225 |
<div class="inside responsive">
|
@@ -277,7 +278,7 @@ class responsiveBlock extends maxBlock
|
|
277 |
$show_conditional = htmlentities(json_encode($condition));
|
278 |
|
279 |
?>
|
280 |
-
<div class='media_query' data-query="<?php echo $item ?>">
|
281 |
<span class='removebutton dashicons dashicons-no'></span>
|
282 |
|
283 |
<input type="hidden" name="media_query[<?php echo $i ?>]" value="<?php echo $item ?>">
|
@@ -399,7 +400,8 @@ class responsiveBlock extends maxBlock
|
|
399 |
|
400 |
/*
|
401 |
$preview = new maxField('button');
|
402 |
-
$preview->id = 'mq_preview[' . $i . ']';
|
|
|
403 |
$preview->button_label = __('Show in preview','maxbuttons');
|
404 |
$preview->output('', 'end');
|
405 |
*/
|
@@ -420,6 +422,7 @@ class responsiveBlock extends maxBlock
|
|
420 |
</div> <!-- inside -->
|
421 |
|
422 |
<input type="hidden" name="next_media_index" value="<?php echo $i ?>" >
|
|
|
423 |
<div class='media_option_prot'>
|
424 |
|
425 |
<div class='media_query' data-query=''>
|
147 |
|
148 |
if (is_null($queries))
|
149 |
return $data;
|
|
|
|
|
|
|
150 |
|
151 |
foreach($queries as $i => $query)
|
152 |
{
|
217 |
$media_query = array_merge($names_used,$media_query);
|
218 |
|
219 |
?>
|
220 |
+
<script type='text/javascript'>
|
221 |
+
var responsiveMap = '<?php echo json_encode($this->multi_fields); ?>';
|
222 |
+
</script>
|
223 |
+
|
224 |
<div class="mb_tab option-container">
|
225 |
<div class="title"><?php _e('Responsive Settings', 'maxbuttons') ?></div>
|
226 |
<div class="inside responsive">
|
278 |
$show_conditional = htmlentities(json_encode($condition));
|
279 |
|
280 |
?>
|
281 |
+
<div class='media_query' data-query="<?php echo $item ?>" data-id="<?php echo $i ?>">
|
282 |
<span class='removebutton dashicons dashicons-no'></span>
|
283 |
|
284 |
<input type="hidden" name="media_query[<?php echo $i ?>]" value="<?php echo $item ?>">
|
400 |
|
401 |
/*
|
402 |
$preview = new maxField('button');
|
403 |
+
$preview->id = 'mq_preview[' . $i . ']';
|
404 |
+
$preview->inputclass = 'responsive_preview';
|
405 |
$preview->button_label = __('Show in preview','maxbuttons');
|
406 |
$preview->output('', 'end');
|
407 |
*/
|
422 |
</div> <!-- inside -->
|
423 |
|
424 |
<input type="hidden" name="next_media_index" value="<?php echo $i ?>" >
|
425 |
+
|
426 |
<div class='media_option_prot'>
|
427 |
|
428 |
<div class='media_query' data-query=''>
|
changelog.txt
CHANGED
@@ -1,3 +1,327 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 3.0 =
|
2 |
|
3 |
* Beta release of new codebase
|
1 |
+
= 4.22.1 =
|
2 |
+
|
3 |
+
* Removed Splinfo getExtension call since it's not compatible with all PHP 5.3 installations
|
4 |
+
|
5 |
+
= 4.22 =
|
6 |
+
|
7 |
+
* Major upgrade of user interface
|
8 |
+
* Major cleanup of styling code
|
9 |
+
* Description now handles multiple lines correctly
|
10 |
+
|
11 |
+
= 4.21 =
|
12 |
+
|
13 |
+
* Cleaner user interface at font options
|
14 |
+
* Check if jquery function exists on front.
|
15 |
+
|
16 |
+
= 4.20 =
|
17 |
+
|
18 |
+
* Tested for WordPress 4.5
|
19 |
+
* Moved old error modals in social sharing to new modal
|
20 |
+
* New copy dialog
|
21 |
+
|
22 |
+
= 4.19 =
|
23 |
+
|
24 |
+
* Fixed: Relative URL's without starting slash no longer are prepended with default scheme
|
25 |
+
* Tel: and sms: URL's not accepted in URL field
|
26 |
+
|
27 |
+
= 4.18 =
|
28 |
+
|
29 |
+
* Fixed problem responsive settings not correctly enabling / disabling options
|
30 |
+
* Button editor now warns when moving away without saving
|
31 |
+
|
32 |
+
= 4.17 =
|
33 |
+
|
34 |
+
* Moving from leanModal to better popup code
|
35 |
+
* Fixed Modal background and CSS error on delete button / view CSS
|
36 |
+
* Put Font style options (italics) back
|
37 |
+
|
38 |
+
= 4.16 =
|
39 |
+
|
40 |
+
* Version number added to JS scripts to prevent browser caching on updates
|
41 |
+
* Tweaks to the main CSS class statement to avoid clutter
|
42 |
+
* Fix for Cloudflare's email obfuscation in combination with responsive buttons.
|
43 |
+
|
44 |
+
|
45 |
+
= 4.15 =
|
46 |
+
|
47 |
+
* Option to add custom class names
|
48 |
+
* Added changes to increase plugin page speed performance
|
49 |
+
|
50 |
+
= 4.14 =
|
51 |
+
|
52 |
+
* Buttons in Shortcake didn't show Font Awesome buttons correctly
|
53 |
+
* Fixed bug in Shortcake rendering with ID's over 10
|
54 |
+
* Fixed error when adding button via Shortcake dialog
|
55 |
+
* Fixed paging and popup issues in button add dialog
|
56 |
+
* Made previous / next buttons in button add dialog more clear
|
57 |
+
|
58 |
+
= 4.13 =
|
59 |
+
|
60 |
+
* New option: Custom rel (Advanced) - for targeting popups
|
61 |
+
* Upgraded to Font Awesome 4.5.0
|
62 |
+
* Fixed remove collection link not working
|
63 |
+
|
64 |
+
= 4.12 =
|
65 |
+
|
66 |
+
* SO Pagebuilder : Fixed callbacks
|
67 |
+
* Shortcake : Fixed faulty callback when mixing add button functionality
|
68 |
+
* Social Share: fixed caching problem on blog pages results in same share URL's
|
69 |
+
* Social Share: fixed no image sharing with Pinterest.
|
70 |
+
* Editor: Fixed Javascript crash when clicking No in Delete button dialog
|
71 |
+
|
72 |
+
|
73 |
+
= 4.11.1 =
|
74 |
+
|
75 |
+
* Fixed possible crash due to extra return characters in the plugin causing WordPress to malfunction.
|
76 |
+
|
77 |
+
= 4.11 =
|
78 |
+
|
79 |
+
* Fixed SiteOrigin PageBuilder error when adding button
|
80 |
+
* Shortcake integration
|
81 |
+
* Add button dialog improvements
|
82 |
+
|
83 |
+
|
84 |
+
= 4.10 =
|
85 |
+
|
86 |
+
* Removed Twitter share count since Twitter doesn't support this anymore.
|
87 |
+
* Fixed issue with color picker
|
88 |
+
* Color picker window much larger now
|
89 |
+
* Add button interface now available in SiteOrigin editor widget
|
90 |
+
|
91 |
+
= 4.09 =
|
92 |
+
|
93 |
+
* Several issues were fixed with upgrading the plugin and database tables
|
94 |
+
* Fixed link in edit post/page screen when having no buttons
|
95 |
+
* Fixed integration crash with new version of SiteOrigin Page Builder
|
96 |
+
|
97 |
+
|
98 |
+
= 4.08 =
|
99 |
+
|
100 |
+
* Fixed conflict with WPMU Popup Pro
|
101 |
+
* New shortcode tag style="inline" - this forces the button style to load in document. This can be useful with JS-heavy sites who don't properly
|
102 |
+
load wp_footer();
|
103 |
+
|
104 |
+
= 4.07 =
|
105 |
+
|
106 |
+
* Fixed problem with URL encodings
|
107 |
+
* Fixed issue with Siteorigin widget not selecting button
|
108 |
+
* Changes in styling ( WP 4.4. update )
|
109 |
+
|
110 |
+
= 4.06 =
|
111 |
+
|
112 |
+
* Default button updated
|
113 |
+
|
114 |
+
= 4.05 =
|
115 |
+
|
116 |
+
* Integration with SiteOrigin Page Builder
|
117 |
+
|
118 |
+
= 4.04 =
|
119 |
+
|
120 |
+
* Updates to the color picker interface.
|
121 |
+
|
122 |
+
= 4.03 =
|
123 |
+
|
124 |
+
* Shortcode examples popup no longer expands the editor window
|
125 |
+
* Small fixes to title bar
|
126 |
+
|
127 |
+
= 4.02 =
|
128 |
+
|
129 |
+
* Fixed message in button inserter incorrectly stating no buttons are found.
|
130 |
+
* Javascript hardening to prevent conflicts in rare cases
|
131 |
+
* Better Settings interface
|
132 |
+
|
133 |
+
= 4.01 =
|
134 |
+
|
135 |
+
* Add check for function 'maybe_convert_table_to_utf8mb4' which doesn't exists before WP 4.2.0
|
136 |
+
* Several interface fixes
|
137 |
+
|
138 |
+
|
139 |
+
= 4.0.2 =
|
140 |
+
|
141 |
+
* Fixed issue that could cause database save to fail on button edit.
|
142 |
+
* Security validation on bulk edit form added
|
143 |
+
|
144 |
+
|
145 |
+
= 4.0.1 =
|
146 |
+
|
147 |
+
* Changed few PHP calls which possibly were causing crashes on older versions.
|
148 |
+
* Bug in internal social sharing block function.
|
149 |
+
|
150 |
+
= 4.0 =
|
151 |
+
|
152 |
+
* Social sharing [BETA]
|
153 |
+
* Fixed possible conflicts with colpick.js
|
154 |
+
* Fixed problem in URL with mailto: scheme
|
155 |
+
* Fixed issue with enconding URL's.
|
156 |
+
|
157 |
+
= 3.19 =
|
158 |
+
|
159 |
+
* Added possibility for bulk editing - at own risk
|
160 |
+
* Changed URL handling in certain cases to better URL encode the non-domain part.
|
161 |
+
|
162 |
+
= 3.18 =
|
163 |
+
|
164 |
+
* New filter for button url
|
165 |
+
* By default overview shows your latest buttons.
|
166 |
+
* Overview now sortable by button id
|
167 |
+
|
168 |
+
|
169 |
+
= 3.17 =
|
170 |
+
|
171 |
+
* Position and size of preview window updated to be less in the way
|
172 |
+
* Small layout and text updates
|
173 |
+
|
174 |
+
|
175 |
+
= 3.16.1 =
|
176 |
+
|
177 |
+
* Backward compatibility of layout changes
|
178 |
+
|
179 |
+
|
180 |
+
|
181 |
+
= 3.16 =
|
182 |
+
|
183 |
+
* Fixed update box running through page title
|
184 |
+
* Fixed rating screen in some cases could not be closed
|
185 |
+
* Fixed plugin crash when database table is not present or wrong
|
186 |
+
* Lot of interface updates to make plugin more in line with WordPress admin defaults.
|
187 |
+
|
188 |
+
= 3.15.1 =
|
189 |
+
|
190 |
+
* Fixed save crash in case of custom responsive settings due to debug information
|
191 |
+
|
192 |
+
= 3.15 =
|
193 |
+
|
194 |
+
* Small validation fix on custom responsive field
|
195 |
+
* Fixed rare bug occurence in SCSS parser
|
196 |
+
|
197 |
+
= 3.14 =
|
198 |
+
|
199 |
+
* Fixed crash on servers without character encoding module enabled
|
200 |
+
* Attempts to upgrade utf-8 table to utf-8mb4 (plugin activation)
|
201 |
+
* Groups CSS statements without repeating <style> tag.
|
202 |
+
|
203 |
+
= 3.13.1 =
|
204 |
+
|
205 |
+
* Fixed issue with font size not being displayed correctly in editor
|
206 |
+
|
207 |
+
= 3.13 =
|
208 |
+
|
209 |
+
* Fixed checkbox size on Chrome
|
210 |
+
* Fixed several layout issues
|
211 |
+
* Fixed issue with non-latin button names in the css declaration of button
|
212 |
+
* Paging buttons now disabled if there are no more pages to browse
|
213 |
+
* Updated SCSS parser to latest version
|
214 |
+
|
215 |
+
|
216 |
+
= 3.12.1 =
|
217 |
+
|
218 |
+
* Fixed responsive bug with multiple custom settings
|
219 |
+
* Fixed checkbox interface bug with responsive settings
|
220 |
+
* Fixed CSS parse errors with multiple responsive queries
|
221 |
+
|
222 |
+
|
223 |
+
= 3.12 =
|
224 |
+
|
225 |
+
* Moved from serialize to json_encode
|
226 |
+
* ID on button is now unique
|
227 |
+
|
228 |
+
= 3.11 =
|
229 |
+
|
230 |
+
* Better checking of number values in interface
|
231 |
+
* Button name is now also a class on the button ( for custom work )
|
232 |
+
* CSS output can now be compressed ( minified )
|
233 |
+
|
234 |
+
= 3.10 =
|
235 |
+
|
236 |
+
* Fixed: Now possible to add javascript to button URL field
|
237 |
+
* Fixed: Several JS plugin conflicts ( notably with Sidekick )
|
238 |
+
* Fixed: Now able to add spaces to URL
|
239 |
+
|
240 |
+
= 3.09 =
|
241 |
+
|
242 |
+
* Responsiveness bug fixes
|
243 |
+
* Fixed - custom sizes now allow width or height to be zero or not set
|
244 |
+
* Fixed rare bug when dbDelta was not properly loaded during installation
|
245 |
+
|
246 |
+
|
247 |
+
= 3.08 =
|
248 |
+
|
249 |
+
* Text align now defaults to empty
|
250 |
+
* New color picker fixing several bugs
|
251 |
+
* Fixed Divi themes / sitebuilder issue with add button
|
252 |
+
* Fixed small interface issue with paging and zero buttons
|
253 |
+
* Fixed interface issue with bulk actions notices
|
254 |
+
* Fixed various small unset variable issues
|
255 |
+
|
256 |
+
|
257 |
+
= 3.07 =
|
258 |
+
|
259 |
+
* Added Text align option
|
260 |
+
* Fixed interface issue with removing responsive parts
|
261 |
+
* Fixed URL Escaping issue
|
262 |
+
|
263 |
+
= 3.06 =
|
264 |
+
|
265 |
+
* Added German translation
|
266 |
+
|
267 |
+
= 3.05 =
|
268 |
+
|
269 |
+
* Better detection if all needed database fields are present
|
270 |
+
* Updates to the plugin styles
|
271 |
+
* Fixed a bug on the support page when allow_url_fopen is off
|
272 |
+
* Some shortcode examples in button editor
|
273 |
+
* Fixed a bug in responsive data handling
|
274 |
+
* Responsive items now can be hidden per screen size
|
275 |
+
|
276 |
+
= 3.04.2 =
|
277 |
+
|
278 |
+
* Reworked add button interface in the post editor
|
279 |
+
|
280 |
+
= 3.04.1 =
|
281 |
+
|
282 |
+
* Version numbering change to allow better version management in WP
|
283 |
+
* Improved: Wordpress style pagination
|
284 |
+
* Improved: The button editor interface now warns before permanently deleting a button
|
285 |
+
* Fixed: Layout issue in button overview disrupting interface
|
286 |
+
* Fixed: Support area not showing correctly and deprecated error on mysql info.
|
287 |
+
* Fixed: Close button didn't show in the external css dialog
|
288 |
+
|
289 |
+
= 3.04 =
|
290 |
+
|
291 |
+
* New : Pagination
|
292 |
+
|
293 |
+
* Fixed : Issue in parser causing issues when saving buttons
|
294 |
+
* Fixed : Button list can now display buttons from cache
|
295 |
+
* Fixed : Big buttons in list would be too large for screen causing problems
|
296 |
+
* Several smaller issues and interface hardening
|
297 |
+
* Updated several links
|
298 |
+
|
299 |
+
= 3.03 =
|
300 |
+
|
301 |
+
* Fixed: Text shadow and border shadow were still showing with zero width.
|
302 |
+
* Fixed: Migrate script from old version moves button id correctly.
|
303 |
+
* Fixed: Link to buttons missing on plugins page
|
304 |
+
|
305 |
+
|
306 |
+
= 3.02 =
|
307 |
+
|
308 |
+
* Fixed: IK Facebook plugin jamming the colorpicker
|
309 |
+
* Fixed: Bug where hover cursor wouldn't show up when url was added via shortcode
|
310 |
+
* Fixed: Moving table to UTF-8 in settings works again
|
311 |
+
|
312 |
+
* Option for remigration of settings from old to new table in case upgrade didn't complete
|
313 |
+
* Added PHP 5.3 requirement in readme
|
314 |
+
* Added checks for both PHP version, and if activation did run.
|
315 |
+
* Removed default 'white-space: nowrap'.
|
316 |
+
* Tested with WP 4.2
|
317 |
+
|
318 |
+
= 3.01 =
|
319 |
+
|
320 |
+
* Code rebuilt
|
321 |
+
* Major performance enhancements
|
322 |
+
* Responsive module
|
323 |
+
* Dimensions, set width and height
|
324 |
+
|
325 |
= 3.0 =
|
326 |
|
327 |
* Beta release of new codebase
|
js/init.js
CHANGED
@@ -1,5 +1,3 @@
|
|
1 |
-
|
2 |
-
|
3 |
jQuery(document).ready(function($) {
|
4 |
|
5 |
function runMaxInit()
|
@@ -15,9 +13,6 @@ jQuery(document).ready(function($) {
|
|
15 |
|
16 |
window.maxFoundry.maxcollection = new maxCollection();
|
17 |
window.maxFoundry.maxcollection.init();
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
}
|
22 |
|
23 |
runMaxInit();
|
|
|
|
|
1 |
jQuery(document).ready(function($) {
|
2 |
|
3 |
function runMaxInit()
|
13 |
|
14 |
window.maxFoundry.maxcollection = new maxCollection();
|
15 |
window.maxFoundry.maxcollection.init();
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
runMaxInit();
|
js/maxbuttons-admin.js
CHANGED
@@ -36,7 +36,7 @@ maxAdmin.prototype.init = function () {
|
|
36 |
});
|
37 |
|
38 |
$(document).on('submit', 'form.mb_ajax_save', $.proxy(this.formAjaxSave, this));
|
39 |
-
|
40 |
|
41 |
// conditionals
|
42 |
$(document).on('reInitConditionals', $.proxy(this.initConditionials, this));
|
@@ -98,6 +98,7 @@ maxAdmin.prototype.init = function () {
|
|
98 |
|
99 |
// Expand shortcode tabs for more examples.
|
100 |
$('.shortcode-expand').on('click', this.toggleShortcode);
|
|
|
101 |
|
102 |
}; // INIT
|
103 |
|
@@ -263,7 +264,6 @@ maxAdmin.prototype.copyColor = function (e)
|
|
263 |
{
|
264 |
e.preventDefault();
|
265 |
e.stopPropagation(); // stop the color picker from closing itself.
|
266 |
-
|
267 |
|
268 |
var target = $(e.target);
|
269 |
var bindto = $(e.target).parents('[data-bind]');
|
@@ -300,16 +300,18 @@ maxAdmin.prototype.copyColor = function (e)
|
|
300 |
else
|
301 |
copy = true;
|
302 |
}
|
303 |
-
|
304 |
if ( copy )
|
305 |
{
|
306 |
$(bindId).val( $(fieldId).val() );
|
307 |
-
$(bindId).trigger('
|
|
|
308 |
}
|
309 |
else
|
310 |
{
|
311 |
$(fieldId).val( $(bindId).val() );
|
312 |
-
$(fieldId).trigger('
|
|
|
313 |
}
|
314 |
|
315 |
}
|
@@ -484,87 +486,9 @@ maxAdmin.prototype.initResponsive = function()
|
|
484 |
|
485 |
window.maxFoundry.maxadmin.responsive = new mbResponsive($);
|
486 |
window.maxFoundry.maxadmin.responsive.init(this);
|
487 |
-
// window.maxFoundry.maxadmin.re
|
488 |
-
/* this.checkAutoQuery();
|
489 |
-
$('input[name="auto_responsive"]').on('click', $.proxy(this.checkAutoQuery,this));
|
490 |
-
$('.add_media_query').on('click', $.proxy(this.addMediaQuery, this));
|
491 |
-
//$('.removebutton').on('click', );
|
492 |
-
$(document).on('click', '.removebutton', $.proxy(this.removeMediaQuery, this));
|
493 |
-
*/
|
494 |
-
}
|
495 |
-
/*
|
496 |
-
maxAdmin.prototype.checkAutoQuery = function()
|
497 |
-
{
|
498 |
-
if ( $('input[name="auto_responsive"]').is(':checked') )
|
499 |
-
{
|
500 |
|
501 |
-
$('.media_queries_options').hide();
|
502 |
-
$('.option-design.new-query').hide();
|
503 |
-
}
|
504 |
-
else
|
505 |
-
{
|
506 |
-
$('.media_queries_options').show();
|
507 |
-
$('.option-design.new-query').show();
|
508 |
-
}
|
509 |
}
|
510 |
-
*/
|
511 |
-
|
512 |
-
/*maxAdmin.prototype.addMediaQuery = function()
|
513 |
-
{
|
514 |
-
|
515 |
-
this.saveIndicator(true);
|
516 |
-
var new_option = $('.media_option_prot').children().clone();
|
517 |
|
518 |
-
var new_query = $("#new_query").val();
|
519 |
-
var new_title = $("#new_query :selected").text();
|
520 |
-
var new_desc = $("#media_desc").children('#' + new_query).text();
|
521 |
-
|
522 |
-
$(new_option).data('query', new_query);
|
523 |
-
$(new_option).children('input[name="media_query[]"]').val(new_query);
|
524 |
-
$(new_option).children('.title').text(new_title);
|
525 |
-
$(new_option).children('.description').text(new_desc);
|
526 |
-
|
527 |
-
if (new_query !== 'custom')
|
528 |
-
$(new_option).children('.custom').hide();
|
529 |
-
|
530 |
-
var new_index = $('input[name="next_media_index"]').val();
|
531 |
-
|
532 |
-
$(new_option).find('select, input').each(function () {
|
533 |
-
|
534 |
-
name = $(this).attr('name');
|
535 |
-
id = $(this).attr('id');
|
536 |
-
if (typeof id !== 'undefined')
|
537 |
-
$(this).attr('id', id.replace('[]','[' + new_index + ']'));
|
538 |
-
$(this).attr('name', name.replace('[]','[' + new_index + ']'));
|
539 |
-
})
|
540 |
-
|
541 |
-
new_index = parseInt(new_index);
|
542 |
-
|
543 |
-
$('input[name="next_media_index"]').val( (new_index+1) );
|
544 |
-
|
545 |
-
if (new_query !== 'custom')
|
546 |
-
{
|
547 |
-
$('#new_query :selected').prop('disabled', true);
|
548 |
-
$('#new_query :selected').prop('selected', false);
|
549 |
-
}
|
550 |
-
console.log(new_option);
|
551 |
-
$('.new_query_space').append(new_option);
|
552 |
-
|
553 |
-
var pos = $('.new_query_space').offset().top;
|
554 |
-
$(window).scrollTop( (pos-100) ); */
|
555 |
-
|
556 |
-
//}
|
557 |
-
/*
|
558 |
-
maxAdmin.prototype.removeMediaQuery = function(e)
|
559 |
-
{
|
560 |
-
var target = e.target;
|
561 |
-
|
562 |
-
var query = $(target).parents('.media_query').data('query');
|
563 |
-
$(target).parents('.media_query').fadeOut(function() { $(this).remove() } );
|
564 |
-
|
565 |
-
$('#new_query option[value="' + query + '"]').prop('disabled', false);
|
566 |
-
}
|
567 |
-
*/
|
568 |
|
569 |
maxAdmin.prototype.do_paging = function(e)
|
570 |
{
|
36 |
});
|
37 |
|
38 |
$(document).on('submit', 'form.mb_ajax_save', $.proxy(this.formAjaxSave, this));
|
39 |
+
//$(document).on('click', '#maxbuttons [data-form]', $.proxy(this.buttonSubmit, this)); // DEPR - not in use || remove save buttons ( outside form )
|
40 |
|
41 |
// conditionals
|
42 |
$(document).on('reInitConditionals', $.proxy(this.initConditionials, this));
|
98 |
|
99 |
// Expand shortcode tabs for more examples.
|
100 |
$('.shortcode-expand').on('click', this.toggleShortcode);
|
101 |
+
|
102 |
|
103 |
}; // INIT
|
104 |
|
264 |
{
|
265 |
e.preventDefault();
|
266 |
e.stopPropagation(); // stop the color picker from closing itself.
|
|
|
267 |
|
268 |
var target = $(e.target);
|
269 |
var bindto = $(e.target).parents('[data-bind]');
|
300 |
else
|
301 |
copy = true;
|
302 |
}
|
303 |
+
|
304 |
if ( copy )
|
305 |
{
|
306 |
$(bindId).val( $(fieldId).val() );
|
307 |
+
$(bindId).trigger('change');
|
308 |
+
$(bindId).wpColorPicker('color', $(fieldId).val());
|
309 |
}
|
310 |
else
|
311 |
{
|
312 |
$(fieldId).val( $(bindId).val() );
|
313 |
+
$(fieldId).trigger('change');
|
314 |
+
$(fieldId).wpColorPicker('color', $(bindId).val());
|
315 |
}
|
316 |
|
317 |
}
|
486 |
|
487 |
window.maxFoundry.maxadmin.responsive = new mbResponsive($);
|
488 |
window.maxFoundry.maxadmin.responsive.init(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
489 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
490 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
492 |
|
493 |
maxAdmin.prototype.do_paging = function(e)
|
494 |
{
|
js/min/maxbuttons-admin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var maxAdmin;jQuery(document).ready(function($){maxAdmin=function(){return this},maxAdmin.prototype={colorUpdateTime:!0,fields:null,button_id:null,form_updated:!1,tabs:null},maxAdmin.prototype.init=function(){this.button_id=$('input[name="button_id"]').val(),$(document).on("click",".maxbutton-preview",function(t){t.preventDefault()}),$(document).on("click",".output .preview-toggle",$.proxy(this.toggle_preview,this)),$("#maxbuttons .input-paging").on("change",$.proxy(this.do_paging,this)),$(".manual-toggle").on("click",$.proxy(this.toggleManual,this)),$(".manual-entry").draggable({cancel:"p, li"}),$(document).on("submit","form.mb_ajax_save",$.proxy(this.formAjaxSave,this)),$(document).on("click","#maxbuttons [data-form]",$.proxy(this.buttonSubmit,this)),$(document).on("reInitConditionals",$.proxy(this.initConditionials,this)),this.initConditionials(),0!=$("#new-button-form").length&&(this.button_id>0&&$("#maxbuttons .mb-message").show(),this.initResponsive(),$("#maxbuttons .output").draggable({cancel:".nodrag"}),$(".color-field").wpColorPicker({width:300,change:$.proxy(_.throttle(function(t,e){var a=e.color.toString();this.update_color(t,e,a)},200),this)}),$(".input.color .arrows").on("click",$.proxy(this.copyColor,this)),$("#radius_toggle").on("click",$.proxy(this.toggleRadiusLock,this)),"undefined"!=typeof buttonFieldMap&&(this.fields=$.parseJSON(buttonFieldMap)),$("input").not(".color-field").on("keyup change",$.proxy(this.update_preview,this)),$("input.color-field").on("focus",$.proxy(this.select_field,this)),$("select").on("change",$.proxy(this.update_preview,this)),$(window).on("beforeunload",$.proxy(function(){return this.form_updated?maxcol_wp.leave_page:void 0},this)),$(".button-save").click($.proxy(function(){return this.saveIndicator(!1),$("#new-button-form").submit(),!1},this)),$(".shortcode-expand").on("click",this.toggleShortcode))},maxAdmin.prototype.repaint_preview=function(){$('.mb_tab input[type="text"]').trigger("change"),$('.mb_tab input[type="number"]').trigger("change"),$(".mb_tab select").trigger("change"),$('.mb_tab input[type="hidden"]').trigger("change"),$('.mb_tab input[type="radio"]:checked').trigger("change"),$('.mb_tab input[type="checkbox"]:checked').trigger("change")},maxAdmin.prototype.update_preview=function(e){e.preventDefault(),this.saveIndicator(!0);var target=$(e.target),field=$(target).data("field");if("undefined"==typeof field)var id=$(target).attr("id");else var id=field;var data=this.fields[id];"undefined"!=typeof data&&("undefined"!=typeof data.css&&(value=target.val(),"undefined"!=typeof data.css_unit&&-1==value.indexOf(data.css_unit)&&(value+=data.css_unit),target.is(":checkbox")&&!target.is(":checked")&&(value=""),this.putCSS(data,value)),"undefined"!=typeof data.attr&&$(".output .result").find("a").attr(data.attr,target.val()),"undefined"!=typeof data.func&&eval("this."+data.func+"(target)"))},maxAdmin.prototype.select_field=function(t){$(t.target).select()},maxAdmin.prototype.toggle_preview=function(){$(".output .inner").is(":hidden")?($(".output .inner").show(),$(".output").css("height","auto"),$(".preview .preview-toggle").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-up")):($(".output .inner").hide(),$(".output").css("height","auto"),$(".preview .preview-toggle").removeClass("dashicons-arrow-up").addClass("dashicons-arrow-down"))},maxAdmin.prototype.putCSS=function(t,e,a){a=a||"both";var o=".maxbutton";if("hover"==a?o="a.hover ":"normal"==a&&(o="a.normal "),"undefined"!=typeof t.csspart){var n=t.csspart.split(",");for(i=0;i<n.length;i++){var r=n[i],d=o+" ."+r;$(".output .result").find(d).css(t.css,e)}}else $(".output .result").find(o).css(t.css,e)},maxAdmin.prototype.update_color=function(t,e,a){t.preventDefault(),this.saveIndicator(!0);var o=$(t.target);-1===a.indexOf("#")&&(a="#"+a);var i=o.attr("id");if(-1!==i.indexOf("box_shadow"))this.updateBoxShadow(o);else if(-1!==i.indexOf("text_shadow"))this.updateTextShadow(o);else if(-1!==i.indexOf("gradient"))-1==i.indexOf("hover")?this.updateGradient():this.updateGradient(!0);else{if("button_preview"!=i){state=-1==i.indexOf("hover")?"normal":"hover";var n=this.fields[i];return void this.putCSS(n,a,state)}$(".output .result").css("backgroundColor",a)}},maxAdmin.prototype.copyColor=function(t){t.preventDefault(),t.stopPropagation();var e=$(t.target),a=$(t.target).parents("[data-bind]"),o="#"+a.data("id"),i="#"+a.data("bind");if(e.hasClass("arrow-right"))var n="right";else var n="left";if(a.hasClass("right"))var r="left";else var r="right";"left"==r?copy="right"==n?!0:!1:"right"==r&&(copy="right"==n?!1:!0),copy?($(i).val($(o).val()),$(i).trigger("keyup")):($(o).val($(i).val()),$(o).trigger("keyup"))},maxAdmin.prototype.updateGradient=function(t){t=t||!1;var e="";t&&(e="_hover");var a=parseInt($("#gradient_stop").val());isNaN(a)&&(a=45);var o=$("#use_gradient").prop("checked"),i=this.hexToRgb($("#gradient_start_color"+e).val()),n=this.hexToRgb($("#gradient_end_color"+e).val()),r=parseInt($("#gradient_start_opacity"+e).val()),d=parseInt($("#gradient_end_opacity"+e).val());if(o||(n=i,d=r),isNaN(r)&&(r=100),isNaN(d)&&(d=100),t)var s=$(".output .result").find("a.hover");else var s=$(".output .result").find("a.normal");s.css("background","linear-gradient( rgba("+i+","+r/100+") "+a+"%, rgba("+n+","+d/100+") )"),s.css("background","-moz-linear-gradient( rgba("+i+","+r/100+") "+a+"%, rgba("+n+","+d/100+") )"),s.css("background","-o-linear-gradient( rgba("+i+","+r/100+") "+a+"%, rgba("+n+","+d/100+") )"),s.css("background","-webkit-gradient(linear, left top, left bottom, color-stop("+a+"%, rgba("+i+","+r/100+")), color-stop(1, rgba("+n+","+d/100+") ));")},maxAdmin.prototype.hexToRgb=function(t){t=t.replace("#","");var e=parseInt(t,16),a=e>>16&255,o=e>>8&255,i=255&e;return a+","+o+","+i},maxAdmin.prototype.updateBoxShadow=function(t){t=t||null;var e=$("#box_shadow_offset_left").val(),a=$("#box_shadow_offset_top").val(),o=$("#box_shadow_width").val(),i=$("#box_shadow_spread").val(),n=$("#box_shadow_color").val(),r=$("#box_shadow_color_hover").val();$(".output .result").find("a.normal").css("boxShadow",e+"px "+a+"px "+o+"px "+i+"px "+n),$(".output .result").find("a.hover").css("boxShadow",e+"px "+a+"px "+o+"px "+i+"px "+r)},maxAdmin.prototype.updateTextShadow=function(t,e){e=e||!1;var a=$("#text_shadow_offset_left").val(),o=$("#text_shadow_offset_top").val(),i=$("#text_shadow_width").val(),n=$("#text_shadow_color").val(),r=$("#text_shadow_color_hover").val(),d=$(t).attr("id"),s=this.fields[d];s.css="textShadow";var p=a+"px "+o+"px "+i+"px "+n;this.putCSS(s,p,"normal"),p=a+"px "+o+"px "+i+"px "+r,this.putCSS(s,p,"hover")},maxAdmin.prototype.updateAnchorText=function(t){var e=$(".output .result").find("a .mb-text");0===e.length&&($(".output .result").find("a").append('<span class="mb-text"></span>'),$(".output .result").find("a .mb-text").css({display:"block","line-height":"1em","box-sizing":"border-box"}),this.repaint_preview()),$(".output .result").find("a .mb-text").text(t.val())},maxAdmin.prototype.updateGradientOpacity=function(){this.updateGradient(!0),this.updateGradient(!1)},maxAdmin.prototype.updateDimension=function(t){var e=$(t).val(),a=$(t).attr("id"),o=this.fields[a];e>0?this.putCSS(o,e):this.putCSS(o,"auto")},maxAdmin.prototype.updateRadius=function(t){var e=t.val(),a=["radius_bottom_left","radius_bottom_right","radius_top_left","radius_top_right"];if("lock"==$("#radius_toggle").data("lock"))for(i=0;i<a.length;i++){var o=a[i];$("#"+o).val(e);var n=this.fields[o];this.putCSS(n,e+"px")}},maxAdmin.prototype.toggleRadiusLock=function(t){var e=$(t.target),a=$(e).data("lock");"lock"==a?($(e).removeClass("dashicons-lock").addClass("dashicons-unlock"),$(e).data("lock","unlock")):"unlock"==a&&($(e).removeClass("dashicons-unlock").addClass("dashicons-lock"),$(e).data("lock","lock"))},maxAdmin.prototype.initResponsive=function(){window.maxFoundry.maxadmin.responsive=new mbResponsive($),window.maxFoundry.maxadmin.responsive.init(this)},maxAdmin.prototype.do_paging=function(t){var e=parseInt($(t.target).val());if(e<=parseInt($(t.target).attr("max"))){var a=$(t.target).data("url");window.location=a+"&paged="+e}},maxAdmin.prototype.toggleShortcode=function(){$(".shortcode-expand").hasClass("closed")?($(" .mb-message.shortcode .expanded").css("display","inline-block"),$(".shortcode-expand span").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-up"),$(".shortcode-expand").removeClass("closed").addClass("open")):($(" .mb-message.shortcode .expanded").css("display","none"),$(".shortcode-expand span").addClass("dashicons-arrow-down").removeClass("dashicons-arrow-up"),$(".shortcode-expand").addClass("closed").removeClass("open"))},maxAdmin.prototype.toggleManual=function(t){t.preventDefault();var e=$(t.target),a=e.data("target"),o=$('.manual-entry[data-manual="'+a+'"]');if(o.is(":visible"))return o.hide(),!0;var i=$('[data-options="'+a+'"]').position(),n=i.top+e.height();o.css("top",n),o.css("right",15),o.css("left","auto"),o.show()},maxAdmin.prototype.initConditionials=function(){var t=this;$("[data-show]").each(function(){var e=$(this).data("show"),a=e.target,o=e.values;$(document).on("change",'[name="'+a+'"]',{child:this,values:o},$.proxy(t.updateConditional,t)),$('[name="'+a+'"]').trigger("change")})},maxAdmin.prototype.updateConditional=function(t){var e=t.data,a=e.values,o=e.child,i=$(t.currentTarget),n=$(i).val();if("checkbox"===i.attr("type")){var r=$(i).prop("checked");n="checked"==a&&r?"checked":"unchecked"!=a||r?0:"unchecked"}a.indexOf(n)>=0?($(o).fadeIn("fast"),$(o).find("input, select").trigger("change")):($(o).fadeOut("fast"),$(o).find("input, select").trigger("change"))},maxAdmin.prototype.saveIndicator=function(t){this.form_updated=t?!0:!1},maxAdmin.prototype.formAjaxSave=function(t){t.preventDefault();var e=mb_ajax.ajaxurl,a=$(t.target),o=a.serialize();$.ajax({type:"POST",url:e,data:o}).done($.proxy(this.saveDone,this))},maxAdmin.prototype.buttonSubmit=function(t){t.preventDefault(),$("[data-form]").prop("disabled",!0);var e=$(t.target).data("form");$("#"+e).submit()},maxAdmin.prototype.saveDone=function(t){$("[data-form]").prop("disabled",!1);var e=$.parseJSON(t),a=e.result,o=e.title,i=e.data.id;if("undefined"!=typeof e.data.new_nonce){{e.data.new_nonce}$('input[name="nonce"]').val(e.data.new_nonce)}if(a){$('input[name="collection_id"]').val(i);var n=window.location.href;-1===n.indexOf("collection_id")&&window.history.replaceState({},"",n+"&collection_id="+i),$(document).trigger("mbFormSaved");var r=$('input[name="sorted"]').val();$('input[name="previous_selection"]').val(r),e.data.reload&&document.location.reload(!0)}a||($modal=window.maxFoundry.maxmodal,$modal.newModal("collection_error"),$modal.setTitle(o),$modal.setContent(e.body),$modal.setControls('<button class="modal_close button-primary">'+e.close_text+"</button>"),$modal.show())}});
|
1 |
+
var maxAdmin;jQuery(document).ready(function($){maxAdmin=function(){return this},maxAdmin.prototype={colorUpdateTime:!0,fields:null,button_id:null,form_updated:!1,tabs:null},maxAdmin.prototype.init=function(){this.button_id=$('input[name="button_id"]').val(),$(document).on("click",".maxbutton-preview",function(t){t.preventDefault()}),$(document).on("click",".output .preview-toggle",$.proxy(this.toggle_preview,this)),$("#maxbuttons .input-paging").on("change",$.proxy(this.do_paging,this)),$(".manual-toggle").on("click",$.proxy(this.toggleManual,this)),$(".manual-entry").draggable({cancel:"p, li"}),$(document).on("submit","form.mb_ajax_save",$.proxy(this.formAjaxSave,this)),$(document).on("reInitConditionals",$.proxy(this.initConditionials,this)),this.initConditionials(),0!=$("#new-button-form").length&&(this.button_id>0&&$("#maxbuttons .mb-message").show(),this.initResponsive(),$("#maxbuttons .output").draggable({cancel:".nodrag"}),$(".color-field").wpColorPicker({width:300,change:$.proxy(_.throttle(function(t,e){var a=e.color.toString();this.update_color(t,e,a)},200),this)}),$(".input.color .arrows").on("click",$.proxy(this.copyColor,this)),$("#radius_toggle").on("click",$.proxy(this.toggleRadiusLock,this)),"undefined"!=typeof buttonFieldMap&&(this.fields=$.parseJSON(buttonFieldMap)),$("input").not(".color-field").on("keyup change",$.proxy(this.update_preview,this)),$("input.color-field").on("focus",$.proxy(this.select_field,this)),$("select").on("change",$.proxy(this.update_preview,this)),$(window).on("beforeunload",$.proxy(function(){return this.form_updated?maxcol_wp.leave_page:void 0},this)),$(".button-save").click($.proxy(function(){return this.saveIndicator(!1),$("#new-button-form").submit(),!1},this)),$(".shortcode-expand").on("click",this.toggleShortcode))},maxAdmin.prototype.repaint_preview=function(){$('.mb_tab input[type="text"]').trigger("change"),$('.mb_tab input[type="number"]').trigger("change"),$(".mb_tab select").trigger("change"),$('.mb_tab input[type="hidden"]').trigger("change"),$('.mb_tab input[type="radio"]:checked').trigger("change"),$('.mb_tab input[type="checkbox"]:checked').trigger("change")},maxAdmin.prototype.update_preview=function(e){e.preventDefault(),this.saveIndicator(!0);var target=$(e.target),field=$(target).data("field");if("undefined"==typeof field)var id=$(target).attr("id");else var id=field;var data=this.fields[id];"undefined"!=typeof data&&("undefined"!=typeof data.css&&(value=target.val(),"undefined"!=typeof data.css_unit&&-1==value.indexOf(data.css_unit)&&(value+=data.css_unit),target.is(":checkbox")&&!target.is(":checked")&&(value=""),this.putCSS(data,value)),"undefined"!=typeof data.attr&&$(".output .result").find("a").attr(data.attr,target.val()),"undefined"!=typeof data.func&&eval("this."+data.func+"(target)"))},maxAdmin.prototype.select_field=function(t){$(t.target).select()},maxAdmin.prototype.toggle_preview=function(){$(".output .inner").is(":hidden")?($(".output .inner").show(),$(".output").css("height","auto"),$(".preview .preview-toggle").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-up")):($(".output .inner").hide(),$(".output").css("height","auto"),$(".preview .preview-toggle").removeClass("dashicons-arrow-up").addClass("dashicons-arrow-down"))},maxAdmin.prototype.putCSS=function(t,e,a){a=a||"both";var o=".maxbutton";if("hover"==a?o="a.hover ":"normal"==a&&(o="a.normal "),"undefined"!=typeof t.csspart){var n=t.csspart.split(",");for(i=0;i<n.length;i++){var r=n[i],d=o+" ."+r;$(".output .result").find(d).css(t.css,e)}}else $(".output .result").find(o).css(t.css,e)},maxAdmin.prototype.update_color=function(t,e,a){t.preventDefault(),this.saveIndicator(!0);var o=$(t.target);-1===a.indexOf("#")&&(a="#"+a);var i=o.attr("id");if(-1!==i.indexOf("box_shadow"))this.updateBoxShadow(o);else if(-1!==i.indexOf("text_shadow"))this.updateTextShadow(o);else if(-1!==i.indexOf("gradient"))-1==i.indexOf("hover")?this.updateGradient():this.updateGradient(!0);else{if("button_preview"!=i){state=-1==i.indexOf("hover")?"normal":"hover";var n=this.fields[i];return void this.putCSS(n,a,state)}$(".output .result").css("backgroundColor",a)}},maxAdmin.prototype.copyColor=function(t){t.preventDefault(),t.stopPropagation();var e=$(t.target),a=$(t.target).parents("[data-bind]"),o="#"+a.data("id"),i="#"+a.data("bind");if(e.hasClass("arrow-right"))var n="right";else var n="left";if(a.hasClass("right"))var r="left";else var r="right";"left"==r?copy="right"==n?!0:!1:"right"==r&&(copy="right"==n?!1:!0),copy?($(i).val($(o).val()),$(i).trigger("change"),$(i).wpColorPicker("color",$(o).val())):($(o).val($(i).val()),$(o).trigger("change"),$(o).wpColorPicker("color",$(i).val()))},maxAdmin.prototype.updateGradient=function(t){t=t||!1;var e="";t&&(e="_hover");var a=parseInt($("#gradient_stop").val());isNaN(a)&&(a=45);var o=$("#use_gradient").prop("checked"),i=this.hexToRgb($("#gradient_start_color"+e).val()),n=this.hexToRgb($("#gradient_end_color"+e).val()),r=parseInt($("#gradient_start_opacity"+e).val()),d=parseInt($("#gradient_end_opacity"+e).val());if(o||(n=i,d=r),isNaN(r)&&(r=100),isNaN(d)&&(d=100),t)var s=$(".output .result").find("a.hover");else var s=$(".output .result").find("a.normal");s.css("background","linear-gradient( rgba("+i+","+r/100+") "+a+"%, rgba("+n+","+d/100+") )"),s.css("background","-moz-linear-gradient( rgba("+i+","+r/100+") "+a+"%, rgba("+n+","+d/100+") )"),s.css("background","-o-linear-gradient( rgba("+i+","+r/100+") "+a+"%, rgba("+n+","+d/100+") )"),s.css("background","-webkit-gradient(linear, left top, left bottom, color-stop("+a+"%, rgba("+i+","+r/100+")), color-stop(1, rgba("+n+","+d/100+") ));")},maxAdmin.prototype.hexToRgb=function(t){t=t.replace("#","");var e=parseInt(t,16),a=e>>16&255,o=e>>8&255,i=255&e;return a+","+o+","+i},maxAdmin.prototype.updateBoxShadow=function(t){t=t||null;var e=$("#box_shadow_offset_left").val(),a=$("#box_shadow_offset_top").val(),o=$("#box_shadow_width").val(),i=$("#box_shadow_spread").val(),n=$("#box_shadow_color").val(),r=$("#box_shadow_color_hover").val();$(".output .result").find("a.normal").css("boxShadow",e+"px "+a+"px "+o+"px "+i+"px "+n),$(".output .result").find("a.hover").css("boxShadow",e+"px "+a+"px "+o+"px "+i+"px "+r)},maxAdmin.prototype.updateTextShadow=function(t,e){e=e||!1;var a=$("#text_shadow_offset_left").val(),o=$("#text_shadow_offset_top").val(),i=$("#text_shadow_width").val(),n=$("#text_shadow_color").val(),r=$("#text_shadow_color_hover").val(),d=$(t).attr("id"),s=this.fields[d];s.css="textShadow";var p=a+"px "+o+"px "+i+"px "+n;this.putCSS(s,p,"normal"),p=a+"px "+o+"px "+i+"px "+r,this.putCSS(s,p,"hover")},maxAdmin.prototype.updateAnchorText=function(t){var e=$(".output .result").find("a .mb-text");0===e.length&&($(".output .result").find("a").append('<span class="mb-text"></span>'),$(".output .result").find("a .mb-text").css({display:"block","line-height":"1em","box-sizing":"border-box"}),this.repaint_preview()),$(".output .result").find("a .mb-text").text(t.val())},maxAdmin.prototype.updateGradientOpacity=function(){this.updateGradient(!0),this.updateGradient(!1)},maxAdmin.prototype.updateDimension=function(t){var e=$(t).val(),a=$(t).attr("id"),o=this.fields[a];e>0?this.putCSS(o,e):this.putCSS(o,"auto")},maxAdmin.prototype.updateRadius=function(t){var e=t.val(),a=["radius_bottom_left","radius_bottom_right","radius_top_left","radius_top_right"];if("lock"==$("#radius_toggle").data("lock"))for(i=0;i<a.length;i++){var o=a[i];$("#"+o).val(e);var n=this.fields[o];this.putCSS(n,e+"px")}},maxAdmin.prototype.toggleRadiusLock=function(t){var e=$(t.target),a=$(e).data("lock");"lock"==a?($(e).removeClass("dashicons-lock").addClass("dashicons-unlock"),$(e).data("lock","unlock")):"unlock"==a&&($(e).removeClass("dashicons-unlock").addClass("dashicons-lock"),$(e).data("lock","lock"))},maxAdmin.prototype.initResponsive=function(){window.maxFoundry.maxadmin.responsive=new mbResponsive($),window.maxFoundry.maxadmin.responsive.init(this)},maxAdmin.prototype.do_paging=function(t){var e=parseInt($(t.target).val());if(e<=parseInt($(t.target).attr("max"))){var a=$(t.target).data("url");window.location=a+"&paged="+e}},maxAdmin.prototype.toggleShortcode=function(){$(".shortcode-expand").hasClass("closed")?($(" .mb-message.shortcode .expanded").css("display","inline-block"),$(".shortcode-expand span").removeClass("dashicons-arrow-down").addClass("dashicons-arrow-up"),$(".shortcode-expand").removeClass("closed").addClass("open")):($(" .mb-message.shortcode .expanded").css("display","none"),$(".shortcode-expand span").addClass("dashicons-arrow-down").removeClass("dashicons-arrow-up"),$(".shortcode-expand").addClass("closed").removeClass("open"))},maxAdmin.prototype.toggleManual=function(t){t.preventDefault();var e=$(t.target),a=e.data("target"),o=$('.manual-entry[data-manual="'+a+'"]');if(o.is(":visible"))return o.hide(),!0;var i=$('[data-options="'+a+'"]').position(),n=i.top+e.height();o.css("top",n),o.css("right",15),o.css("left","auto"),o.show()},maxAdmin.prototype.initConditionials=function(){var t=this;$("[data-show]").each(function(){var e=$(this).data("show"),a=e.target,o=e.values;$(document).on("change",'[name="'+a+'"]',{child:this,values:o},$.proxy(t.updateConditional,t)),$('[name="'+a+'"]').trigger("change")})},maxAdmin.prototype.updateConditional=function(t){var e=t.data,a=e.values,o=e.child,i=$(t.currentTarget),n=$(i).val();if("checkbox"===i.attr("type")){var r=$(i).prop("checked");n="checked"==a&&r?"checked":"unchecked"!=a||r?0:"unchecked"}a.indexOf(n)>=0?($(o).fadeIn("fast"),$(o).find("input, select").trigger("change")):($(o).fadeOut("fast"),$(o).find("input, select").trigger("change"))},maxAdmin.prototype.saveIndicator=function(t){this.form_updated=t?!0:!1},maxAdmin.prototype.formAjaxSave=function(t){t.preventDefault();var e=mb_ajax.ajaxurl,a=$(t.target),o=a.serialize();$.ajax({type:"POST",url:e,data:o}).done($.proxy(this.saveDone,this))},maxAdmin.prototype.buttonSubmit=function(t){t.preventDefault(),$("[data-form]").prop("disabled",!0);var e=$(t.target).data("form");$("#"+e).submit()},maxAdmin.prototype.saveDone=function(t){$("[data-form]").prop("disabled",!1);var e=$.parseJSON(t),a=e.result,o=e.title,i=e.data.id;if("undefined"!=typeof e.data.new_nonce){{e.data.new_nonce}$('input[name="nonce"]').val(e.data.new_nonce)}if(a){$('input[name="collection_id"]').val(i);var n=window.location.href;-1===n.indexOf("collection_id")&&window.history.replaceState({},"",n+"&collection_id="+i),$(document).trigger("mbFormSaved");var r=$('input[name="sorted"]').val();$('input[name="previous_selection"]').val(r),e.data.reload&&document.location.reload(!0)}a||($modal=window.maxFoundry.maxmodal,$modal.newModal("collection_error"),$modal.setTitle(o),$modal.setContent(e.body),$modal.setControls('<button class="modal_close button-primary">'+e.close_text+"</button>"),$modal.show())}});
|
js/min/responsive.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var mbResponsive=function(e){this.jquery=e};mbResponsive.prototype={jquery:null,mbAdmin:null},mbResponsive.prototype.init=function(e){$=this.jquery,this.mbAdmin=e,this.checkAutoQuery(),$('input[name="auto_responsive"]').on("click",$.proxy(this.checkAutoQuery,this)),$(".add_media_query").on("click",$.proxy(this.addMediaQuery,this)),$(document).on("click",".removebutton",$.proxy(this.removeMediaQuery,this))},mbResponsive.prototype.checkAutoQuery=function(){$=this.jquery,$('input[name="auto_responsive"]').is(":checked")?($(".media_queries_options").hide(),$(".option-design.new-query").hide()):($(".media_queries_options").show(),$(".option-design.new-query").show())},mbResponsive.prototype.addMediaQuery=function(){$=this.jquery,this.mbAdmin.saveIndicator(!0);var e=$(".media_option_prot").children().clone(),t=$("#new_query").val(),i=$("#new_query :selected").text(),n=$("#media_desc").children("#"+t).text();$(e).data("query",t),$(e).children('input[name="media_query[]"]').val(t),$(e).children(".title").text(i),$(e).children(".description").text(n),"custom"==t&&$(e).find(".custom").removeClass("hidden");var r=$('input[name="next_media_index"]').val();$(e).find("label, select, input").each(function(){var e=$(this).attr("name"),t=$(this).attr("id"),i=$(this).data("field"),n=$(this).prop("tagName").toLowerCase();if("undefined"!=typeof t&&$(this).attr("id",t.replace("[]","["+r+"]")),"undefined"!=typeof e&&$(this).attr("name",e.replace("[]","["+r+"]")),"undefined"!=typeof i&&$(this).data("field",i.replace("[]","["+r+"]")),"label"==n){var o=$(this).attr("for");"undefined"!=typeof o&&$(this).attr("for",o.replace("[]","["+r+"]"))}}),$(document).trigger("reinitConditionals"),r=parseInt(r),$('input[name="next_media_index"]').val(r+1),"custom"!==t&&($("#new_query :selected").prop("disabled",!0),$("#new_query :selected").prop("selected",!1)),$(".new_query_space").append(e);var o=$(".new_query_space").offset().top;$(window).scrollTop(o-100)},mbResponsive.prototype.removeMediaQuery=function(e){$=this.jquery;var t=e.target,i=$(t).parents(".media_query").data("query");$(t).parents(".media_query").fadeOut(function(){$(this).remove()}),$('#new_query option[value="'+i+'"]').prop("disabled",!1)};
|
1 |
+
var mbResponsive=function(e){this.jquery=e};mbResponsive.prototype={jquery:null,mbAdmin:null,responsiveMap:null},mbResponsive.prototype.init=function(e){$=this.jquery,this.mbAdmin=e,0!=$("#new-button-form").length&&(this.checkAutoQuery(),$('input[name="auto_responsive"]').on("click",$.proxy(this.checkAutoQuery,this)),$(".add_media_query").on("click",$.proxy(this.addMediaQuery,this)),this.responsiveMap=JSON.parse(responsiveMap),$(document).on("click",".removebutton",$.proxy(this.removeMediaQuery,this)))},mbResponsive.prototype.checkAutoQuery=function(){$=this.jquery,$('input[name="auto_responsive"]').is(":checked")?($(".media_queries_options").hide(),$(".option-design.new-query").hide()):($(".media_queries_options").show(),$(".option-design.new-query").show())},mbResponsive.prototype.addMediaQuery=function(){$=this.jquery,this.mbAdmin.saveIndicator(!0);var e=$(".media_option_prot").children().clone(),t=$("#new_query").val(),i=$("#new_query :selected").text(),n=$("#media_desc").children("#"+t).text();$(e).data("query",t),$(e).children('input[name="media_query[]"]').val(t),$(e).children(".title").text(i),$(e).children(".description").text(n),"custom"==t&&$(e).find(".custom").removeClass("hidden");var r=$('input[name="next_media_index"]').val();$(e).find("label, select, input").each(function(){var e=$(this).attr("name"),t=$(this).attr("id"),i=$(this).data("field"),n=$(this).prop("tagName").toLowerCase();if("undefined"!=typeof t&&$(this).attr("id",t.replace("[]","["+r+"]")),"undefined"!=typeof e&&$(this).attr("name",e.replace("[]","["+r+"]")),"undefined"!=typeof i&&$(this).data("field",i.replace("[]","["+r+"]")),"label"==n){var o=$(this).attr("for");"undefined"!=typeof o&&$(this).attr("for",o.replace("[]","["+r+"]"))}}),$(document).trigger("reinitConditionals"),r=parseInt(r),$('input[name="next_media_index"]').val(r+1),"custom"!==t&&($("#new_query :selected").prop("disabled",!0),$("#new_query :selected").prop("selected",!1)),$(".new_query_space").append(e);var o=$(".new_query_space").offset().top;$(window).scrollTop(o-100)},mbResponsive.prototype.removeMediaQuery=function(e){$=this.jquery;var t=e.target,i=$(t).parents(".media_query").data("query");$(t).parents(".media_query").fadeOut(function(){$(this).remove()}),$('#new_query option[value="'+i+'"]').prop("disabled",!1)},mbResponsive.prototype.toggleResponsivePreview=function(e){var t=$(e.target),i=t.attr("id");i=i.replace("mq_preview[",""),i=i.replace("]",""),this.renderPreview(i)},mbResponsive.prototype.renderPreview=function(e){var t=["mq_container_width","mq_container_float","mq_custom_minwidth","mq_custom_minheight","mq_hide"],i=this.responsiveMap,n=this;$.each(i,function(r){var o=this.css,s='[id^="'+r+'["]',a='[id^="'+r+'_unit["]',d=$(s).eq(e),p=d.attr("id");if(p=p.replace(/\[[0-9]\]/gi,""),$.inArray(p,t)>=0)return!0;if(p.indexOf("_unit")>=0)return!0;var u=d.val(),c="";if("undefined"!=typeof i[r+"_unit"])var c=$(a).eq(e).val();var m={css:o};"font-size"==o&&(m.csspart="mb-text,mb-text2"),n.mbAdmin.putCSS(m,u+c)})};
|
js/responsive.js
CHANGED
@@ -8,20 +8,27 @@
|
|
8 |
mbResponsive.prototype = {
|
9 |
jquery : null,
|
10 |
mbAdmin: null,
|
|
|
11 |
}
|
12 |
|
13 |
mbResponsive.prototype.init = function (mbAdmin)
|
14 |
{
|
15 |
-
$ = this.jquery;
|
16 |
-
|
17 |
this.mbAdmin = mbAdmin;
|
18 |
|
|
|
|
|
|
|
19 |
this.checkAutoQuery();
|
20 |
|
21 |
$('input[name="auto_responsive"]').on('click', $.proxy(this.checkAutoQuery,this));
|
22 |
$('.add_media_query').on('click', $.proxy(this.addMediaQuery, this));
|
23 |
-
|
|
|
|
|
24 |
$(document).on('click', '.removebutton', $.proxy(this.removeMediaQuery, this));
|
|
|
|
|
25 |
}
|
26 |
|
27 |
mbResponsive.prototype.checkAutoQuery = function()
|
@@ -118,4 +125,61 @@ mbResponsive.prototype.removeMediaQuery = function(e)
|
|
118 |
$('#new_query option[value="' + query + '"]').prop('disabled', false);
|
119 |
}
|
120 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
8 |
mbResponsive.prototype = {
|
9 |
jquery : null,
|
10 |
mbAdmin: null,
|
11 |
+
responsiveMap: null,
|
12 |
}
|
13 |
|
14 |
mbResponsive.prototype.init = function (mbAdmin)
|
15 |
{
|
16 |
+
$ = this.jquery;
|
|
|
17 |
this.mbAdmin = mbAdmin;
|
18 |
|
19 |
+
if ($('#new-button-form').length == 0) // Don't load outside button editor
|
20 |
+
return;
|
21 |
+
|
22 |
this.checkAutoQuery();
|
23 |
|
24 |
$('input[name="auto_responsive"]').on('click', $.proxy(this.checkAutoQuery,this));
|
25 |
$('.add_media_query').on('click', $.proxy(this.addMediaQuery, this));
|
26 |
+
|
27 |
+
this.responsiveMap = JSON.parse(responsiveMap);
|
28 |
+
|
29 |
$(document).on('click', '.removebutton', $.proxy(this.removeMediaQuery, this));
|
30 |
+
//$(document).on('click', '.responsive_preview', $.proxy(this.toggleResponsivePreview, this));
|
31 |
+
|
32 |
}
|
33 |
|
34 |
mbResponsive.prototype.checkAutoQuery = function()
|
125 |
$('#new_query option[value="' + query + '"]').prop('disabled', false);
|
126 |
}
|
127 |
|
128 |
+
mbResponsive.prototype.toggleResponsivePreview = function(e)
|
129 |
+
{
|
130 |
+
var target = $(e.target);
|
131 |
+
var id = target.attr('id')
|
132 |
+
id = id.replace('mq_preview[','');
|
133 |
+
id = id.replace(']', '');
|
134 |
+
this.renderPreview(id);
|
135 |
+
}
|
136 |
+
|
137 |
+
|
138 |
+
mbResponsive.prototype.renderPreview = function (id)
|
139 |
+
{
|
140 |
+
var excluded = ['mq_container_width', 'mq_container_float','mq_custom_minwidth','mq_custom_minheight', 'mq_hide'];
|
141 |
+
var responsiveMap = this.responsiveMap;
|
142 |
+
var self = this;
|
143 |
+
|
144 |
+
$.each(responsiveMap, function (index) {
|
145 |
+
|
146 |
+
var css = this.css;
|
147 |
+
var field_pattern = '[id^="' + index + '["]';
|
148 |
+
var unit_pattern = '[id^="' + index + '_unit["]';
|
149 |
+
var $field = $(field_pattern).eq(id);
|
150 |
+
|
151 |
+
var field_id = $field.attr('id');
|
152 |
+
field_id = field_id.replace(/\[[0-9]\]/gi, '');
|
153 |
+
|
154 |
+
if ($.inArray(field_id, excluded) >= 0 )
|
155 |
+
{
|
156 |
+
return true; // continue
|
157 |
+
}
|
158 |
+
if (field_id.indexOf('_unit') >= 0 )
|
159 |
+
{
|
160 |
+
return true;
|
161 |
+
}
|
162 |
+
|
163 |
+
var value= $field.val();
|
164 |
+
var unit_val = '';
|
165 |
+
|
166 |
+
if (typeof responsiveMap[index + '_unit'] !== 'undefined')
|
167 |
+
{
|
168 |
+
var unit_val = $(unit_pattern).eq(id).val();
|
169 |
+
}
|
170 |
+
|
171 |
+
|
172 |
+
var data = { css: css };
|
173 |
+
if (css == 'font-size')
|
174 |
+
{
|
175 |
+
data.csspart = 'mb-text,mb-text2';
|
176 |
+
}
|
177 |
+
|
178 |
+
self.mbAdmin.putCSS(data, value + unit_val)
|
179 |
+
|
180 |
+
|
181 |
+
});
|
182 |
+
}
|
183 |
+
|
184 |
+
|
185 |
|
maxbuttons.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: MaxButtons
|
4 |
Plugin URI: http://maxbuttons.com
|
5 |
Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
|
6 |
-
Version: 6.
|
7 |
Author: Max Foundry
|
8 |
Author URI: http://maxfoundry.com
|
9 |
Text Domain: maxbuttons
|
@@ -45,8 +45,8 @@ if (function_exists("MB"))
|
|
45 |
|
46 |
|
47 |
define("MAXBUTTONS_ROOT_FILE", __FILE__);
|
48 |
-
define('MAXBUTTONS_VERSION_NUM', '6.
|
49 |
-
define('MAXBUTTONS_RELEASE',"
|
50 |
|
51 |
// In case of development, copy this to wp-config.php
|
52 |
// define("MAXBUTTONS_DEBUG", true);
|
3 |
Plugin Name: MaxButtons
|
4 |
Plugin URI: http://maxbuttons.com
|
5 |
Description: The best WordPress button generator. This is the free version; the Pro version <a href="http://maxbuttons.com/?ref=mbfree">can be found here</a>.
|
6 |
+
Version: 6.9
|
7 |
Author: Max Foundry
|
8 |
Author URI: http://maxfoundry.com
|
9 |
Text Domain: maxbuttons
|
45 |
|
46 |
|
47 |
define("MAXBUTTONS_ROOT_FILE", __FILE__);
|
48 |
+
define('MAXBUTTONS_VERSION_NUM', '6.9');
|
49 |
+
define('MAXBUTTONS_RELEASE',"5 Dec 2016");
|
50 |
|
51 |
// In case of development, copy this to wp-config.php
|
52 |
// define("MAXBUTTONS_DEBUG", true);
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: maxfoundry, basszje, arcware, johnbhartley
|
3 |
Tags: wordpress button plugin, best wordpress button plugin, wordpress button, wordpress buttons, wordpress buttons plugin, social share, wp button creator, button generator, css3 button plugin, css3 button generator, css wordpress button, css3 wordpress button, create button icon, button shortcode, social icon, button, buttons, sharing, sharing buttons, widget, sidebar, Visual Composer, siteorigin, Contact Form 7, Beaver Builder, Easy Digital Download, contact form, page builder, wordpress button generator, css3 button plugin, css3 button generator, css wordpress button, css3 wordpress button, simple social buttons, wp button plugin, button generator, create button icon, font awesome, fontawesome, responsive, responsive buttons, google, google event tracking, google analytics, facebook, facebook icon, facebook like, floating social media, icon, icons,like, linkedin, linkedin icon, social media, css button generator, social icons, social media icons, social media plugin, social profiles, tweet, twitter, tweet button, gradient
|
4 |
Requires at least: 4.0
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 6.
|
7 |
|
8 |
WordPress button plugin so powerful and easy to use anyone can create beautiful buttons and social share icons.
|
9 |
|
@@ -228,6 +228,11 @@ This depends on the slider plugin you are using. Most of the well-known ones are
|
|
228 |
|
229 |
== Changelog ==
|
230 |
|
|
|
|
|
|
|
|
|
|
|
231 |
= 6.8 =
|
232 |
|
233 |
* Fixed several smaller bugs in responsive
|
@@ -380,331 +385,6 @@ This depends on the slider plugin you are using. Most of the well-known ones are
|
|
380 |
* Fixed Window resize bug in popups
|
381 |
* Fixed Array Bug in Social block
|
382 |
|
383 |
-
= 4.22.1 =
|
384 |
-
|
385 |
-
* Removed Splinfo getExtension call since it's not compatible with all PHP 5.3 installations
|
386 |
-
|
387 |
-
= 4.22 =
|
388 |
-
|
389 |
-
* Major upgrade of user interface
|
390 |
-
* Major cleanup of styling code
|
391 |
-
* Description now handles multiple lines correctly
|
392 |
-
|
393 |
-
= 4.21 =
|
394 |
-
|
395 |
-
* Cleaner user interface at font options
|
396 |
-
* Check if jquery function exists on front.
|
397 |
-
|
398 |
-
= 4.20 =
|
399 |
-
|
400 |
-
* Tested for WordPress 4.5
|
401 |
-
* Moved old error modals in social sharing to new modal
|
402 |
-
* New copy dialog
|
403 |
-
|
404 |
-
= 4.19 =
|
405 |
-
|
406 |
-
* Fixed: Relative URL's without starting slash no longer are prepended with default scheme
|
407 |
-
* Tel: and sms: URL's not accepted in URL field
|
408 |
-
|
409 |
-
= 4.18 =
|
410 |
-
|
411 |
-
* Fixed problem responsive settings not correctly enabling / disabling options
|
412 |
-
* Button editor now warns when moving away without saving
|
413 |
-
|
414 |
-
= 4.17 =
|
415 |
-
|
416 |
-
* Moving from leanModal to better popup code
|
417 |
-
* Fixed Modal background and CSS error on delete button / view CSS
|
418 |
-
* Put Font style options (italics) back
|
419 |
-
|
420 |
-
= 4.16 =
|
421 |
-
|
422 |
-
* Version number added to JS scripts to prevent browser caching on updates
|
423 |
-
* Tweaks to the main CSS class statement to avoid clutter
|
424 |
-
* Fix for Cloudflare's email obfuscation in combination with responsive buttons.
|
425 |
-
|
426 |
-
|
427 |
-
= 4.15 =
|
428 |
-
|
429 |
-
* Option to add custom class names
|
430 |
-
* Added changes to increase plugin page speed performance
|
431 |
-
|
432 |
-
= 4.14 =
|
433 |
-
|
434 |
-
* Buttons in Shortcake didn't show Font Awesome buttons correctly
|
435 |
-
* Fixed bug in Shortcake rendering with ID's over 10
|
436 |
-
* Fixed error when adding button via Shortcake dialog
|
437 |
-
* Fixed paging and popup issues in button add dialog
|
438 |
-
* Made previous / next buttons in button add dialog more clear
|
439 |
-
|
440 |
-
= 4.13 =
|
441 |
-
|
442 |
-
* New option: Custom rel (Advanced) - for targeting popups
|
443 |
-
* Upgraded to Font Awesome 4.5.0
|
444 |
-
* Fixed remove collection link not working
|
445 |
-
|
446 |
-
= 4.12 =
|
447 |
-
|
448 |
-
* SO Pagebuilder : Fixed callbacks
|
449 |
-
* Shortcake : Fixed faulty callback when mixing add button functionality
|
450 |
-
* Social Share: fixed caching problem on blog pages results in same share URL's
|
451 |
-
* Social Share: fixed no image sharing with Pinterest.
|
452 |
-
* Editor: Fixed Javascript crash when clicking No in Delete button dialog
|
453 |
-
|
454 |
-
|
455 |
-
= 4.11.1 =
|
456 |
-
|
457 |
-
* Fixed possible crash due to extra return characters in the plugin causing WordPress to malfunction.
|
458 |
-
|
459 |
-
= 4.11 =
|
460 |
-
|
461 |
-
* Fixed SiteOrigin PageBuilder error when adding button
|
462 |
-
* Shortcake integration
|
463 |
-
* Add button dialog improvements
|
464 |
-
|
465 |
-
|
466 |
-
= 4.10 =
|
467 |
-
|
468 |
-
* Removed Twitter share count since Twitter doesn't support this anymore.
|
469 |
-
* Fixed issue with color picker
|
470 |
-
* Color picker window much larger now
|
471 |
-
* Add button interface now available in SiteOrigin editor widget
|
472 |
-
|
473 |
-
= 4.09 =
|
474 |
-
|
475 |
-
* Several issues were fixed with upgrading the plugin and database tables
|
476 |
-
* Fixed link in edit post/page screen when having no buttons
|
477 |
-
* Fixed integration crash with new version of SiteOrigin Page Builder
|
478 |
-
|
479 |
-
|
480 |
-
= 4.08 =
|
481 |
-
|
482 |
-
* Fixed conflict with WPMU Popup Pro
|
483 |
-
* New shortcode tag style="inline" - this forces the button style to load in document. This can be useful with JS-heavy sites who don't properly
|
484 |
-
load wp_footer();
|
485 |
-
|
486 |
-
= 4.07 =
|
487 |
-
|
488 |
-
* Fixed problem with URL encodings
|
489 |
-
* Fixed issue with Siteorigin widget not selecting button
|
490 |
-
* Changes in styling ( WP 4.4. update )
|
491 |
-
|
492 |
-
= 4.06 =
|
493 |
-
|
494 |
-
* Default button updated
|
495 |
-
|
496 |
-
= 4.05 =
|
497 |
-
|
498 |
-
* Integration with SiteOrigin Page Builder
|
499 |
-
|
500 |
-
= 4.04 =
|
501 |
-
|
502 |
-
* Updates to the color picker interface.
|
503 |
-
|
504 |
-
= 4.03 =
|
505 |
-
|
506 |
-
* Shortcode examples popup no longer expands the editor window
|
507 |
-
* Small fixes to title bar
|
508 |
-
|
509 |
-
= 4.02 =
|
510 |
-
|
511 |
-
* Fixed message in button inserter incorrectly stating no buttons are found.
|
512 |
-
* Javascript hardening to prevent conflicts in rare cases
|
513 |
-
* Better Settings interface
|
514 |
-
|
515 |
-
= 4.01 =
|
516 |
-
|
517 |
-
* Add check for function 'maybe_convert_table_to_utf8mb4' which doesn't exists before WP 4.2.0
|
518 |
-
* Several interface fixes
|
519 |
-
|
520 |
-
|
521 |
-
= 4.0.2 =
|
522 |
-
|
523 |
-
* Fixed issue that could cause database save to fail on button edit.
|
524 |
-
* Security validation on bulk edit form added
|
525 |
-
|
526 |
-
|
527 |
-
= 4.0.1 =
|
528 |
-
|
529 |
-
* Changed few PHP calls which possibly were causing crashes on older versions.
|
530 |
-
* Bug in internal social sharing block function.
|
531 |
-
|
532 |
-
= 4.0 =
|
533 |
-
|
534 |
-
* Social sharing [BETA]
|
535 |
-
* Fixed possible conflicts with colpick.js
|
536 |
-
* Fixed problem in URL with mailto: scheme
|
537 |
-
* Fixed issue with enconding URL's.
|
538 |
-
|
539 |
-
= 3.19 =
|
540 |
-
|
541 |
-
* Added possibility for bulk editing - at own risk
|
542 |
-
* Changed URL handling in certain cases to better URL encode the non-domain part.
|
543 |
-
|
544 |
-
= 3.18 =
|
545 |
-
|
546 |
-
* New filter for button url
|
547 |
-
* By default overview shows your latest buttons.
|
548 |
-
* Overview now sortable by button id
|
549 |
-
|
550 |
-
|
551 |
-
= 3.17 =
|
552 |
-
|
553 |
-
* Position and size of preview window updated to be less in the way
|
554 |
-
* Small layout and text updates
|
555 |
-
|
556 |
-
|
557 |
-
= 3.16.1 =
|
558 |
-
|
559 |
-
* Backward compatibility of layout changes
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
-
= 3.16 =
|
564 |
-
|
565 |
-
* Fixed update box running through page title
|
566 |
-
* Fixed rating screen in some cases could not be closed
|
567 |
-
* Fixed plugin crash when database table is not present or wrong
|
568 |
-
* Lot of interface updates to make plugin more in line with WordPress admin defaults.
|
569 |
-
|
570 |
-
= 3.15.1 =
|
571 |
-
|
572 |
-
* Fixed save crash in case of custom responsive settings due to debug information
|
573 |
-
|
574 |
-
= 3.15 =
|
575 |
-
|
576 |
-
* Small validation fix on custom responsive field
|
577 |
-
* Fixed rare bug occurence in SCSS parser
|
578 |
-
|
579 |
-
= 3.14 =
|
580 |
-
|
581 |
-
* Fixed crash on servers without character encoding module enabled
|
582 |
-
* Attempts to upgrade utf-8 table to utf-8mb4 (plugin activation)
|
583 |
-
* Groups CSS statements without repeating <style> tag.
|
584 |
-
|
585 |
-
= 3.13.1 =
|
586 |
-
|
587 |
-
* Fixed issue with font size not being displayed correctly in editor
|
588 |
-
|
589 |
-
= 3.13 =
|
590 |
-
|
591 |
-
* Fixed checkbox size on Chrome
|
592 |
-
* Fixed several layout issues
|
593 |
-
* Fixed issue with non-latin button names in the css declaration of button
|
594 |
-
* Paging buttons now disabled if there are no more pages to browse
|
595 |
-
* Updated SCSS parser to latest version
|
596 |
-
|
597 |
-
|
598 |
-
= 3.12.1 =
|
599 |
-
|
600 |
-
* Fixed responsive bug with multiple custom settings
|
601 |
-
* Fixed checkbox interface bug with responsive settings
|
602 |
-
* Fixed CSS parse errors with multiple responsive queries
|
603 |
-
|
604 |
-
|
605 |
-
= 3.12 =
|
606 |
-
|
607 |
-
* Moved from serialize to json_encode
|
608 |
-
* ID on button is now unique
|
609 |
-
|
610 |
-
= 3.11 =
|
611 |
-
|
612 |
-
* Better checking of number values in interface
|
613 |
-
* Button name is now also a class on the button ( for custom work )
|
614 |
-
* CSS output can now be compressed ( minified )
|
615 |
-
|
616 |
-
= 3.10 =
|
617 |
-
|
618 |
-
* Fixed: Now possible to add javascript to button URL field
|
619 |
-
* Fixed: Several JS plugin conflicts ( notably with Sidekick )
|
620 |
-
* Fixed: Now able to add spaces to URL
|
621 |
-
|
622 |
-
= 3.09 =
|
623 |
-
|
624 |
-
* Responsiveness bug fixes
|
625 |
-
* Fixed - custom sizes now allow width or height to be zero or not set
|
626 |
-
* Fixed rare bug when dbDelta was not properly loaded during installation
|
627 |
-
|
628 |
-
|
629 |
-
= 3.08 =
|
630 |
-
|
631 |
-
* Text align now defaults to empty
|
632 |
-
* New color picker fixing several bugs
|
633 |
-
* Fixed Divi themes / sitebuilder issue with add button
|
634 |
-
* Fixed small interface issue with paging and zero buttons
|
635 |
-
* Fixed interface issue with bulk actions notices
|
636 |
-
* Fixed various small unset variable issues
|
637 |
-
|
638 |
-
|
639 |
-
= 3.07 =
|
640 |
-
|
641 |
-
* Added Text align option
|
642 |
-
* Fixed interface issue with removing responsive parts
|
643 |
-
* Fixed URL Escaping issue
|
644 |
-
|
645 |
-
= 3.06 =
|
646 |
-
|
647 |
-
* Added German translation
|
648 |
-
|
649 |
-
= 3.05 =
|
650 |
-
|
651 |
-
* Better detection if all needed database fields are present
|
652 |
-
* Updates to the plugin styles
|
653 |
-
* Fixed a bug on the support page when allow_url_fopen is off
|
654 |
-
* Some shortcode examples in button editor
|
655 |
-
* Fixed a bug in responsive data handling
|
656 |
-
* Responsive items now can be hidden per screen size
|
657 |
-
|
658 |
-
= 3.04.2 =
|
659 |
-
|
660 |
-
* Reworked add button interface in the post editor
|
661 |
-
|
662 |
-
= 3.04.1 =
|
663 |
-
|
664 |
-
* Version numbering change to allow better version management in WP
|
665 |
-
* Improved: Wordpress style pagination
|
666 |
-
* Improved: The button editor interface now warns before permanently deleting a button
|
667 |
-
* Fixed: Layout issue in button overview disrupting interface
|
668 |
-
* Fixed: Support area not showing correctly and deprecated error on mysql info.
|
669 |
-
* Fixed: Close button didn't show in the external css dialog
|
670 |
-
|
671 |
-
= 3.04 =
|
672 |
-
|
673 |
-
* New : Pagination
|
674 |
-
|
675 |
-
* Fixed : Issue in parser causing issues when saving buttons
|
676 |
-
* Fixed : Button list can now display buttons from cache
|
677 |
-
* Fixed : Big buttons in list would be too large for screen causing problems
|
678 |
-
* Several smaller issues and interface hardening
|
679 |
-
* Updated several links
|
680 |
-
|
681 |
-
= 3.03 =
|
682 |
-
|
683 |
-
* Fixed: Text shadow and border shadow were still showing with zero width.
|
684 |
-
* Fixed: Migrate script from old version moves button id correctly.
|
685 |
-
* Fixed: Link to buttons missing on plugins page
|
686 |
-
|
687 |
-
|
688 |
-
= 3.02 =
|
689 |
-
|
690 |
-
* Fixed: IK Facebook plugin jamming the colorpicker
|
691 |
-
* Fixed: Bug where hover cursor wouldn't show up when url was added via shortcode
|
692 |
-
* Fixed: Moving table to UTF-8 in settings works again
|
693 |
-
|
694 |
-
* Option for remigration of settings from old to new table in case upgrade didn't complete
|
695 |
-
* Added PHP 5.3 requirement in readme
|
696 |
-
* Added checks for both PHP version, and if activation did run.
|
697 |
-
* Removed default 'white-space: nowrap'.
|
698 |
-
* Tested with WP 4.2
|
699 |
-
|
700 |
-
= 3.01 =
|
701 |
-
|
702 |
-
* Code rebuilt
|
703 |
-
* Major performance enhancements
|
704 |
-
* Responsive module
|
705 |
-
* Dimensions, set width and height
|
706 |
-
|
707 |
-
|
708 |
|
709 |
== Upgrade Notice ==
|
710 |
|
2 |
Contributors: maxfoundry, basszje, arcware, johnbhartley
|
3 |
Tags: wordpress button plugin, best wordpress button plugin, wordpress button, wordpress buttons, wordpress buttons plugin, social share, wp button creator, button generator, css3 button plugin, css3 button generator, css wordpress button, css3 wordpress button, create button icon, button shortcode, social icon, button, buttons, sharing, sharing buttons, widget, sidebar, Visual Composer, siteorigin, Contact Form 7, Beaver Builder, Easy Digital Download, contact form, page builder, wordpress button generator, css3 button plugin, css3 button generator, css wordpress button, css3 wordpress button, simple social buttons, wp button plugin, button generator, create button icon, font awesome, fontawesome, responsive, responsive buttons, google, google event tracking, google analytics, facebook, facebook icon, facebook like, floating social media, icon, icons,like, linkedin, linkedin icon, social media, css button generator, social icons, social media icons, social media plugin, social profiles, tweet, twitter, tweet button, gradient
|
4 |
Requires at least: 4.0
|
5 |
+
Tested up to: 4.7
|
6 |
+
Stable tag: 6.9
|
7 |
|
8 |
WordPress button plugin so powerful and easy to use anyone can create beautiful buttons and social share icons.
|
9 |
|
228 |
|
229 |
== Changelog ==
|
230 |
|
231 |
+
= 6.9 =
|
232 |
+
|
233 |
+
* Tested for WP 4.7
|
234 |
+
* Improved copy colors
|
235 |
+
|
236 |
= 6.8 =
|
237 |
|
238 |
* Fixed several smaller bugs in responsive
|
385 |
* Fixed Window resize bug in popups
|
386 |
* Fixed Array Bug in Social block
|
387 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
388 |
|
389 |
== Upgrade Notice ==
|
390 |
|