Version Description
- New - Support for Gutenberg
- New - Button icon in TinyMCE interface
- Fixed - False positive compatibility notice for PHP 7.x
- Tweak - Prevents certain events from loading twice (performance)
Download this release
Release Info
Developer | basszje |
Plugin | WordPress Button Plugin MaxButtons |
Version | 7.5 |
Comparing to | |
See all releases |
Code changes from version 7.4.1 to 7.5
- assets/css/style.css +1 -1
- assets/integrations/gutenberg/block.js +0 -61
- assets/integrations/gutenberg/blocks.build.js +1 -0
- assets/integrations/gutenberg/blocks.editor.build.css +1 -0
- assets/integrations/gutenberg/blocks.style.build.css +1 -0
- assets/integrations/gutenberg/gutenberg.php +141 -36
- assets/libraries/scssphp/src/SourceMap/Base64VLQEncoder.php +2 -1
- assets/scss/_gopro.scss +61 -53
- assets/scss/_settings.scss +6 -5
- blocks/tpl/option_select.tpl +1 -0
- blocks/tpl/textarea.tpl +3 -3
- classes/admin-class.php +3 -3
- classes/button.php +0 -14
- classes/buttons.php +24 -3
- classes/integrations.php +2 -1
- classes/max-utils.php +6 -3
- classes/maxCSSParser.php +0 -2
- classes/maxbuttons-class.php +108 -69
- images/gopro/s2-price.png +0 -0
- includes/maxbuttons-collection-edit.php +39 -40
- includes/maxbuttons-pro.php +1 -1
- js/maxajax.js +4 -3
- js/maxbuttons-admin.js +27 -4
- js/maxmodal.js +2 -2
- js/media_button.js +1 -5
- js/min/front.js +0 -0
- js/min/maxajax.js +4 -3
- js/min/maxbuttons-admin.js +1 -1
- js/min/maxmodal.js +1 -1
- js/min/tinymce.js +1 -0
- js/tinymce.js +25 -0
- maxbuttons.php +3 -3
- readme.txt +8 -1
assets/css/style.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.mb_colorpicker{z-index:200}.ads .button-primary{display:block;margin:0 auto 20px auto;width:210px;text-align:center;overflow:visible}.max-load-spinner{background:url("/wp-admin/images/wpspin_light.gif") no-repeat;background-size:16px 16px;opacity:.9;width:16px;height:16px;display:inline-block;vertical-align:middle;position:absolute;top:50%;left:50%;margin-left:-8px;margin-top:-8px;z-index:10}.max-load-spinner.large{background:url("/wp-admin/images/wpspin_light-2x.gif") no-repeat;width:32px;height:32px}.max-load-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.80;background-color:#f0f0f0;z-index:9}#maxbuttons{display:inline-block;width:100%}#maxbuttons .message,#maxbuttons .mb-message{border:solid 1px #e6db55;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;padding:10px;margin:10px 0px 20px 0px;clear:both;background:#fff}#maxbuttons .main{position:relative;z-index:500;margin-top:15px;width:72%;float:left}#maxbuttons .mb-message.error{font-weight:700}#maxbuttons .mb-message.shortcode,#maxbuttons .mb-message.mb-notice{border:solid 1px #e6db55;background-color:#ffffe0}#maxbuttons .mb-message.warning{border-left:4px solid #ffba00}#maxbuttons .mb-message.error{border-left:4px solid #ff0000}#maxbuttons .button-bar,#maxbuttons .form-actions,#maxbuttons.mb_tabs_active .mb_tab>.title:nth-of-type(1){margin:15px 0;padding:10px;background:#fbfbfb none repeat scroll 0 0;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);min-height:28px}#maxbuttons h1>span{vertical-align:top;float:left}@media (max-width: 1024px){#maxbuttons h1>span{float:none}}#maxbuttons .logo{font-weight:400;font-size:18px;overflow:hidden;text-align:center}@media (max-width: 1024px){#maxbuttons .logo{text-align:left;margin-top:15px}}#maxbuttons .logo img{vertical-align:middle;padding-left:5px;padding-right:5px}#maxbuttons .logo .fb-like{margin-top:5px;height:20px;padding:0;margin-left:180px;overflow:hidden}#maxbuttons .logo .fb-like span{vertical-align:top !important}#maxbuttons .dummy-heading{display:none}@media screen and (max-width: 960px){#maxbuttons .main{width:100%}}#maxbuttons .tablenav .input-paging{width:55px}#maxbuttons .ads ul li{margin-bottom:4px}#maxbuttons .preview-buttons{background-color:#fff;border:1px solid #dfdfdf;overflow:hidden}#maxbuttons .preview-buttons .heading{width:100%;clear:both;display:inline-block;border-bottom:1px solid #dfdfdf}#maxbuttons .preview-buttons .heading>span{display:inline-block;font-weight:700;font-size:14px;float:left}#maxbuttons .preview-buttons .button-row{width:100%;clear:both;display:inline-block;border-bottom:1px solid #dfdfdf}#maxbuttons .preview-buttons .button-row>span{display:inline-block;font-size:13px;float:left;overflow:hidden}#maxbuttons .preview-buttons .button-row .actions{margin:10px 0;padding:10px 0px 10px 8px;display:inline-block;z-index:11;width:50%;background-color:#fff;position:relative}#maxbuttons .preview-buttons .col{padding:10px 0 10px 1%}#maxbuttons .preview-buttons .col_check{width:20px}#maxbuttons .preview-buttons .col_button{width:60%;overflow:hidden}@media (max-width: 780px){#maxbuttons .preview-buttons .col_button{width:70%;margin-right:5%}}#maxbuttons .preview-buttons .col_name{width:15%}@media (max-width: 780px){#maxbuttons .preview-buttons .col_name{display:none !important}}#maxbuttons .preview-buttons .col_shortcode{width:15%;padding-right:0}#maxbuttons p.status a{text-decoration:none}#maxbuttons p.status span.count{color:#999999}#maxbuttons .button-list{margin-top:10px}#maxbuttons .button-list p{font-size:13px}#maxbuttons .button-list a{text-decoration:none}#maxbuttons .button-list a.button-name{font-weight:bold}#maxbuttons .button-list .shortcode-container{margin:10px 0px 10px 2px}#maxbuttons .button-list .collection_notice{text-align:right;margin:10px 5px 0 0;padding-top:10px;float:right}#maxbuttons .shortcode-container .mb-container{margin:0 !important;float:none !important;max-width:100% !important}#maxbuttons .shortcode-container .mb-center{text-align:left !important}#maxbuttons .pagination-links a.disabled{color:#aaa;cursor:default}#maxbuttons .pagination-links a.disabled:hover{background:#e4e4e4 none repeat scroll 0 0;cursor:default;border:1px solid #d2d2d2}#maxbuttons .pagination{width:100%;display:inline-block;margin:15px 0 5px}#maxbuttons .pagination li{float:left;margin-right:5px}#maxbuttons .pagination li a,#maxbuttons .pagination li span{background:#ccc;vertical-align:middle;padding:4px 10px 8px;height:15px;display:inline-block;border:1px solid #eee;text-decoration:none;font-size:14px;font-weight:bold}#maxbuttons .maxbutton-welcome-container{margin:25px 0;padding:15px;border:1px solid #ccc;background:#fff}#maxbuttons .maxbutton-welcome-container h3{font-size:26px}#maxbuttons .maxbutton-welcome-container p.started{font-size:18px}#maxbuttons .maxbutton-welcome-container p{font-size:14px;line-height:18px}#maxbuttons .maxbutton-welcome-container h3{font-size:20px}#maxbuttons .maxbutton-welcome-container ul{list-style-type:disc;margin-left:25px}#maxbuttons.maxbuttons-controller-edit .main,#maxbuttons.maxbuttons-controller-button .main{width:auto;max-width:1200px}#maxbuttons .option-container{margin-bottom:20px;border:solid 1px #cccccc;border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;background-color:#fff}#maxbuttons .option-container .title{font-size:18px;padding:9px 8px 9px 10px;text-align:left;text-shadow:0px 1px 0px #ffffff;position:relative}#maxbuttons .option-container .section-title{padding:15px;margin-top:10px;font-weight:700;font-size:16px}#maxbuttons .option-container .section-title{background-color:#fff}#maxbuttons .option-container .option-list{display:inline-block}#maxbuttons .option-container .option-list:after{clear:both}#maxbuttons .option-container .option-list .help{float:right;margin-top:5px}#maxbuttons .option-container .help{position:relative;font-size:24px;color:#666;margin-left:10px}#maxbuttons .option-container .help span{font-family:"Open Sans",sans-serif;font-size:12px;background-color:#fff;color:#000;position:absolute;display:none;padding:10px 10px;top:-7px;left:25px;min-width:150px;border-radius:5px;text-align:left;z-index:1000;border:1px solid #ccc;line-height:15px}#maxbuttons .option-container .help span .shortcode,#maxbuttons .option-container .help span .mb-message.mb-notice{color:555;white-space:nowrap}#maxbuttons .option-container .help:hover span{display:block}#maxbuttons .option-container>.inside{padding:10px 15px 10px 15px;border-top:solid 1px #cccccc;background-color:#ffffff}#maxbuttons .option-container>.inside .option,#maxbuttons .option-container>.inside .option-design{margin-bottom:10px;display:block;position:relative}#maxbuttons .option-container>.inside .option.hidden,#maxbuttons .option-container>.inside .option-design.hidden{display:none}#maxbuttons .option-container>.inside .option .label,#maxbuttons .option-container>.inside .option>label,#maxbuttons .option-container>.inside .option-design .label,#maxbuttons .option-container>.inside .option-design>label{display:inline-block;font-weight:bold;padding-left:3px;padding-top:5px;width:145px;vertical-align:top;cursor:default;min-height:25px}#maxbuttons .option-container>.inside .option .label[for],#maxbuttons .option-container>.inside .option>label[for],#maxbuttons .option-container>.inside .option-design .label[for],#maxbuttons .option-container>.inside .option-design>label[for]{cursor:pointer}@media (max-width: 780px){#maxbuttons .option-container>.inside .option .label,#maxbuttons .option-container>.inside .option>label,#maxbuttons .option-container>.inside .option-design .label,#maxbuttons .option-container>.inside .option-design>label{font-size:14px}}#maxbuttons .option-container>.inside .option:after,#maxbuttons .option-container>.inside .option:before,#maxbuttons .option-container>.inside .option-design:after,#maxbuttons .option-container>.inside .option-design:before{clear:both}#maxbuttons .option-container>.inside .option label{margin-top:2px}#maxbuttons .option-container>.inside .option label.mbcolor{margin-top:5px}#maxbuttons .option-container>.inside .option label:nth-of-type(2){margin-left:30px;width:115px}#maxbuttons .option-container>.inside .option .control-group{display:inline-block}#maxbuttons .option-container>.inside .option .rotate-left{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(-45), M12=-sin(-45), M21=sin(-45), M22=cos(-45));-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(-45), M12=-sin(-45), M21=sin(-45), M22=cos(-45))";zoom:1}#maxbuttons .option-container>.inside .option .rotate-right{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(45), M12=-sin(45), M21=sin(45), M22=cos(45));-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(45), M12=-sin(45), M21=sin(45), M22=cos(45))";zoom:1}#maxbuttons .option-design{margin-bottom:10px}#maxbuttons .option-design .input td div.cell-label{padding:1px 10px 0px 5px;font-weight:bold;border-bottom:solid 1px #d1d1d1;width:180px;font-size:13px;height:30px}#maxbuttons .option-design .default-other{font-size:13px}#maxbuttons .option p.note,#maxbuttons .option-design p.note{font-style:italic;display:inline-block;clear:both;color:#808080;padding-left:3px;margin-top:10px;margin-bottom:5px;margin-left:0;display:block}#maxbuttons .mb-message.shortcode h4,#maxbuttons .mb-message.mb-notice h4{font-size:16px}#maxbuttons .mb-message.shortcode strong,#maxbuttons .mb-message.mb-notice strong{font-weight:600}#maxbuttons .mb-message.shortcode .expanded,#maxbuttons .mb-message.mb-notice .expanded{display:none}#maxbuttons .mb-message.shortcode .expanded p,#maxbuttons .mb-message.mb-notice .expanded p{font-size:14px;line-height:22px}#maxbuttons .mb-message.shortcode .expanded .example strong,#maxbuttons .mb-message.mb-notice .expanded .example strong{width:300px;display:inline-block}#maxbuttons .mb-message.shortcode .shortcode-expand,#maxbuttons .mb-message.mb-notice .shortcode-expand{clear:both;font-weight:700;display:block;margin:5px 0;cursor:pointer}@media (max-width: 1024px){#maxbuttons .mb-message.shortcode .shortcode-expand,#maxbuttons .mb-message.mb-notice .shortcode-expand{float:none;text-align:left;margin:10px 0;display:block}}#maxbuttons .manual-box{float:right;margin:3px 15px;top:0;right:0}#maxbuttons .manual-box a{text-align:center;width:100%;background:#e0e0e0 none repeat scroll 0 0;font-size:13px;font-weight:600;margin-left:4px;margin-top:5px;padding:4px 8px;position:relative;text-decoration:none;text-shadow:none}#maxbuttons .manual-entry{display:none;position:absolute;border:1px solid #000;background:#fff;width:45%;right:25px;z-index:199;box-sizing:border-box;padding-bottom:20px}#maxbuttons .manual-entry h3{font-size:18px;width:calc(100%);box-sizing:border-box;padding:10px 0;border-bottom:1px solid #ccc;text-align:center;margin:0;padding-right:35px;position:relative}#maxbuttons .manual-entry h3 span{box-sizing:border-box;cursor:pointer;width:35px;height:100%;font-size:25px;display:inline-block;position:absolute;right:5px;top:0;padding-top:8px}#maxbuttons .manual-entry h4,#maxbuttons .manual-entry p,#maxbuttons .manual-entry ol,#maxbuttons .manual-entry ul{padding:0 15px}#maxbuttons .manual-entry h4{font-size:16px}#maxbuttons .manual-entry p{font-size:13px}#maxbuttons .output{position:fixed;top:45px;right:20px;background-color:#ffffff;border:solid 1px #414141;box-shadow:0px 0px 6px #808080;z-index:99;width:auto;min-width:300px}@media (max-width: 780px){#maxbuttons .output{-webkit-box-shadow:0 0 0 0;-moz-box-shadow:0 0 0 0;box-shadow:0 0 0 0;top:0;left:0;right:0;position:relative;margin-bottom:15px;border-color:#ccc}}#maxbuttons .output .header{color:#222222;background-color:#ffffff;border-bottom:solid 1px #cccccc;font-family:"Open Sans", sans-serif;font-size:16px;font-weight:bold;padding:8px 0px 8px 10px;cursor:move;position:relative}#maxbuttons .output .header .preview-toggle{float:right;font-size:30px;width:30px;position:absolute;top:3px;right:0}#maxbuttons .output .inner{padding:5px}#maxbuttons .output .inner p{padding:5px 0 5px 5px}#maxbuttons .output .input.mbcolor{float:left;position:relative;margin-top:5px}#maxbuttons .output .input.mbcolor .wp-picker-container.wp-picker-active{padding:15px;border:1px solid #ccc;background-color:#fff;position:absolute;bottom:-15px;left:-270px;z-index:102;-webkit-box-shadow:4px 1px 5px #ccc;-moz-box-shadow:4px 1px 5px #ccc;box-shadow:4px 1px 5px #ccc}#maxbuttons .output .note{float:left;margin:8px 0px 0px 10px}#maxbuttons .output .result{padding:20px 5px}#maxbuttons .output .result p{padding:5px 0px 5px 0px;margin:0}#maxbuttons .output .result.preview-border-box>*{box-sizing:border-box}#maxbuttons .conditional-option{display:none}#maxbuttons .media_query{width:640px;margin:0 20px 15px 0;border:1px solid #ccc;padding:10px 15px;display:inline-block;clear:both;position:relative}#maxbuttons .media_query .removebutton{position:absolute;right:10px;top:10px;cursor:pointer;z-index:100;padding:10px 5px}#maxbuttons .media_query input:after{clear:both}#maxbuttons .media_query .label{clear:both;margin-bottom:15px}#maxbuttons .media_query label.title{padding:0;font-size:20px}#maxbuttons .media_query .custom.hidden{display:none}#maxbuttons .media_query .option.custom label:nth-of-type(2){margin-left:95px}#maxbuttons .media_query .description{padding:15px 0px;text-align:left}#maxbuttons .media_query select{width:60px}#maxbuttons .media_query .input input{margin-top:0px;padding-top:2px}#maxbuttons .media_queries_options .new-query{margin-top:25px}#maxbuttons .media_queries_options .new-query select{width:auto}#maxbuttons .media_option_prot,#maxbuttons #media_desc{display:none}#maxbuttons .copy-warning{width:400px;margin:0 auto;position:relative;line-height:1.1}#maxbuttons .copy-warning:before{content:"\f534";font-size:40px;color:#ff0000;width:35px;height:35px;font-family:"Dashicons";position:absolute;left:20px;top:40%;margin-top:-14px}#maxbuttons .copy-warning .example{margin-bottom:5px}#maxbuttons .form-actions a{margin-right:10px}#maxbuttons select{width:150px}#maxbuttons select.small{width:auto}#maxbuttons .input{display:inline-block;margin-right:15px;min-height:35px;vertical-align:top}#maxbuttons .input img{vertical-align:middle}#maxbuttons .input.mbcolor{min-width:50px}#maxbuttons .input.checkbox input{margin-top:0}#maxbuttons .input.checkbox label{line-height:16px;margin-top:0 !important}#maxbuttons .maxajax-load-spinner{width:16px;height:16px;background:url("/wp-admin/images/wpspin_light.gif") no-repeat;opacity:0.9s;display:inline-block;margin:0 10px;z-index:10;vertical-align:middle}#maxbuttons input[type='text']{width:450px}@media (max-width: 780px){#maxbuttons input[type='text']{width:350px}}#maxbuttons input[type='text'].tiny{width:35px;vertical-align:middle}#maxbuttons input[type='text'].small{width:50px}#maxbuttons input[type='text'].medium{width:150px}#maxbuttons input[type='text'].tiny-nopad{width:35px}#maxbuttons input[type='number']{vertical-align:middle}#maxbuttons input[type='number'].tiny,#maxbuttons input[type='number'].tiny-nopad{width:55px}@media (max-width: 780px){#maxbuttons input[type='number'].tiny,#maxbuttons input[type='number'].tiny-nopad{width:60px}}#maxbuttons input[type='number'].small{width:70px}@media (max-width: 780px){#maxbuttons input[type='number'].small{width:75px}}#maxbuttons textarea{width:450px;height:80px}#maxbuttons .option-container .inside .option label.mbcolor:nth-of-type(2){margin-left:37px}#maxbuttons .option-container .inside .option.url{margin-bottom:0}#maxbuttons .option-container .inside .option.url_options{margin:5px 0 10px}#maxbuttons .option-container .inside .option.url_options .nofollow{margin-left:35px}#maxbuttons .option-container .inside .option.url_options label,#maxbuttons .option-container .inside .option.rel_options label{font-weight:400}#maxbuttons .option-container .inside .option.font .checkbox{margin-right:2px}#maxbuttons .option-container .inside .option.font .radio{margin-right:0}#maxbuttons .option-container .inside .option.font .input.font{margin-right:2px}#maxbuttons .option-container .inside .option.font .input.font_size{margin-right:0}#maxbuttons .option-container .inside .option.font .input.font_size:after{display:block}@media (max-width: 780px){#maxbuttons .option-container .inside .option.font{display:inline-block}#maxbuttons .option-container .inside .option.font:after{clear:both}#maxbuttons .option-container .inside .option.font>*{float:left}}#maxbuttons .option-container .inside .option.font .control-group.font_weight{margin-left:28px}@media (max-width: 780px){#maxbuttons .option-container .inside .option.font .control-group.font_weight{clear:left;margin-left:148px;margin-top:10px}}#maxbuttons .option-container .inside .option.font .control-group.text_align{margin-left:48px}@media (max-width: 780px){#maxbuttons .option-container .inside .option.font .control-group.text_align{margin-left:20px;margin-top:10px}}#maxbuttons .option-container .inside .option.padding_top .input,#maxbuttons .option-container .inside .option.container_margin_top .input{margin-right:30px}#maxbuttons .option-container .inside .option.padding_top .input:last-of-type,#maxbuttons .option-container .inside .option.container_margin_top .input:last-of-type{margin-right:0}@media (max-width: 780px){#maxbuttons .option-container .inside .option.padding_top .input,#maxbuttons .option-container .inside .option.container_margin_top .input{margin-right:15px}}#maxbuttons .option-container .inside .option.text_color label{margin-top:0px}#maxbuttons .option-container .inside .option.text_color label:nth-of-type(2){margin-left:51px}#maxbuttons .option-container .inside .option.description label{padding-top:35px}#maxbuttons .option-container .inside .option .radius-wrap{position:relative;margin-left:45px;display:inline-block}#maxbuttons .option-container .inside .option.radius .label:first-child{width:100px;float:left}#maxbuttons .option-container .inside .option.radius .bottom,#maxbuttons .option-container .inside .option.radius .top{position:relative}#maxbuttons .option-container .inside .option.radius .bottom .input,#maxbuttons .option-container .inside .option.radius .top .input{margin-right:0;margin-left:0}#maxbuttons .option-container .inside .option.radius .bottom .dashicons:nth-child(3),#maxbuttons .option-container .inside .option.radius .top .dashicons:nth-child(3){margin-right:10px}#maxbuttons .option-container .inside .option.radius .top{margin-bottom:10px}#maxbuttons .option-container .inside .option.radius label{display:inline-block;font-weight:700;width:90px;margin-left:5px;cursor:default}#maxbuttons .option-container .inside .option.radius .dashicons{font-size:35px;height:35px;width:35px;color:#ccc}#maxbuttons .option-container .inside .option.radius .top .dashicons{margin-top:-5px}#maxbuttons .option-container .inside .option.radius .bottom .dashicons{margin-top:5px}#maxbuttons .option-container .inside .option.radius #radius_toggle{position:absolute;left:46%;top:25px;font-size:30px;cursor:pointer}#maxbuttons .option-container .inside .option.gradient_head .label:nth-child(even){width:120px}#maxbuttons .option-container .inside .option .gradient_end_color,#maxbuttons .option-container .inside .option .gradient_end_color_hover{margin-left:58px}#maxbuttons .default{display:inline-block;padding-left:10px;padding-top:4px;font-style:italic;color:#808080}#maxbuttons .default .other{padding-left:40px;padding-top:8px}#maxbuttons .mb-button{width:38px;height:38px;background-color:#eceded;display:inline-block;margin-right:6px;cursor:pointer;display:none}#maxbuttons .mb-button span{text-align:center;padding:9px 0;width:100%;line-height:20px}#maxbuttons .check_button{display:none}#maxbuttons .check_button+label{background-position:center center;background-repeat:no-repeat;background-color:#fff;display:inline-block;border:1px solid #ddd;font_weight:normal;padding:4px}@media (max-width: 780px){#maxbuttons .check_button+label{padding:10px}}#maxbuttons .check_button.text+label{padding:5px}#maxbuttons .check_button.icon+label i{width:20px;height:20px;color:#545454}#maxbuttons .check_button.icon+label i:focus{outline:none}#maxbuttons .check_button:checked+label{background:#ebebeb none repeat scroll 0 0;border-color:#999999;box-shadow:0 2px 5px -3px rgba(0,0,0,0.3) inset}#maxbuttons .option .input_label{display:inline-block;vertical-align:top}#maxbuttons .option .input_label.left{margin-right:10px}#maxbuttons .option .input_label.right{margin-left:10px}#maxbuttons .option .range_value{margin-top:5px}#maxbuttons .option .range_value output{clear:both;font-size:18px;text-align:center;width:100%;display:inline-block}#maxbuttons .option .switch_label{padding-top:2px !important;margin:0 !important}#maxbuttons .switch_button{margin-left:-5px}#maxbuttons .switch_button label{padding:8px 5px}#maxbuttons .switch_button label:focus{outline:none}#maxbuttons .switch_button input{display:none}#maxbuttons .switch_button input:checked ~ .the_switch{background:#6fbeb5}#maxbuttons .switch_button input:checked ~ .the_switch:after{left:26px;background:#179588}#maxbuttons .switch_button input::disabled ~ .the_switch{background:#d5d5d5;pointer-events:none}#maxbuttons .switch_button input:disabled ~ .the_switch:after{background:#bcbdbc}#maxbuttons .switch_button .the_switch{position:relative;display:inline-block;height:15px;width:50px;background:#898989;border-radius:100px;cursor:pointer;transition:all 0.3s ease}#maxbuttons .switch_button .the_switch:after{position:absolute;left:-2px;top:-3px;display:block;width:24px;height:24px;border-radius:100px;background:#aaa;box-shadow:0px 3px 3px rgba(0,0,0,0.05);content:'';transition:all 0.2s ease}#maxbuttons .switch_button .the_switch:active:after{transform:scale(0.9, 0.85)}#maxbuttons .switch_button .the_switch:focus{outline:none}#maxbuttons .input.mbcolor{margin-top:5px;position:relative}#maxbuttons .input.mbcolor .wp-picker-clear{display:none}#maxbuttons .input.mbcolor input[type="text"]{width:75px;line-height:22px}#maxbuttons .input.mbcolor .wp-color-picker{width:inherit}#maxbuttons .input.mbcolor .wp-color-result{-webkit-box-shadow:-1px 1px 2px #999;-moz-box-shadow:-1px 1px 2px #999;box-shadow:-1px 1px 2px #999;height:30px;border:0}#maxbuttons .input.mbcolor .wp-color-result:after{font-size:12px;line-height:30px;display:none}#maxbuttons .input.mbcolor .wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 5px rgba(30,140,190,0.8);-moz-box-shadow:0 0 5px rgba(30,140,190,0.8);box-shadow:0 0 5px rgba(30,140,190,0.8)}#maxbuttons .input.mbcolor .wp-color-result-text{display:none}#maxbuttons .input.mbcolor .wp-picker-input-wrap{padding:0}#maxbuttons .input.mbcolor .wp-picker-active+.arrows{display:inline-block}#maxbuttons .input.mbcolor .arrows{position:absolute;display:none;top:0;margin-top:40%}#maxbuttons .input.mbcolor .arrows.right{right:-45px}#maxbuttons .input.mbcolor .arrows.left{left:-35px}#maxbuttons .input.mbcolor .arrows .arrow-left,#maxbuttons .input.mbcolor .arrows .arrow-right{width:0;height:0;font-size:0;line-height:0;vertical-align:bottom;cursor:pointer;transition:.8s}#maxbuttons .input.mbcolor .arrows .arrow-left{border-top:30px solid transparent;border-bottom:30px solid transparent;border-right:20px solid #ccc}#maxbuttons .input.mbcolor .arrows .arrow-left:hover{border-right-color:#33b3db}#maxbuttons .input.mbcolor .arrows .arrow-right{border-top:30px solid transparent;border-bottom:30px solid transparent;border-left:20px solid #ccc;margin-top:35px}#maxbuttons .input.mbcolor .arrows .arrow-right:hover{border-left-color:#33b3db}#maxbuttons .input.mbcolor .arrows .left,#maxbuttons .input.mbcolor .arrows .right{display:inline-block;float:left;clear:both;width:35px;height:45px}#maxbuttons .input.mbcolor .arrows .left{margin-top:15px}#maxbuttons [type='range']{-webkit-appearance:none;width:250px}#maxbuttons [type='range']:focus{outline:0}#maxbuttons [type='range']:focus::-webkit-slider-runnable-track{background:#fff}#maxbuttons [type='range']:focus::-ms-fill-lower{background:#fff}#maxbuttons [type='range']:focus::-ms-fill-upper{background:#fff}#maxbuttons [type='range']::-webkit-slider-runnable-track{cursor:pointer;height:12px;transition:all .2s ease;width:250px;background:#fff;border:1px solid #cfd8dc;border-radius:10px}#maxbuttons [type='range']::-webkit-slider-thumb{background:#179588;border:0px solid #eceff1;border-radius:12px;cursor:pointer;height:24px;width:24px;-webkit-appearance:none;margin-top:-7px}#maxbuttons [type='range']::-moz-range-track{cursor:pointer;height:12px;transition:all .2s ease;width:250px;background:#fff;border:1px solid #cfd8dc;border-radius:10px}#maxbuttons [type='range']::-moz-range-thumb{background:#179588;border:0px solid #eceff1;border-radius:12px;cursor:pointer;height:24px;width:24px}#maxbuttons [type='range']::-ms-track{cursor:pointer;height:12px;transition:all .2s ease;width:250px;background:transparent;border-color:transparent;border-width:12px 0;color:transparent}#maxbuttons [type='range']::-ms-fill-lower{background:#f2f2f2;border:1px solid #cfd8dc;border-radius:20px}#maxbuttons [type='range']::-ms-fill-upper{background:#fff;border:1px solid #cfd8dc;border-radius:20px}#maxbuttons [type='range']::-ms-thumb{background:#179588;border:0px solid #eceff1;border-radius:12px;cursor:pointer;height:24px;width:24px;margin-top:0}#maxbuttons .support.tiles{display:flex}#maxbuttons .support.tiles>div{background-color:#0073aa;margin:0 25px 0 0;padding:16px}#maxbuttons .support.tiles>div a{color:#fff;text-align:center;font-size:20px;text-decoration:none}#maxbuttons .system_info{width:90%;background-color:#fff;border:1px solid #000;padding:15px}#maxbuttons .system_info .info{margin:5px 0}#maxbuttons .system_info .info label{width:250px;display:inline-block;clear:both}#maxbuttons.maxbuttons-settings .option-container .inside .option-design{margin:20px 0}#maxbuttons.maxbuttons-settings .option-container .inside .option-design label{line-height:14px;height:40px;vertical-align:top;width:200px}#maxbuttons h2.tabs{margin:1em 0;min-height:35px}#maxbuttons h2.sub-tabs,#maxbuttons h2.submit-tab{list-style:none;clear:both;margin-bottom:0}#maxbuttons h2.sub-tabs a,#maxbuttons h2.submit-tab a{font-weight:400;font-size:14px;cursor:pointer}#maxbuttons h2.sub-tabs a .dashicons,#maxbuttons h2.submit-tab a .dashicons{margin-right:10px;line-height:24px}#maxbuttons h2.sub-tabs .save-indicator,#maxbuttons h2.submit-tab .save-indicator{float:right;font-size:25px;display:none;margin-right:10px}#maxbuttons h2.sub-tabs .save-indicator.dashicons-warning,#maxbuttons h2.submit-tab .save-indicator.dashicons-warning{color:#ff0000}#maxbuttons h2.sub-tabs .save-indicator.dashicons-yes,#maxbuttons h2.submit-tab .save-indicator.dashicons-yes{color:#00ff00}#maxbuttons.mb_tabs_active .mb_tab{border:0px;background:none;border-radius:0 0 0 0;-webkit-border-radius:0 0 0 0}#maxbuttons.mb_tabs_active .mb_tab>.title:nth-of-type(1) button{top:0}#maxbuttons.mb_tabs_active .mb_tab>.title:nth-of-type(1) .right{float:right}#maxbuttons.mb_tabs_active .mb_tab>.inside{border:1px solid #e5e5e5}#maxbuttons.maxbuttons-collections-edit .main{width:100%;max-width:none}#maxbuttons .collection-addnew{display:inline-block}@media (max-width: 780px){#maxbuttons .collection-addnew{margin-left:5px}}#maxbuttons .collection_list .collection{position:relative;background-color:#fff;padding:15px;border-radius:15px;margin:15px 0}#maxbuttons .collection_list .collection h3{display:inline-block;width:90%;margin-top:0;font-size:18px;line-height:20px}#maxbuttons .collection_list .collection h3 a{color:#000;font-size:25px;text-decoration:none}#maxbuttons .collection_list .collection h3 a:hover{text-decoration:underline}#maxbuttons .collection_list .collection h3 .dashicons{color:#ccc;margin-left:15px}#maxbuttons .collection_list .collection h3 .button-count{font-weight:400;font-size:15px;margin-left:15px;vertical-align:top}#maxbuttons .collection_list .collection .collection_remove{top:10px;right:15px;font-size:25px;font-weight:400;position:absolute;cursor:pointer}#maxbuttons .collection_list .collection.welcome p{font-size:14px;line-height:22px}#maxbuttons .collection_list .collection-container{position:relative;width:100%;display:inline-block;clear:both}#maxbuttons .collection_list .collection-container .maxcollection{position:static !important}#maxbuttons .inside .preview_collection.option label{display:inline-block;float:none;font-size:25px;width:100%}#maxbuttons .mb_collection_selection{display:inline-block;min-height:300px;margin:25px 0}#maxbuttons .mb_collection_selection .sortable .item{margin-bottom:25px;position:relative;padding-left:30px;min-height:45px;clear:both}#maxbuttons .mb_collection_selection .sortable .item .button-remove{margin-top:5px;position:absolute;left:20px;top:-15px;border:1px solid #000;border-radius:11px;width:20px;height:20px;background-color:rgba(0,0,0,0.5)}#maxbuttons .mb_collection_selection .sortable .item .button-remove:hover{cursor:pointer}#maxbuttons .mb_collection_selection .sortable .item .button-remove span{color:#fff;font-size:16px;padding-top:2px;overflow:hidden}#maxbuttons .mb_collection_selection .sortable-placeholder{border:3px dashed #aaa;height:45px;width:344px;background:#ccc}#maxbuttons .mb_collection_selection .button_data{display:none}#maxbuttons .mb-social-options{float:right;width:45%;border:1px solid #000;height:100%}#maxbuttons .mb-buttons-selection{float:left;width:45%;overflow:hidden;border:1px solid #000}#maxbuttons .mb-preview-window{position:fixed;top:40%;right:20px;width:30%;max-width:45%;max-height:90vh;background-color:rgba(255,255,255,0.7);border:1px solid #000;z-index:500 !important;overflow:hidden;display:none}@media (max-width: 780px){#maxbuttons .mb-preview-window{position:relative;left:0;top:0;bottom:0;right:0;width:100%;height:auto;display:inline-block;border-color:#ccc}}#maxbuttons .mb-preview-window .mb-preview-wrapper{position:relative;display:inline-block;width:100%}#maxbuttons .sub-tabs .preview-on{background-color:#00b9eb;color:#fff}#maxbuttons .sub-tabs .preview-on::before{line-height:24px}#maxbuttons #picker-back{top:0;left:0;right:0;bottom:0;background-color:#000;z-index:110000;position:fixed;opacity:0.7;display:none}#maxbuttons #picker-modal,#maxbuttons .max-modal.picker-modal{display:none;width:calc(100% - 60px);min-height:300px;top:30px;bottom:30px;left:30px;right:30px;z-index:160000}#maxbuttons #picker-modal .modal_header,#maxbuttons .max-modal.picker-modal .modal_header{height:15px;display:block;overflow:hidden;top:0;left:0;bottom:0;right:0;border:0}#maxbuttons #picker-modal .picker-packages,#maxbuttons .max-modal.picker-modal .picker-packages{top:31px;left:0;width:205px;bottom:0;background-color:#f3f3f3;position:absolute;border-right:1px solid #ccc;overflow-x:hidden;overflow-y:auto}#maxbuttons #picker-modal .picker-packages ul,#maxbuttons .max-modal.picker-modal .picker-packages ul{margin-top:4px}#maxbuttons #picker-modal .picker-packages li a,#maxbuttons .max-modal.picker-modal .picker-packages li a{padding:6px 20px;display:block;color:#0073aa;text-decoration:none;font-size:13px;line-height:16px}#maxbuttons #picker-modal .picker-packages li a:hover,#maxbuttons .max-modal.picker-modal .picker-packages li a:hover{background:rgba(0,0,0,0.04) none repeat scroll 0 0;color:#21759b}#maxbuttons #picker-modal .picker-packages li a.pack-active,#maxbuttons .max-modal.picker-modal .picker-packages li a.pack-active{font-weight:700;color:#000}#maxbuttons #picker-modal .picker-main,#maxbuttons .max-modal.picker-modal .picker-main{left:206px;top:31px;right:0;bottom:60px;position:absolute;border-bottom:1px solid #dddddd;overflow-y:scroll;background-color:#fff}#maxbuttons #picker-modal .picker-main .screen,#maxbuttons .max-modal.picker-modal .picker-main .screen{margin:5px 5px}#maxbuttons #picker-modal .picker-main .screen .tablenav-pages,#maxbuttons .max-modal.picker-modal .picker-main .screen .tablenav-pages{float:none;margin-left:1%}#maxbuttons #picker-modal .picker-main .item,#maxbuttons .max-modal.picker-modal .picker-main .item{padding:5px;margin:5px 0 5px 1%;border:1px solid #000;width:16%;height:auto;float:left;text-align:center;position:relative;background-color:#eee;border:1px solid #b4b9be;display:inline-block}#maxbuttons #picker-modal .picker-main .item .button_data,#maxbuttons .max-modal.picker-modal .picker-main .item .button_data{display:none}#maxbuttons #picker-modal .picker-main .item .button_name,#maxbuttons .max-modal.picker-modal .picker-main .item .button_name{clear:left;display:block;margin-top:15px;font-size:9px}#maxbuttons #picker-modal .picker-main .item .button-selected,#maxbuttons .max-modal.picker-modal .picker-main .item .button-selected{position:absolute;font-size:20px;top:-10px;right:-10px;width:24px;height:24px;color:#fff;background-color:#1e8cbe;z-index:100;border-radius:12px}#maxbuttons #picker-modal .picker-main .item .button-selected span,#maxbuttons .max-modal.picker-modal .picker-main .item .button-selected span{padding-top:2px}#maxbuttons #picker-modal .picker-inselection,#maxbuttons .max-modal.picker-modal .picker-inselection{height:60px;display:block;position:absolute;bottom:0;right:0;left:206px;overflow:hidden}#maxbuttons #picker-modal .picker-inselection .info,#maxbuttons .max-modal.picker-modal .picker-inselection .info{height:60px;float:left;display:inline-block;padding:10px 15px;display:none}#maxbuttons #picker-modal .picker-inselection .info .clear-selection,#maxbuttons .max-modal.picker-modal .picker-inselection .info .clear-selection{color:#ff0000;display:block;padding:0}#maxbuttons #picker-modal .picker-inselection .info .clear-selection:hover,#maxbuttons .max-modal.picker-modal .picker-inselection .info .clear-selection:hover{background-color:#ff0000;color:#fff}#maxbuttons #picker-modal .picker-inselection .items,#maxbuttons .max-modal.picker-modal .picker-inselection .items{display:inline-block;position:absolute;overflow:hidden;padding-top:5px;height:100%;left:130px;right:180px}@media (max-width: 780px){#maxbuttons #picker-modal .picker-inselection .items,#maxbuttons .max-modal.picker-modal .picker-inselection .items{display:none}}#maxbuttons #picker-modal .picker-inselection .items .item,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item{height:40px;width:40px;overflow:hidden;float:left;margin:3px;position:relative}#maxbuttons #picker-modal .picker-inselection .items .item .button_name,#maxbuttons #picker-modal .picker-inselection .items .item .button_data,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button_name,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button_data{display:none}#maxbuttons #picker-modal .picker-inselection .items .item .button-remove,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button-remove{display:none;position:absolute;width:30px;height:30px;left:2px;border-radius:15px;top:2px;background-color:rgba(0,0,0,0.5)}#maxbuttons #picker-modal .picker-inselection .items .item .button-remove span,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button-remove span{font-size:20px;color:#fff;padding-left:5px;padding-top:5px}#maxbuttons #picker-modal .picker-inselection .items .item:hover .button-remove,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item:hover .button-remove{display:block}#maxbuttons #picker-modal .picker-inselection .add,#maxbuttons .max-modal.picker-modal .picker-inselection .add{float:right;margin-top:15px;margin-right:15px;height:100%}#maxbuttons .social_block .social-option{clear:both;margin-top:25px}#maxbuttons .social_block .social-option .shortcode-container{display:inline-block}#maxbuttons .social_block .social-option .button_name{display:inline-block;margin-left:10px;vertical-align:middle;font-weight:700}#maxbuttons #mbfeedback .link{height:25px;width:100px;position:fixed;top:40%;right:0;z-index:1000;transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}#maxbuttons #mbfeedback .link a{background:#ccc;height:25px;width:70px;padding:8px 16px;color:#fff;font-family:Arial, sans-serif;font-size:15px;font-weight:bold;text-decoration:none;line-height:15px;border-bottom:solid 1px #333;border-left:solid 1px #333;border-right:solid 1px #fff}#maxbuttons #mbfeedback .link a::hover{background:#06c}#maxbuttons .ad-wrap{width:27%;float:left;max-width:300px;margin-left:1%;min-width:200px;margin-top:41px}#maxbuttons .ad-wrap .ads{background:#fff;margin-bottom:20px;text-align:center}#maxbuttons .ad-wrap .ads.image-ad{background:none;margin-top:20px}#maxbuttons .ad-wrap .ads.image-ad img{max-width:100%}#maxbuttons .ad-wrap .ads>a{text-decoration:none}#maxbuttons .ad-wrap .ads .header{background-color:#88c5c2;color:#fff;font-size:18px;text-transform:uppercase;padding:12px}#maxbuttons .ad-wrap .ads h3{text-align:center;padding-bottom:14px}#maxbuttons .ad-wrap .ads ul{list-style:none}#maxbuttons .ad-wrap .ads ul li{font-weight:bold;text-decoration:none;color:#000000}#maxbuttons .ad-wrap .ads ul li.plus{font-size:38px;font-weight:700;color:#88c5c2}#maxbuttons .ad-wrap .ads span.img{text-align:center;display:block}#maxbuttons .ad-wrap .ads .ads_button_wrap{margin:20px 0 30px;display:inline-block}#maxbuttons .ad-wrap .ads .ads_button_wrap .button{color:#fff;background-color:#88c5c2;font-size:16px;font-weight:bold;border:0;padding:0 40px}@media screen and (max-width: 960px){#maxbuttons .ad-wrap{display:none}}#maxbuttons.maxbuttons-pro-gopro .main{width:95%;max-width:860px}#maxbuttons.maxbuttons-pro-gopro h1.title{margin:0;font-size:24px;display:inline-block}#maxbuttons.maxbuttons-pro-gopro h1.title .big-maxg-btn{display:inline-block;background-color:#86c5c2;border-color:#73a3a8;margin:0 10px;vertical-align:super;line-height:23px;border-top:0;border-left:0;border-right:0;top:5px}#maxbuttons.maxbuttons-pro-gopro h1.title img{vertical-align:middle}#maxbuttons.maxbuttons-pro-gopro .logo{margin:0;display:inline-block;margin-top:14px}#maxbuttons.maxbuttons-pro-gopro .logo .simple-btn{color:#62c0e6;text-decoration:underline}#maxbuttons.maxbuttons-pro-gopro .default-section{text-align:center;padding:0px 10px}#maxbuttons.maxbuttons-pro-gopro .default-section p{position:relative;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:16px;margin:17px 0;color:#5b5b5b}#maxbuttons.maxbuttons-pro-gopro .default-section:nth-child(even){background-color:#fff}#maxbuttons.maxbuttons-pro-gopro .default-section:nth-child(odd){background-color:#faf5f1}#maxbuttons.maxbuttons-pro-gopro .default-section .big-maxg-btn{background-color:#fd8d61;border-color:#f0702b;font-size:36px;margin:10px}#maxbuttons.maxbuttons-pro-gopro .default-section h2{font-family:'Quicksand', sans-serif;font-weight:bold;color:#88c5c2;font-size:36px;line-height:38px;max-width:80%;margin:14px auto}#maxbuttons.maxbuttons-pro-gopro .default-section .rating{width:380px;margin:0 auto}#maxbuttons.maxbuttons-pro-gopro .default-section .rating p{margin:10px 0 0;font-size:22px;color:#000}#maxbuttons.maxbuttons-pro-gopro .default-section .icon-row p{font-weight:bold}#maxbuttons.maxbuttons-pro-gopro .default-section .icon-row img{width:106px;height:106px}#maxbuttons.maxbuttons-pro-gopro .social-row div{margin-bottom:5px}#maxbuttons.maxbuttons-pro-gopro .social-row p{background:#fff;padding:15px 5px 0 5px;margin:15px 0 0 15px;font-weight:700}#maxbuttons.maxbuttons-pro-gopro .social-row img{margin-top:15px}#maxbuttons.maxbuttons-pro-gopro .social-row p{min-height:162px}#maxbuttons.maxbuttons-pro-gopro .container{width:inherit;margin:0 auto;padding:30px 0}#maxbuttons.maxbuttons-pro-gopro img{max-width:100%}#maxbuttons.maxbuttons-pro-gopro .icon-row,#maxbuttons.maxbuttons-pro-gopro .image-row{position:relative}#maxbuttons.maxbuttons-pro-gopro .width-100{width:100%;margin-bottom:15px}#maxbuttons.maxbuttons-pro-gopro .width-33{width:33.33333333%;float:left;padding:0 15px;margin:0 -15px 40px}#maxbuttons.maxbuttons-pro-gopro .width-50{width:50%;float:left;padding:0 15px;margin:0 -15px 40px}#maxbuttons.maxbuttons-pro-gopro .clearfix{clear:both}#maxbuttons.maxbuttons-pro-gopro .bordered{border-radius:30px;padding:16px;background-color:#fff;box-sizing:border-box}@media (max-width: 780px){#maxbuttons.maxbuttons-pro-gopro .bordered{border:0;padding:8}}#maxbuttons.maxbuttons-pro-gopro .bordered p{margin:0 0 10px}#maxbuttons.maxbuttons-pro-gopro .inline-block{display:inline-block !important;vertical-align:middle}#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn{font-family:'Quicksand', sans-serif;font-size:20px;color:#fff;font-weight:bold;padding:10px 15px;transition:all linear .2s;display:block;text-align:center;border-bottom:4px solid;text-transform:uppercase;border-radius:10px;text-decoration:none;line-height:42px}#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn:hover,#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn:focus{color:#fff;text-decoration:none;outline:none}#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn:hover{box-shadow:0 8px 6px -6px rgba(0,0,0,0.5)}#maxbuttons.maxbuttons-collections-gosocial .social-share-move{background-color:#fff}#maxbuttons.maxbuttons-collections-gosocial .social-share-move .container{padding:15px}#maxbuttons.maxbuttons-collections-gosocial .topbox h1{display:inline-block;font-size:36px;font-weight:700}#maxbuttons.maxbuttons-collections-gosocial .topbox .icon-left{float:left;margin:0 15px 15px 0;display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .topbox h3{display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .topbox:after{clear:both}#maxbuttons.maxbuttons-collections-gosocial .imagebox{clear:both}#maxbuttons.maxbuttons-collections-gosocial .featurebox{margin:20px 0;display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .featurebox h3{display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .featurebox .block{width:45%;float:left;margin-right:3px}#maxbuttons.maxbuttons-collections-gosocial .linkbox{clear:both;margin:30px auto;text-align:center;display:inline-block;width:100%}#maxbuttons.maxbuttons-collections-gosocial .linkbox .install-now{font-size:30px;height:50px;padding-top:10px}
|
1 |
+
.mb_colorpicker{z-index:200}.ads .button-primary{display:block;margin:0 auto 20px auto;width:210px;text-align:center;overflow:visible}.max-load-spinner{background:url("/wp-admin/images/wpspin_light.gif") no-repeat;background-size:16px 16px;opacity:.9;width:16px;height:16px;display:inline-block;vertical-align:middle;position:absolute;top:50%;left:50%;margin-left:-8px;margin-top:-8px;z-index:10}.max-load-spinner.large{background:url("/wp-admin/images/wpspin_light-2x.gif") no-repeat;width:32px;height:32px}.max-load-overlay{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0.80;background-color:#f0f0f0;z-index:9}#maxbuttons{display:inline-block;width:100%}#maxbuttons .message,#maxbuttons .mb-message{border:solid 1px #e6db55;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;padding:10px;margin:10px 0px 20px 0px;clear:both;background:#fff}#maxbuttons .main{position:relative;z-index:500;margin-top:15px;width:72%;float:left}#maxbuttons .mb-message.error{font-weight:700}#maxbuttons .mb-message.shortcode,#maxbuttons .mb-message.mb-notice{border:solid 1px #e6db55;background-color:#ffffe0}#maxbuttons .mb-message.warning{border-left:4px solid #ffba00}#maxbuttons .mb-message.error{border-left:4px solid #ff0000}#maxbuttons .button-bar,#maxbuttons .form-actions,#maxbuttons.mb_tabs_active .mb_tab>.title:nth-of-type(1){margin:15px 0;padding:10px;background:#fbfbfb none repeat scroll 0 0;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.04);box-shadow:0 1px 1px rgba(0,0,0,0.04);min-height:28px}#maxbuttons h1>span{vertical-align:top;float:left}@media (max-width: 1024px){#maxbuttons h1>span{float:none}}#maxbuttons .logo{font-weight:400;font-size:18px;overflow:hidden;text-align:center}@media (max-width: 1024px){#maxbuttons .logo{text-align:left;margin-top:15px}}#maxbuttons .logo img{vertical-align:middle;padding-left:5px;padding-right:5px}#maxbuttons .logo .fb-like{margin-top:5px;height:20px;padding:0;margin-left:180px;overflow:hidden}#maxbuttons .logo .fb-like span{vertical-align:top !important}#maxbuttons .dummy-heading{display:none}@media screen and (max-width: 960px){#maxbuttons .main{width:100%}}#maxbuttons .tablenav .input-paging{width:55px}#maxbuttons .ads ul li{margin-bottom:4px}#maxbuttons .preview-buttons{background-color:#fff;border:1px solid #dfdfdf;overflow:hidden}#maxbuttons .preview-buttons .heading{width:100%;clear:both;display:inline-block;border-bottom:1px solid #dfdfdf}#maxbuttons .preview-buttons .heading>span{display:inline-block;font-weight:700;font-size:14px;float:left}#maxbuttons .preview-buttons .button-row{width:100%;clear:both;display:inline-block;border-bottom:1px solid #dfdfdf}#maxbuttons .preview-buttons .button-row>span{display:inline-block;font-size:13px;float:left;overflow:hidden}#maxbuttons .preview-buttons .button-row .actions{margin:10px 0;padding:10px 0px 10px 8px;display:inline-block;z-index:11;width:50%;background-color:#fff;position:relative}#maxbuttons .preview-buttons .col{padding:10px 0 10px 1%}#maxbuttons .preview-buttons .col_check{width:20px}#maxbuttons .preview-buttons .col_button{width:60%;overflow:hidden}@media (max-width: 780px){#maxbuttons .preview-buttons .col_button{width:70%;margin-right:5%}}#maxbuttons .preview-buttons .col_name{width:15%}@media (max-width: 780px){#maxbuttons .preview-buttons .col_name{display:none !important}}#maxbuttons .preview-buttons .col_shortcode{width:15%;padding-right:0}#maxbuttons p.status a{text-decoration:none}#maxbuttons p.status span.count{color:#999999}#maxbuttons .button-list{margin-top:10px}#maxbuttons .button-list p{font-size:13px}#maxbuttons .button-list a{text-decoration:none}#maxbuttons .button-list a.button-name{font-weight:bold}#maxbuttons .button-list .shortcode-container{margin:10px 0px 10px 2px}#maxbuttons .button-list .collection_notice{text-align:right;margin:10px 5px 0 0;padding-top:10px;float:right}#maxbuttons .shortcode-container .mb-container{margin:0 !important;float:none !important;max-width:100% !important}#maxbuttons .shortcode-container .mb-center{text-align:left !important}#maxbuttons .pagination-links a.disabled{color:#aaa;cursor:default}#maxbuttons .pagination-links a.disabled:hover{background:#e4e4e4 none repeat scroll 0 0;cursor:default;border:1px solid #d2d2d2}#maxbuttons .pagination{width:100%;display:inline-block;margin:15px 0 5px}#maxbuttons .pagination li{float:left;margin-right:5px}#maxbuttons .pagination li a,#maxbuttons .pagination li span{background:#ccc;vertical-align:middle;padding:4px 10px 8px;height:15px;display:inline-block;border:1px solid #eee;text-decoration:none;font-size:14px;font-weight:bold}#maxbuttons .maxbutton-welcome-container{margin:25px 0;padding:15px;border:1px solid #ccc;background:#fff}#maxbuttons .maxbutton-welcome-container h3{font-size:26px}#maxbuttons .maxbutton-welcome-container p.started{font-size:18px}#maxbuttons .maxbutton-welcome-container p{font-size:14px;line-height:18px}#maxbuttons .maxbutton-welcome-container h3{font-size:20px}#maxbuttons .maxbutton-welcome-container ul{list-style-type:disc;margin-left:25px}#maxbuttons.maxbuttons-controller-edit .main,#maxbuttons.maxbuttons-controller-button .main{width:auto;max-width:1200px}#maxbuttons .option-container{margin-bottom:20px;border:solid 1px #cccccc;border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;background-color:#fff}#maxbuttons .option-container .title{font-size:18px;padding:9px 8px 9px 10px;text-align:left;text-shadow:0px 1px 0px #ffffff;position:relative}#maxbuttons .option-container .section-title{padding:15px;margin-top:10px;font-weight:700;font-size:16px}#maxbuttons .option-container .section-title{background-color:#fff}#maxbuttons .option-container .option-list{display:inline-block}#maxbuttons .option-container .option-list:after{clear:both}#maxbuttons .option-container .option-list .help{float:right;margin-top:5px}#maxbuttons .option-container .help{position:relative;font-size:24px;color:#666;margin-left:10px}#maxbuttons .option-container .help span{font-family:"Open Sans",sans-serif;font-size:12px;background-color:#fff;color:#000;position:absolute;display:none;padding:10px 10px;top:-7px;left:25px;min-width:150px;border-radius:5px;text-align:left;z-index:1000;border:1px solid #ccc;line-height:15px}#maxbuttons .option-container .help span .shortcode,#maxbuttons .option-container .help span .mb-message.mb-notice{color:555;white-space:nowrap}#maxbuttons .option-container .help:hover span{display:block}#maxbuttons .option-container>.inside{padding:10px 15px 10px 15px;border-top:solid 1px #cccccc;background-color:#ffffff}#maxbuttons .option-container>.inside .option,#maxbuttons .option-container>.inside .option-design{margin-bottom:10px;display:block;position:relative}#maxbuttons .option-container>.inside .option.hidden,#maxbuttons .option-container>.inside .option-design.hidden{display:none}#maxbuttons .option-container>.inside .option .label,#maxbuttons .option-container>.inside .option>label,#maxbuttons .option-container>.inside .option-design .label,#maxbuttons .option-container>.inside .option-design>label{display:inline-block;font-weight:bold;padding-left:3px;padding-top:5px;width:145px;vertical-align:top;cursor:default;min-height:25px}#maxbuttons .option-container>.inside .option .label[for],#maxbuttons .option-container>.inside .option>label[for],#maxbuttons .option-container>.inside .option-design .label[for],#maxbuttons .option-container>.inside .option-design>label[for]{cursor:pointer}@media (max-width: 780px){#maxbuttons .option-container>.inside .option .label,#maxbuttons .option-container>.inside .option>label,#maxbuttons .option-container>.inside .option-design .label,#maxbuttons .option-container>.inside .option-design>label{font-size:14px}}#maxbuttons .option-container>.inside .option:after,#maxbuttons .option-container>.inside .option:before,#maxbuttons .option-container>.inside .option-design:after,#maxbuttons .option-container>.inside .option-design:before{clear:both}#maxbuttons .option-container>.inside .option label{margin-top:2px}#maxbuttons .option-container>.inside .option label.mbcolor{margin-top:5px}#maxbuttons .option-container>.inside .option label:nth-of-type(2){margin-left:30px;width:115px}#maxbuttons .option-container>.inside .option .control-group{display:inline-block}#maxbuttons .option-container>.inside .option .rotate-left{-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(-45), M12=-sin(-45), M21=sin(-45), M22=cos(-45));-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(-45), M12=-sin(-45), M21=sin(-45), M22=cos(-45))";zoom:1}#maxbuttons .option-container>.inside .option .rotate-right{-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);-o-transform:rotate(45deg);transform:rotate(45deg);filter:progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(45), M12=-sin(45), M21=sin(45), M22=cos(45));-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=cos(45), M12=-sin(45), M21=sin(45), M22=cos(45))";zoom:1}#maxbuttons .option-design{margin-bottom:10px}#maxbuttons .option-design .input td div.cell-label{padding:1px 10px 0px 5px;font-weight:bold;border-bottom:solid 1px #d1d1d1;width:180px;font-size:13px;height:30px}#maxbuttons .option-design .default-other{font-size:13px}#maxbuttons .option p.note,#maxbuttons .option-design p.note{font-style:italic;display:inline-block;clear:both;color:#808080;padding-left:3px;margin-top:10px;margin-bottom:5px;margin-left:0;display:block}#maxbuttons .mb-message.shortcode h4,#maxbuttons .mb-message.mb-notice h4{font-size:16px}#maxbuttons .mb-message.shortcode strong,#maxbuttons .mb-message.mb-notice strong{font-weight:600}#maxbuttons .mb-message.shortcode .expanded,#maxbuttons .mb-message.mb-notice .expanded{display:none}#maxbuttons .mb-message.shortcode .expanded p,#maxbuttons .mb-message.mb-notice .expanded p{font-size:14px;line-height:22px}#maxbuttons .mb-message.shortcode .expanded .example strong,#maxbuttons .mb-message.mb-notice .expanded .example strong{width:300px;display:inline-block}#maxbuttons .mb-message.shortcode .shortcode-expand,#maxbuttons .mb-message.mb-notice .shortcode-expand{clear:both;font-weight:700;display:block;margin:5px 0;cursor:pointer}@media (max-width: 1024px){#maxbuttons .mb-message.shortcode .shortcode-expand,#maxbuttons .mb-message.mb-notice .shortcode-expand{float:none;text-align:left;margin:10px 0;display:block}}#maxbuttons .manual-box{float:right;margin:3px 15px;top:0;right:0}#maxbuttons .manual-box a{text-align:center;width:100%;background:#e0e0e0 none repeat scroll 0 0;font-size:13px;font-weight:600;margin-left:4px;margin-top:5px;padding:4px 8px;position:relative;text-decoration:none;text-shadow:none}#maxbuttons .manual-entry{display:none;position:absolute;border:1px solid #000;background:#fff;width:45%;right:25px;z-index:199;box-sizing:border-box;padding-bottom:20px}#maxbuttons .manual-entry h3{font-size:18px;width:calc(100%);box-sizing:border-box;padding:10px 0;border-bottom:1px solid #ccc;text-align:center;margin:0;padding-right:35px;position:relative}#maxbuttons .manual-entry h3 span{box-sizing:border-box;cursor:pointer;width:35px;height:100%;font-size:25px;display:inline-block;position:absolute;right:5px;top:0;padding-top:8px}#maxbuttons .manual-entry h4,#maxbuttons .manual-entry p,#maxbuttons .manual-entry ol,#maxbuttons .manual-entry ul{padding:0 15px}#maxbuttons .manual-entry h4{font-size:16px}#maxbuttons .manual-entry p{font-size:13px}#maxbuttons .output{position:fixed;top:45px;right:20px;background-color:#ffffff;border:solid 1px #414141;box-shadow:0px 0px 6px #808080;z-index:99;width:auto;min-width:300px}@media (max-width: 780px){#maxbuttons .output{-webkit-box-shadow:0 0 0 0;-moz-box-shadow:0 0 0 0;box-shadow:0 0 0 0;top:0;left:0;right:0;position:relative;margin-bottom:15px;border-color:#ccc}}#maxbuttons .output .header{color:#222222;background-color:#ffffff;border-bottom:solid 1px #cccccc;font-family:"Open Sans", sans-serif;font-size:16px;font-weight:bold;padding:8px 0px 8px 10px;cursor:move;position:relative}#maxbuttons .output .header .preview-toggle{float:right;font-size:30px;width:30px;position:absolute;top:3px;right:0}#maxbuttons .output .inner{padding:5px}#maxbuttons .output .inner p{padding:5px 0 5px 5px}#maxbuttons .output .input.mbcolor{float:left;position:relative;margin-top:5px}#maxbuttons .output .input.mbcolor .wp-picker-container.wp-picker-active{padding:15px;border:1px solid #ccc;background-color:#fff;position:absolute;bottom:-15px;left:-270px;z-index:102;-webkit-box-shadow:4px 1px 5px #ccc;-moz-box-shadow:4px 1px 5px #ccc;box-shadow:4px 1px 5px #ccc}#maxbuttons .output .note{float:left;margin:8px 0px 0px 10px}#maxbuttons .output .result{padding:20px 5px}#maxbuttons .output .result p{padding:5px 0px 5px 0px;margin:0}#maxbuttons .output .result.preview-border-box>*{box-sizing:border-box}#maxbuttons .conditional-option{display:none}#maxbuttons .media_query{width:640px;margin:0 20px 15px 0;border:1px solid #ccc;padding:10px 15px;display:inline-block;clear:both;position:relative}#maxbuttons .media_query .removebutton{position:absolute;right:10px;top:10px;cursor:pointer;z-index:100;padding:10px 5px}#maxbuttons .media_query input:after{clear:both}#maxbuttons .media_query .label{clear:both;margin-bottom:15px}#maxbuttons .media_query label.title{padding:0;font-size:20px}#maxbuttons .media_query .custom.hidden{display:none}#maxbuttons .media_query .option.custom label:nth-of-type(2){margin-left:95px}#maxbuttons .media_query .description{padding:15px 0px;text-align:left}#maxbuttons .media_query select{width:60px}#maxbuttons .media_query .input input{margin-top:0px;padding-top:2px}#maxbuttons .media_queries_options .new-query{margin-top:25px}#maxbuttons .media_queries_options .new-query select{width:auto}#maxbuttons .media_option_prot,#maxbuttons #media_desc{display:none}#maxbuttons .copy-warning{width:400px;margin:0 auto;position:relative;line-height:1.1}#maxbuttons .copy-warning:before{content:"\f534";font-size:40px;color:#ff0000;width:35px;height:35px;font-family:"Dashicons";position:absolute;left:20px;top:40%;margin-top:-14px}#maxbuttons .copy-warning .example{margin-bottom:5px}#maxbuttons .form-actions a{margin-right:10px}#maxbuttons select{width:150px}#maxbuttons select.small{width:auto}#maxbuttons .input{display:inline-block;margin-right:15px;min-height:35px;vertical-align:top}#maxbuttons .input img{vertical-align:middle}#maxbuttons .input.mbcolor{min-width:50px}#maxbuttons .input.checkbox input{margin-top:0}#maxbuttons .input.checkbox label{line-height:16px;margin-top:0 !important}#maxbuttons .maxajax-load-spinner{width:16px;height:16px;background:url("/wp-admin/images/wpspin_light.gif") no-repeat;opacity:0.9s;display:inline-block;margin:0 10px;z-index:10;vertical-align:middle}#maxbuttons input[type='text']{width:450px}@media (max-width: 780px){#maxbuttons input[type='text']{width:350px}}#maxbuttons input[type='text'].tiny{width:35px;vertical-align:middle}#maxbuttons input[type='text'].small{width:50px}#maxbuttons input[type='text'].medium{width:150px}#maxbuttons input[type='text'].tiny-nopad{width:35px}#maxbuttons input[type='number']{vertical-align:middle}#maxbuttons input[type='number'].tiny,#maxbuttons input[type='number'].tiny-nopad{width:55px}@media (max-width: 780px){#maxbuttons input[type='number'].tiny,#maxbuttons input[type='number'].tiny-nopad{width:60px}}#maxbuttons input[type='number'].small{width:70px}@media (max-width: 780px){#maxbuttons input[type='number'].small{width:75px}}#maxbuttons textarea{width:450px;height:80px}#maxbuttons .option-container .inside .option label.mbcolor:nth-of-type(2){margin-left:37px}#maxbuttons .option-container .inside .option.url{margin-bottom:0}#maxbuttons .option-container .inside .option.url_options{margin:5px 0 10px}#maxbuttons .option-container .inside .option.url_options .nofollow{margin-left:35px}#maxbuttons .option-container .inside .option.url_options label,#maxbuttons .option-container .inside .option.rel_options label{font-weight:400}#maxbuttons .option-container .inside .option.font .checkbox{margin-right:2px}#maxbuttons .option-container .inside .option.font .radio{margin-right:0}#maxbuttons .option-container .inside .option.font .input.font{margin-right:2px}#maxbuttons .option-container .inside .option.font .input.font_size{margin-right:0}#maxbuttons .option-container .inside .option.font .input.font_size:after{display:block}@media (max-width: 780px){#maxbuttons .option-container .inside .option.font{display:inline-block}#maxbuttons .option-container .inside .option.font:after{clear:both}#maxbuttons .option-container .inside .option.font>*{float:left}}#maxbuttons .option-container .inside .option.font .control-group.font_weight{margin-left:28px}@media (max-width: 780px){#maxbuttons .option-container .inside .option.font .control-group.font_weight{clear:left;margin-left:148px;margin-top:10px}}#maxbuttons .option-container .inside .option.font .control-group.text_align{margin-left:48px}@media (max-width: 780px){#maxbuttons .option-container .inside .option.font .control-group.text_align{margin-left:20px;margin-top:10px}}#maxbuttons .option-container .inside .option.padding_top .input,#maxbuttons .option-container .inside .option.container_margin_top .input{margin-right:30px}#maxbuttons .option-container .inside .option.padding_top .input:last-of-type,#maxbuttons .option-container .inside .option.container_margin_top .input:last-of-type{margin-right:0}@media (max-width: 780px){#maxbuttons .option-container .inside .option.padding_top .input,#maxbuttons .option-container .inside .option.container_margin_top .input{margin-right:15px}}#maxbuttons .option-container .inside .option.text_color label{margin-top:0px}#maxbuttons .option-container .inside .option.text_color label:nth-of-type(2){margin-left:51px}#maxbuttons .option-container .inside .option.description label{padding-top:35px}#maxbuttons .option-container .inside .option .radius-wrap{position:relative;margin-left:45px;display:inline-block}#maxbuttons .option-container .inside .option.radius .label:first-child{width:100px;float:left}#maxbuttons .option-container .inside .option.radius .bottom,#maxbuttons .option-container .inside .option.radius .top{position:relative}#maxbuttons .option-container .inside .option.radius .bottom .input,#maxbuttons .option-container .inside .option.radius .top .input{margin-right:0;margin-left:0}#maxbuttons .option-container .inside .option.radius .bottom .dashicons:nth-child(3),#maxbuttons .option-container .inside .option.radius .top .dashicons:nth-child(3){margin-right:10px}#maxbuttons .option-container .inside .option.radius .top{margin-bottom:10px}#maxbuttons .option-container .inside .option.radius label{display:inline-block;font-weight:700;width:90px;margin-left:5px;cursor:default}#maxbuttons .option-container .inside .option.radius .dashicons{font-size:35px;height:35px;width:35px;color:#ccc}#maxbuttons .option-container .inside .option.radius .top .dashicons{margin-top:-5px}#maxbuttons .option-container .inside .option.radius .bottom .dashicons{margin-top:5px}#maxbuttons .option-container .inside .option.radius #radius_toggle{position:absolute;left:46%;top:25px;font-size:30px;cursor:pointer}#maxbuttons .option-container .inside .option.gradient_head .label:nth-child(even){width:120px}#maxbuttons .option-container .inside .option .gradient_end_color,#maxbuttons .option-container .inside .option .gradient_end_color_hover{margin-left:58px}#maxbuttons .default{display:inline-block;padding-left:10px;padding-top:4px;font-style:italic;color:#808080}#maxbuttons .default .other{padding-left:40px;padding-top:8px}#maxbuttons .mb-button{width:38px;height:38px;background-color:#eceded;display:inline-block;margin-right:6px;cursor:pointer;display:none}#maxbuttons .mb-button span{text-align:center;padding:9px 0;width:100%;line-height:20px}#maxbuttons .check_button{display:none}#maxbuttons .check_button+label{background-position:center center;background-repeat:no-repeat;background-color:#fff;display:inline-block;border:1px solid #ddd;font_weight:normal;padding:4px}@media (max-width: 780px){#maxbuttons .check_button+label{padding:10px}}#maxbuttons .check_button.text+label{padding:5px}#maxbuttons .check_button.icon+label i{width:20px;height:20px;color:#545454}#maxbuttons .check_button.icon+label i:focus{outline:none}#maxbuttons .check_button:checked+label{background:#ebebeb none repeat scroll 0 0;border-color:#999999;box-shadow:0 2px 5px -3px rgba(0,0,0,0.3) inset}#maxbuttons .option .input_label{display:inline-block;vertical-align:top}#maxbuttons .option .input_label.left{margin-right:10px}#maxbuttons .option .input_label.right{margin-left:10px}#maxbuttons .option .range_value{margin-top:5px}#maxbuttons .option .range_value output{clear:both;font-size:18px;text-align:center;width:100%;display:inline-block}#maxbuttons .option .switch_label{padding-top:2px !important;margin:0 !important}#maxbuttons .switch_button{margin-left:-5px}#maxbuttons .switch_button label{padding:8px 5px}#maxbuttons .switch_button label:focus{outline:none}#maxbuttons .switch_button input{display:none}#maxbuttons .switch_button input:checked ~ .the_switch{background:#6fbeb5}#maxbuttons .switch_button input:checked ~ .the_switch:after{left:26px;background:#179588}#maxbuttons .switch_button input::disabled ~ .the_switch{background:#d5d5d5;pointer-events:none}#maxbuttons .switch_button input:disabled ~ .the_switch:after{background:#bcbdbc}#maxbuttons .switch_button .the_switch{position:relative;display:inline-block;height:15px;width:50px;background:#898989;border-radius:100px;cursor:pointer;transition:all 0.3s ease}#maxbuttons .switch_button .the_switch:after{position:absolute;left:-2px;top:-3px;display:block;width:24px;height:24px;border-radius:100px;background:#aaa;box-shadow:0px 3px 3px rgba(0,0,0,0.05);content:'';transition:all 0.2s ease}#maxbuttons .switch_button .the_switch:active:after{transform:scale(0.9, 0.85)}#maxbuttons .switch_button .the_switch:focus{outline:none}#maxbuttons .input.mbcolor{margin-top:5px;position:relative}#maxbuttons .input.mbcolor .wp-picker-clear{display:none}#maxbuttons .input.mbcolor input[type="text"]{width:75px;line-height:22px}#maxbuttons .input.mbcolor .wp-color-picker{width:inherit}#maxbuttons .input.mbcolor .wp-color-result{-webkit-box-shadow:-1px 1px 2px #999;-moz-box-shadow:-1px 1px 2px #999;box-shadow:-1px 1px 2px #999;height:30px;border:0}#maxbuttons .input.mbcolor .wp-color-result:after{font-size:12px;line-height:30px;display:none}#maxbuttons .input.mbcolor .wp-color-result:focus{border-color:#5b9dd9;-webkit-box-shadow:0 0 5px rgba(30,140,190,0.8);-moz-box-shadow:0 0 5px rgba(30,140,190,0.8);box-shadow:0 0 5px rgba(30,140,190,0.8)}#maxbuttons .input.mbcolor .wp-color-result-text{display:none}#maxbuttons .input.mbcolor .wp-picker-input-wrap{padding:0}#maxbuttons .input.mbcolor .wp-picker-active+.arrows{display:inline-block}#maxbuttons .input.mbcolor .arrows{position:absolute;display:none;top:0;margin-top:40%}#maxbuttons .input.mbcolor .arrows.right{right:-45px}#maxbuttons .input.mbcolor .arrows.left{left:-35px}#maxbuttons .input.mbcolor .arrows .arrow-left,#maxbuttons .input.mbcolor .arrows .arrow-right{width:0;height:0;font-size:0;line-height:0;vertical-align:bottom;cursor:pointer;transition:.8s}#maxbuttons .input.mbcolor .arrows .arrow-left{border-top:30px solid transparent;border-bottom:30px solid transparent;border-right:20px solid #ccc}#maxbuttons .input.mbcolor .arrows .arrow-left:hover{border-right-color:#33b3db}#maxbuttons .input.mbcolor .arrows .arrow-right{border-top:30px solid transparent;border-bottom:30px solid transparent;border-left:20px solid #ccc;margin-top:35px}#maxbuttons .input.mbcolor .arrows .arrow-right:hover{border-left-color:#33b3db}#maxbuttons .input.mbcolor .arrows .left,#maxbuttons .input.mbcolor .arrows .right{display:inline-block;float:left;clear:both;width:35px;height:45px}#maxbuttons .input.mbcolor .arrows .left{margin-top:15px}#maxbuttons [type='range']{-webkit-appearance:none;width:250px}#maxbuttons [type='range']:focus{outline:0}#maxbuttons [type='range']:focus::-webkit-slider-runnable-track{background:#fff}#maxbuttons [type='range']:focus::-ms-fill-lower{background:#fff}#maxbuttons [type='range']:focus::-ms-fill-upper{background:#fff}#maxbuttons [type='range']::-webkit-slider-runnable-track{cursor:pointer;height:12px;transition:all .2s ease;width:250px;background:#fff;border:1px solid #cfd8dc;border-radius:10px}#maxbuttons [type='range']::-webkit-slider-thumb{background:#179588;border:0px solid #eceff1;border-radius:12px;cursor:pointer;height:24px;width:24px;-webkit-appearance:none;margin-top:-7px}#maxbuttons [type='range']::-moz-range-track{cursor:pointer;height:12px;transition:all .2s ease;width:250px;background:#fff;border:1px solid #cfd8dc;border-radius:10px}#maxbuttons [type='range']::-moz-range-thumb{background:#179588;border:0px solid #eceff1;border-radius:12px;cursor:pointer;height:24px;width:24px}#maxbuttons [type='range']::-ms-track{cursor:pointer;height:12px;transition:all .2s ease;width:250px;background:transparent;border-color:transparent;border-width:12px 0;color:transparent}#maxbuttons [type='range']::-ms-fill-lower{background:#f2f2f2;border:1px solid #cfd8dc;border-radius:20px}#maxbuttons [type='range']::-ms-fill-upper{background:#fff;border:1px solid #cfd8dc;border-radius:20px}#maxbuttons [type='range']::-ms-thumb{background:#179588;border:0px solid #eceff1;border-radius:12px;cursor:pointer;height:24px;width:24px;margin-top:0}#maxbuttons .support.tiles{display:flex}#maxbuttons .support.tiles>div{background-color:#0073aa;margin:0 25px 0 0;padding:16px}#maxbuttons .support.tiles>div a{color:#fff;text-align:center;font-size:20px;text-decoration:none}#maxbuttons .system_info{width:90%;background-color:#fff;border:1px solid #000;padding:15px}#maxbuttons .system_info .info{margin:5px 0}#maxbuttons .system_info .info label{width:250px;display:inline-block;clear:both}#maxbuttons.maxbuttons-settings .option-container .inside .option-design{margin:20px 0}#maxbuttons.maxbuttons-settings .option-container .inside .option-design label{line-height:14px;height:40px;vertical-align:top;width:200px;margin-right:20px}#maxbuttons h2.tabs{margin:1em 0;min-height:35px}#maxbuttons h2.sub-tabs,#maxbuttons h2.submit-tab{list-style:none;clear:both;margin-bottom:0}#maxbuttons h2.sub-tabs a,#maxbuttons h2.submit-tab a{font-weight:400;font-size:14px;cursor:pointer}#maxbuttons h2.sub-tabs a .dashicons,#maxbuttons h2.submit-tab a .dashicons{margin-right:10px;line-height:24px}#maxbuttons h2.sub-tabs .save-indicator,#maxbuttons h2.submit-tab .save-indicator{float:right;font-size:25px;display:none;margin-right:10px}#maxbuttons h2.sub-tabs .save-indicator.dashicons-warning,#maxbuttons h2.submit-tab .save-indicator.dashicons-warning{color:#ff0000}#maxbuttons h2.sub-tabs .save-indicator.dashicons-yes,#maxbuttons h2.submit-tab .save-indicator.dashicons-yes{color:#00ff00}#maxbuttons.mb_tabs_active .mb_tab{border:0px;background:none;border-radius:0 0 0 0;-webkit-border-radius:0 0 0 0}#maxbuttons.mb_tabs_active .mb_tab>.title:nth-of-type(1) button{top:0}#maxbuttons.mb_tabs_active .mb_tab>.title:nth-of-type(1) .right{float:right}#maxbuttons.mb_tabs_active .mb_tab>.inside{border:1px solid #e5e5e5}#maxbuttons.maxbuttons-collections-edit .main{width:100%;max-width:none}#maxbuttons .collection-addnew{display:inline-block}@media (max-width: 780px){#maxbuttons .collection-addnew{margin-left:5px}}#maxbuttons .collection_list .collection{position:relative;background-color:#fff;padding:15px;border-radius:15px;margin:15px 0}#maxbuttons .collection_list .collection h3{display:inline-block;width:90%;margin-top:0;font-size:18px;line-height:20px}#maxbuttons .collection_list .collection h3 a{color:#000;font-size:25px;text-decoration:none}#maxbuttons .collection_list .collection h3 a:hover{text-decoration:underline}#maxbuttons .collection_list .collection h3 .dashicons{color:#ccc;margin-left:15px}#maxbuttons .collection_list .collection h3 .button-count{font-weight:400;font-size:15px;margin-left:15px;vertical-align:top}#maxbuttons .collection_list .collection .collection_remove{top:10px;right:15px;font-size:25px;font-weight:400;position:absolute;cursor:pointer}#maxbuttons .collection_list .collection.welcome p{font-size:14px;line-height:22px}#maxbuttons .collection_list .collection-container{position:relative;width:100%;display:inline-block;clear:both}#maxbuttons .collection_list .collection-container .maxcollection{position:static !important}#maxbuttons .inside .preview_collection.option label{display:inline-block;float:none;font-size:25px;width:100%}#maxbuttons .mb_collection_selection{display:inline-block;min-height:300px;margin:25px 0}#maxbuttons .mb_collection_selection .sortable .item{margin-bottom:25px;position:relative;padding-left:30px;min-height:45px;clear:both}#maxbuttons .mb_collection_selection .sortable .item .button-remove{margin-top:5px;position:absolute;left:20px;top:-15px;border:1px solid #000;border-radius:11px;width:20px;height:20px;background-color:rgba(0,0,0,0.5)}#maxbuttons .mb_collection_selection .sortable .item .button-remove:hover{cursor:pointer}#maxbuttons .mb_collection_selection .sortable .item .button-remove span{color:#fff;font-size:16px;padding-top:2px;overflow:hidden}#maxbuttons .mb_collection_selection .sortable-placeholder{border:3px dashed #aaa;height:45px;width:344px;background:#ccc}#maxbuttons .mb_collection_selection .button_data{display:none}#maxbuttons .mb-social-options{float:right;width:45%;border:1px solid #000;height:100%}#maxbuttons .mb-buttons-selection{float:left;width:45%;overflow:hidden;border:1px solid #000}#maxbuttons .mb-preview-window{position:fixed;top:40%;right:20px;width:30%;max-width:45%;max-height:90vh;background-color:rgba(255,255,255,0.7);border:1px solid #000;z-index:500 !important;overflow:hidden;display:none}@media (max-width: 780px){#maxbuttons .mb-preview-window{position:relative;left:0;top:0;bottom:0;right:0;width:100%;height:auto;display:inline-block;border-color:#ccc}}#maxbuttons .mb-preview-window .mb-preview-wrapper{position:relative;display:inline-block;width:100%}#maxbuttons .sub-tabs .preview-on{background-color:#00b9eb;color:#fff}#maxbuttons .sub-tabs .preview-on::before{line-height:24px}#maxbuttons #picker-back{top:0;left:0;right:0;bottom:0;background-color:#000;z-index:110000;position:fixed;opacity:0.7;display:none}#maxbuttons #picker-modal,#maxbuttons .max-modal.picker-modal{display:none;width:calc(100% - 60px);min-height:300px;top:30px;bottom:30px;left:30px;right:30px;z-index:160000}#maxbuttons #picker-modal .modal_header,#maxbuttons .max-modal.picker-modal .modal_header{height:15px;display:block;overflow:hidden;top:0;left:0;bottom:0;right:0;border:0}#maxbuttons #picker-modal .picker-packages,#maxbuttons .max-modal.picker-modal .picker-packages{top:31px;left:0;width:205px;bottom:0;background-color:#f3f3f3;position:absolute;border-right:1px solid #ccc;overflow-x:hidden;overflow-y:auto}#maxbuttons #picker-modal .picker-packages ul,#maxbuttons .max-modal.picker-modal .picker-packages ul{margin-top:4px}#maxbuttons #picker-modal .picker-packages li a,#maxbuttons .max-modal.picker-modal .picker-packages li a{padding:6px 20px;display:block;color:#0073aa;text-decoration:none;font-size:13px;line-height:16px}#maxbuttons #picker-modal .picker-packages li a:hover,#maxbuttons .max-modal.picker-modal .picker-packages li a:hover{background:rgba(0,0,0,0.04) none repeat scroll 0 0;color:#21759b}#maxbuttons #picker-modal .picker-packages li a.pack-active,#maxbuttons .max-modal.picker-modal .picker-packages li a.pack-active{font-weight:700;color:#000}#maxbuttons #picker-modal .picker-main,#maxbuttons .max-modal.picker-modal .picker-main{left:206px;top:31px;right:0;bottom:60px;position:absolute;border-bottom:1px solid #dddddd;overflow-y:scroll;background-color:#fff}#maxbuttons #picker-modal .picker-main .screen,#maxbuttons .max-modal.picker-modal .picker-main .screen{margin:5px 5px}#maxbuttons #picker-modal .picker-main .screen .tablenav-pages,#maxbuttons .max-modal.picker-modal .picker-main .screen .tablenav-pages{float:none;margin-left:1%}#maxbuttons #picker-modal .picker-main .item,#maxbuttons .max-modal.picker-modal .picker-main .item{padding:5px;margin:5px 0 5px 1%;border:1px solid #000;width:16%;height:auto;float:left;text-align:center;position:relative;background-color:#eee;border:1px solid #b4b9be;display:inline-block}#maxbuttons #picker-modal .picker-main .item .button_data,#maxbuttons .max-modal.picker-modal .picker-main .item .button_data{display:none}#maxbuttons #picker-modal .picker-main .item .button_name,#maxbuttons .max-modal.picker-modal .picker-main .item .button_name{clear:left;display:block;margin-top:15px;font-size:9px}#maxbuttons #picker-modal .picker-main .item .button-selected,#maxbuttons .max-modal.picker-modal .picker-main .item .button-selected{position:absolute;font-size:20px;top:-10px;right:-10px;width:24px;height:24px;color:#fff;background-color:#1e8cbe;z-index:100;border-radius:12px}#maxbuttons #picker-modal .picker-main .item .button-selected span,#maxbuttons .max-modal.picker-modal .picker-main .item .button-selected span{padding-top:2px}#maxbuttons #picker-modal .picker-inselection,#maxbuttons .max-modal.picker-modal .picker-inselection{height:60px;display:block;position:absolute;bottom:0;right:0;left:206px;overflow:hidden}#maxbuttons #picker-modal .picker-inselection .info,#maxbuttons .max-modal.picker-modal .picker-inselection .info{height:60px;float:left;display:inline-block;padding:10px 15px;display:none}#maxbuttons #picker-modal .picker-inselection .info .clear-selection,#maxbuttons .max-modal.picker-modal .picker-inselection .info .clear-selection{color:#ff0000;display:block;padding:0}#maxbuttons #picker-modal .picker-inselection .info .clear-selection:hover,#maxbuttons .max-modal.picker-modal .picker-inselection .info .clear-selection:hover{background-color:#ff0000;color:#fff}#maxbuttons #picker-modal .picker-inselection .items,#maxbuttons .max-modal.picker-modal .picker-inselection .items{display:inline-block;position:absolute;overflow:hidden;padding-top:5px;height:100%;left:130px;right:180px}@media (max-width: 780px){#maxbuttons #picker-modal .picker-inselection .items,#maxbuttons .max-modal.picker-modal .picker-inselection .items{display:none}}#maxbuttons #picker-modal .picker-inselection .items .item,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item{height:40px;width:40px;overflow:hidden;float:left;margin:3px;position:relative}#maxbuttons #picker-modal .picker-inselection .items .item .button_name,#maxbuttons #picker-modal .picker-inselection .items .item .button_data,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button_name,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button_data{display:none}#maxbuttons #picker-modal .picker-inselection .items .item .button-remove,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button-remove{display:none;position:absolute;width:30px;height:30px;left:2px;border-radius:15px;top:2px;background-color:rgba(0,0,0,0.5)}#maxbuttons #picker-modal .picker-inselection .items .item .button-remove span,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item .button-remove span{font-size:20px;color:#fff;padding-left:5px;padding-top:5px}#maxbuttons #picker-modal .picker-inselection .items .item:hover .button-remove,#maxbuttons .max-modal.picker-modal .picker-inselection .items .item:hover .button-remove{display:block}#maxbuttons #picker-modal .picker-inselection .add,#maxbuttons .max-modal.picker-modal .picker-inselection .add{float:right;margin-top:15px;margin-right:15px;height:100%}#maxbuttons .social_block .social-option{clear:both;margin-top:25px}#maxbuttons .social_block .social-option .shortcode-container{display:inline-block}#maxbuttons .social_block .social-option .button_name{display:inline-block;margin-left:10px;vertical-align:middle;font-weight:700}#maxbuttons #mbfeedback .link{height:25px;width:100px;position:fixed;top:40%;right:0;z-index:1000;transform:rotate(90deg);-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-o-transform:rotate(90deg);filter:progid:DXImageTransform.Microsoft.BasicImage(rotation=1)}#maxbuttons #mbfeedback .link a{background:#ccc;height:25px;width:70px;padding:8px 16px;color:#fff;font-family:Arial, sans-serif;font-size:15px;font-weight:bold;text-decoration:none;line-height:15px;border-bottom:solid 1px #333;border-left:solid 1px #333;border-right:solid 1px #fff}#maxbuttons #mbfeedback .link a::hover{background:#06c}#maxbuttons .ad-wrap{width:27%;float:left;max-width:300px;margin-left:1%;min-width:200px;margin-top:41px}#maxbuttons .ad-wrap .ads{background:#fff;margin-bottom:20px;text-align:center}#maxbuttons .ad-wrap .ads.image-ad{background:none;margin-top:20px}#maxbuttons .ad-wrap .ads.image-ad img{max-width:100%}#maxbuttons .ad-wrap .ads>a{text-decoration:none}#maxbuttons .ad-wrap .ads .header{background-color:#88c5c2;color:#fff;font-size:18px;text-transform:uppercase;padding:12px}#maxbuttons .ad-wrap .ads h3{text-align:center;padding-bottom:14px}#maxbuttons .ad-wrap .ads ul{list-style:none}#maxbuttons .ad-wrap .ads ul li{font-weight:bold;text-decoration:none;color:#000000}#maxbuttons .ad-wrap .ads ul li.plus{font-size:38px;font-weight:700;color:#88c5c2}#maxbuttons .ad-wrap .ads span.img{text-align:center;display:block}#maxbuttons .ad-wrap .ads .ads_button_wrap{margin:20px 0 30px;display:inline-block}#maxbuttons .ad-wrap .ads .ads_button_wrap .button{color:#fff;background-color:#88c5c2;font-size:16px;font-weight:bold;border:0;padding:0 40px}@media screen and (max-width: 960px){#maxbuttons .ad-wrap{display:none}}#maxbuttons.maxbuttons-pro-gopro .main{width:95%;max-width:860px}#maxbuttons.maxbuttons-pro-gopro h1.title{margin:0;font-size:24px;display:inline-block}#maxbuttons.maxbuttons-pro-gopro h1.title .big-maxg-btn{display:inline-block;background-color:#86c5c2;border-color:#73a3a8;margin:0 10px;vertical-align:super;line-height:23px;border-top:0;border-left:0;border-right:0;top:5px}#maxbuttons.maxbuttons-pro-gopro h1.title img{vertical-align:middle}#maxbuttons.maxbuttons-pro-gopro .logo{margin:0;display:inline-block;margin-top:14px}#maxbuttons.maxbuttons-pro-gopro .logo .simple-btn{color:#62c0e6;text-decoration:underline}#maxbuttons.maxbuttons-pro-gopro .default-section{text-align:center;padding:0px 10px}#maxbuttons.maxbuttons-pro-gopro .default-section p{position:relative;font-family:Arial, 'Helvetica Neue', Helvetica, sans-serif;font-size:16px;margin:17px 0;color:#5b5b5b}#maxbuttons.maxbuttons-pro-gopro .default-section:nth-child(even){background-color:#fff}#maxbuttons.maxbuttons-pro-gopro .default-section:nth-child(odd){background-color:#faf5f1}#maxbuttons.maxbuttons-pro-gopro .default-section .big-maxg-btn{background-color:#fd8d61;border-color:#f0702b;font-size:32px;margin:10px}#maxbuttons.maxbuttons-pro-gopro .default-section h2{font-weight:bold;color:#88c5c2;font-size:36px;line-height:38px;max-width:80%;margin:14px auto}#maxbuttons.maxbuttons-pro-gopro .default-section .rating{width:380px;margin:0 auto}#maxbuttons.maxbuttons-pro-gopro .default-section .rating p{margin:10px 0 0;font-size:22px;color:#000}#maxbuttons.maxbuttons-pro-gopro .default-section .icon-row p{font-weight:bold}#maxbuttons.maxbuttons-pro-gopro .default-section .icon-row img{width:106px;height:106px}#maxbuttons.maxbuttons-pro-gopro .social-row div{margin-bottom:5px}#maxbuttons.maxbuttons-pro-gopro .social-row p{background:#fff;padding:15px 5px 0 5px;margin:15px 0 0 15px;font-weight:700}#maxbuttons.maxbuttons-pro-gopro .social-row img{margin-top:15px}#maxbuttons.maxbuttons-pro-gopro .social-row p{min-height:162px}#maxbuttons.maxbuttons-pro-gopro .container{width:inherit;margin:0 auto;padding:30px 0}#maxbuttons.maxbuttons-pro-gopro img{max-width:100%}#maxbuttons.maxbuttons-pro-gopro .icon-row,#maxbuttons.maxbuttons-pro-gopro .image-row{position:relative}#maxbuttons.maxbuttons-pro-gopro .width-100{width:100%;margin-bottom:15px}#maxbuttons.maxbuttons-pro-gopro .width-33{width:33.33333333%;float:left;padding:0 15px;margin:0 -15px 40px}#maxbuttons.maxbuttons-pro-gopro .width-50{width:50%;float:left;padding:0 15px;margin:0 -15px 40px}#maxbuttons.maxbuttons-pro-gopro .clearfix{clear:both}#maxbuttons.maxbuttons-pro-gopro .bordered{border-radius:30px;padding:16px;background-color:#fff;box-sizing:border-box}@media (max-width: 780px){#maxbuttons.maxbuttons-pro-gopro .bordered{border:0;padding:8}}#maxbuttons.maxbuttons-pro-gopro .bordered p{margin:0 0 10px}#maxbuttons.maxbuttons-pro-gopro .inline-block{display:inline-block !important;vertical-align:middle}#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn{font-size:20px;color:#fff;font-weight:bold;padding:18px 15px 10px;transition:all linear .2s;display:block;text-align:center;border-bottom:4px solid;text-transform:uppercase;border-radius:10px;text-decoration:none;line-height:42px}#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn:hover,#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn:focus{color:#fff;text-decoration:none;outline:none}#maxbuttons.maxbuttons-pro-gopro .big-maxg-btn:hover{box-shadow:0 8px 6px -6px rgba(0,0,0,0.5)}#maxbuttons.maxbuttons-pro-gopro .price{position:relative;display:inline-block}#maxbuttons.maxbuttons-pro-gopro .price span{position:absolute;color:#fff;display:block;font-size:46px;font-weight:700;top:55px;left:26px}#maxbuttons.maxbuttons-collections-gosocial .social-share-move{background-color:#fff}#maxbuttons.maxbuttons-collections-gosocial .social-share-move .container{padding:15px}#maxbuttons.maxbuttons-collections-gosocial .topbox h1{display:inline-block;font-size:36px;font-weight:700}#maxbuttons.maxbuttons-collections-gosocial .topbox .icon-left{float:left;margin:0 15px 15px 0;display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .topbox h3{display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .topbox:after{clear:both}#maxbuttons.maxbuttons-collections-gosocial .imagebox{clear:both}#maxbuttons.maxbuttons-collections-gosocial .featurebox{margin:20px 0;display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .featurebox h3{display:inline-block}#maxbuttons.maxbuttons-collections-gosocial .featurebox .block{width:45%;float:left;margin-right:3px}#maxbuttons.maxbuttons-collections-gosocial .linkbox{clear:both;margin:30px auto;text-align:center;display:inline-block;width:100%}#maxbuttons.maxbuttons-collections-gosocial .linkbox .install-now{font-size:30px;height:50px;padding-top:10px}
|
assets/integrations/gutenberg/block.js
DELETED
@@ -1,61 +0,0 @@
|
|
1 |
-
|
2 |
-
( function( blocks, i18n, element ) {
|
3 |
-
var el = element.createElement;
|
4 |
-
var __ = i18n.__;
|
5 |
-
var RichText = blocks.RichText;
|
6 |
-
var PlainText = blocks.PlainText;
|
7 |
-
//var Shortcode = blocks.library.shortcode;
|
8 |
-
var children = blocks.source.children;
|
9 |
-
|
10 |
-
|
11 |
-
blocks.registerBlockType( 'maxbuttons/gutenberg', {
|
12 |
-
title: __( 'MaxButtons' ),
|
13 |
-
icon: 'universal-access-alt',
|
14 |
-
category: 'layout',
|
15 |
-
attributes: {
|
16 |
-
button_id: {
|
17 |
-
type: 'number',
|
18 |
-
source: 'children',
|
19 |
-
selector: 'p',
|
20 |
-
},
|
21 |
-
url: {
|
22 |
-
type: 'text',
|
23 |
-
select: 'p',
|
24 |
-
},
|
25 |
-
text: {
|
26 |
-
type: 'text',
|
27 |
-
select: 'p',
|
28 |
-
},
|
29 |
-
},
|
30 |
-
|
31 |
-
edit: function( props ) {
|
32 |
-
var button_id = props.attributes.button_id;
|
33 |
-
var url = props.attributes.url;
|
34 |
-
var text = props.attributes.text;
|
35 |
-
var focus = props.focus;
|
36 |
-
function onChangeContent( newbuttonid ) {
|
37 |
-
props.setAttributes( { button_id: newbuttonid } );
|
38 |
-
}
|
39 |
-
|
40 |
-
return el(
|
41 |
-
PlainText,
|
42 |
-
{
|
43 |
-
tagName: 'p',
|
44 |
-
className: props.className,
|
45 |
-
onChange: onChangeContent,
|
46 |
-
value: content,
|
47 |
-
focus: focus,
|
48 |
-
onFocus: props.setFocus
|
49 |
-
}
|
50 |
-
);
|
51 |
-
},
|
52 |
-
|
53 |
-
save: function( props ) {
|
54 |
-
return el( 'p', {}, props.attributes.content );
|
55 |
-
},
|
56 |
-
} );
|
57 |
-
} )(
|
58 |
-
window.wp.blocks,
|
59 |
-
window.wp.i18n,
|
60 |
-
window.wp.element
|
61 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
assets/integrations/gutenberg/blocks.build.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
!function(t){function e(o){if(n[o])return n[o].exports;var a=n[o]={i:o,l:!1,exports:{}};return t[o].call(a.exports,a,a.exports,e),a.l=!0,a.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:o})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n(1)},function(t,e,n){"use strict";function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?t:e}function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=n(2),u=(n.n(l),n(3)),s=(n.n(u),function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}()),c=wp.i18n.__,p=wp.blocks.registerBlockType,h=wp.editor.InspectorControls,b=wp.components,m=b.PanelBody,f=(b.TextareaControl,b.TextControl),d=b.ToggleControl,w=b.Button,g=wp.element,x=g.Component,y=(g.Fragment,g.createElement);wp.compose.withState;p("maxbuttons/maxbuttons-block",{title:c("MaxButtons Block"),icon:y("img",{src:mb_gutenberg.icon_url,width:20}),category:"common",keywords:[c("maxbuttons-block"),c("maxbuttons")],attributes:{id:{type:"string"},url:{type:"string",attribute:"url"},text:{type:"string",attribute:"text"},text2:{type:"string"},newwindow:{type:"boolean"},relnofollow:{type:"boolean"},tooltip:{type:"string"}},edit:function(t){function e(t){a(this,e);var n=i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return n.onChangeID=n.onChangeID.bind(n),n.onChangeText=n.onChangeText.bind(n),n.onChangeText2=n.onChangeText2.bind(n),n.onChangeURL=n.onChangeURL.bind(n),n.onChangeTooltip=n.onChangeTooltip.bind(n),n.updateNewWindow=n.updateToggleAttribute("newwindow"),n.updateRelNoFollow=n.updateToggleAttribute("relnofollow"),n.preventClick=n.preventClick.bind(n),n.ajaxButton=n.ajaxButton.bind(n),n.openButtonModal=n.openButtonModal.bind(n),n.insertButton=n.insertButton.bind(n),n.state={stylefile:"",isPro:!1},n.button,n.limitajax,n}return r(e,t),s(e,[{key:"componentDidMount",value:function(){this.props.attributes.id&&this.ajaxButton(),mb_gutenberg.ispro&&this.setState({isPro:!0})}},{key:"ajaxButton",value:function(t){clearTimeout(this.limitajax);var e=this;e.limitajax=setTimeout(function(){var n=e.props.attributes,o=n.id,a=n.text,i=n.text2,r=n.url,l=n.tooltip,u=n.newwindow,s=n.relnofollow,c=n.className;wp.ajax.send("maxajax",{data:{plugin_action:"gutenberg_button",nonce:maxajax.nonce,id:o,text:a,text2:i,url:r,linktitle:l,newwindow:u,relnofollow:s,extraclass:c,reset:t},success:function(t){e.button=t.button,e.setState({stylefile:t.style}),t.attributes&&e.props.setAttributes(t.attributes)},error:function(t){}})},700)}},{key:"preventClick",value:function(t){return t.preventDefault(),!1}},{key:"onChangeText",value:function(t){this.props.setAttributes({text:t}),this.ajaxButton()}},{key:"onChangeText2",value:function(t){this.props.setAttributes({text2:t}),this.ajaxButton()}},{key:"onChangeTooltip",value:function(t){this.props.setAttributes({tooltip:t}),this.ajaxButton()}},{key:"onChangeURL",value:function(t){this.props.setAttributes({url:t}),this.ajaxButton()}},{key:"onChangeID",value:function(t){this.props.setAttributes({id:t}),this.ajaxButton(!0)}},{key:"updateToggleAttribute",value:function(t){var e=this;return function(){var n=e.props.attributes[t];(0,e.props.setAttributes)(o({},t,!n))}}},{key:"openButtonModal",value:function(){var t={};t.callback=this.insertButton,t.useShortCodeOptions=!1,this.maxmedia=new window.maxFoundry.maxMedia,this.maxmedia.init(t),this.maxmedia.openModal()}},{key:"insertButton",value:function(t,e){this.onChangeID(t),this.maxmedia.close()}},{key:"render",value:function(){var t=this.props,e=t.attributes,n=(t.setAttributes,t.className);return[wp.element.createElement(h,{key:"mb_inspector"},wp.element.createElement(m,{title:c("Button Settings")},wp.element.createElement(w,{className:"modal-button",isLarge:"true",onClick:this.openButtonModal}," Select Button "),wp.element.createElement("h4",null,"Button ID : ",e.id),wp.element.createElement(f,{label:c("Text"),value:e.text,onChange:this.onChangeText,help:c("You can change the text of the Button.")}),this.state.isPro?wp.element.createElement(f,{label:c("Text2"),value:e.text2,onChange:this.onChangeText2}):null,wp.element.createElement(f,{label:c("URL"),value:e.url,onChange:this.onChangeURL,help:c("You can enter an alternative URL")}),wp.element.createElement(d,{label:c("Open in New Window"),checked:e.newwindow,onChange:this.updateNewWindow}),wp.element.createElement(d,{label:c('Use rel="nofollow"'),checked:e.relnofollow,onChange:this.updateRelNoFollow}),wp.element.createElement(f,{label:c("Tooltip"),value:e.tooltip,onChange:this.onChangeTooltip}))),wp.element.createElement("div",{className:n,key:"mb_block"},wp.element.createElement("span",{dangerouslySetInnerHTML:{__html:this.button},onClick:this.preventClick}),wp.element.createElement("link",{rel:"stylesheet",href:this.state.stylefile}),this.button?wp.element.createElement("div",null):wp.element.createElement("div",null,"To start, add a MaxButton via the Block Settings on the right."))]}}]),e}(x),save:function(t){return null}})},function(t,e){},function(t,e){}]);
|
assets/integrations/gutenberg/blocks.editor.build.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wp-block-cgb-block-maxbuttons-block{background:#bada55;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}.maxbuttons-modal{width:80%}.maxbuttons-modal h1{font-size:36px;font-weight:700}
|
assets/integrations/gutenberg/blocks.style.build.css
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
.wp-block-cgb-block-maxbuttons-block{background:#ff4500;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}
|
assets/integrations/gutenberg/gutenberg.php
CHANGED
@@ -1,48 +1,153 @@
|
|
1 |
<?php
|
2 |
-
namespace
|
|
|
3 |
|
4 |
-
defined( 'ABSPATH' ) || exit;
|
5 |
|
6 |
-
class
|
7 |
-
{
|
8 |
|
9 |
public static function init()
|
10 |
{
|
11 |
-
|
12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
'mbgutenberg',
|
22 |
-
$url . 'block.js',
|
23 |
-
array( 'wp-blocks', 'wp-i18n', 'wp-element' ),
|
24 |
-
$version
|
25 |
-
);
|
26 |
-
/*wp_enqueue_style(
|
27 |
-
'gutenberg-examples-03-editor',
|
28 |
-
$url . 'editor.css',
|
29 |
-
array( 'wp-edit-blocks' ),
|
30 |
-
filemtime( $url . 'editor.css' )
|
31 |
-
); */
|
32 |
-
}
|
33 |
-
|
34 |
-
public static function maxbuttons_gutenberg_block() {
|
35 |
-
$url = MB()->get_plugin_url() . 'assets/integrations/gutenberg/';
|
36 |
-
|
37 |
-
|
38 |
-
/*wp_enqueue_style(
|
39 |
-
'mbgutenberg-css',
|
40 |
-
$url . 'style.css',
|
41 |
-
array( 'wp-blocks' ),
|
42 |
-
filemtime( $url . 'style.css' )
|
43 |
-
); */
|
44 |
-
}
|
45 |
|
46 |
} // class
|
47 |
|
48 |
-
|
|
|
|
1 |
<?php
|
2 |
+
namespace maxButtons;
|
3 |
+
defined('ABSPATH') or die('No direct access permitted');
|
4 |
|
|
|
5 |
|
6 |
+
class gutenBerg{
|
|
|
7 |
|
8 |
public static function init()
|
9 |
{
|
10 |
+
add_action( 'enqueue_block_editor_assets', array(maxUtils::namespaceit('gutenBerg'), 'editor_scripts') );
|
11 |
+
add_action( 'maxbuttons/ajax/gutenberg_button', array(maxUtils::namespaceit('gutenBerg'), 'generate_button'));
|
12 |
+
add_action('init', array(maxUtils::namespaceit('gutenBerg'), 'register_block'));
|
13 |
+
|
14 |
+
}
|
15 |
+
|
16 |
+
public static function editor_scripts()
|
17 |
+
{
|
18 |
+
$version = MAXBUTTONS_VERSION_NUM;
|
19 |
+
|
20 |
+
wp_register_script(
|
21 |
+
'maxbuttons_gutenberg-js', // Handle.
|
22 |
+
plugins_url( 'blocks.build.js', __FILE__ ), // Block.build.js: We register the block here. Built with Webpack.
|
23 |
+
array( 'wp-blocks', 'wp-i18n', 'wp-element' ), // Dependencies, defined above.
|
24 |
+
$version,
|
25 |
+
true // Enqueue the script in the footer.
|
26 |
+
);
|
27 |
+
|
28 |
+
wp_localize_script('maxbuttons_gutenberg-js', 'mb_gutenberg', array(
|
29 |
+
'ispro' => (defined('MAXBUTTONS_PRO_ROOT_FILE')) ? true : false,
|
30 |
+
'icon_url' => MB()->get_plugin_url() . '/images/mb-32.png',
|
31 |
+
));
|
32 |
+
|
33 |
+
wp_enqueue_script('maxbuttons_gutenberg-js');
|
34 |
+
|
35 |
+
// Styles.
|
36 |
+
wp_enqueue_style(
|
37 |
+
'maxbuttons_block-editor-css', // Handle.
|
38 |
+
plugins_url( 'blocks.editor.build.css', __FILE__ ), // Block editor CSS.
|
39 |
+
array( 'wp-edit-blocks' ), // Dependency to include the CSS after it.
|
40 |
+
$version
|
41 |
+
);
|
42 |
+
|
43 |
+
}
|
44 |
+
|
45 |
+
public static function register_block()
|
46 |
+
{
|
47 |
+
if (function_exists('register_block_type'))
|
48 |
+
{
|
49 |
+
register_block_type( 'maxbuttons/maxbuttons-block', array(
|
50 |
+
'render_callback' => array(maxUtils::namespaceit('gutenBerg'), 'render_shortcode'),
|
51 |
+
) );
|
52 |
+
}
|
53 |
+
}
|
54 |
+
|
55 |
+
public static function generate_button($post)
|
56 |
+
{
|
57 |
+
$id = isset($post['id']) ? $post['id'] : false;
|
58 |
+
$text = isset($post['text']) ? $post['text'] : null;
|
59 |
+
$text2 = isset($post['text2']) ? $post['text2']: null;
|
60 |
+
$url = isset($post['url']) ? $post['url'] : null;
|
61 |
+
$linktitle = isset($post['linktitle']) ? $post['linktitle'] : null;
|
62 |
+
$window = isset($post['newwindow']) ? $post['newwindow']: null;
|
63 |
+
$nofollow = isset($post['nofollow']) ? $post['nofollow'] : null;
|
64 |
+
$extraclass = isset($post['extraclass']) ? $post['extraclass'] : null;
|
65 |
+
$reset = isset($post['reset']) ? $post['reset'] : false;
|
66 |
+
|
67 |
+
if ($window == 'true')
|
68 |
+
$window = 'new';
|
69 |
+
|
70 |
+
$button = MB()->getClass("button");
|
71 |
+
|
72 |
+
if ($reset == 'true')
|
73 |
+
{
|
74 |
+
$shortcode_args = array('id' => $id);
|
75 |
+
}
|
76 |
+
else {
|
77 |
+
$shortcode_args = array(
|
78 |
+
'id' => $id,
|
79 |
+
'text' => $text,
|
80 |
+
'text2' => $text2,
|
81 |
+
'url' => $url,
|
82 |
+
'linktitle' => $linktitle,
|
83 |
+
'window' => $window,
|
84 |
+
'nofollow' => $nofollow,
|
85 |
+
// 'extraclass' => $extraclass,
|
86 |
+
);
|
87 |
+
}
|
88 |
+
|
89 |
+
$the_button = $button->shortcode($shortcode_args);
|
90 |
+
|
91 |
+
$response = array(
|
92 |
+
'button' => $the_button,
|
93 |
+
'style' => admin_url('admin-ajax.php'). '?action=maxbuttons_front_css&id=' . $id,
|
94 |
+
'attributes' => false,
|
95 |
+
);
|
96 |
+
|
97 |
+
if ($reset == 'true') // on load new button, put all fields to the buttons values
|
98 |
+
{
|
99 |
+
$data = $button->get();
|
100 |
+
|
101 |
+
$text = $data['text']['text'];
|
102 |
+
$text2 = isset($data['text']['text2'])? $data['text']['text2'] : '';
|
103 |
+
|
104 |
+
$url = $data['basic']['url'];
|
105 |
+
$linktitle = $data['basic']['link_title'];
|
106 |
+
$window = $data['basic']['new_window'];
|
107 |
+
$nofollow= $data['basic']['nofollow'];
|
108 |
+
|
109 |
+
$response['attributes'] = array(
|
110 |
+
'text' => $text,
|
111 |
+
'text2' => $text2,
|
112 |
+
'url' => $url,
|
113 |
+
'tooltip' => $linktitle,
|
114 |
+
'newwindow' => ($window == 1) ? true : false,
|
115 |
+
'relnofollow' => ($nofollow == 1) ? true : false,
|
116 |
+
);
|
117 |
+
}
|
118 |
+
|
119 |
+
wp_send_json_success($response);
|
120 |
}
|
121 |
|
122 |
+
public static function render_shortcode($atts)
|
123 |
+
{
|
124 |
+
//print_R($atts);
|
125 |
+
if (! isset($atts['id'])) // no id, no button
|
126 |
+
{
|
127 |
+
return;
|
128 |
+
}
|
129 |
+
|
130 |
+
$id = $atts['id'];
|
131 |
+
|
132 |
+
$args = array(
|
133 |
+
'id' => $atts['id'],
|
134 |
+
'text' => isset($atts['text']) ? $atts['text'] : null,
|
135 |
+
'text2' => isset($atts['text2']) ? $atts['text2'] : null,
|
136 |
+
'url' => isset($atts['url']) ? $atts['url'] : null,
|
137 |
+
'linktitle' => isset($atts['tooltip']) ? $atts['tooltip'] : null,
|
138 |
+
'window' => isset($atts['newwindow']) && $atts['newwindow'] == 1 ? 'new' : null,
|
139 |
+
'nofollow' => isset($atts['relnofollow']) && $atts['relnofollow'] == 1 ? 'true' : null,
|
140 |
+
// 'extraclass' => isset($atts['className']) ? $atts['className'] : null,
|
141 |
+
);
|
142 |
|
143 |
+
$button = MB()->getClass("button");
|
144 |
+
$thebutton = $button->shortcode($args);
|
145 |
+
|
146 |
+
return $thebutton;
|
147 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
|
149 |
} // class
|
150 |
|
151 |
+
|
152 |
+
|
153 |
+
gutenBerg::init();
|
assets/libraries/scssphp/src/SourceMap/Base64VLQEncoder.php
CHANGED
@@ -176,7 +176,8 @@ class Base64VLQEncoder
|
|
176 |
*/
|
177 |
public function zeroFill($a, $b)
|
178 |
{
|
179 |
-
|
|
|
180 |
}
|
181 |
|
182 |
/**
|
176 |
*/
|
177 |
public function zeroFill($a, $b)
|
178 |
{
|
179 |
+
$bmin = $b - 1;
|
180 |
+
return ($a >= 0) ? ($a >> $b) : ($a >> $b) & (PHP_INT_MAX >> ($bmin));
|
181 |
}
|
182 |
|
183 |
/**
|
assets/scss/_gopro.scss
CHANGED
@@ -3,11 +3,9 @@
|
|
3 |
.main {
|
4 |
width: 95%;
|
5 |
max-width: 860px;
|
6 |
-
|
7 |
-
|
8 |
}
|
9 |
-
h1.title {
|
10 |
|
|
|
11 |
margin: 0;
|
12 |
font-size: 24px;
|
13 |
display: inline-block;
|
@@ -27,8 +25,6 @@
|
|
27 |
img {
|
28 |
vertical-align: middle;
|
29 |
}
|
30 |
-
|
31 |
-
|
32 |
}
|
33 |
|
34 |
.logo {
|
@@ -47,53 +43,51 @@
|
|
47 |
text-align: center;
|
48 |
padding: 0px 10px;
|
49 |
p {
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
}
|
57 |
-
}
|
58 |
-
.default-section:nth-child(even) {
|
59 |
-
background-color: #fff;
|
60 |
-
}
|
61 |
-
.default-section:nth-child(odd) {
|
62 |
-
background-color: #faf5f1;
|
63 |
-
}
|
64 |
-
.default-section .big-maxg-btn {
|
65 |
-
background-color: #fd8d61;
|
66 |
-
border-color: #f0702b;
|
67 |
-
font-size: 36px;
|
68 |
-
margin: 10px;
|
69 |
-
}
|
70 |
-
.default-section h2 {
|
71 |
-
font-family: 'Quicksand', sans-serif;
|
72 |
-
font-weight: bold;
|
73 |
-
color: #88c5c2;
|
74 |
-
font-size: 36px;
|
75 |
-
line-height: 38px;
|
76 |
-
max-width: 80%;
|
77 |
-
margin: 14px auto;
|
78 |
-
}
|
79 |
-
.default-section .rating {
|
80 |
-
width: 380px;
|
81 |
-
margin: 0 auto;
|
82 |
-
}
|
83 |
-
.default-section .rating p {
|
84 |
-
margin: 10px 0 0;
|
85 |
-
font-size: 22px;
|
86 |
-
color: #000;
|
87 |
-
}
|
88 |
-
.default-section .icon-row
|
89 |
-
{
|
90 |
-
p {
|
91 |
-
font-weight: bold;
|
92 |
-
}
|
93 |
-
img {
|
94 |
-
width: 106px;
|
95 |
-
height: 106px;
|
96 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
97 |
}
|
98 |
|
99 |
.social-row { // defying shitty frameworks
|
@@ -173,11 +167,11 @@
|
|
173 |
}
|
174 |
|
175 |
.big-maxg-btn {
|
176 |
-
font-family:
|
177 |
font-size: 20px;
|
178 |
color: #fff;
|
179 |
font-weight: bold;
|
180 |
-
padding:
|
181 |
transition: all linear .2s;
|
182 |
display: block;
|
183 |
text-align: center;
|
@@ -195,4 +189,18 @@
|
|
195 |
.big-maxg-btn:hover {
|
196 |
box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.5);
|
197 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
}
|
3 |
.main {
|
4 |
width: 95%;
|
5 |
max-width: 860px;
|
|
|
|
|
6 |
}
|
|
|
7 |
|
8 |
+
h1.title {
|
9 |
margin: 0;
|
10 |
font-size: 24px;
|
11 |
display: inline-block;
|
25 |
img {
|
26 |
vertical-align: middle;
|
27 |
}
|
|
|
|
|
28 |
}
|
29 |
|
30 |
.logo {
|
43 |
text-align: center;
|
44 |
padding: 0px 10px;
|
45 |
p {
|
46 |
+
position: relative;
|
47 |
+
font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
|
48 |
+
font-size: 16px;
|
49 |
+
margin: 17px 0;
|
50 |
+
color: #5b5b5b;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
}
|
52 |
+
&:nth-child(even) {
|
53 |
+
background-color: #fff;
|
54 |
+
}
|
55 |
+
&:nth-child(odd) {
|
56 |
+
background-color: #faf5f1;
|
57 |
+
}
|
58 |
+
.big-maxg-btn {
|
59 |
+
background-color: #fd8d61;
|
60 |
+
border-color: #f0702b;
|
61 |
+
font-size: 32px;
|
62 |
+
margin: 10px;
|
63 |
+
}
|
64 |
+
h2 {
|
65 |
+
font-weight: bold;
|
66 |
+
color: #88c5c2;
|
67 |
+
font-size: 36px;
|
68 |
+
line-height: 38px;
|
69 |
+
max-width: 80%;
|
70 |
+
margin: 14px auto;
|
71 |
+
}
|
72 |
+
.rating {
|
73 |
+
width: 380px;
|
74 |
+
margin: 0 auto;
|
75 |
+
p {
|
76 |
+
margin: 10px 0 0;
|
77 |
+
font-size: 22px;
|
78 |
+
color: #000;
|
79 |
+
}
|
80 |
+
}
|
81 |
+
.icon-row
|
82 |
+
{
|
83 |
+
p {
|
84 |
+
font-weight: bold;
|
85 |
+
}
|
86 |
+
img {
|
87 |
+
width: 106px;
|
88 |
+
height: 106px;
|
89 |
+
}
|
90 |
+
}
|
91 |
}
|
92 |
|
93 |
.social-row { // defying shitty frameworks
|
167 |
}
|
168 |
|
169 |
.big-maxg-btn {
|
170 |
+
//font-family: sans-serif;
|
171 |
font-size: 20px;
|
172 |
color: #fff;
|
173 |
font-weight: bold;
|
174 |
+
padding: 18px 15px 10px;
|
175 |
transition: all linear .2s;
|
176 |
display: block;
|
177 |
text-align: center;
|
189 |
.big-maxg-btn:hover {
|
190 |
box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.5);
|
191 |
}
|
192 |
+
|
193 |
+
.price {
|
194 |
+
position: relative;
|
195 |
+
display: inline-block;
|
196 |
+
span {
|
197 |
+
position:absolute;
|
198 |
+
color: #fff;
|
199 |
+
display: block;
|
200 |
+
font-size: 46px;
|
201 |
+
font-weight: 700;
|
202 |
+
top: 55px;
|
203 |
+
left: 26px;
|
204 |
+
}
|
205 |
+
}
|
206 |
}
|
assets/scss/_settings.scss
CHANGED
@@ -1,16 +1,17 @@
|
|
1 |
|
2 |
&.maxbuttons-settings .option-container .inside{
|
3 |
|
4 |
-
.option-design
|
5 |
{
|
6 |
-
margin: 20px 0;
|
7 |
-
|
8 |
-
label
|
9 |
{
|
10 |
line-height: 14px;
|
11 |
height: 40px;
|
12 |
vertical-align: top;
|
13 |
-
width: 200px;
|
|
|
14 |
}
|
15 |
}
|
16 |
}
|
1 |
|
2 |
&.maxbuttons-settings .option-container .inside{
|
3 |
|
4 |
+
.option-design
|
5 |
{
|
6 |
+
margin: 20px 0;
|
7 |
+
|
8 |
+
label
|
9 |
{
|
10 |
line-height: 14px;
|
11 |
height: 40px;
|
12 |
vertical-align: top;
|
13 |
+
width: 200px;
|
14 |
+
margin-right: 20px;
|
15 |
}
|
16 |
}
|
17 |
}
|
blocks/tpl/option_select.tpl
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
{if:before_input} %%before_input%% {/if:before_input}
|
3 |
<div class="input option_select %%name%%" {if:conditional}data-show="%%conditional%%"{/if:conditional}>
|
4 |
<select name='%%name%%' id='%%id%%'
|
|
|
5 |
{if:disabled} disabled {/if:disabled}
|
6 |
>
|
7 |
{for:options}
|
2 |
{if:before_input} %%before_input%% {/if:before_input}
|
3 |
<div class="input option_select %%name%%" {if:conditional}data-show="%%conditional%%"{/if:conditional}>
|
4 |
<select name='%%name%%' id='%%id%%'
|
5 |
+
{if:inputclass}class="%%inputclass%%"{/if:inputclass}
|
6 |
{if:disabled} disabled {/if:disabled}
|
7 |
>
|
8 |
{for:options}
|
blocks/tpl/textarea.tpl
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
{if:label} <label for='%%id%%'>%%label%%</label> {/if:label}
|
2 |
<div class="input">
|
3 |
-
|
4 |
<textarea class='large-text' rows='3' id="%%id%%" placeholder="%%placeholder%%" name="%%name%%" >%%value%%</textarea>
|
5 |
-
|
6 |
|
7 |
-
|
1 |
{if:label} <label for='%%id%%'>%%label%%</label> {/if:label}
|
2 |
<div class="input">
|
3 |
+
|
4 |
<textarea class='large-text' rows='3' id="%%id%%" placeholder="%%placeholder%%" name="%%name%%" >%%value%%</textarea>
|
5 |
+
{if:help}<div class="help dashicons dashicons-info "><span>%%help%%</span></div>{/if:help}
|
6 |
|
7 |
+
</div>
|
classes/admin-class.php
CHANGED
@@ -317,7 +317,7 @@ class maxButtonsAdmin
|
|
317 |
|
318 |
}
|
319 |
|
320 |
-
static public function ajaxShortcode($post)
|
321 |
{
|
322 |
$shortcode = isset($post['shortcode']) ? sanitize_text_field($post['shortcode']) : false;
|
323 |
|
@@ -333,7 +333,7 @@ class maxButtonsAdmin
|
|
333 |
|
334 |
echo json_encode($result);
|
335 |
exit();
|
336 |
-
}
|
337 |
|
338 |
static public function mediaShortcodeOptions($post)
|
339 |
{
|
@@ -342,7 +342,7 @@ class maxButtonsAdmin
|
|
342 |
$result = array('output' => '',
|
343 |
'action' => 'shortcode_options');
|
344 |
|
345 |
-
$button =
|
346 |
$button->set($button_id);
|
347 |
|
348 |
//$data = $button->getd
|
317 |
|
318 |
}
|
319 |
|
320 |
+
/* static public function ajaxShortcode($post)
|
321 |
{
|
322 |
$shortcode = isset($post['shortcode']) ? sanitize_text_field($post['shortcode']) : false;
|
323 |
|
333 |
|
334 |
echo json_encode($result);
|
335 |
exit();
|
336 |
+
} */
|
337 |
|
338 |
static public function mediaShortcodeOptions($post)
|
339 |
{
|
342 |
$result = array('output' => '',
|
343 |
'action' => 'shortcode_options');
|
344 |
|
345 |
+
$button = MB()->getClass("button");
|
346 |
$button->set($button_id);
|
347 |
|
348 |
//$data = $button->getd
|
classes/button.php
CHANGED
@@ -264,19 +264,6 @@ class maxButton
|
|
264 |
}
|
265 |
}
|
266 |
|
267 |
-
|
268 |
-
/* Tell all blocks to reload the data
|
269 |
-
|
270 |
-
This function will tell all loaded blocks to reload it's data. This is needed when data is changed after the initial button load.
|
271 |
-
|
272 |
-
*/
|
273 |
-
function reloadData()
|
274 |
-
{
|
275 |
-
exit('reload Data - do not use');
|
276 |
-
//do_action('mb-data-load', $this->data);
|
277 |
-
|
278 |
-
}
|
279 |
-
|
280 |
/* Parse CSS from the elements
|
281 |
|
282 |
@param string $mode [normal,preview,editor] - The view needed.
|
@@ -314,7 +301,6 @@ class maxButton
|
|
314 |
This filters passes an array with all CSS element before compile time. This should be CSS elements that can be understood by the CSS parser.
|
315 |
@since 4.20
|
316 |
@param $css CSS Array - split by element and pseudo (normal/hover)
|
317 |
-
|
318 |
*/
|
319 |
|
320 |
$css = apply_filters('mb/button/rawcss', $css, $mode);
|
264 |
}
|
265 |
}
|
266 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
267 |
/* Parse CSS from the elements
|
268 |
|
269 |
@param string $mode [normal,preview,editor] - The view needed.
|
301 |
This filters passes an array with all CSS element before compile time. This should be CSS elements that can be understood by the CSS parser.
|
302 |
@since 4.20
|
303 |
@param $css CSS Array - split by element and pseudo (normal/hover)
|
|
|
304 |
*/
|
305 |
|
306 |
$css = apply_filters('mb/button/rawcss', $css, $mode);
|
classes/buttons.php
CHANGED
@@ -106,11 +106,8 @@ class maxButtons
|
|
106 |
{
|
107 |
self::$documentArray[$index][$button_id]["done"] = true;
|
108 |
}
|
109 |
-
|
110 |
}
|
111 |
-
|
112 |
}
|
113 |
-
|
114 |
}
|
115 |
|
116 |
public static function ajax_action()
|
@@ -158,4 +155,28 @@ class maxButtons
|
|
158 |
exit(true);
|
159 |
}
|
160 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
161 |
} // class
|
106 |
{
|
107 |
self::$documentArray[$index][$button_id]["done"] = true;
|
108 |
}
|
|
|
109 |
}
|
|
|
110 |
}
|
|
|
111 |
}
|
112 |
|
113 |
public static function ajax_action()
|
155 |
exit(true);
|
156 |
}
|
157 |
|
158 |
+
|
159 |
+
public static function generate_css()
|
160 |
+
{
|
161 |
+
global $wpdb;
|
162 |
+
$id = isset($_REQUEST['id']) ? sanitize_text_field($_REQUEST['id']) : false;
|
163 |
+
|
164 |
+
if (! $id)
|
165 |
+
return;
|
166 |
+
|
167 |
+
$idar = explode(',', $id);
|
168 |
+
$idar = array_filter($idar, 'is_numeric');
|
169 |
+
$id = implode(',',$idar);
|
170 |
+
|
171 |
+
$row = $wpdb->get_col($wpdb->prepare("SELECT cache FROM " . maxUtils::get_table_name() . " WHERE id in($id) and status ='%s'", 'publish'));
|
172 |
+
|
173 |
+
|
174 |
+
header( "Content-type: text/css; charset: UTF-8" );
|
175 |
+
foreach($row as $content)
|
176 |
+
{
|
177 |
+
echo $content;
|
178 |
+
}
|
179 |
+
exit();
|
180 |
+
}
|
181 |
+
|
182 |
} // class
|
classes/integrations.php
CHANGED
@@ -30,11 +30,12 @@ class maxIntegrations
|
|
30 |
$integration_path = MB()->get_plugin_path() . 'assets/integrations/';
|
31 |
require_once( $integration_path . "siteorigins_builder/sitebuilder.php");
|
32 |
require_once( $integration_path . "shortcake/shortcake.php");
|
33 |
-
|
34 |
|
35 |
|
36 |
do_action('maxbutton-direct-integrations');
|
37 |
|
38 |
}
|
39 |
|
|
|
40 |
} // class
|
30 |
$integration_path = MB()->get_plugin_path() . 'assets/integrations/';
|
31 |
require_once( $integration_path . "siteorigins_builder/sitebuilder.php");
|
32 |
require_once( $integration_path . "shortcake/shortcake.php");
|
33 |
+
require_once( $integration_path . "gutenberg/gutenberg.php");
|
34 |
|
35 |
|
36 |
do_action('maxbutton-direct-integrations');
|
37 |
|
38 |
}
|
39 |
|
40 |
+
|
41 |
} // class
|
classes/max-utils.php
CHANGED
@@ -33,6 +33,7 @@ class maxUtils
|
|
33 |
$nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false;
|
34 |
$message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');
|
35 |
|
|
|
36 |
if (! wp_verify_nonce($nonce, 'maxajax') )
|
37 |
{
|
38 |
$message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');
|
@@ -42,11 +43,13 @@ class maxUtils
|
|
42 |
do_action('maxbuttons/ajax/' . $plugin_action, $_POST);
|
43 |
}
|
44 |
|
45 |
-
echo json_encode( array( 'status' => $status,
|
46 |
'message' => $message,
|
47 |
)
|
48 |
-
);
|
49 |
-
|
|
|
|
|
50 |
}
|
51 |
|
52 |
public static function translit($string)
|
33 |
$nonce = isset($_POST['nonce']) ? $_POST['nonce'] : false;
|
34 |
$message = __( sprintf("No Handler found for action %s ", $plugin_action), 'maxbuttons');
|
35 |
|
36 |
+
|
37 |
if (! wp_verify_nonce($nonce, 'maxajax') )
|
38 |
{
|
39 |
$message = __('Nonce not verified (' . $nonce . ')', 'maxbuttons');
|
43 |
do_action('maxbuttons/ajax/' . $plugin_action, $_POST);
|
44 |
}
|
45 |
|
46 |
+
/*echo json_encode( array( 'status' => $status,
|
47 |
'message' => $message,
|
48 |
)
|
49 |
+
); */
|
50 |
+
|
51 |
+
wp_send_json_error( array('message' => $message) );
|
52 |
+
|
53 |
}
|
54 |
|
55 |
public static function translit($string)
|
classes/maxCSSParser.php
CHANGED
@@ -136,9 +136,7 @@ class maxCSSParser
|
|
136 |
$this->data = '';
|
137 |
$this->output_css = '';
|
138 |
$this->inline = array();
|
139 |
-
//$this->struct = array();
|
140 |
$this->responsive = array();
|
141 |
-
|
142 |
}
|
143 |
|
144 |
protected function compile($css)
|
136 |
$this->data = '';
|
137 |
$this->output_css = '';
|
138 |
$this->inline = array();
|
|
|
139 |
$this->responsive = array();
|
|
|
140 |
}
|
141 |
|
142 |
protected function compile($css)
|
classes/maxbuttons-class.php
CHANGED
@@ -43,9 +43,6 @@ class maxButtonsPlugin
|
|
43 |
add_action("mb-footer", array($this, 'do_footer'),10,3);
|
44 |
add_action("wp_footer", array($this, "footer"));
|
45 |
|
46 |
-
// Media buttons
|
47 |
-
add_action('media_buttons', array($this,'media_button'), 20);
|
48 |
-
|
49 |
add_filter('plugin_action_links', array($this, "plugin_action_links"), 10, 2);
|
50 |
add_filter('plugin_row_meta', array($this, 'plugin_row_meta'), 10, 2);
|
51 |
|
@@ -76,13 +73,17 @@ class maxButtonsPlugin
|
|
76 |
add_action('maxbuttons/ajax/shortcode', array(maxUtils::namespaceit('maxButtonsAdmin'), 'ajaxShortcode'));
|
77 |
|
78 |
//add_action("wp_ajax_set_review_notice_status", array($this, "setReviewNoticeStatus"));
|
79 |
-
|
80 |
-
|
81 |
add_action('wp_ajax_mb_button_action', array(maxUtils::namespaceit('maxButtons'), "ajax_action"));
|
82 |
|
83 |
add_action('wp_ajax_maxajax', array(maxUtils::namespaceit('maxUtils'), 'ajax_action'));
|
|
|
|
|
84 |
}
|
85 |
|
|
|
|
|
|
|
|
|
86 |
// front scripts
|
87 |
add_action('wp_enqueue_scripts', array($this, 'front_scripts'));
|
88 |
//add_action('wp_enqueue_scripts', array(maxUtils::namespaceit('maxUtils'), 'fixFAConflict'),999);
|
@@ -136,7 +137,6 @@ class maxButtonsPlugin
|
|
136 |
$wpdb->hide_errors();
|
137 |
$result = $wpdb->get_results($sql);
|
138 |
|
139 |
-
|
140 |
// check this query for errors. If there is an error, one or more database fields are missing. Fix that.
|
141 |
if (isset($wpdb->last_error) && $wpdb->last_error != '')
|
142 |
{
|
@@ -146,7 +146,6 @@ class maxButtonsPlugin
|
|
146 |
$install::migrate();
|
147 |
}
|
148 |
|
149 |
-
|
150 |
maxUtils::addTime("End check database");
|
151 |
}
|
152 |
|
@@ -199,6 +198,7 @@ class maxButtonsPlugin
|
|
199 |
|
200 |
}
|
201 |
|
|
|
202 |
/** Returns the full path of the plugin installation directory */
|
203 |
public static function get_plugin_path()
|
204 |
{
|
@@ -318,31 +318,6 @@ class maxButtonsPlugin
|
|
318 |
if (! $this->debug_mode)
|
319 |
$js_url .= 'min/';
|
320 |
|
321 |
-
|
322 |
-
if ($libname == 'fontawesome')
|
323 |
-
{
|
324 |
-
|
325 |
-
$fa_url = apply_filters('mb_fa_url', $this->plugin_url . 'assets/libraries/font-awesome-5/fa-svg-with-js.css', array(), $version);
|
326 |
-
|
327 |
-
if ($fa_url != false && $fa_url != '')
|
328 |
-
{
|
329 |
-
/* wp_register_style('mbpro-font-awesome', $fa_url, array(), $version);
|
330 |
-
wp_enqueue_style('mbpro-font-awesome');
|
331 |
-
|
332 |
-
wp_register_script('mbpro-font-awesome-config', $this->plugin_url . 'assets/libraries/font-awesome-5/fa-config.js', array('jquery'), $version, true);
|
333 |
-
|
334 |
-
wp_register_script('mbpro-font-awesome-js', $this->plugin_url . 'assets/libraries/font-awesome-5/fontawesome-all.min.js', array('mbpro-font-awesome-config', 'jquery'), $version, true); */
|
335 |
-
|
336 |
-
/*wp_register_script('mbpro-font-awesome-shim', $this->plugin_url . 'assets/libraries/font-awesome-5/fa-v4-shims.min.js', array('jquery'), $version, true); */
|
337 |
-
|
338 |
-
// wp_enqueue_script('mbpro-font-awesome-config');
|
339 |
-
// wp_enqueue_script('mbpro-font-awesome-js');
|
340 |
-
// wp_enqueue_script('mbpro-font-awesome-shim');
|
341 |
-
|
342 |
-
// maxUtils::FixFAConflict();
|
343 |
-
}
|
344 |
-
}
|
345 |
-
|
346 |
if ($libname == 'review_notice')
|
347 |
{
|
348 |
wp_register_style('maxbuttons-review-notice-css',$this->plugin_url . 'assets/css/review_notice.css', array(), $version);
|
@@ -503,43 +478,82 @@ class maxButtonsPlugin
|
|
503 |
|
504 |
}
|
505 |
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
533 |
-
|
534 |
-
|
535 |
-
|
536 |
-
|
537 |
-
}
|
538 |
-
</script>';
|
539 |
*/
|
540 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
}
|
542 |
|
|
|
|
|
543 |
/** Scripts run on front-end
|
544 |
* Load font-awesome, and limited javascript for the front-end. This is being kept extremely limited for performance reasons.
|
545 |
*/
|
@@ -553,11 +567,11 @@ class maxButtonsPlugin
|
|
553 |
$this->add_admin_styles('maxbuttons');
|
554 |
}
|
555 |
|
556 |
-
wp_enqueue_script('maxbuttons-front', $this->plugin_url . 'js/min/front.js', array('jquery'), $version);
|
557 |
$local = array();
|
558 |
-
$local["ajaxurl"] = admin_url( 'admin-ajax.php' );
|
559 |
|
560 |
-
wp_localize_script('maxbuttons-front', 'mb_ajax', $local);
|
561 |
}
|
562 |
|
563 |
/** Extra text to display in admin footer */
|
@@ -622,29 +636,54 @@ class maxButtonsPlugin
|
|
622 |
/** Output footer styles and scripts
|
623 |
*
|
624 |
* Outputs loaded styles, and scripts to the footer for display. Email_off is to prevent cloudfare from 'obfuscating' the minified CSS
|
|
|
625 |
*/
|
626 |
function footer()
|
627 |
{
|
628 |
if(count($this->footer) == 0) return; // nothing
|
629 |
|
|
|
|
|
|
|
|
|
|
|
630 |
foreach ($this->footer as $type => $part)
|
631 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
632 |
// add tag
|
633 |
if ($type == 'css')
|
634 |
{
|
635 |
echo "<!--noptimize--><!--email_off--><style type='text/css'>";
|
636 |
}
|
|
|
637 |
foreach ($part as $id => $statements)
|
638 |
{
|
639 |
if (strlen($statements) > 0) // prevent whitespace
|
640 |
echo $statements . "\n";
|
641 |
}
|
|
|
642 |
if ($type == 'css')
|
643 |
{
|
644 |
echo "</style><!--/email_off--><!--/noptimize-->\n";
|
645 |
}
|
646 |
}
|
647 |
|
|
|
|
|
|
|
|
|
648 |
}
|
649 |
|
650 |
/* Add a notice
|
43 |
add_action("mb-footer", array($this, 'do_footer'),10,3);
|
44 |
add_action("wp_footer", array($this, "footer"));
|
45 |
|
|
|
|
|
|
|
46 |
add_filter('plugin_action_links', array($this, "plugin_action_links"), 10, 2);
|
47 |
add_filter('plugin_row_meta', array($this, 'plugin_row_meta'), 10, 2);
|
48 |
|
73 |
add_action('maxbuttons/ajax/shortcode', array(maxUtils::namespaceit('maxButtonsAdmin'), 'ajaxShortcode'));
|
74 |
|
75 |
//add_action("wp_ajax_set_review_notice_status", array($this, "setReviewNoticeStatus"));
|
|
|
|
|
76 |
add_action('wp_ajax_mb_button_action', array(maxUtils::namespaceit('maxButtons'), "ajax_action"));
|
77 |
|
78 |
add_action('wp_ajax_maxajax', array(maxUtils::namespaceit('maxUtils'), 'ajax_action'));
|
79 |
+
|
80 |
+
add_action('admin_init', array($this,'init_wp_editor_options') );
|
81 |
}
|
82 |
|
83 |
+
|
84 |
+
add_action('wp_ajax_maxbuttons_front_css', array(maxUtils::namespaceit('maxButtons'), 'generate_css'));
|
85 |
+
add_action('wp_ajax_nopriv_maxbuttons_front_css', array(maxUtils::namespaceit('maxButtons'), 'generate_css'));
|
86 |
+
|
87 |
// front scripts
|
88 |
add_action('wp_enqueue_scripts', array($this, 'front_scripts'));
|
89 |
//add_action('wp_enqueue_scripts', array(maxUtils::namespaceit('maxUtils'), 'fixFAConflict'),999);
|
137 |
$wpdb->hide_errors();
|
138 |
$result = $wpdb->get_results($sql);
|
139 |
|
|
|
140 |
// check this query for errors. If there is an error, one or more database fields are missing. Fix that.
|
141 |
if (isset($wpdb->last_error) && $wpdb->last_error != '')
|
142 |
{
|
146 |
$install::migrate();
|
147 |
}
|
148 |
|
|
|
149 |
maxUtils::addTime("End check database");
|
150 |
}
|
151 |
|
198 |
|
199 |
}
|
200 |
|
201 |
+
|
202 |
/** Returns the full path of the plugin installation directory */
|
203 |
public static function get_plugin_path()
|
204 |
{
|
318 |
if (! $this->debug_mode)
|
319 |
$js_url .= 'min/';
|
320 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
321 |
if ($libname == 'review_notice')
|
322 |
{
|
323 |
wp_register_style('maxbuttons-review-notice-css',$this->plugin_url . 'assets/css/review_notice.css', array(), $version);
|
478 |
|
479 |
}
|
480 |
|
481 |
+
|
482 |
+
/** Inits the options for WP editor, like tinymce and other buttons **/
|
483 |
+
public function init_wp_editor_options()
|
484 |
+
{
|
485 |
+
if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
|
486 |
+
return;
|
487 |
+
}
|
488 |
+
// Media buttons
|
489 |
+
add_action('media_buttons', array($this,'media_button'), 20);
|
490 |
+
|
491 |
+
add_filter('mce_buttons', array($this, 'tinymce_button'));
|
492 |
+
add_filter('mce_external_plugins', array($this, 'add_tinymce_button'));
|
493 |
+
|
494 |
+
// official, but horrible way to add JS
|
495 |
+
foreach ( array('post.php','post-new.php') as $hook ) {
|
496 |
+
add_action( "admin_head-$hook", function () {
|
497 |
+
$icon_url = $this->plugin_url . 'images/mb-peach-32.png';
|
498 |
+
echo "<script type='text/javascript'>
|
499 |
+
var maxButtonsTinyMCE = {
|
500 |
+
'icon': '$icon_url'
|
501 |
+
};
|
502 |
+
</script>";
|
503 |
+
} );
|
504 |
+
}
|
505 |
+
|
506 |
+
}
|
507 |
+
|
508 |
+
/** Load Media Button in WP editor
|
509 |
+
*
|
510 |
+
* The 'add button' interface in WP post and page editor to simplify adding buttons. Loads button plus required Javascript.
|
|
|
|
|
|
|
511 |
*/
|
512 |
+
function media_button($editor_id) {
|
513 |
+
$output = '';
|
514 |
+
|
515 |
+
// options
|
516 |
+
if (get_option('maxbuttons_noshowtinymce') == 1) return;
|
517 |
+
|
518 |
+
$this->load_media_script();
|
519 |
+
|
520 |
+
// Only run in post/page creation and edit screens
|
521 |
+
|
522 |
+
$title = __('Add Button', 'maxbuttons');
|
523 |
+
$icon = $this->plugin_url . 'images/mb-peach-icon.png';
|
524 |
+
//$nonce = wp_create_nonce('maxajax');
|
525 |
+
$img = '<span class="wp-media-buttons-icon" style="background-image: url(' . $icon . '); width: 16px; height: 16px; margin-top: 1px;"></span>';
|
526 |
+
//$img = '';
|
527 |
+
$output = '<button id="maxbutton-add-button" type="button" class="button maxbutton_media_button" onclick="var mm = new window.maxFoundry.maxMedia();
|
528 |
+
mm.init();
|
529 |
+
mm.openModal();"
|
530 |
+
title="' . $title . '" style="padding-left: .4em;" data-editor=' . $editor_id . '>' . $img . ' ' . $title . '</button>';
|
531 |
+
|
532 |
+
echo $output;
|
533 |
+
}
|
534 |
+
|
535 |
+
public function tinymce_button($buttons)
|
536 |
+
{
|
537 |
+
$buttons[] = 'maxbutton';
|
538 |
+
return $buttons;
|
539 |
+
}
|
540 |
+
|
541 |
+
public function add_tinymce_button($plugin_array)
|
542 |
+
{
|
543 |
+
$js_url = trailingslashit($this->plugin_url . 'js');
|
544 |
+
if (! $this->debug_mode)
|
545 |
+
$js_url .= 'min/';
|
546 |
+
|
547 |
+
$this->load_media_script(); // enqueue button handler
|
548 |
+
|
549 |
+
|
550 |
+
$plugin_array['maxButtons_tinymce'] = $js_url . 'tinymce.js' ;
|
551 |
+
return $plugin_array;
|
552 |
+
|
553 |
}
|
554 |
|
555 |
+
|
556 |
+
|
557 |
/** Scripts run on front-end
|
558 |
* Load font-awesome, and limited javascript for the front-end. This is being kept extremely limited for performance reasons.
|
559 |
*/
|
567 |
$this->add_admin_styles('maxbuttons');
|
568 |
}
|
569 |
|
570 |
+
/*wp_enqueue_script('maxbuttons-front', $this->plugin_url . 'js/min/front.js', array('jquery'), $version);
|
571 |
$local = array();
|
572 |
+
$local["ajaxurl"] = admin_url( 'admin-ajax.php' ); */
|
573 |
|
574 |
+
//wp_localize_script('maxbuttons-front', 'mb_ajax', $local);
|
575 |
}
|
576 |
|
577 |
/** Extra text to display in admin footer */
|
636 |
/** Output footer styles and scripts
|
637 |
*
|
638 |
* Outputs loaded styles, and scripts to the footer for display. Email_off is to prevent cloudfare from 'obfuscating' the minified CSS
|
639 |
+
* No optimize prevent autoptimize from mutilating the already optimized CSS.
|
640 |
*/
|
641 |
function footer()
|
642 |
{
|
643 |
if(count($this->footer) == 0) return; // nothing
|
644 |
|
645 |
+
$button_ids = array();
|
646 |
+
$use_file = get_option('maxbuttons_usecssfile', false);
|
647 |
+
|
648 |
+
$use_file = false;
|
649 |
+
|
650 |
foreach ($this->footer as $type => $part)
|
651 |
{
|
652 |
+
if ($type == 'css' && $use_file) // use file output to a CSS filebased output, don't put it inline.
|
653 |
+
{
|
654 |
+
foreach($part as $id => $statements)
|
655 |
+
{
|
656 |
+
if (is_numeric($id))
|
657 |
+
$button_ids[] = $id;
|
658 |
+
else
|
659 |
+
echo "nonum $id";
|
660 |
+
}
|
661 |
+
|
662 |
+
continue;
|
663 |
+
}
|
664 |
+
|
665 |
// add tag
|
666 |
if ($type == 'css')
|
667 |
{
|
668 |
echo "<!--noptimize--><!--email_off--><style type='text/css'>";
|
669 |
}
|
670 |
+
|
671 |
foreach ($part as $id => $statements)
|
672 |
{
|
673 |
if (strlen($statements) > 0) // prevent whitespace
|
674 |
echo $statements . "\n";
|
675 |
}
|
676 |
+
|
677 |
if ($type == 'css')
|
678 |
{
|
679 |
echo "</style><!--/email_off--><!--/noptimize-->\n";
|
680 |
}
|
681 |
}
|
682 |
|
683 |
+
if (is_array($button_ids) && count($button_ids) > 0 && $use_file)
|
684 |
+
{
|
685 |
+
wp_enqueue_style('maxbuttons-front', admin_url('admin-ajax.php').'?action=maxbuttons_front_css&id=' . implode(',',array_unique($button_ids)) );
|
686 |
+
}
|
687 |
}
|
688 |
|
689 |
/* Add a notice
|
images/gopro/s2-price.png
CHANGED
Binary file
|
includes/maxbuttons-collection-edit.php
CHANGED
@@ -2,44 +2,43 @@
|
|
2 |
namespace MaxButtons;
|
3 |
defined('ABSPATH') or die('No direct access permitted');
|
4 |
|
5 |
-
global $page_title;
|
6 |
|
7 |
-
$collections = MB()->getClass("collections");
|
8 |
|
9 |
-
$collection_type = (isset($_REQUEST["collection"])) ? sanitize_text_field($_REQUEST["collection"]) : 'basic';
|
10 |
$collection = $collections::getCollection($collection_type);
|
11 |
|
12 |
|
13 |
// handle submits
|
14 |
if ($_POST) {
|
15 |
-
|
16 |
-
$collection_id = intval($_POST["collection_id"]);
|
17 |
$collection->set($collection_id);
|
18 |
|
19 |
-
// this can be a new id (!)
|
20 |
-
$collection_id = $collection->save($_POST);
|
21 |
}
|
22 |
-
else
|
23 |
-
{
|
24 |
-
$collection_id = isset($_REQUEST["collection_id"]) ? intval($_REQUEST["collection_id"]) : 0;
|
25 |
}
|
26 |
|
27 |
-
$nonce = wp_create_nonce('collection-edit-' . $collection_id);
|
28 |
-
$block_nonce = wp_create_nonce('mbpro_collection_block-' . $collection_id);
|
29 |
|
30 |
-
|
31 |
$collection->set($collection_id);
|
32 |
$basic = $collection->getBlock("basic")->get();
|
33 |
-
$collection_name = $basic["name"];
|
34 |
|
35 |
-
$tab = isset($_REQUEST["tab"]) ? sanitize_text_field($_REQUEST["tab"]) : '';
|
36 |
|
37 |
-
$page_title = __("Edit Social Share", "maxbuttons");
|
38 |
-
$admin = MB()->getClass("admin");
|
39 |
|
40 |
$action = "<a class='page-title-action add-new-h2' href='" . admin_url() . "admin.php?page=maxbuttons-collections&action=edit&collection=social'>" . __('Add New', 'maxbuttons') . "</a>";
|
41 |
|
42 |
-
$admin->get_header(array("tabs_active" => true, "title" => $page_title, "title_action" => $action));
|
43 |
|
44 |
|
45 |
$button = MB()->getClass("button");
|
@@ -49,49 +48,49 @@ $button = MB()->getClass("button");
|
|
49 |
<div class="mb-message shortcode">
|
50 |
<?php $button_name = $button->getName(); ?>
|
51 |
<?php _e('To use this collection, place the following shortcode anywhere in your site content:', 'maxbuttons') ?>
|
52 |
-
<strong>[maxcollection id="<?php echo $collection_id ?>"]</strong> <i><?php _e("or","maxbuttons"); ?></i> <strong>[maxcollection name="<?php echo $collection_name ?>"]</strong>
|
53 |
-
|
54 |
-
|
55 |
</div>
|
56 |
<?php endif; ?>
|
57 |
|
58 |
-
<?php
|
59 |
/* Display admin notices [deprecated]
|
60 |
@ignore
|
61 |
*/
|
62 |
-
do_action("mb_display_notices");
|
63 |
-
|
64 |
-
/* Display admin notices
|
65 |
-
|
66 |
Hook to display admin notices on error and other occurences in the editor. Follows WP guidelines on format. Use @see add_notice to add
|
67 |
-
notices.
|
68 |
-
|
69 |
-
@since 4.20
|
70 |
-
*/
|
71 |
-
do_action('mb/collection/display_notices');
|
72 |
?>
|
73 |
|
74 |
|
75 |
<form method="post" id='collection_edit' class="mb_ajax_save">
|
76 |
-
|
77 |
|
78 |
<?php $collection->showBlocks(); ?>
|
79 |
|
80 |
|
81 |
<?php $collection->display_field_map(); ?>
|
82 |
-
<input type="hidden" name="action" value="collection-edit">
|
83 |
-
<input type="hidden" name="collection_id" value="<?php echo $collection_id ?>">
|
84 |
<input type="hidden" name="nonce" value="<?php echo $nonce ?>">
|
85 |
-
<input type="hidden" name="block_nonce" value="<?php echo $block_nonce ?>">
|
86 |
-
<input type="hidden" name="tab" value="<?php echo $tab ?>" />
|
87 |
-
<input type="hidden" name="collection_type" value="<?php echo $collection_type ?>" >
|
88 |
|
89 |
-
<div class="form-actions">
|
90 |
<input type="submit" data-form='collection_edit' name="submit" value="<?php _e('Save All', 'maxbuttons') ?>" class="button-primary ">
|
91 |
</div>
|
92 |
</form>
|
93 |
|
94 |
-
<?php
|
95 |
|
96 |
-
$admin->get_footer();
|
97 |
?>
|
2 |
namespace MaxButtons;
|
3 |
defined('ABSPATH') or die('No direct access permitted');
|
4 |
|
5 |
+
global $page_title;
|
6 |
|
7 |
+
$collections = MB()->getClass("collections");
|
8 |
|
9 |
+
$collection_type = (isset($_REQUEST["collection"])) ? sanitize_text_field($_REQUEST["collection"]) : 'basic';
|
10 |
$collection = $collections::getCollection($collection_type);
|
11 |
|
12 |
|
13 |
// handle submits
|
14 |
if ($_POST) {
|
15 |
+
|
16 |
+
$collection_id = intval($_POST["collection_id"]);
|
17 |
$collection->set($collection_id);
|
18 |
|
19 |
+
// this can be a new id (!)
|
20 |
+
$collection_id = $collection->save($_POST);
|
21 |
}
|
22 |
+
else
|
23 |
+
{
|
24 |
+
$collection_id = isset($_REQUEST["collection_id"]) ? intval($_REQUEST["collection_id"]) : 0;
|
25 |
}
|
26 |
|
27 |
+
$nonce = wp_create_nonce('collection-edit-' . $collection_id);
|
28 |
+
$block_nonce = wp_create_nonce('mbpro_collection_block-' . $collection_id);
|
29 |
|
|
|
30 |
$collection->set($collection_id);
|
31 |
$basic = $collection->getBlock("basic")->get();
|
32 |
+
$collection_name = $basic["name"];
|
33 |
|
34 |
+
$tab = isset($_REQUEST["tab"]) ? sanitize_text_field($_REQUEST["tab"]) : '';
|
35 |
|
36 |
+
$page_title = __("Edit Social Share", "maxbuttons");
|
37 |
+
$admin = MB()->getClass("admin");
|
38 |
|
39 |
$action = "<a class='page-title-action add-new-h2' href='" . admin_url() . "admin.php?page=maxbuttons-collections&action=edit&collection=social'>" . __('Add New', 'maxbuttons') . "</a>";
|
40 |
|
41 |
+
$admin->get_header(array("tabs_active" => true, "title" => $page_title, "title_action" => $action));
|
42 |
|
43 |
|
44 |
$button = MB()->getClass("button");
|
48 |
<div class="mb-message shortcode">
|
49 |
<?php $button_name = $button->getName(); ?>
|
50 |
<?php _e('To use this collection, place the following shortcode anywhere in your site content:', 'maxbuttons') ?>
|
51 |
+
<strong>[maxcollection id="<?php echo $collection_id ?>"]</strong> <i><?php _e("or","maxbuttons"); ?></i> <strong>[maxcollection name="<?php echo $collection_name ?>"]</strong>
|
52 |
+
|
53 |
+
|
54 |
</div>
|
55 |
<?php endif; ?>
|
56 |
|
57 |
+
<?php
|
58 |
/* Display admin notices [deprecated]
|
59 |
@ignore
|
60 |
*/
|
61 |
+
do_action("mb_display_notices");
|
62 |
+
|
63 |
+
/* Display admin notices
|
64 |
+
|
65 |
Hook to display admin notices on error and other occurences in the editor. Follows WP guidelines on format. Use @see add_notice to add
|
66 |
+
notices.
|
67 |
+
|
68 |
+
@since 4.20
|
69 |
+
*/
|
70 |
+
do_action('mb/collection/display_notices');
|
71 |
?>
|
72 |
|
73 |
|
74 |
<form method="post" id='collection_edit' class="mb_ajax_save">
|
75 |
+
|
76 |
|
77 |
<?php $collection->showBlocks(); ?>
|
78 |
|
79 |
|
80 |
<?php $collection->display_field_map(); ?>
|
81 |
+
<input type="hidden" name="action" value="collection-edit">
|
82 |
+
<input type="hidden" name="collection_id" value="<?php echo $collection_id ?>">
|
83 |
<input type="hidden" name="nonce" value="<?php echo $nonce ?>">
|
84 |
+
<input type="hidden" name="block_nonce" value="<?php echo $block_nonce ?>">
|
85 |
+
<input type="hidden" name="tab" value="<?php echo $tab ?>" />
|
86 |
+
<input type="hidden" name="collection_type" value="<?php echo $collection_type ?>" >
|
87 |
|
88 |
+
<div class="form-actions">
|
89 |
<input type="submit" data-form='collection_edit' name="submit" value="<?php _e('Save All', 'maxbuttons') ?>" class="button-primary ">
|
90 |
</div>
|
91 |
</form>
|
92 |
|
93 |
+
<?php
|
94 |
|
95 |
+
$admin->get_footer();
|
96 |
?>
|
includes/maxbuttons-pro.php
CHANGED
@@ -196,7 +196,7 @@ $admin->get_header(array("title" => $page_title, "title_action" => $buy_now_top,
|
|
196 |
<div class="container">
|
197 |
<h2>#1 Selling WordPress Button Plugin!</h2>
|
198 |
<div class="btn-row">
|
199 |
-
<img src="<?php echo $img_url ?>/s2-price.png" alt="img" class="inline-block" />
|
200 |
<a href="<?php echo $middle_buy ?>" target="_blank" class="big-maxg-btn inline-block">Buy Now</a>
|
201 |
</div>
|
202 |
</div>
|
196 |
<div class="container">
|
197 |
<h2>#1 Selling WordPress Button Plugin!</h2>
|
198 |
<div class="btn-row">
|
199 |
+
<div class='price'><img src="<?php echo $img_url ?>/s2-price.png" alt="img" class="inline-block" /> <span>$19</span></div>
|
200 |
<a href="<?php echo $middle_buy ?>" target="_blank" class="big-maxg-btn inline-block">Buy Now</a>
|
201 |
</div>
|
202 |
</div>
|
js/maxajax.js
CHANGED
@@ -126,6 +126,7 @@ maxAjax.prototype.ajaxPost = function(data, successHandler, errorHandler)
|
|
126 |
var errorHandler = function (r,s,o,) { self.defaultErrorHandler(r,s,o,action) } ;
|
127 |
}
|
128 |
|
|
|
129 |
$.ajax({
|
130 |
type: "POST",
|
131 |
url: maxajax.ajax_url,
|
@@ -146,7 +147,7 @@ maxAjax.prototype.defaultErrorHandler = function(jq,status,error, action)
|
|
146 |
{
|
147 |
this.removeSpinner();
|
148 |
$(document).trigger('maxajax_error_' + action, jq, status, error);
|
149 |
-
console.
|
150 |
-
console.
|
151 |
-
console.
|
152 |
}
|
126 |
var errorHandler = function (r,s,o,) { self.defaultErrorHandler(r,s,o,action) } ;
|
127 |
}
|
128 |
|
129 |
+
|
130 |
$.ajax({
|
131 |
type: "POST",
|
132 |
url: maxajax.ajax_url,
|
147 |
{
|
148 |
this.removeSpinner();
|
149 |
$(document).trigger('maxajax_error_' + action, jq, status, error);
|
150 |
+
console.error(jq);
|
151 |
+
console.error(status);
|
152 |
+
console.error(error);
|
153 |
}
|
js/maxbuttons-admin.js
CHANGED
@@ -38,6 +38,8 @@ maxAdmin.prototype.init = function () {
|
|
38 |
// conditionals
|
39 |
$(document).on('reInitConditionals', $.proxy(this.initConditionials, this));
|
40 |
this.initConditionials(); // conditional options
|
|
|
|
|
41 |
// range inputs
|
42 |
|
43 |
$(document).on('change, input', 'input[type="range"]', $.proxy(this.updateRange, this ));
|
@@ -184,7 +186,7 @@ maxAdmin.prototype.update_preview = function(e)
|
|
184 |
}
|
185 |
catch(err)
|
186 |
{
|
187 |
-
console.
|
188 |
}
|
189 |
|
190 |
}
|
@@ -227,7 +229,7 @@ maxAdmin.prototype.button_action = function(e)
|
|
227 |
}
|
228 |
},
|
229 |
error: function () {
|
230 |
-
console.
|
231 |
},
|
232 |
});
|
233 |
}
|
@@ -625,15 +627,38 @@ maxAdmin.prototype.toggleManual = function (e)
|
|
625 |
$newWindow.show();
|
626 |
}
|
627 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
628 |
maxAdmin.prototype.initConditionials = function ()
|
629 |
{
|
630 |
var mAP = this;
|
|
|
|
|
631 |
$('[data-show]').each(function () {
|
632 |
var condition = $(this).data('show');
|
633 |
var target = condition.target;
|
634 |
var values = condition.values;
|
635 |
var self = this;
|
636 |
|
|
|
637 |
$(document).on('change','[name="' + target + '"]', {child: this, values: values}, $.proxy(mAP.updateConditional, mAP) );
|
638 |
|
639 |
if ( $('[name="' + target + '"]').length > 1) // trigger change to test condition
|
@@ -863,14 +888,12 @@ maxAdmin.prototype.saveDone = function (res)
|
|
863 |
maxAdmin.prototype.openURLDialog = function(e)
|
864 |
{
|
865 |
window.wpActiveEditor = 'url'; // $('input[name="url"]'); //true; //we need to override this var as the link dialogue is expecting an actual wp_editor instance
|
866 |
-
//wpLink.init();
|
867 |
|
868 |
wpLink.open(); //open the link popup
|
869 |
$('#link-options').hide();
|
870 |
$('.query-results').css('top', '70px');
|
871 |
$('#wp-link-submit').off('click keyup change');
|
872 |
$('#wp-link-submit').on('click', $.proxy(this.updateLink, this) );
|
873 |
-
// $('#wp-link-submit').on('click', function (e) { e.preventDefault(); console.log('f submits'); return false; } );
|
874 |
return false;
|
875 |
}
|
876 |
|
38 |
// conditionals
|
39 |
$(document).on('reInitConditionals', $.proxy(this.initConditionials, this));
|
40 |
this.initConditionials(); // conditional options
|
41 |
+
this.initConditionials();
|
42 |
+
this.initConditionials();
|
43 |
// range inputs
|
44 |
|
45 |
$(document).on('change, input', 'input[type="range"]', $.proxy(this.updateRange, this ));
|
186 |
}
|
187 |
catch(err)
|
188 |
{
|
189 |
+
console.error(err);
|
190 |
}
|
191 |
|
192 |
}
|
229 |
}
|
230 |
},
|
231 |
error: function () {
|
232 |
+
console.error('error in button action' + action);
|
233 |
},
|
234 |
});
|
235 |
}
|
627 |
$newWindow.show();
|
628 |
}
|
629 |
|
630 |
+
maxAdmin.prototype.resetConditionals = function()
|
631 |
+
{
|
632 |
+
$('[data-show], [data-has]').each(function () {
|
633 |
+
var condition = $(this).data('show');
|
634 |
+
if (typeof condition === 'undefined')
|
635 |
+
{
|
636 |
+
condition = $(this).data('has');
|
637 |
+
}
|
638 |
+
if (typeof condition === 'undefined')
|
639 |
+
{
|
640 |
+
console.error($(this) + 'has a improperly set conditional');
|
641 |
+
return;
|
642 |
+
}
|
643 |
+
var target = condition.target;
|
644 |
+
$(document).off('change','[name="' + target + '"]'); // turn off event
|
645 |
+
});
|
646 |
+
|
647 |
+
|
648 |
+
}
|
649 |
+
|
650 |
maxAdmin.prototype.initConditionials = function ()
|
651 |
{
|
652 |
var mAP = this;
|
653 |
+
this.resetConditionals();
|
654 |
+
|
655 |
$('[data-show]').each(function () {
|
656 |
var condition = $(this).data('show');
|
657 |
var target = condition.target;
|
658 |
var values = condition.values;
|
659 |
var self = this;
|
660 |
|
661 |
+
|
662 |
$(document).on('change','[name="' + target + '"]', {child: this, values: values}, $.proxy(mAP.updateConditional, mAP) );
|
663 |
|
664 |
if ( $('[name="' + target + '"]').length > 1) // trigger change to test condition
|
888 |
maxAdmin.prototype.openURLDialog = function(e)
|
889 |
{
|
890 |
window.wpActiveEditor = 'url'; // $('input[name="url"]'); //true; //we need to override this var as the link dialogue is expecting an actual wp_editor instance
|
|
|
891 |
|
892 |
wpLink.open(); //open the link popup
|
893 |
$('#link-options').hide();
|
894 |
$('.query-results').css('top', '70px');
|
895 |
$('#wp-link-submit').off('click keyup change');
|
896 |
$('#wp-link-submit').on('click', $.proxy(this.updateLink, this) );
|
|
|
897 |
return false;
|
898 |
}
|
899 |
|
js/maxmodal.js
CHANGED
@@ -272,8 +272,8 @@ jQuery(document).ready(function(jq) {
|
|
272 |
}
|
273 |
catch(err)
|
274 |
{
|
275 |
-
console.
|
276 |
-
console.
|
277 |
}
|
278 |
}
|
279 |
|
272 |
}
|
273 |
catch(err)
|
274 |
{
|
275 |
+
console.error('MB Modal Callback Error: ' + err.message);
|
276 |
+
console.error('MB Mobdal tried calling: ' + funcName);
|
277 |
}
|
278 |
}
|
279 |
|
js/media_button.js
CHANGED
@@ -204,11 +204,7 @@ jQuery(document).ready(function(jq) {
|
|
204 |
this.maxajax.ajaxPost(data, this.ajaxSuccessHandler);
|
205 |
}
|
206 |
|
207 |
-
|
208 |
-
{
|
209 |
-
$(document).off('click','.pagination span, .pagination-links a');
|
210 |
-
$(document).on('click','.pagination span, .pagination-links a', $.proxy(this.doPagination, this));
|
211 |
-
} */
|
212 |
|
213 |
maxMedia.prototype.doPagination = function (e)
|
214 |
{
|
204 |
this.maxajax.ajaxPost(data, this.ajaxSuccessHandler);
|
205 |
}
|
206 |
|
207 |
+
|
|
|
|
|
|
|
|
|
208 |
|
209 |
maxMedia.prototype.doPagination = function (e)
|
210 |
{
|
js/min/front.js
DELETED
File without changes
|
js/min/maxajax.js
CHANGED
@@ -126,6 +126,7 @@ maxAjax.prototype.ajaxPost = function(data, successHandler, errorHandler)
|
|
126 |
var errorHandler = function (r,s,o,) { self.defaultErrorHandler(r,s,o,action) } ;
|
127 |
}
|
128 |
|
|
|
129 |
$.ajax({
|
130 |
type: "POST",
|
131 |
url: maxajax.ajax_url,
|
@@ -146,7 +147,7 @@ maxAjax.prototype.defaultErrorHandler = function(jq,status,error, action)
|
|
146 |
{
|
147 |
this.removeSpinner();
|
148 |
$(document).trigger('maxajax_error_' + action, jq, status, error);
|
149 |
-
console.
|
150 |
-
console.
|
151 |
-
console.
|
152 |
}
|
126 |
var errorHandler = function (r,s,o,) { self.defaultErrorHandler(r,s,o,action) } ;
|
127 |
}
|
128 |
|
129 |
+
|
130 |
$.ajax({
|
131 |
type: "POST",
|
132 |
url: maxajax.ajax_url,
|
147 |
{
|
148 |
this.removeSpinner();
|
149 |
$(document).trigger('maxajax_error_' + action, jq, status, error);
|
150 |
+
console.error(jq);
|
151 |
+
console.error(status);
|
152 |
+
console.error(error);
|
153 |
}
|
js/min/maxbuttons-admin.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function maxAdmin(){}var $=jQuery;maxAdmin.prototype={colorUpdateTime:!0,colorPalettes:!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","[data-buttonaction]",$.proxy(this.button_action,this)),$(document).on("reInitConditionals",$.proxy(this.initConditionials,this)),this.initConditionials(),$(document).on("change, input",'input[type="range"]',$.proxy(this.updateRange,this)),this.updateRange(null),0!=$("#new-button-form").length&&(this.button_id>0&&$("#maxbuttons .mb-message").show(),this.initResponsive(),$("#maxbuttons .output").draggable({cancel:".nodrag"}),$("#maxbuttons .color-field").wpColorPicker({width:300,palettes:this.colorPalettes,change:$.proxy(_.throttle(function(t,e){t.preventDefault();var a=e.color.toString();this.update_color(t,e,a)},200),this)}),$(".input.mbcolor .arrows").on("click",$.proxy(this.copyColor,this)),$("#radius_toggle").on("click",$.proxy(this.toggleRadiusLock,this)),"undefined"!=typeof buttonFieldMap&&(this.fields=$.parseJSON(buttonFieldMap)),$("#maxbuttons input").not(".color-field").on("keyup change",$.proxy(this.update_preview,this)),$("#maxbuttons input.color-field").on("focus",$.proxy(this.select_field,this)),$("#maxbuttons select").on("change",$.proxy(this.update_preview,this)),$(window).on("beforeunload",$.proxy(function(){if(this.form_updated)return maxajax.leave_page},this)),$(document).on("keyup","input",function(t){if(t.keyCode&&13==t.keyCode)return $(":input")[$(":input").index(document.activeElement)+1].focus(),!1}),$(".button-save").click($.proxy(function(){return this.saveIndicator(!1),$("#new-button-form").submit(),!1},this)),$(".shortcode-expand").on("click",this.toggleShortcode),$("#url_button").on("click",$.proxy(this.openURLDialog,this)))},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(t){t.preventDefault(),this.saveIndicator(!0);var e=$(t.target),a=$(e).data("field");if(void 0===a)o=$(e).attr("id");else var o=a;var n=this.fields[o];if(void 0!==n&&(void 0!==n.css&&(value=e.val(),void 0!==n.css_unit&&-1==value.indexOf(n.css_unit)&&(value+=n.css_unit),e.is(":checkbox")&&!e.is(":checked")&&(value=""),this.putCSS(n,value)),void 0!==n.attr&&$(".output .result").find("a").attr(n.attr,e.val()),void 0!==n.func)){var i=n.func;i.indexOf(".")<0?i="self."+i+"(target)":i+="(target)";try{new Function("target","self",i)(e,this)}catch(t){console.log(t)}}},maxAdmin.prototype.select_field=function(t){$(t.target).select()},maxAdmin.prototype.button_action=function(t){t.preventDefault();var e=$(t.target).data("buttonaction");this.form_updated=!1;var a=$(t.target).data("buttonid"),o=$('input[name="'+e+'_nonce"]').val(),n=maxajax.ajax_url,i={action:"mb_button_action",button_action:e,button_id:a,nonce:o};$.post({url:n,data:i,success:function(t){response=JSON.parse(t),void 0!==response.redirection&&(window.location=response.redirection)},error:function(){console.log("error in button action"+e)}})},maxAdmin.prototype.checkCopyModal=function(t){this.form_updated?t.currentModal.find(".mb-message").show():$(t.currentModal).find(".mb-message").hide()},maxAdmin.prototype.toggle_preview=function(t){$(".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){var o=".maxbutton";if("hover"==(a=a||"both")?o="a.hover ":"normal"==a&&(o="a.normal "),void 0!==t.csspart){var n=t.csspart.split(",");for(i=0;i<n.length;i++){var r=o+" ."+n[i];$(".output .result").find(r).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 n=o.attr("id");if($("#"+n).val(a),-1!==n.indexOf("box_shadow"))this.updateBoxShadow(o);else if(-1!==n.indexOf("text_shadow"))this.updateTextShadow(o);else if(-1!==n.indexOf("gradient"))-1==n.indexOf("hover")?this.updateGradient():this.updateGradient(!0);else{if("button_preview"!=n){-1==n.indexOf("hover")?state="normal":state="hover";var i=this.fields[n];return void this.putCSS(i,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"),n="#"+a.data("bind");if(e.hasClass("arrow-right"))i="right";else var i="left";if(a.hasClass("right"))r="left";else var r="right";"left"==r?copy="right"==i:"right"==r&&(copy="right"!=i),copy?($(n).val($(o).val()),$(n).trigger("change"),$(n).wpColorPicker("color",$(o).val())):($(o).val($(n).val()),$(o).trigger("change"),$(o).wpColorPicker("color",$(n).val()))},maxAdmin.prototype.updateGradient=function(t){var e="";(t=t||!1)&&(e="_hover");var a=parseInt($("#gradient_stop").val());isNaN(a)&&(a=45);var o=$("#use_gradient").prop("checked"),n=this.hexToRgb($("#gradient_start_color"+e).val()),i=this.hexToRgb($("#gradient_end_color"+e).val()),r=parseInt($("#gradient_start_opacity"+e).val()),s=parseInt($("#gradient_end_opacity"+e).val());if(o||(i=n,s=r),isNaN(r)&&(r=100),isNaN(s)&&(s=100),t)d=$(".output .result").find("a.hover");else var d=$(".output .result").find("a.normal");d.css("background","linear-gradient( rgba("+n+","+r/100+") "+a+"%, rgba("+i+","+s/100+") )"),d.css("background","-moz-linear-gradient( rgba("+n+","+r/100+") "+a+"%, rgba("+i+","+s/100+") )"),d.css("background","-o-linear-gradient( rgba("+n+","+r/100+") "+a+"%, rgba("+i+","+s/100+") )"),d.css("background","-webkit-gradient(linear, left top, left bottom, color-stop("+a+"%, rgba("+n+","+r/100+")), color-stop(1, rgba("+i+","+s/100+") ));")},maxAdmin.prototype.hexToRgb=function(t){t=t.replace("#","");var e=parseInt(t,16);return(e>>16&255)+","+(e>>8&255)+","+(255&e)},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(),n=$("#box_shadow_spread").val(),i=$("#box_shadow_color").val(),r=$("#box_shadow_color_hover").val();$(".output .result").find("a.normal").css("boxShadow",e+"px "+a+"px "+o+"px "+n+"px "+i),$(".output .result").find("a.hover").css("boxShadow",e+"px "+a+"px "+o+"px "+n+"px "+r)},maxAdmin.prototype.updateTextShadow=function(t,e){e=e||!1;var a=$("#text_shadow_offset_left").val(),o=$("#text_shadow_offset_top").val(),n=$("#text_shadow_width").val(),i=$("#text_shadow_color").val(),r=$("#text_shadow_color_hover").val(),s=$(t).attr("id"),d=this.fields[s];d.css="textShadow";var l=a+"px "+o+"px "+n+"px "+i;this.putCSS(d,l,"normal"),l=a+"px "+o+"px "+n+"px "+r,this.putCSS(d,l,"hover")},maxAdmin.prototype.updateAnchorText=function(t){0===$(".output .result").find("a .mb-text").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(t){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(t){$(".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 n=$('[data-options="'+a+'"]').position().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+'"]').length>1?$('[name="'+a+'"]:checked').trigger("change",["conditional"]):$('[name="'+a+'"]').trigger("change",["conditional"])});var e=[];$("[data-has]").each(function(){var a=$(this).data("has"),o=a.target,n=a.values;$('[name="'+o+'"]').on("change",{target:o,child:this,values:n},$.proxy(t.updateHasConditional,t));var i='[name="'+o+'"]';$.inArray(i,e),e.push(i)}),e.length>0&&$(e.toString()).first().trigger("change",["conditional"])},maxAdmin.prototype.updateConditional=function(t){var e=t.data,a=e.values,o=e.child,n=$(t.currentTarget),i=$(n).val();if("checkbox"===n.attr("type")){var r=$(n).prop("checked");i="checked"==a&&r?"checked":"unchecked"!=a||r?0:"unchecked"}a.indexOf(i)>=0?($(o).fadeIn("fast"),$(o).find("input, select").trigger("change")):($(o).fadeOut("fast"),$(o).find("input, select").trigger("change"))},maxAdmin.prototype.updateHasConditional=function(t){var e=t.data,a=e.values,o=e.child,n=e.target,i=[];$(a).each(function(t){i.push("[value="+this+"]")}),$('[name="'+n+'"]').filter(i.toString()).length>0?$(o).fadeIn("fast"):$(o).fadeOut("fast")},maxAdmin.prototype.updateRange=function(t){if(void 0===t||null===t)e=$('input[type="range"]');else var e=[t.target];$(e).each(function(){var t=$(this).val();$(this).parents(".input").find(".range_value output").val(t+"%")})},maxAdmin.prototype.saveIndicator=function(t){this.form_updated=!!t},maxAdmin.prototype.formAjaxSave=function(t){t.preventDefault();var e=mb_ajax.ajaxurl,a=$(t.target).serialize();$.ajax({type:"POST",url:e,data:a}).done($.proxy(this.saveDone,this))},maxAdmin.prototype.saveDone=function(t){$("[data-form]").prop("disabled",!1);var e=$.parseJSON(t),a=e.result,o=e.title,n=e.data.id;if(void 0!==e.data.new_nonce){e.data.new_nonce;$('input[name="nonce"]').val(e.data.new_nonce)}if(a){$('input[name="collection_id"]').val(n);var i=window.location.href;-1===i.indexOf("collection_id")&&window.history.replaceState({},"",i+"&collection_id="+n),$(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())},maxAdmin.prototype.openURLDialog=function(t){return window.wpActiveEditor="url",wpLink.open(),$("#link-options").hide(),$(".query-results").css("top","70px"),$("#wp-link-submit").off("click keyup change"),$("#wp-link-submit").on("click",$.proxy(this.updateLink,this)),!1},maxAdmin.prototype.updateLink=function(t){t.preventDefault();var e=$("#wp-link-url").val(),a=maxadmin_settings.homeurl;return e=e.replace(a,""),$("#url").val(e),wpLink.close(),!1};
|
1 |
+
function maxAdmin(){}var $=jQuery;maxAdmin.prototype={colorUpdateTime:!0,colorPalettes:!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","[data-buttonaction]",$.proxy(this.button_action,this)),$(document).on("reInitConditionals",$.proxy(this.initConditionials,this)),this.initConditionials(),this.initConditionials(),this.initConditionials(),$(document).on("change, input",'input[type="range"]',$.proxy(this.updateRange,this)),this.updateRange(null),0!=$("#new-button-form").length&&(this.button_id>0&&$("#maxbuttons .mb-message").show(),this.initResponsive(),$("#maxbuttons .output").draggable({cancel:".nodrag"}),$("#maxbuttons .color-field").wpColorPicker({width:300,palettes:this.colorPalettes,change:$.proxy(_.throttle(function(t,a){t.preventDefault();var e=a.color.toString();this.update_color(t,a,e)},200),this)}),$(".input.mbcolor .arrows").on("click",$.proxy(this.copyColor,this)),$("#radius_toggle").on("click",$.proxy(this.toggleRadiusLock,this)),"undefined"!=typeof buttonFieldMap&&(this.fields=$.parseJSON(buttonFieldMap)),$("#maxbuttons input").not(".color-field").on("keyup change",$.proxy(this.update_preview,this)),$("#maxbuttons input.color-field").on("focus",$.proxy(this.select_field,this)),$("#maxbuttons select").on("change",$.proxy(this.update_preview,this)),$(window).on("beforeunload",$.proxy(function(){if(this.form_updated)return maxajax.leave_page},this)),$(document).on("keyup","input",function(t){if(t.keyCode&&13==t.keyCode)return $(":input")[$(":input").index(document.activeElement)+1].focus(),!1}),$(".button-save").click($.proxy(function(){return this.saveIndicator(!1),$("#new-button-form").submit(),!1},this)),$(".shortcode-expand").on("click",this.toggleShortcode),$("#url_button").on("click",$.proxy(this.openURLDialog,this)))},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(t){t.preventDefault(),this.saveIndicator(!0);var a=$(t.target),e=$(a).data("field");if(void 0===e)o=$(a).attr("id");else var o=e;var n=this.fields[o];if(void 0!==n&&(void 0!==n.css&&(value=a.val(),void 0!==n.css_unit&&-1==value.indexOf(n.css_unit)&&(value+=n.css_unit),a.is(":checkbox")&&!a.is(":checked")&&(value=""),this.putCSS(n,value)),void 0!==n.attr&&$(".output .result").find("a").attr(n.attr,a.val()),void 0!==n.func)){var i=n.func;i.indexOf(".")<0?i="self."+i+"(target)":i+="(target)";try{new Function("target","self",i)(a,this)}catch(t){console.error(t)}}},maxAdmin.prototype.select_field=function(t){$(t.target).select()},maxAdmin.prototype.button_action=function(t){t.preventDefault();var a=$(t.target).data("buttonaction");this.form_updated=!1;var e=$(t.target).data("buttonid"),o=$('input[name="'+a+'_nonce"]').val(),n=maxajax.ajax_url,i={action:"mb_button_action",button_action:a,button_id:e,nonce:o};$.post({url:n,data:i,success:function(t){response=JSON.parse(t),void 0!==response.redirection&&(window.location=response.redirection)},error:function(){console.error("error in button action"+a)}})},maxAdmin.prototype.checkCopyModal=function(t){this.form_updated?t.currentModal.find(".mb-message").show():$(t.currentModal).find(".mb-message").hide()},maxAdmin.prototype.toggle_preview=function(t){$(".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,a,e){var o=".maxbutton";if("hover"==(e=e||"both")?o="a.hover ":"normal"==e&&(o="a.normal "),void 0!==t.csspart){var n=t.csspart.split(",");for(i=0;i<n.length;i++){var r=o+" ."+n[i];$(".output .result").find(r).css(t.css,a)}}else $(".output .result").find(o).css(t.css,a)},maxAdmin.prototype.update_color=function(t,a,e){t.preventDefault(),this.saveIndicator(!0);var o=$(t.target);-1===e.indexOf("#")&&(e="#"+e);var n=o.attr("id");if($("#"+n).val(e),-1!==n.indexOf("box_shadow"))this.updateBoxShadow(o);else if(-1!==n.indexOf("text_shadow"))this.updateTextShadow(o);else if(-1!==n.indexOf("gradient"))-1==n.indexOf("hover")?this.updateGradient():this.updateGradient(!0);else{if("button_preview"!=n){-1==n.indexOf("hover")?state="normal":state="hover";var i=this.fields[n];return void this.putCSS(i,e,state)}$(".output .result").css("backgroundColor",e)}},maxAdmin.prototype.copyColor=function(t){t.preventDefault(),t.stopPropagation();var a=$(t.target),e=$(t.target).parents("[data-bind]"),o="#"+e.data("id"),n="#"+e.data("bind");if(a.hasClass("arrow-right"))i="right";else var i="left";if(e.hasClass("right"))r="left";else var r="right";"left"==r?copy="right"==i:"right"==r&&(copy="right"!=i),copy?($(n).val($(o).val()),$(n).trigger("change"),$(n).wpColorPicker("color",$(o).val())):($(o).val($(n).val()),$(o).trigger("change"),$(o).wpColorPicker("color",$(n).val()))},maxAdmin.prototype.updateGradient=function(t){var a="";(t=t||!1)&&(a="_hover");var e=parseInt($("#gradient_stop").val());isNaN(e)&&(e=45);var o=$("#use_gradient").prop("checked"),n=this.hexToRgb($("#gradient_start_color"+a).val()),i=this.hexToRgb($("#gradient_end_color"+a).val()),r=parseInt($("#gradient_start_opacity"+a).val()),s=parseInt($("#gradient_end_opacity"+a).val());if(o||(i=n,s=r),isNaN(r)&&(r=100),isNaN(s)&&(s=100),t)d=$(".output .result").find("a.hover");else var d=$(".output .result").find("a.normal");d.css("background","linear-gradient( rgba("+n+","+r/100+") "+e+"%, rgba("+i+","+s/100+") )"),d.css("background","-moz-linear-gradient( rgba("+n+","+r/100+") "+e+"%, rgba("+i+","+s/100+") )"),d.css("background","-o-linear-gradient( rgba("+n+","+r/100+") "+e+"%, rgba("+i+","+s/100+") )"),d.css("background","-webkit-gradient(linear, left top, left bottom, color-stop("+e+"%, rgba("+n+","+r/100+")), color-stop(1, rgba("+i+","+s/100+") ));")},maxAdmin.prototype.hexToRgb=function(t){t=t.replace("#","");var a=parseInt(t,16);return(a>>16&255)+","+(a>>8&255)+","+(255&a)},maxAdmin.prototype.updateBoxShadow=function(t){t=t||null;var a=$("#box_shadow_offset_left").val(),e=$("#box_shadow_offset_top").val(),o=$("#box_shadow_width").val(),n=$("#box_shadow_spread").val(),i=$("#box_shadow_color").val(),r=$("#box_shadow_color_hover").val();$(".output .result").find("a.normal").css("boxShadow",a+"px "+e+"px "+o+"px "+n+"px "+i),$(".output .result").find("a.hover").css("boxShadow",a+"px "+e+"px "+o+"px "+n+"px "+r)},maxAdmin.prototype.updateTextShadow=function(t,a){a=a||!1;var e=$("#text_shadow_offset_left").val(),o=$("#text_shadow_offset_top").val(),n=$("#text_shadow_width").val(),i=$("#text_shadow_color").val(),r=$("#text_shadow_color_hover").val(),s=$(t).attr("id"),d=this.fields[s];d.css="textShadow";var l=e+"px "+o+"px "+n+"px "+i;this.putCSS(d,l,"normal"),l=e+"px "+o+"px "+n+"px "+r,this.putCSS(d,l,"hover")},maxAdmin.prototype.updateAnchorText=function(t){0===$(".output .result").find("a .mb-text").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(t){this.updateGradient(!0),this.updateGradient(!1)},maxAdmin.prototype.updateDimension=function(t){var a=$(t).val(),e=$(t).attr("id"),o=this.fields[e];a>0?this.putCSS(o,a):this.putCSS(o,"auto")},maxAdmin.prototype.updateRadius=function(t){var a=t.val(),e=["radius_bottom_left","radius_bottom_right","radius_top_left","radius_top_right"];if("lock"==$("#radius_toggle").data("lock"))for(i=0;i<e.length;i++){var o=e[i];$("#"+o).val(a);var n=this.fields[o];this.putCSS(n,a+"px")}},maxAdmin.prototype.toggleRadiusLock=function(t){var a=$(t.target),e=$(a).data("lock");"lock"==e?($(a).removeClass("dashicons-lock").addClass("dashicons-unlock"),$(a).data("lock","unlock")):"unlock"==e&&($(a).removeClass("dashicons-unlock").addClass("dashicons-lock"),$(a).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 a=parseInt($(t.target).val());if(a<=parseInt($(t.target).attr("max"))){var e=$(t.target).data("url");window.location=e+"&paged="+a}},maxAdmin.prototype.toggleShortcode=function(t){$(".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 a=$(t.target),e=a.data("target"),o=$('.manual-entry[data-manual="'+e+'"]');if(o.is(":visible"))return o.hide(),!0;var n=$('[data-options="'+e+'"]').position().top+a.height();o.css("top",n),o.css("right",15),o.css("left","auto"),o.show()},maxAdmin.prototype.resetConditionals=function(){$("[data-show], [data-has]").each(function(){var t=$(this).data("show");if(void 0===t&&(t=$(this).data("has")),void 0!==t){var a=t.target;$(document).off("change",'[name="'+a+'"]')}else console.error($(this)+"has a improperly set conditional")})},maxAdmin.prototype.initConditionials=function(){var t=this;this.resetConditionals(),$("[data-show]").each(function(){var a=$(this).data("show"),e=a.target,o=a.values;$(document).on("change",'[name="'+e+'"]',{child:this,values:o},$.proxy(t.updateConditional,t)),$('[name="'+e+'"]').length>1?$('[name="'+e+'"]:checked').trigger("change",["conditional"]):$('[name="'+e+'"]').trigger("change",["conditional"])});var a=[];$("[data-has]").each(function(){var e=$(this).data("has"),o=e.target,n=e.values;$('[name="'+o+'"]').on("change",{target:o,child:this,values:n},$.proxy(t.updateHasConditional,t));var i='[name="'+o+'"]';$.inArray(i,a),a.push(i)}),a.length>0&&$(a.toString()).first().trigger("change",["conditional"])},maxAdmin.prototype.updateConditional=function(t){var a=t.data,e=a.values,o=a.child,n=$(t.currentTarget),i=$(n).val();if("checkbox"===n.attr("type")){var r=$(n).prop("checked");i="checked"==e&&r?"checked":"unchecked"!=e||r?0:"unchecked"}e.indexOf(i)>=0?($(o).fadeIn("fast"),$(o).find("input, select").trigger("change")):($(o).fadeOut("fast"),$(o).find("input, select").trigger("change"))},maxAdmin.prototype.updateHasConditional=function(t){var a=t.data,e=a.values,o=a.child,n=a.target,i=[];$(e).each(function(t){i.push("[value="+this+"]")}),$('[name="'+n+'"]').filter(i.toString()).length>0?$(o).fadeIn("fast"):$(o).fadeOut("fast")},maxAdmin.prototype.updateRange=function(t){if(void 0===t||null===t)a=$('input[type="range"]');else var a=[t.target];$(a).each(function(){var t=$(this).val();$(this).parents(".input").find(".range_value output").val(t+"%")})},maxAdmin.prototype.saveIndicator=function(t){this.form_updated=!!t},maxAdmin.prototype.formAjaxSave=function(t){t.preventDefault();var a=mb_ajax.ajaxurl,e=$(t.target).serialize();$.ajax({type:"POST",url:a,data:e}).done($.proxy(this.saveDone,this))},maxAdmin.prototype.saveDone=function(t){$("[data-form]").prop("disabled",!1);var a=$.parseJSON(t),e=a.result,o=a.title,n=a.data.id;if(void 0!==a.data.new_nonce){a.data.new_nonce;$('input[name="nonce"]').val(a.data.new_nonce)}if(e){$('input[name="collection_id"]').val(n);var i=window.location.href;-1===i.indexOf("collection_id")&&window.history.replaceState({},"",i+"&collection_id="+n),$(document).trigger("mbFormSaved");var r=$('input[name="sorted"]').val();$('input[name="previous_selection"]').val(r),a.data.reload&&document.location.reload(!0)}e||($modal=window.maxFoundry.maxModal,$modal.newModal("collection_error"),$modal.setTitle(o),$modal.setContent(a.body),$modal.setControls('<button class="modal_close button-primary">'+a.close_text+"</button>"),$modal.show())},maxAdmin.prototype.openURLDialog=function(t){return window.wpActiveEditor="url",wpLink.open(),$("#link-options").hide(),$(".query-results").css("top","70px"),$("#wp-link-submit").off("click keyup change"),$("#wp-link-submit").on("click",$.proxy(this.updateLink,this)),!1},maxAdmin.prototype.updateLink=function(t){t.preventDefault();var a=$("#wp-link-url").val(),e=maxadmin_settings.homeurl;return a=a.replace(e,""),$("#url").val(a),wpLink.close(),!1};
|
js/min/maxmodal.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
var maxModal;jQuery(document).ready(function(t){$=t,(maxModal=function(){}).prototype={currentModal:null,modals:[],controls:[],parent:"#maxbuttons",multiple:!1,windowHeight:!1,windowWidth:!1,setWidth:!1,setHeight:!1,target:!1},maxModal.prototype.init=function(){this.windowHeight=$(window).height(),this.windowWidth=$(window).width(),$(document).off("click",".maxmodal"),$(document).on("click",".maxmodal",$.proxy(this.buildModal,this)),$(window).on("resize",$.proxy(this.checkResize,this))},maxModal.prototype.focus=function(){this.currentModal.show()},maxModal.prototype.get=function(){return this.currentModal},maxModal.prototype.show=function(){$(".maxmodal_overlay").remove(),$("body").removeClass("max-modal-active"),this.writeOverlay(),this.currentModal.show(),this.setWidth&&this.currentModal.width(this.setWidth),this.setHeight&&this.currentModal.height(this.setHeight),$m=this.currentModal;var t=$m.find(".modal_header").outerHeight(),o=$m.find(".modal_content").outerHeight(),e=$m.find(".modal_content").width(),a=$m.find(".modal_controls").outerHeight(),i=t+o+a,d=e,n=(this.windowHeight-i)/2,s=(this.windowWidth-d)/2;if(n<30&&(n=30),i>this.windowHeight){newHeight=this.windowHeight-n-5,this.currentModal.height(newHeight);var l=newHeight-t-a;$m.find(".modal_content").height(l)}this.currentModal.css("left",s+"px"),this.currentModal.css("top",n+"px"),this.currentModal.css("height",i),$(".maxmodal_overlay").show(),$("body").addClass("max-modal-active"),$(document).off("keydown",$.proxy(this.keyPressHandler,this)),$(document).on("keydown",$.proxy(this.keyPressHandler,this)),this.currentModal.focus()},maxModal.prototype.keyPressHandler=function(t){27===t.keyCode&&this.close()},maxModal.prototype.checkResize=function(){this.windowHeight=$(window).height(),this.windowWidth=$(window).width(),null!==this.currentModal&&(this.currentModal.removeAttr("style"),this.currentModal.find(".modal_content").removeAttr("style"),this.currentModal.removeAttr("style"),this.show())},maxModal.prototype.close=function(){this.currentModal.trigger("modal_close",[this]),this.currentModal.remove(),this.currentModal=null,$(".maxmodal_overlay").remove(),$("body").removeClass("max-modal-active"),$(document).off("keydown",$.proxy(this.keyPressHandler,this))},maxModal.prototype.fadeOut=function(t){void 0==typeof t&&(t=600);var o=this;this.currentModal.fadeOut(t,function(){o.close()})},maxModal.prototype.setTitle=function(t){this.currentModal.find(".modal_title").text(t)},maxModal.prototype.resetControls=function(){this.controls=[]},maxModal.prototype.setControls=function(t){var o=this.currentModal.find(".modal_content"),e=$('<div class="modal_controls controls">');for(i=0;i<this.controls.length;i++)e.append(this.controls[i]);void 0!==t&&e.append(t),o.append(e),$(this.currentModal).find(".modal_close").off("click"),$(this.currentModal).find(".modal_close").on("click",$.proxy(this.close,this))},maxModal.prototype.addControl=function(t,o,e){var a="";switch(t){case"yes":a=modaltext.yes;break;case"ok":a=modaltext.ok;break;case"no":a=modaltext.no;break;case"cancel":a=modaltext.cancel;break;default:a=t,t="custom"}var i=$('<a class="button-primary '+t+'">'+a+"</a>");i.on("click",o,e),this.controls.push(i)},maxModal.prototype.setContent=function(t){this.currentModal.find(".modal_content").html(t)},maxModal.prototype.buildModal=function(t){t.preventDefault();var o=$(t.target);void 0===o.data("modal")&&(o=o.parents(".maxmodal")),this.target=o;var e=o.data("modal"),a=$("#"+e);void 0!==a.data("width")?this.setWidth=a.data("width"):this.setWidth=!1,void 0!==a.data("height")?this.setHeight=a.data("height"):this.setHeight=!1;var i=$(a).find(".title").text(),d=$(a).find(".controls").html(),n=$(a).find(".content").html();if(this.newModal(e),this.setTitle(i),this.setContent(n),this.setControls(d),void 0!==$(a).data("load")){var s=a.data("load")+"(modal)",l=new Function("modal",s);try{l(this)}catch(t){console.
|
1 |
+
var maxModal;jQuery(document).ready(function(t){$=t,(maxModal=function(){}).prototype={currentModal:null,modals:[],controls:[],parent:"#maxbuttons",multiple:!1,windowHeight:!1,windowWidth:!1,setWidth:!1,setHeight:!1,target:!1},maxModal.prototype.init=function(){this.windowHeight=$(window).height(),this.windowWidth=$(window).width(),$(document).off("click",".maxmodal"),$(document).on("click",".maxmodal",$.proxy(this.buildModal,this)),$(window).on("resize",$.proxy(this.checkResize,this))},maxModal.prototype.focus=function(){this.currentModal.show()},maxModal.prototype.get=function(){return this.currentModal},maxModal.prototype.show=function(){$(".maxmodal_overlay").remove(),$("body").removeClass("max-modal-active"),this.writeOverlay(),this.currentModal.show(),this.setWidth&&this.currentModal.width(this.setWidth),this.setHeight&&this.currentModal.height(this.setHeight),$m=this.currentModal;var t=$m.find(".modal_header").outerHeight(),o=$m.find(".modal_content").outerHeight(),e=$m.find(".modal_content").width(),a=$m.find(".modal_controls").outerHeight(),i=t+o+a,d=e,n=(this.windowHeight-i)/2,s=(this.windowWidth-d)/2;if(n<30&&(n=30),i>this.windowHeight){newHeight=this.windowHeight-n-5,this.currentModal.height(newHeight);var l=newHeight-t-a;$m.find(".modal_content").height(l)}this.currentModal.css("left",s+"px"),this.currentModal.css("top",n+"px"),this.currentModal.css("height",i),$(".maxmodal_overlay").show(),$("body").addClass("max-modal-active"),$(document).off("keydown",$.proxy(this.keyPressHandler,this)),$(document).on("keydown",$.proxy(this.keyPressHandler,this)),this.currentModal.focus()},maxModal.prototype.keyPressHandler=function(t){27===t.keyCode&&this.close()},maxModal.prototype.checkResize=function(){this.windowHeight=$(window).height(),this.windowWidth=$(window).width(),null!==this.currentModal&&(this.currentModal.removeAttr("style"),this.currentModal.find(".modal_content").removeAttr("style"),this.currentModal.removeAttr("style"),this.show())},maxModal.prototype.close=function(){this.currentModal.trigger("modal_close",[this]),this.currentModal.remove(),this.currentModal=null,$(".maxmodal_overlay").remove(),$("body").removeClass("max-modal-active"),$(document).off("keydown",$.proxy(this.keyPressHandler,this))},maxModal.prototype.fadeOut=function(t){void 0==typeof t&&(t=600);var o=this;this.currentModal.fadeOut(t,function(){o.close()})},maxModal.prototype.setTitle=function(t){this.currentModal.find(".modal_title").text(t)},maxModal.prototype.resetControls=function(){this.controls=[]},maxModal.prototype.setControls=function(t){var o=this.currentModal.find(".modal_content"),e=$('<div class="modal_controls controls">');for(i=0;i<this.controls.length;i++)e.append(this.controls[i]);void 0!==t&&e.append(t),o.append(e),$(this.currentModal).find(".modal_close").off("click"),$(this.currentModal).find(".modal_close").on("click",$.proxy(this.close,this))},maxModal.prototype.addControl=function(t,o,e){var a="";switch(t){case"yes":a=modaltext.yes;break;case"ok":a=modaltext.ok;break;case"no":a=modaltext.no;break;case"cancel":a=modaltext.cancel;break;default:a=t,t="custom"}var i=$('<a class="button-primary '+t+'">'+a+"</a>");i.on("click",o,e),this.controls.push(i)},maxModal.prototype.setContent=function(t){this.currentModal.find(".modal_content").html(t)},maxModal.prototype.buildModal=function(t){t.preventDefault();var o=$(t.target);void 0===o.data("modal")&&(o=o.parents(".maxmodal")),this.target=o;var e=o.data("modal"),a=$("#"+e);void 0!==a.data("width")?this.setWidth=a.data("width"):this.setWidth=!1,void 0!==a.data("height")?this.setHeight=a.data("height"):this.setHeight=!1;var i=$(a).find(".title").text(),d=$(a).find(".controls").html(),n=$(a).find(".content").html();if(this.newModal(e),this.setTitle(i),this.setContent(n),this.setControls(d),void 0!==$(a).data("load")){var s=a.data("load")+"(modal)",l=new Function("modal",s);try{l(this)}catch(t){console.error("MB Modal Callback Error: "+t.message),console.error("MB Mobdal tried calling: "+s)}}this.show()},maxModal.prototype.newModal=function(t){null!==this.currentModal&&this.close();var o=$('<div class="max-modal '+t+'" > \t\t\t\t\t\t <div class="modal_header"> \t\t\t\t\t\t\t <div class="modal_close dashicons dashicons-no"></div><h3 class="modal_title"></h3> \t\t\t\t\t\t </div> \t\t\t\t\t\t <div class="inner modal_content"></div>\t\t\t\t\t </div>');return $(this.parent).length>0?$(this.parent).append(o):$("body").append(o),$(o).draggable({handle:".modal_header"}),this.modals.push(o),this.currentModal=o,this.controls=[],this},maxModal.prototype.writeOverlay=function(){$(this.parent).append('<div class="maxmodal_overlay"></div>'),$(".maxmodal_overlay").on("click",$.proxy(this.close,this))}});
|
js/min/tinymce.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
tinymce.create("tinymce.plugins.maxButtons",{init:function(n,t){n.addButton("maxbutton",{title:"Insert MaxButton",image:maxButtonsTinyMCE.icon,onclick:function(){var n=new window.maxFoundry.maxMedia;n.init(),n.openModal()}})},createControl:function(n,t){return null}}),tinymce.PluginManager.add("maxButtons_tinymce",tinymce.plugins.maxButtons);
|
js/tinymce.js
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function() {
|
2 |
+
/* Register the buttons */
|
3 |
+
tinymce.create('tinymce.plugins.maxButtons', {
|
4 |
+
init : function(ed, url) {
|
5 |
+
/**
|
6 |
+
* Inserts shortcode content
|
7 |
+
*/
|
8 |
+
|
9 |
+
ed.addButton( 'maxbutton', {
|
10 |
+
title : 'Insert MaxButton',
|
11 |
+
image : maxButtonsTinyMCE.icon,
|
12 |
+
onclick : function() {
|
13 |
+
var mm = new window.maxFoundry.maxMedia();
|
14 |
+
mm.init();
|
15 |
+
mm.openModal();
|
16 |
+
}
|
17 |
+
});
|
18 |
+
},
|
19 |
+
createControl : function(n, cm) {
|
20 |
+
return null;
|
21 |
+
},
|
22 |
+
});
|
23 |
+
/* Start the buttons */
|
24 |
+
tinymce.PluginManager.add( 'maxButtons_tinymce', tinymce.plugins.maxButtons );
|
25 |
+
})();
|
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: 7.
|
7 |
Author: Max Foundry
|
8 |
Author URI: http://maxfoundry.com
|
9 |
Text Domain: maxbuttons
|
@@ -16,9 +16,9 @@ namespace MaxButtons;
|
|
16 |
if (! defined('MAXBUTTONS_ROOT_FILE'))
|
17 |
define("MAXBUTTONS_ROOT_FILE", __FILE__);
|
18 |
if (! defined('MAXBUTTONS_VERSION_NUM'))
|
19 |
-
define('MAXBUTTONS_VERSION_NUM', '7.
|
20 |
|
21 |
-
define('MAXBUTTONS_RELEASE',"
|
22 |
|
23 |
|
24 |
if (! function_exists('MaxButtons\maxbutton_double_load'))
|
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: 7.5
|
7 |
Author: Max Foundry
|
8 |
Author URI: http://maxfoundry.com
|
9 |
Text Domain: maxbuttons
|
16 |
if (! defined('MAXBUTTONS_ROOT_FILE'))
|
17 |
define("MAXBUTTONS_ROOT_FILE", __FILE__);
|
18 |
if (! defined('MAXBUTTONS_VERSION_NUM'))
|
19 |
+
define('MAXBUTTONS_VERSION_NUM', '7.5');
|
20 |
|
21 |
+
define('MAXBUTTONS_RELEASE',"21 Sept 2018");
|
22 |
|
23 |
|
24 |
if (! function_exists('MaxButtons\maxbutton_double_load'))
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: wordpress button plugin, share button, wordpress buttons, css3 button gene
|
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 4.9.8
|
6 |
Requires PHP: 5.4
|
7 |
-
Stable tag: 7.
|
8 |
|
9 |
WordPress button plugin so powerful and easy to use anyone can create beautiful buttons, share buttons and social icons.
|
10 |
|
@@ -255,6 +255,13 @@ Secondly, please use latin only characters for button name ( Basic settings) and
|
|
255 |
|
256 |
== Changelog ==
|
257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
= 7.4.1 =
|
259 |
|
260 |
* Fixed notice in 7.2 when button not found in Database
|
4 |
Requires at least: 4.8
|
5 |
Tested up to: 4.9.8
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 7.5
|
8 |
|
9 |
WordPress button plugin so powerful and easy to use anyone can create beautiful buttons, share buttons and social icons.
|
10 |
|
255 |
|
256 |
== Changelog ==
|
257 |
|
258 |
+
= 7.5 =
|
259 |
+
|
260 |
+
* New - Support for Gutenberg
|
261 |
+
* New - Button icon in TinyMCE interface
|
262 |
+
* Fixed - False positive compatibility notice for PHP 7.x
|
263 |
+
* Tweak - Prevents certain events from loading twice (performance)
|
264 |
+
|
265 |
= 7.4.1 =
|
266 |
|
267 |
* Fixed notice in 7.2 when button not found in Database
|