Version Description
- Fix - Saving buttons in Gutenberg block
- Fix - Extra classes could conflict with styling in certain situations
- Fix - Removed requirements for any user roles in adding buttons to content
- Fix - Icon in Gutenberg classic block
- Fix - Activation check could trigger notices when missing database table fields
- Fix - Bug when using Siteorigins in Widgets area
- Removed - Shortcake Font Awesome reference
Download this release
Release Info
Developer | basszje |
Plugin | WordPress Button Plugin MaxButtons |
Version | 7.6 |
Comparing to | |
See all releases |
Code changes from version 7.5.2 to 7.6
- assets/css/style.css +1 -1
- assets/integrations/gutenberg/blocks.build.js +110 -1
- assets/integrations/gutenberg/blocks.editor.build.css +25 -1
- assets/integrations/gutenberg/blocks.style.build.css +18 -1
- assets/integrations/gutenberg/gutenberg.php +2 -2
- assets/integrations/shortcake/shortcake.php +1 -9
- assets/integrations/siteorigins_builder/fields/maxbutton.class.php +17 -13
- assets/integrations/siteorigins_builder/widgets/maxbuttons-widget/maxbuttons-widget.php +1 -0
- assets/scss/_elements.scss +3 -3
- assets/scss/_input_range.scss +5 -5
- blocks/advanced.php +19 -4
- blocks/basic.php +1 -43
- blocks/tpl/slider.tpl +6 -5
- blocks/tpl/switch.tpl +1 -1
- classes/admin-class.php +0 -17
- classes/block.php +1 -0
- classes/button.php +19 -4
- classes/installation.php +10 -0
- classes/max-utils.php +3 -1
- classes/maxCSSParser.php +4 -2
- classes/maxbuttons-class.php +4 -9
- includes/maxbuttons-button.php +1 -2
- includes/maxbuttons-settings.php +3 -1
- js/maxajax.js +1 -0
- js/maxbuttons-admin.js +0 -14
- js/min/tinymce.js +1 -1
- js/tinymce.js +2 -2
- maxbuttons.php +3 -4
- readme.txt +12 -2
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;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}
|
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:8px 0 0 15px;float:right}#maxbuttons .option .range_value output{clear:both;font-size:15px;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;margin-top:8px}#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:5px;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:20px;width:20px;-webkit-appearance:none;margin-top:-8.5px}#maxbuttons [type='range']::-moz-range-track{cursor:pointer;height:5px;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:20px;width:20px}#maxbuttons [type='range']::-ms-track{cursor:pointer;height:5px;transition:all .2s ease;width:250px;background:transparent;border-color:transparent;border-width:10px 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:20px;width:20px;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/blocks.build.js
CHANGED
@@ -1 +1,110 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/******/ (function(modules) { // webpackBootstrap
|
2 |
+
/******/ // The module cache
|
3 |
+
/******/ var installedModules = {};
|
4 |
+
/******/
|
5 |
+
/******/ // The require function
|
6 |
+
/******/ function __webpack_require__(moduleId) {
|
7 |
+
/******/
|
8 |
+
/******/ // Check if module is in cache
|
9 |
+
/******/ if(installedModules[moduleId]) {
|
10 |
+
/******/ return installedModules[moduleId].exports;
|
11 |
+
/******/ }
|
12 |
+
/******/ // Create a new module (and put it into the cache)
|
13 |
+
/******/ var module = installedModules[moduleId] = {
|
14 |
+
/******/ i: moduleId,
|
15 |
+
/******/ l: false,
|
16 |
+
/******/ exports: {}
|
17 |
+
/******/ };
|
18 |
+
/******/
|
19 |
+
/******/ // Execute the module function
|
20 |
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21 |
+
/******/
|
22 |
+
/******/ // Flag the module as loaded
|
23 |
+
/******/ module.l = true;
|
24 |
+
/******/
|
25 |
+
/******/ // Return the exports of the module
|
26 |
+
/******/ return module.exports;
|
27 |
+
/******/ }
|
28 |
+
/******/
|
29 |
+
/******/
|
30 |
+
/******/ // expose the modules object (__webpack_modules__)
|
31 |
+
/******/ __webpack_require__.m = modules;
|
32 |
+
/******/
|
33 |
+
/******/ // expose the module cache
|
34 |
+
/******/ __webpack_require__.c = installedModules;
|
35 |
+
/******/
|
36 |
+
/******/ // define getter function for harmony exports
|
37 |
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
38 |
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
39 |
+
/******/ Object.defineProperty(exports, name, {
|
40 |
+
/******/ configurable: false,
|
41 |
+
/******/ enumerable: true,
|
42 |
+
/******/ get: getter
|
43 |
+
/******/ });
|
44 |
+
/******/ }
|
45 |
+
/******/ };
|
46 |
+
/******/
|
47 |
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
48 |
+
/******/ __webpack_require__.n = function(module) {
|
49 |
+
/******/ var getter = module && module.__esModule ?
|
50 |
+
/******/ function getDefault() { return module['default']; } :
|
51 |
+
/******/ function getModuleExports() { return module; };
|
52 |
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
53 |
+
/******/ return getter;
|
54 |
+
/******/ };
|
55 |
+
/******/
|
56 |
+
/******/ // Object.prototype.hasOwnProperty.call
|
57 |
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
58 |
+
/******/
|
59 |
+
/******/ // __webpack_public_path__
|
60 |
+
/******/ __webpack_require__.p = "";
|
61 |
+
/******/
|
62 |
+
/******/ // Load entry module and return exports
|
63 |
+
/******/ return __webpack_require__(__webpack_require__.s = 0);
|
64 |
+
/******/ })
|
65 |
+
/************************************************************************/
|
66 |
+
/******/ ([
|
67 |
+
/* 0 */
|
68 |
+
/*!**************************!*\
|
69 |
+
!*** ./src/mb-blocks.js ***!
|
70 |
+
\**************************/
|
71 |
+
/*! no exports provided */
|
72 |
+
/*! all exports used */
|
73 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
74 |
+
|
75 |
+
"use strict";
|
76 |
+
eval("Object.defineProperty(__webpack_exports__, \"__esModule\", { value: true });\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__maxbuttons_block_block_js__ = __webpack_require__(/*! ./maxbuttons-block/block.js */ 1);\n/**\n * Gutenberg Blocks\n *\n * All blocks related JavaScript files should be imported here.\n * You can create a new block folder in this dir and include code\n * for that block here as well.\n *\n * All blocks should be included here since this is the file that\n * Webpack is compiling as the input file.\n */\n\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMC5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9tYi1ibG9ja3MuanM/OTU3YSJdLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEd1dGVuYmVyZyBCbG9ja3NcbiAqXG4gKiBBbGwgYmxvY2tzIHJlbGF0ZWQgSmF2YVNjcmlwdCBmaWxlcyBzaG91bGQgYmUgaW1wb3J0ZWQgaGVyZS5cbiAqIFlvdSBjYW4gY3JlYXRlIGEgbmV3IGJsb2NrIGZvbGRlciBpbiB0aGlzIGRpciBhbmQgaW5jbHVkZSBjb2RlXG4gKiBmb3IgdGhhdCBibG9jayBoZXJlIGFzIHdlbGwuXG4gKlxuICogQWxsIGJsb2NrcyBzaG91bGQgYmUgaW5jbHVkZWQgaGVyZSBzaW5jZSB0aGlzIGlzIHRoZSBmaWxlIHRoYXRcbiAqIFdlYnBhY2sgaXMgY29tcGlsaW5nIGFzIHRoZSBpbnB1dCBmaWxlLlxuICovXG5cbmltcG9ydCAnLi9tYXhidXR0b25zLWJsb2NrL2Jsb2NrLmpzJztcblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9tYi1ibG9ja3MuanNcbi8vIG1vZHVsZSBpZCA9IDBcbi8vIG1vZHVsZSBjaHVua3MgPSAwIl0sIm1hcHBpbmdzIjoiQUFBQTtBQUFBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTsiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///0\n");
|
77 |
+
|
78 |
+
/***/ }),
|
79 |
+
/* 1 */
|
80 |
+
/*!***************************************!*\
|
81 |
+
!*** ./src/maxbuttons-block/block.js ***!
|
82 |
+
\***************************************/
|
83 |
+
/*! no exports provided */
|
84 |
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
85 |
+
|
86 |
+
"use strict";
|
87 |
+
eval("/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss__ = __webpack_require__(/*! ./style.scss */ 2);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__style_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__style_scss__);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss__ = __webpack_require__(/*! ./editor.scss */ 3);\n/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__editor_scss___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__editor_scss__);\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\n/**\n * BLOCK: maxbuttons-block\n *\n * Registering a basic block with Gutenberg.\n * Simple block, renders and saves the same content without any interactivity.\n */\n\n// Import CSS.\n\n\n\nvar __ = wp.i18n.__; // Import __() from wp.i18n\n\nvar registerBlockType = wp.blocks.registerBlockType; // Import registerBlockType() from wp.blocks\n\nvar InspectorControls = wp.editor.InspectorControls;\nvar _wp$components = wp.components,\n PanelBody = _wp$components.PanelBody,\n TextareaControl = _wp$components.TextareaControl,\n TextControl = _wp$components.TextControl,\n ToggleControl = _wp$components.ToggleControl,\n Button = _wp$components.Button;\nvar _wp$element = wp.element,\n Component = _wp$element.Component,\n Fragment = _wp$element.Fragment,\n createElement = _wp$element.createElement;\nvar withState = wp.compose.withState;\n\n/**\n * Register: aa Gutenberg Block.\n *\n * Registers a new block provided a unique name and an object defining its\n * behavior. Once registered, the block is made editor as an option to any\n * editor interface where blocks are implemented.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/\n * @param {string} name Block name.\n * @param {Object} settings Block settings.\n * @return {?WPBlock} The block, if it has been successfully\n * registered; otherwise `undefined`.\n */\n\nregisterBlockType('maxbuttons/maxbuttons-block', {\n\t// Block name. Block names must be string that contains a namespace prefix. Example: my-plugin/my-custom-block.\n\ttitle: __('MaxButtons Block'), // Block title.\n\ticon: createElement('img', {\n\t\t'src': mb_gutenberg.icon_url,\n\t\t'width': 20\n\t} // Block icon from Dashicons → https://developer.wordpress.org/resource/dashicons/.\n\t),\n\tcategory: 'common', // Block category — Group blocks together based on common traits E.g. common, formatting, layout widgets, embed.\n\tkeywords: [__('maxbuttons-block'), __('maxbuttons')],\n\tattributes: {\n\t\tid: {\n\t\t\ttype: 'string'\n\t\t},\n\t\tbutton_id: {\n\t\t\ttype: 'string'\n\t\t},\n\t\turl: {\n\t\t\ttype: 'string',\n\t\t\tattribute: 'url'\n\t\t},\n\t\ttext: {\n\t\t\ttype: 'string',\n\t\t\tattribute: 'text'\n\t\t},\n\t\ttext2: {\n\t\t\ttype: 'string'\n\t\t},\n\t\tnewwindow: {\n\t\t\ttype: 'boolean'\n\t\t},\n\t\trelnofollow: {\n\t\t\ttype: 'boolean'\n\t\t},\n\n\t\ttooltip: {\n\t\t\ttype: 'string'\n\t\t}\n\t},\n\n\t/**\n * The edit function describes the structure of your block in the context of the editor.\n * This represents what the editor will render when the block is used.\n *\n * The \"edit\" property must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tedit: function (_Component) {\n\t\t_inherits(edit, _Component);\n\n\t\tfunction edit(props) {\n\t\t\t_classCallCheck(this, edit);\n\n\t\t\tvar _this = _possibleConstructorReturn(this, (edit.__proto__ || Object.getPrototypeOf(edit)).call(this, props));\n\n\t\t\t_this.onChangeID = _this.onChangeID.bind(_this);\n\t\t\t_this.onChangeText = _this.onChangeText.bind(_this);\n\t\t\t_this.onChangeText2 = _this.onChangeText2.bind(_this);\n\t\t\t_this.onChangeURL = _this.onChangeURL.bind(_this);\n\t\t\t_this.onChangeTooltip = _this.onChangeTooltip.bind(_this);\n\n\t\t\t_this.updateNewWindow = _this.updateToggleAttribute('newwindow');\n\t\t\t_this.updateRelNoFollow = _this.updateToggleAttribute('relnofollow');\n\n\t\t\t_this.preventClick = _this.preventClick.bind(_this);\n\t\t\t_this.ajaxButton = _this.ajaxButton.bind(_this);\n\t\t\t_this.openButtonModal = _this.openButtonModal.bind(_this);\n\t\t\t_this.insertButton = _this.insertButton.bind(_this);\n\t\t\t_this.state = {\n\t\t\t\tstylefile: '',\n\t\t\t\tisPro: false\n\t\t\t};\n\n\t\t\t_this.button; // init\n\t\t\t_this.limitajax;\n\t\t\treturn _this;\n\t\t}\n\n\t\t_createClass(edit, [{\n\t\t\tkey: 'componentDidMount',\n\t\t\tvalue: function componentDidMount() {\n\t\t\t\tif (this.props.attributes.id) {\n\t\t\t\t\tthis.ajaxButton();\n\t\t\t\t}\n\n\t\t\t\tif (mb_gutenberg.ispro) {\n\t\t\t\t\tthis.setState({ isPro: true });\n\t\t\t\t}\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'ajaxButton',\n\t\t\tvalue: function ajaxButton(reset_atts) {\n\t\t\t\tclearTimeout(this.limitajax); // limit amount of refreshes via ajax.\n\t\t\t\tvar self = this;\n\n\t\t\t\tself.limitajax = setTimeout(function () {\n\t\t\t\t\tvar _self$props$attribute = self.props.attributes,\n\t\t\t\t\t id = _self$props$attribute.id,\n\t\t\t\t\t text = _self$props$attribute.text,\n\t\t\t\t\t text2 = _self$props$attribute.text2,\n\t\t\t\t\t url = _self$props$attribute.url,\n\t\t\t\t\t tooltip = _self$props$attribute.tooltip,\n\t\t\t\t\t newwindow = _self$props$attribute.newwindow,\n\t\t\t\t\t relnofollow = _self$props$attribute.relnofollow,\n\t\t\t\t\t className = _self$props$attribute.className;\n\n\n\t\t\t\t\twp.ajax.send('maxajax', {\n\t\t\t\t\t\tdata: {\n\t\t\t\t\t\t\tplugin_action: 'gutenberg_button',\n\t\t\t\t\t\t\tnonce: maxajax.nonce,\n\t\t\t\t\t\t\tid: id,\n\t\t\t\t\t\t\ttext: text,\n\t\t\t\t\t\t\ttext2: text2,\n\t\t\t\t\t\t\turl: url,\n\t\t\t\t\t\t\tlinktitle: tooltip,\n\t\t\t\t\t\t\tnewwindow: newwindow,\n\t\t\t\t\t\t\trelnofollow: relnofollow,\n\t\t\t\t\t\t\textraclass: className,\n\t\t\t\t\t\t\treset: reset_atts\n\t\t\t\t\t\t},\n\t\t\t\t\t\tsuccess: function success(data) {\n\t\t\t\t\t\t\tself.button = data.button;\n\t\t\t\t\t\t\tself.setState({ stylefile: data.style });\n\n\t\t\t\t\t\t\tif (data.attributes) {\n\t\t\t\t\t\t\t\tself.props.setAttributes(data.attributes);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\terror: function error(data) {}\n\t\t\t\t\t});\n\t\t\t\t}, 700);\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'preventClick',\n\t\t\tvalue: function preventClick(e) {\n\t\t\t\te.preventDefault();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'onChangeText',\n\t\t\tvalue: function onChangeText(value) {\n\t\t\t\tthis.props.setAttributes({ text: value });\n\t\t\t\tthis.ajaxButton();\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'onChangeText2',\n\t\t\tvalue: function onChangeText2(value) {\n\t\t\t\tthis.props.setAttributes({ text2: value });\n\t\t\t\tthis.ajaxButton();\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'onChangeTooltip',\n\t\t\tvalue: function onChangeTooltip(value) {\n\t\t\t\tthis.props.setAttributes({ tooltip: value });\n\t\t\t\tthis.ajaxButton();\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'onChangeURL',\n\t\t\tvalue: function onChangeURL(value) {\n\t\t\t\tthis.props.setAttributes({ url: value });\n\t\t\t\tthis.ajaxButton();\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'onChangeID',\n\t\t\tvalue: function onChangeID(value) {\n\t\t\t\t//\tajaxCall(value);\n\t\t\t\tthis.props.setAttributes({ id: value });\n\t\t\t\tthis.ajaxButton(true);\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'updateToggleAttribute',\n\t\t\tvalue: function updateToggleAttribute(propName) {\n\t\t\t\tvar _this2 = this;\n\n\t\t\t\treturn function () {\n\t\t\t\t\tvar value = _this2.props.attributes[propName];\n\t\t\t\t\tvar setAttributes = _this2.props.setAttributes;\n\n\n\t\t\t\t\tsetAttributes(_defineProperty({}, propName, !value));\n\t\t\t\t};\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'openButtonModal',\n\t\t\tvalue: function openButtonModal() {\n\t\t\t\tvar options = {};\n\t\t\t\toptions.callback = this.insertButton;\n\t\t\t\toptions.useShortCodeOptions = false;\n\n\t\t\t\tthis.maxmedia = new window.maxFoundry.maxMedia();\n\t\t\t\tthis.maxmedia.init(options);\n\t\t\t\tthis.maxmedia.openModal();\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'insertButton',\n\t\t\tvalue: function insertButton(button_id, target) {\n\t\t\t\tthis.onChangeID(button_id);\n\t\t\t\tthis.maxmedia.close();\n\t\t\t}\n\t\t}, {\n\t\t\tkey: 'render',\n\t\t\tvalue: function render() {\n\t\t\t\tvar _props = this.props,\n\t\t\t\t attributes = _props.attributes,\n\t\t\t\t setAttributes = _props.setAttributes,\n\t\t\t\t className = _props.className;\n\n\n\t\t\t\treturn [wp.element.createElement(\n\t\t\t\t\tInspectorControls,\n\t\t\t\t\t{ key: 'mb_inspector' },\n\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\tPanelBody,\n\t\t\t\t\t\t{ title: __('Button Settings') },\n\t\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t\tButton,\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tclassName: 'modal-button',\n\t\t\t\t\t\t\t\tisLarge: 'true',\n\t\t\t\t\t\t\t\tonClick: this.openButtonModal\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t' Select Button '\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(\n\t\t\t\t\t\t\t'h4',\n\t\t\t\t\t\t\tnull,\n\t\t\t\t\t\t\t'Button ID : ',\n\t\t\t\t\t\t\tattributes.id\n\t\t\t\t\t\t),\n\t\t\t\t\t\twp.element.createElement(TextControl, {\n\t\t\t\t\t\t\tlabel: __('Text'),\n\t\t\t\t\t\t\tvalue: attributes.text,\n\t\t\t\t\t\t\tonChange: this.onChangeText,\n\t\t\t\t\t\t\thelp: __('You can change the text of the Button.')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\tthis.state.isPro ? wp.element.createElement(TextControl, {\n\t\t\t\t\t\t\tlabel: __('Text2'),\n\t\t\t\t\t\t\tvalue: attributes.text2,\n\t\t\t\t\t\t\tonChange: this.onChangeText2\n\t\t\t\t\t\t}) : null,\n\t\t\t\t\t\twp.element.createElement(TextControl, {\n\t\t\t\t\t\t\tlabel: __('URL'),\n\t\t\t\t\t\t\tvalue: attributes.url,\n\t\t\t\t\t\t\tonChange: this.onChangeURL,\n\t\t\t\t\t\t\thelp: __('You can enter an alternative URL')\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\t\tlabel: __('Open in New Window'),\n\t\t\t\t\t\t\tchecked: attributes.newwindow,\n\t\t\t\t\t\t\tonChange: this.updateNewWindow\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(ToggleControl, {\n\t\t\t\t\t\t\tlabel: __('Use rel=\"nofollow\"'),\n\t\t\t\t\t\t\tchecked: attributes.relnofollow,\n\t\t\t\t\t\t\tonChange: this.updateRelNoFollow\n\t\t\t\t\t\t}),\n\t\t\t\t\t\twp.element.createElement(TextControl, {\n\t\t\t\t\t\t\tlabel: __('Tooltip'),\n\t\t\t\t\t\t\tvalue: attributes.tooltip,\n\t\t\t\t\t\t\tonChange: this.onChangeTooltip\n\t\t\t\t\t\t})\n\t\t\t\t\t)\n\t\t\t\t), wp.element.createElement(\n\t\t\t\t\t'div',\n\t\t\t\t\t{ className: className, key: 'mb_block' },\n\t\t\t\t\twp.element.createElement('span', { dangerouslySetInnerHTML: { __html: this.button }, onClick: this.preventClick }),\n\t\t\t\t\twp.element.createElement('link', { rel: 'stylesheet', href: this.state.stylefile }),\n\t\t\t\t\t!this.button ? wp.element.createElement(\n\t\t\t\t\t\t'div',\n\t\t\t\t\t\tnull,\n\t\t\t\t\t\t'To start, add a MaxButton via the Block Settings on the right.'\n\t\t\t\t\t) : wp.element.createElement('div', null)\n\t\t\t\t)];\n\t\t\t}\n\t\t}]);\n\n\t\treturn edit;\n\t}(Component),\n\n\t/**\n * The save function defines the way in which the different attributes should be combined\n * into the final markup, which is then serialized by Gutenberg into post_content.\n *\n * The \"save\" property must be specified and must be a valid function.\n *\n * @link https://wordpress.org/gutenberg/handbook/block-api/block-edit-save/\n */\n\tsave: function save(props) {\n\t\treturn null;\n\t}\n});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMS5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9tYXhidXR0b25zLWJsb2NrL2Jsb2NrLmpzP2NhMGMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIF9jcmVhdGVDbGFzcyA9IGZ1bmN0aW9uICgpIHsgZnVuY3Rpb24gZGVmaW5lUHJvcGVydGllcyh0YXJnZXQsIHByb3BzKS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NBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///1\n");
|
88 |
+
|
89 |
+
/***/ }),
|
90 |
+
/* 2 */
|
91 |
+
/*!*****************************************!*\
|
92 |
+
!*** ./src/maxbuttons-block/style.scss ***!
|
93 |
+
\*****************************************/
|
94 |
+
/*! dynamic exports provided */
|
95 |
+
/***/ (function(module, exports) {
|
96 |
+
|
97 |
+
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMi5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9tYXhidXR0b25zLWJsb2NrL3N0eWxlLnNjc3M/YTk1NiJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyByZW1vdmVkIGJ5IGV4dHJhY3QtdGV4dC13ZWJwYWNrLXBsdWdpblxuXG5cbi8vLy8vLy8vLy8vLy8vLy8vL1xuLy8gV0VCUEFDSyBGT09URVJcbi8vIC4vc3JjL21heGJ1dHRvbnMtYmxvY2svc3R5bGUuc2Nzc1xuLy8gbW9kdWxlIGlkID0gMlxuLy8gbW9kdWxlIGNodW5rcyA9IDAiXSwibWFwcGluZ3MiOiJBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///2\n");
|
98 |
+
|
99 |
+
/***/ }),
|
100 |
+
/* 3 */
|
101 |
+
/*!******************************************!*\
|
102 |
+
!*** ./src/maxbuttons-block/editor.scss ***!
|
103 |
+
\******************************************/
|
104 |
+
/*! dynamic exports provided */
|
105 |
+
/***/ (function(module, exports) {
|
106 |
+
|
107 |
+
eval("// removed by extract-text-webpack-plugin//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMy5qcyIsInNvdXJjZXMiOlsid2VicGFjazovLy8uL3NyYy9tYXhidXR0b25zLWJsb2NrL2VkaXRvci5zY3NzP2FkOTQiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gcmVtb3ZlZCBieSBleHRyYWN0LXRleHQtd2VicGFjay1wbHVnaW5cblxuXG4vLy8vLy8vLy8vLy8vLy8vLy9cbi8vIFdFQlBBQ0sgRk9PVEVSXG4vLyAuL3NyYy9tYXhidXR0b25zLWJsb2NrL2VkaXRvci5zY3NzXG4vLyBtb2R1bGUgaWQgPSAzXG4vLyBtb2R1bGUgY2h1bmtzID0gMCJdLCJtYXBwaW5ncyI6IkFBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///3\n");
|
108 |
+
|
109 |
+
/***/ })
|
110 |
+
/******/ ]);
|
assets/integrations/gutenberg/blocks.editor.build.css
CHANGED
@@ -1 +1,25 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* #.# Common SCSS
|
3 |
+
*
|
4 |
+
* Can include things like variables and mixins
|
5 |
+
* that are used across the project.
|
6 |
+
*/
|
7 |
+
/**
|
8 |
+
* #.# Editor Styles
|
9 |
+
*
|
10 |
+
* CSS for just Backend enqueued after style.scss
|
11 |
+
* which makes it higher in priority.
|
12 |
+
*/
|
13 |
+
.wp-block-cgb-block-maxbuttons-block {
|
14 |
+
background: #bada55;
|
15 |
+
border: 0.2rem solid #292929;
|
16 |
+
color: #292929;
|
17 |
+
margin: 0 auto;
|
18 |
+
max-width: 740px;
|
19 |
+
padding: 2rem; }
|
20 |
+
|
21 |
+
.maxbuttons-modal {
|
22 |
+
width: 80%; }
|
23 |
+
.maxbuttons-modal h1 {
|
24 |
+
font-size: 36px;
|
25 |
+
font-weight: 700; }
|
assets/integrations/gutenberg/blocks.style.build.css
CHANGED
@@ -1 +1,18 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* #.# Common SCSS
|
3 |
+
*
|
4 |
+
* Can include things like variables and mixins
|
5 |
+
* that are used across the project.
|
6 |
+
*/
|
7 |
+
/**
|
8 |
+
* #.# Styles
|
9 |
+
*
|
10 |
+
* CSS for both Frontend+Backend.
|
11 |
+
*/
|
12 |
+
.wp-block-cgb-block-maxbuttons-block {
|
13 |
+
background: orangered;
|
14 |
+
border: 0.2rem solid #292929;
|
15 |
+
color: #292929;
|
16 |
+
margin: 0 auto;
|
17 |
+
max-width: 740px;
|
18 |
+
padding: 2rem; }
|
assets/integrations/gutenberg/gutenberg.php
CHANGED
@@ -27,7 +27,7 @@ class gutenBerg{
|
|
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');
|
@@ -107,6 +107,7 @@ class gutenBerg{
|
|
107 |
$nofollow= $data['basic']['nofollow'];
|
108 |
|
109 |
$response['attributes'] = array(
|
|
|
110 |
'text' => $text,
|
111 |
'text2' => $text2,
|
112 |
'url' => $url,
|
@@ -121,7 +122,6 @@ class gutenBerg{
|
|
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;
|
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');
|
107 |
$nofollow= $data['basic']['nofollow'];
|
108 |
|
109 |
$response['attributes'] = array(
|
110 |
+
'id' => $id,
|
111 |
'text' => $text,
|
112 |
'text2' => $text2,
|
113 |
'url' => $url,
|
122 |
|
123 |
public static function render_shortcode($atts)
|
124 |
{
|
|
|
125 |
if (! isset($atts['id'])) // no id, no button
|
126 |
{
|
127 |
return;
|
assets/integrations/shortcake/shortcake.php
CHANGED
@@ -12,7 +12,7 @@ class mbCake
|
|
12 |
add_action('shortcode_ui_after_do_shortcode', array(maxUtils::namespaceit('mbCake'), 'shortcode'));
|
13 |
|
14 |
// Load FA within TinyMCE
|
15 |
-
|
16 |
|
17 |
}
|
18 |
|
@@ -49,14 +49,6 @@ class mbCake
|
|
49 |
}
|
50 |
}
|
51 |
|
52 |
-
public static function editor_styles()
|
53 |
-
{
|
54 |
-
$fa_url = apply_filters("mb_fa_url", MB()->get_plugin_url() . 'assets/libraries/font-awesome/css/font-awesome.min.css');
|
55 |
-
if ($fa_url != false && $fa_url != '')
|
56 |
-
{
|
57 |
-
add_editor_style($fa_url);
|
58 |
-
}
|
59 |
-
}
|
60 |
|
61 |
public static function register()
|
62 |
{
|
12 |
add_action('shortcode_ui_after_do_shortcode', array(maxUtils::namespaceit('mbCake'), 'shortcode'));
|
13 |
|
14 |
// Load FA within TinyMCE
|
15 |
+
// add_action('admin_enqueue_scripts', array(maxUtils::namespaceit('mbCake'), 'editor_styles')) ;
|
16 |
|
17 |
}
|
18 |
|
49 |
}
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
|
53 |
public static function register()
|
54 |
{
|
assets/integrations/siteorigins_builder/fields/maxbutton.class.php
CHANGED
@@ -81,38 +81,41 @@ class MaxButton_Widget_Field_MaxButton extends \SiteOrigin_Widget_Field_Base {
|
|
81 |
|
82 |
?>
|
83 |
<script language="javascript">
|
84 |
-
var sop_mm = new window.maxFoundry.maxMedia();
|
85 |
-
var mbbutton_number = '<?php echo $this->element_id ?>';
|
86 |
|
87 |
-
var
|
|
|
88 |
|
89 |
function insertSOPageBuilder(id)
|
90 |
{
|
91 |
var button = jQuery('.media-popup .maxbutton-' + id).parents('.shortcode-container').children().clone();
|
92 |
var button_id = id;
|
93 |
|
94 |
-
|
95 |
-
jQuery('.mbselected.' +
|
96 |
-
jQuery('.mbselected.' +
|
97 |
|
98 |
sop_mm.close();
|
99 |
return false;
|
100 |
}
|
101 |
|
102 |
|
103 |
-
function openButtonModal()
|
104 |
{
|
|
|
|
|
105 |
sop_mm.init({callback: insertSOPageBuilder, useShortCodeOptions: false});
|
106 |
sop_mm.openModal();
|
107 |
}
|
108 |
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
//openButtonModal();
|
113 |
-
}
|
114 |
</script>
|
115 |
-
<button class="button-primary maxbutton_media_button"
|
|
|
|
|
|
|
|
|
116 |
|
117 |
<p><h3><?php _e('Selected Button', 'maxbuttons') ?></h3></p>
|
118 |
<div class='mbselected <?php echo $this->element_id ?>'>
|
@@ -127,7 +130,8 @@ class MaxButton_Widget_Field_MaxButton extends \SiteOrigin_Widget_Field_Base {
|
|
127 |
}
|
128 |
?> </span>
|
129 |
|
130 |
-
<input type="hidden" class='sop_button_id'
|
|
|
131 |
|
132 |
|
133 |
</div>
|
81 |
|
82 |
?>
|
83 |
<script language="javascript">
|
|
|
|
|
84 |
|
85 |
+
var sop_mm;
|
86 |
+
var target_id;
|
87 |
|
88 |
function insertSOPageBuilder(id)
|
89 |
{
|
90 |
var button = jQuery('.media-popup .maxbutton-' + id).parents('.shortcode-container').children().clone();
|
91 |
var button_id = id;
|
92 |
|
93 |
+
jQuery('.mbselected.' + target_id).find(".the_button").html(button);
|
94 |
+
jQuery('.mbselected.' + target_id).find(".sop_button_id").val(button_id);
|
95 |
+
jQuery('.mbselected.' + target_id).find(".sop_button_id").trigger('change');
|
96 |
|
97 |
sop_mm.close();
|
98 |
return false;
|
99 |
}
|
100 |
|
101 |
|
102 |
+
function openButtonModal(el_id)
|
103 |
{
|
104 |
+
target_id = el_id;
|
105 |
+
sop_mm = new window.maxFoundry.maxMedia();
|
106 |
sop_mm.init({callback: insertSOPageBuilder, useShortCodeOptions: false});
|
107 |
sop_mm.openModal();
|
108 |
}
|
109 |
|
110 |
|
111 |
+
//jQuery(document).on('change', '.sop_button_id', function () { console.log('blah') });
|
112 |
+
|
|
|
|
|
113 |
</script>
|
114 |
+
<button class="button-primary maxbutton_media_button"
|
115 |
+
id="mbbutton-<?php echo static::$field_count ?>"
|
116 |
+
data-nonce="<?php echo $nonce ?>" data-callback='insertSOPageBuilder' onClick="openButtonModal('<?php echo $this->element_id ?>')" type='button'><?php _e("Select a Button"); ?></button>
|
117 |
+
|
118 |
+
<input type='hidden' name='sop_element_id' value="<?php echo $this->element_id ?>"
|
119 |
|
120 |
<p><h3><?php _e('Selected Button', 'maxbuttons') ?></h3></p>
|
121 |
<div class='mbselected <?php echo $this->element_id ?>'>
|
130 |
}
|
131 |
?> </span>
|
132 |
|
133 |
+
<input type="hidden" class='sop_button_id'
|
134 |
+
value="<?php echo esc_attr( is_array( $value ) ? '-1' : $value ) ?>" name="<?php echo esc_attr( $this->element_name ) ?>" class="siteorigin-widget-input" />
|
135 |
|
136 |
|
137 |
</div>
|
assets/integrations/siteorigins_builder/widgets/maxbuttons-widget/maxbuttons-widget.php
CHANGED
@@ -50,6 +50,7 @@ class Widget_MaxButtons_Widget extends \SiteOrigin_Widget {
|
|
50 |
plugin_dir_path(__FILE__)
|
51 |
);
|
52 |
|
|
|
53 |
|
54 |
|
55 |
}
|
50 |
plugin_dir_path(__FILE__)
|
51 |
);
|
52 |
|
53 |
+
// MB()->load_media_script();
|
54 |
|
55 |
|
56 |
}
|
assets/scss/_elements.scss
CHANGED
@@ -287,11 +287,11 @@ textarea {
|
|
287 |
|
288 |
.option .range_value
|
289 |
{
|
290 |
-
margin
|
291 |
-
|
292 |
output {
|
293 |
clear: both;
|
294 |
-
font-size:
|
295 |
text-align: center;
|
296 |
width: 100%;
|
297 |
display: inline-block;
|
287 |
|
288 |
.option .range_value
|
289 |
{
|
290 |
+
margin: 8px 0 0 15px;
|
291 |
+
float: right;
|
292 |
output {
|
293 |
clear: both;
|
294 |
+
font-size: 15px;
|
295 |
text-align: center;
|
296 |
width: 100%;
|
297 |
display: inline-block;
|
assets/scss/_input_range.scss
CHANGED
@@ -8,8 +8,8 @@ $track-color: #fff !default;
|
|
8 |
$thumb-color: #179588 !default;
|
9 |
|
10 |
$thumb-radius: 12px !default;
|
11 |
-
$thumb-height:
|
12 |
-
$thumb-width:
|
13 |
$thumb-shadow-size: 0px !default;
|
14 |
$thumb-shadow-blur: 0px !default;
|
15 |
$thumb-shadow-color: rgba(0, 0, 0, .2) !default;
|
@@ -17,7 +17,7 @@ $thumb-border-width: 0px !default;
|
|
17 |
$thumb-border-color: #eceff1 !default;
|
18 |
|
19 |
$track-width: 250px !default;
|
20 |
-
$track-height:
|
21 |
$track-shadow-size: 0px !default;
|
22 |
$track-shadow-blur: 0px !default;
|
23 |
$track-shadow-color: rgba(0, 0, 0, .2) !default;
|
@@ -46,13 +46,14 @@ $contrast: 5% !default;
|
|
46 |
cursor: pointer;
|
47 |
height: $thumb-height;
|
48 |
width: $thumb-width;
|
49 |
-
|
50 |
}
|
51 |
|
52 |
[type='range'] {
|
53 |
-webkit-appearance: none;
|
54 |
//margin: $thumb-height / 2 0;
|
55 |
width: $track-width;
|
|
|
56 |
|
57 |
&:focus {
|
58 |
outline: 0;
|
@@ -123,4 +124,3 @@ $contrast: 5% !default;
|
|
123 |
margin-top: 0;
|
124 |
}
|
125 |
}
|
126 |
-
|
8 |
$thumb-color: #179588 !default;
|
9 |
|
10 |
$thumb-radius: 12px !default;
|
11 |
+
$thumb-height: 20px !default;
|
12 |
+
$thumb-width: 20px !default;
|
13 |
$thumb-shadow-size: 0px !default;
|
14 |
$thumb-shadow-blur: 0px !default;
|
15 |
$thumb-shadow-color: rgba(0, 0, 0, .2) !default;
|
17 |
$thumb-border-color: #eceff1 !default;
|
18 |
|
19 |
$track-width: 250px !default;
|
20 |
+
$track-height: 5px !default;
|
21 |
$track-shadow-size: 0px !default;
|
22 |
$track-shadow-blur: 0px !default;
|
23 |
$track-shadow-color: rgba(0, 0, 0, .2) !default;
|
46 |
cursor: pointer;
|
47 |
height: $thumb-height;
|
48 |
width: $thumb-width;
|
49 |
+
|
50 |
}
|
51 |
|
52 |
[type='range'] {
|
53 |
-webkit-appearance: none;
|
54 |
//margin: $thumb-height / 2 0;
|
55 |
width: $track-width;
|
56 |
+
margin-top: 8px;
|
57 |
|
58 |
&:focus {
|
59 |
outline: 0;
|
124 |
margin-top: 0;
|
125 |
}
|
126 |
}
|
|
blocks/advanced.php
CHANGED
@@ -73,12 +73,11 @@ class advancedBlock extends maxBlock
|
|
73 |
$anchor->rel .= $custom_rel;
|
74 |
}
|
75 |
|
76 |
-
|
77 |
{
|
78 |
$extra = trim($data["extra_classes"]);
|
79 |
$anchor->class .= ' ' . $extra;
|
80 |
-
|
81 |
-
}
|
82 |
|
83 |
if (isset($data["external_css"]) && $data["external_css"] == 1)
|
84 |
{
|
@@ -89,6 +88,22 @@ class advancedBlock extends maxBlock
|
|
89 |
|
90 |
}
|
91 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
92 |
public function admin_fields()
|
93 |
{
|
94 |
$data = $this->data[$this->blockname];
|
@@ -128,7 +143,7 @@ class advancedBlock extends maxBlock
|
|
128 |
$class->label = __("Extra classes","maxbuttons");
|
129 |
$class->value = maxBlocks::getValue($class->id);
|
130 |
$class->note = __("Useful for custom code or other plugins who target classes", "maxbuttons");
|
131 |
-
$class->help = "<p class='shortcode'>Shortcode attribute : extraclass </p> <p>Using attribute will add classes, not replace them </p> ";
|
132 |
//$class->output('start','end');
|
133 |
|
134 |
$admin->addField($class, 'start', 'end');
|
73 |
$anchor->rel .= $custom_rel;
|
74 |
}
|
75 |
|
76 |
+
/* if (isset($data["extra_classes"]) && trim($data["extra_classes"]) != '')
|
77 |
{
|
78 |
$extra = trim($data["extra_classes"]);
|
79 |
$anchor->class .= ' ' . $extra;
|
80 |
+
} */
|
|
|
81 |
|
82 |
if (isset($data["external_css"]) && $data["external_css"] == 1)
|
83 |
{
|
88 |
|
89 |
}
|
90 |
|
91 |
+
public function post_parse_button($domObj, $mode = 'normal')
|
92 |
+
{
|
93 |
+
$data = $this->data[$this->blockname];
|
94 |
+
$button_id = $this->data["id"];
|
95 |
+
$anchor = $domObj->find("a",0);
|
96 |
+
|
97 |
+
if (isset($data["extra_classes"]) && trim($data["extra_classes"]) != '')
|
98 |
+
{
|
99 |
+
$extra = trim($data["extra_classes"]);
|
100 |
+
$anchor->class .= ' ' . $extra;
|
101 |
+
}
|
102 |
+
|
103 |
+
return $domObj;
|
104 |
+
}
|
105 |
+
|
106 |
+
|
107 |
public function admin_fields()
|
108 |
{
|
109 |
$data = $this->data[$this->blockname];
|
143 |
$class->label = __("Extra classes","maxbuttons");
|
144 |
$class->value = maxBlocks::getValue($class->id);
|
145 |
$class->note = __("Useful for custom code or other plugins who target classes", "maxbuttons");
|
146 |
+
$class->help = "<p class='shortcode'>Shortcode attribute : extraclass </p> <p>Using attribute will add classes, not replace them </p> ";
|
147 |
//$class->output('start','end');
|
148 |
|
149 |
$admin->addField($class, 'start', 'end');
|
blocks/basic.php
CHANGED
@@ -230,12 +230,10 @@ class basicBlock extends maxBlock
|
|
230 |
// Name
|
231 |
$field_name = new maxField() ;
|
232 |
$field_name->label = __('Button Name', 'maxbuttons');
|
233 |
-
// $field_name->note = __('Something that you can quickly identify the button with.', 'maxbuttons');
|
234 |
$field_name->value = maxBlocks::getValue('name');
|
235 |
$field_name->id = 'name';
|
236 |
$field_name->name = $field_name->id;
|
237 |
$field_name->placeholder = __("Button Name","maxbuttons");
|
238 |
-
// $field_name->output('start','end');
|
239 |
|
240 |
$admin->addField($field_name, 'start', 'end');
|
241 |
|
@@ -252,8 +250,6 @@ class basicBlock extends maxBlock
|
|
252 |
<li> /local-page/ </li>
|
253 |
<li> javascript:window.history.back(); </li></ul></p>
|
254 |
<p class='shortcode'> Shortcode attribute : url </p> ";
|
255 |
-
|
256 |
-
//$field_url->output('start','end');
|
257 |
$admin->addField($field_url,'start');
|
258 |
|
259 |
$url_button = new maxField('button');
|
@@ -273,8 +269,6 @@ class basicBlock extends maxBlock
|
|
273 |
$fspacer = new maxField('spacer');
|
274 |
$fspacer->name = 'url_options';
|
275 |
$fspacer->label = ' ';
|
276 |
-
// $fspacer->output('start');
|
277 |
-
|
278 |
$admin->addField($fspacer, 'start');
|
279 |
|
280 |
// New Window
|
@@ -283,10 +277,7 @@ class basicBlock extends maxBlock
|
|
283 |
$fwindow->name = 'new_window';
|
284 |
$fwindow->id = $fwindow->name;
|
285 |
$fwindow->value = 1;
|
286 |
-
//$fwindow->inputclass = 'check_button';
|
287 |
$fwindow->checked = checked( maxBlocks::getValue('new_window'), 1, false);
|
288 |
-
|
289 |
-
//$fwindow->output('','');
|
290 |
$admin->addField($fwindow);
|
291 |
|
292 |
// NoRel
|
@@ -296,8 +287,6 @@ class basicBlock extends maxBlock
|
|
296 |
$ffollow->name = 'nofollow';
|
297 |
$ffollow->id = $ffollow->name;
|
298 |
$ffollow->checked = checked( maxBlocks::getValue('nofollow'), 1, false);
|
299 |
-
|
300 |
-
//$ffollow->output('','end');
|
301 |
$admin->addField($ffollow, '','end');
|
302 |
// TITLE
|
303 |
|
@@ -308,8 +297,6 @@ class basicBlock extends maxBlock
|
|
308 |
$field_title->value = maxBlocks::getValue('link_title');
|
309 |
$field_title->help = __('<p>This text will appear when hovering over the button</p>
|
310 |
<p class="shortcode">Shortcode attribute : linktitle</p>', 'maxbuttons');
|
311 |
-
|
312 |
-
//$field_title->output('start','end');
|
313 |
$admin->addField($field_title, 'start', 'end');
|
314 |
|
315 |
// TEXT
|
@@ -318,8 +305,6 @@ class basicBlock extends maxBlock
|
|
318 |
$field_text->name = 'text';
|
319 |
$field_text->id = 'text';
|
320 |
$field_text->value = maxBlocks::getValue('text') ;
|
321 |
-
|
322 |
-
// $field_text->output('start','end');
|
323 |
$admin->addField($field_text, 'start', 'end');
|
324 |
|
325 |
// FONTS
|
@@ -342,15 +327,11 @@ class basicBlock extends maxBlock
|
|
342 |
|
343 |
|
344 |
$field_size = new maxField('number');
|
345 |
-
// $field_size->label = '';
|
346 |
$field_size->name = 'font_size';
|
347 |
$field_size->id= $field_size->name;
|
348 |
$field_size->inputclass = 'tiny';
|
349 |
$field_size->min = 8;
|
350 |
$field_size->value = maxUtils::strip_px(maxBlocks::getValue('font_size'));
|
351 |
-
//$field_size->content = maxUtils::selectify($field_size->name, $sizes, $field_size->value, '', 'small');
|
352 |
-
|
353 |
-
//$field_size->output();
|
354 |
$admin->addField($field_size);
|
355 |
|
356 |
// Font style checkboxes
|
@@ -362,8 +343,6 @@ class basicBlock extends maxBlock
|
|
362 |
$fweight->value = 'bold';
|
363 |
$fweight->inputclass = 'check_button icon';
|
364 |
$fweight->checked = checked( maxBlocks::getValue('font_weight'), 'bold', false);
|
365 |
-
|
366 |
-
// $fweight->output('group_start');
|
367 |
$admin->addField($fweight, 'group_start');
|
368 |
|
369 |
$fstyle = new maxField('checkbox');
|
@@ -374,8 +353,6 @@ class basicBlock extends maxBlock
|
|
374 |
$fstyle->value = 'italic';
|
375 |
$fstyle->inputclass = 'check_button icon';
|
376 |
$fstyle->checked = checked( maxBlocks::getValue('font_style'), 'italic', false);
|
377 |
-
|
378 |
-
//$fstyle->output('','group_end');
|
379 |
$admin->addField($fstyle, '', 'group_end');
|
380 |
|
381 |
$falign_left = new maxField('radio');
|
@@ -386,8 +363,6 @@ class basicBlock extends maxBlock
|
|
386 |
$falign_left->value = 'left';
|
387 |
$falign_left->inputclass = 'check_button icon';
|
388 |
$falign_left->checked = checked ( maxblocks::getValue('text_align'), 'left', false);
|
389 |
-
|
390 |
-
//$falign_left->output('group_start');
|
391 |
$admin->addField($falign_left, 'group_start');
|
392 |
|
393 |
$falign_center = new maxField('radio');
|
@@ -398,8 +373,6 @@ class basicBlock extends maxBlock
|
|
398 |
$falign_center->value = 'center';
|
399 |
$falign_center->inputclass = 'check_button icon';
|
400 |
$falign_center->checked = checked( maxblocks::getValue('text_align'), 'center', false);
|
401 |
-
|
402 |
-
//$falign_center->output();
|
403 |
$admin->addField($falign_center);
|
404 |
|
405 |
$falign_right = new maxField('radio');
|
@@ -410,8 +383,6 @@ class basicBlock extends maxBlock
|
|
410 |
$falign_right->value = 'right';
|
411 |
$falign_right->inputclass = 'check_button icon';
|
412 |
$falign_right->checked = checked( maxblocks::getValue('text_align'), 'right', false);
|
413 |
-
|
414 |
-
//$falign_right->output('', array('group_end','end') );
|
415 |
$admin->addField($falign_right, '', array('group_end','end') );
|
416 |
|
417 |
// Padding - trouble
|
@@ -423,8 +394,6 @@ class basicBlock extends maxBlock
|
|
423 |
$ptop->inputclass = 'tiny';
|
424 |
$ptop->before_input = '<img src="' . $icon_url . 'p_top.png" title="' . __("Padding Top","maxbuttons") . '" >';
|
425 |
$ptop->value = maxUtils::strip_px(maxBlocks::getValue('padding_top'));
|
426 |
-
|
427 |
-
//$ptop->output('start');
|
428 |
$admin->addField($ptop,'start');
|
429 |
|
430 |
$pright = new maxField('number');
|
@@ -434,8 +403,6 @@ class basicBlock extends maxBlock
|
|
434 |
$pright->inputclass = 'tiny';
|
435 |
$pright->before_input = '<img src="' . $icon_url . 'p_right.png" class="icon padding" title="' . __("Padding Right","maxbuttons") . '" >';
|
436 |
$pright->value = maxUtils::strip_px(maxBlocks::getValue('padding_right'));
|
437 |
-
|
438 |
-
//$pright->output();
|
439 |
$admin->addField($pright);
|
440 |
|
441 |
$pbottom = new maxField('number');
|
@@ -445,8 +412,6 @@ class basicBlock extends maxBlock
|
|
445 |
$pbottom->inputclass = 'tiny';
|
446 |
$pbottom->before_input = '<img src="' . $icon_url . 'p_bottom.png" class="icon padding" title="' . __("Padding Bottom","maxbuttons") . '" >';
|
447 |
$pbottom->value = maxUtils::strip_px(maxBlocks::getValue('padding_bottom'));
|
448 |
-
|
449 |
-
//$pbottom->output();
|
450 |
$admin->addField($pbottom);
|
451 |
|
452 |
$pleft = new maxField('number');
|
@@ -456,8 +421,6 @@ class basicBlock extends maxBlock
|
|
456 |
$pleft->inputclass = 'tiny';
|
457 |
$pleft->before_input = '<img src="' . $icon_url . 'p_left.png" class="icon padding" title="' . __("Padding Left","maxbuttons") . '" >';
|
458 |
$pleft->value = maxUtils::strip_px(maxBlocks::getValue('padding_left'));
|
459 |
-
|
460 |
-
//$pleft->output('','end');
|
461 |
$admin->addField($pleft,'', 'end');
|
462 |
|
463 |
|
@@ -472,8 +435,6 @@ class basicBlock extends maxBlock
|
|
472 |
$fcolor->copypos = 'right';
|
473 |
$fcolor->right_title = $color_copy_move;
|
474 |
$fcolor->left_title = $color_copy_self;
|
475 |
-
|
476 |
-
// $fcolor->output('start');
|
477 |
$admin->addField($fcolor, 'start');
|
478 |
|
479 |
// Text Color Hover
|
@@ -487,7 +448,6 @@ class basicBlock extends maxBlock
|
|
487 |
$fcolor_hover->copypos = 'left';
|
488 |
$fcolor_hover->right_title = $color_copy_self;
|
489 |
$fcolor_hover->left_title = $color_copy_move;
|
490 |
-
//$fcolor_hover->output('','end');
|
491 |
|
492 |
$admin->addField($fcolor_hover, '','end');
|
493 |
|
@@ -499,7 +459,6 @@ class basicBlock extends maxBlock
|
|
499 |
$field_width->inputclass = 'small';
|
500 |
$field_width->min = 0;
|
501 |
$field_width->value= maxUtils::strip_px(maxBlocks::getValue('button_width')); // strippx?
|
502 |
-
//$field_width->output('start');
|
503 |
|
504 |
$admin->addField($field_width, 'start');
|
505 |
|
@@ -511,7 +470,6 @@ class basicBlock extends maxBlock
|
|
511 |
$field_height->inputclass = 'small';
|
512 |
$field_height->min = 0;
|
513 |
$field_height->value= maxUtils::strip_px(maxBlocks::getValue('button_height')); // strippx?
|
514 |
-
//$field_height->output('','end');
|
515 |
|
516 |
$admin->addField($field_height, '', 'end');
|
517 |
|
@@ -528,10 +486,10 @@ class basicBlock extends maxBlock
|
|
528 |
$field_desc->esc_function = 'esc_textarea';
|
529 |
$field_desc->value = maxBlocks::getValue('description') ;
|
530 |
$field_desc->placeholder = __('Brief explanation about how and where the button is used.','maxbuttons');
|
531 |
-
//$field_desc->output('start','end');
|
532 |
|
533 |
$admin->addField($field_desc, 'start', 'end');
|
534 |
|
|
|
535 |
$admin->display_fields();
|
536 |
?>
|
537 |
|
230 |
// Name
|
231 |
$field_name = new maxField() ;
|
232 |
$field_name->label = __('Button Name', 'maxbuttons');
|
|
|
233 |
$field_name->value = maxBlocks::getValue('name');
|
234 |
$field_name->id = 'name';
|
235 |
$field_name->name = $field_name->id;
|
236 |
$field_name->placeholder = __("Button Name","maxbuttons");
|
|
|
237 |
|
238 |
$admin->addField($field_name, 'start', 'end');
|
239 |
|
250 |
<li> /local-page/ </li>
|
251 |
<li> javascript:window.history.back(); </li></ul></p>
|
252 |
<p class='shortcode'> Shortcode attribute : url </p> ";
|
|
|
|
|
253 |
$admin->addField($field_url,'start');
|
254 |
|
255 |
$url_button = new maxField('button');
|
269 |
$fspacer = new maxField('spacer');
|
270 |
$fspacer->name = 'url_options';
|
271 |
$fspacer->label = ' ';
|
|
|
|
|
272 |
$admin->addField($fspacer, 'start');
|
273 |
|
274 |
// New Window
|
277 |
$fwindow->name = 'new_window';
|
278 |
$fwindow->id = $fwindow->name;
|
279 |
$fwindow->value = 1;
|
|
|
280 |
$fwindow->checked = checked( maxBlocks::getValue('new_window'), 1, false);
|
|
|
|
|
281 |
$admin->addField($fwindow);
|
282 |
|
283 |
// NoRel
|
287 |
$ffollow->name = 'nofollow';
|
288 |
$ffollow->id = $ffollow->name;
|
289 |
$ffollow->checked = checked( maxBlocks::getValue('nofollow'), 1, false);
|
|
|
|
|
290 |
$admin->addField($ffollow, '','end');
|
291 |
// TITLE
|
292 |
|
297 |
$field_title->value = maxBlocks::getValue('link_title');
|
298 |
$field_title->help = __('<p>This text will appear when hovering over the button</p>
|
299 |
<p class="shortcode">Shortcode attribute : linktitle</p>', 'maxbuttons');
|
|
|
|
|
300 |
$admin->addField($field_title, 'start', 'end');
|
301 |
|
302 |
// TEXT
|
305 |
$field_text->name = 'text';
|
306 |
$field_text->id = 'text';
|
307 |
$field_text->value = maxBlocks::getValue('text') ;
|
|
|
|
|
308 |
$admin->addField($field_text, 'start', 'end');
|
309 |
|
310 |
// FONTS
|
327 |
|
328 |
|
329 |
$field_size = new maxField('number');
|
|
|
330 |
$field_size->name = 'font_size';
|
331 |
$field_size->id= $field_size->name;
|
332 |
$field_size->inputclass = 'tiny';
|
333 |
$field_size->min = 8;
|
334 |
$field_size->value = maxUtils::strip_px(maxBlocks::getValue('font_size'));
|
|
|
|
|
|
|
335 |
$admin->addField($field_size);
|
336 |
|
337 |
// Font style checkboxes
|
343 |
$fweight->value = 'bold';
|
344 |
$fweight->inputclass = 'check_button icon';
|
345 |
$fweight->checked = checked( maxBlocks::getValue('font_weight'), 'bold', false);
|
|
|
|
|
346 |
$admin->addField($fweight, 'group_start');
|
347 |
|
348 |
$fstyle = new maxField('checkbox');
|
353 |
$fstyle->value = 'italic';
|
354 |
$fstyle->inputclass = 'check_button icon';
|
355 |
$fstyle->checked = checked( maxBlocks::getValue('font_style'), 'italic', false);
|
|
|
|
|
356 |
$admin->addField($fstyle, '', 'group_end');
|
357 |
|
358 |
$falign_left = new maxField('radio');
|
363 |
$falign_left->value = 'left';
|
364 |
$falign_left->inputclass = 'check_button icon';
|
365 |
$falign_left->checked = checked ( maxblocks::getValue('text_align'), 'left', false);
|
|
|
|
|
366 |
$admin->addField($falign_left, 'group_start');
|
367 |
|
368 |
$falign_center = new maxField('radio');
|
373 |
$falign_center->value = 'center';
|
374 |
$falign_center->inputclass = 'check_button icon';
|
375 |
$falign_center->checked = checked( maxblocks::getValue('text_align'), 'center', false);
|
|
|
|
|
376 |
$admin->addField($falign_center);
|
377 |
|
378 |
$falign_right = new maxField('radio');
|
383 |
$falign_right->value = 'right';
|
384 |
$falign_right->inputclass = 'check_button icon';
|
385 |
$falign_right->checked = checked( maxblocks::getValue('text_align'), 'right', false);
|
|
|
|
|
386 |
$admin->addField($falign_right, '', array('group_end','end') );
|
387 |
|
388 |
// Padding - trouble
|
394 |
$ptop->inputclass = 'tiny';
|
395 |
$ptop->before_input = '<img src="' . $icon_url . 'p_top.png" title="' . __("Padding Top","maxbuttons") . '" >';
|
396 |
$ptop->value = maxUtils::strip_px(maxBlocks::getValue('padding_top'));
|
|
|
|
|
397 |
$admin->addField($ptop,'start');
|
398 |
|
399 |
$pright = new maxField('number');
|
403 |
$pright->inputclass = 'tiny';
|
404 |
$pright->before_input = '<img src="' . $icon_url . 'p_right.png" class="icon padding" title="' . __("Padding Right","maxbuttons") . '" >';
|
405 |
$pright->value = maxUtils::strip_px(maxBlocks::getValue('padding_right'));
|
|
|
|
|
406 |
$admin->addField($pright);
|
407 |
|
408 |
$pbottom = new maxField('number');
|
412 |
$pbottom->inputclass = 'tiny';
|
413 |
$pbottom->before_input = '<img src="' . $icon_url . 'p_bottom.png" class="icon padding" title="' . __("Padding Bottom","maxbuttons") . '" >';
|
414 |
$pbottom->value = maxUtils::strip_px(maxBlocks::getValue('padding_bottom'));
|
|
|
|
|
415 |
$admin->addField($pbottom);
|
416 |
|
417 |
$pleft = new maxField('number');
|
421 |
$pleft->inputclass = 'tiny';
|
422 |
$pleft->before_input = '<img src="' . $icon_url . 'p_left.png" class="icon padding" title="' . __("Padding Left","maxbuttons") . '" >';
|
423 |
$pleft->value = maxUtils::strip_px(maxBlocks::getValue('padding_left'));
|
|
|
|
|
424 |
$admin->addField($pleft,'', 'end');
|
425 |
|
426 |
|
435 |
$fcolor->copypos = 'right';
|
436 |
$fcolor->right_title = $color_copy_move;
|
437 |
$fcolor->left_title = $color_copy_self;
|
|
|
|
|
438 |
$admin->addField($fcolor, 'start');
|
439 |
|
440 |
// Text Color Hover
|
448 |
$fcolor_hover->copypos = 'left';
|
449 |
$fcolor_hover->right_title = $color_copy_self;
|
450 |
$fcolor_hover->left_title = $color_copy_move;
|
|
|
451 |
|
452 |
$admin->addField($fcolor_hover, '','end');
|
453 |
|
459 |
$field_width->inputclass = 'small';
|
460 |
$field_width->min = 0;
|
461 |
$field_width->value= maxUtils::strip_px(maxBlocks::getValue('button_width')); // strippx?
|
|
|
462 |
|
463 |
$admin->addField($field_width, 'start');
|
464 |
|
470 |
$field_height->inputclass = 'small';
|
471 |
$field_height->min = 0;
|
472 |
$field_height->value= maxUtils::strip_px(maxBlocks::getValue('button_height')); // strippx?
|
|
|
473 |
|
474 |
$admin->addField($field_height, '', 'end');
|
475 |
|
486 |
$field_desc->esc_function = 'esc_textarea';
|
487 |
$field_desc->value = maxBlocks::getValue('description') ;
|
488 |
$field_desc->placeholder = __('Brief explanation about how and where the button is used.','maxbuttons');
|
|
|
489 |
|
490 |
$admin->addField($field_desc, 'start', 'end');
|
491 |
|
492 |
+
|
493 |
$admin->display_fields();
|
494 |
?>
|
495 |
|
blocks/tpl/slider.tpl
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
-
{if:label} <label for='%%id%%' class='range_label %%name%%'>%%label%%</label> {/if:label}
|
2 |
-
<div class='input slider %%name%%'>
|
3 |
|
4 |
|
5 |
-
{if:min_label}<span class='input_label left'>%%min_label%%</span>{/if:min_label}
|
|
|
6 |
{if:max_label}<span class='input_label right'>%%max_label%%</span>{/if:max_label}
|
7 |
-
|
8 |
<p class='range_value'><output for='%%id%%'>-</output></p>
|
9 |
-
|
10 |
</div>
|
1 |
+
{if:label} <label for='%%id%%' class='range_label %%name%%'>%%label%%</label> {/if:label}
|
2 |
+
<div class='input slider %%name%%'>
|
3 |
|
4 |
|
5 |
+
{if:min_label}<span class='input_label left'>%%min_label%%</span>{/if:min_label}
|
6 |
+
<input type='range' min='%%min%%' max='%%max%%' name='%%name%%' id='%%id%%' value='%%value%%' step='1' >
|
7 |
{if:max_label}<span class='input_label right'>%%max_label%%</span>{/if:max_label}
|
8 |
+
|
9 |
<p class='range_value'><output for='%%id%%'>-</output></p>
|
10 |
+
|
11 |
</div>
|
blocks/tpl/switch.tpl
CHANGED
@@ -13,5 +13,5 @@
|
|
13 |
{if:icon} <i class='dashicons %%icon%%'></i> {/if:icon}
|
14 |
</div>
|
15 |
</label>
|
16 |
-
|
17 |
</div>
|
13 |
{if:icon} <i class='dashicons %%icon%%'></i> {/if:icon}
|
14 |
</div>
|
15 |
</label>
|
16 |
+
{if:help}<div class="help dashicons dashicons-info "><span>%%help%%</span></div>{/if:help}
|
17 |
</div>
|
classes/admin-class.php
CHANGED
@@ -317,23 +317,6 @@ class maxButtonsAdmin
|
|
317 |
|
318 |
}
|
319 |
|
320 |
-
/* static public function ajaxShortcode($post)
|
321 |
-
{
|
322 |
-
$shortcode = isset($post['shortcode']) ? sanitize_text_field($post['shortcode']) : false;
|
323 |
-
|
324 |
-
$output = '';
|
325 |
-
|
326 |
-
if ($shortcode)
|
327 |
-
{
|
328 |
-
$shortcode = stripslashes($shortcode);
|
329 |
-
$output = do_shortcode($shortcode);
|
330 |
-
|
331 |
-
}
|
332 |
-
$result = array('shortcode' => $output);
|
333 |
-
|
334 |
-
echo json_encode($result);
|
335 |
-
exit();
|
336 |
-
} */
|
337 |
|
338 |
static public function mediaShortcodeOptions($post)
|
339 |
{
|
317 |
|
318 |
}
|
319 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
320 |
|
321 |
static public function mediaShortcodeOptions($post)
|
322 |
{
|
classes/block.php
CHANGED
@@ -115,6 +115,7 @@ abstract class maxBlock
|
|
115 |
* @return DomObj
|
116 |
*/
|
117 |
public function parse_button($button, $mode) { return $button; }
|
|
|
118 |
|
119 |
/* Parse CSS of the button
|
120 |
*
|
115 |
* @return DomObj
|
116 |
*/
|
117 |
public function parse_button($button, $mode) { return $button; }
|
118 |
+
public function post_parse_button($domObj, $mode) { return $domObj; }
|
119 |
|
120 |
/* Parse CSS of the button
|
121 |
*
|
classes/button.php
CHANGED
@@ -362,7 +362,7 @@ class maxButton
|
|
362 |
if ($name != '')
|
363 |
$classes[] = "maxbutton-" . $name;
|
364 |
|
365 |
-
|
366 |
$classes = implode(' ', $classes);
|
367 |
|
368 |
$domObj = new simple_html_dom();
|
@@ -394,6 +394,16 @@ class maxButton
|
|
394 |
|
395 |
}
|
396 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
/* Display the button */
|
398 |
public function display($args = array() )
|
399 |
{
|
@@ -462,12 +472,18 @@ class maxButton
|
|
462 |
$block->set($this->data);
|
463 |
}
|
464 |
|
|
|
465 |
$domObj = $this->parse_button($mode);
|
466 |
|
|
|
467 |
maxUtils::startTime('button-parse-css-'. $this->id);
|
468 |
$this->parse_css($mode, $compile);
|
469 |
maxUtils::endTime('button-parse-css-'. $this->id);
|
470 |
|
|
|
|
|
|
|
|
|
471 |
if (! $preview) // no js on previews
|
472 |
$this->parse_js($mode);
|
473 |
|
@@ -515,7 +531,6 @@ class maxButton
|
|
515 |
{
|
516 |
$domObj->find('a',0)->class .= ' normal';
|
517 |
$domObj = $this->cssParser->outputInline($domObj);
|
518 |
-
//$this->get_element_css($domObj, 'normal');
|
519 |
}
|
520 |
|
521 |
|
@@ -846,7 +861,8 @@ class maxButton
|
|
846 |
|
847 |
if (! is_null($atts['extraclass']))
|
848 |
{
|
849 |
-
|
|
|
850 |
}
|
851 |
|
852 |
switch($atts['style'])
|
@@ -870,7 +886,6 @@ class maxButton
|
|
870 |
);
|
871 |
$args = apply_filters('mb_shortcode_display_args', $args);
|
872 |
|
873 |
-
|
874 |
$output = $this->display($args);
|
875 |
|
876 |
return $output;
|
362 |
if ($name != '')
|
363 |
$classes[] = "maxbutton-" . $name;
|
364 |
|
365 |
+
//$classes = apply_filters('mb-mainclasses', $classes);
|
366 |
$classes = implode(' ', $classes);
|
367 |
|
368 |
$domObj = new simple_html_dom();
|
394 |
|
395 |
}
|
396 |
|
397 |
+
protected function post_parse_button($domObj, $mode)
|
398 |
+
{
|
399 |
+
foreach($this->blocks as $block)
|
400 |
+
{
|
401 |
+
$domObj = $block->post_parse_button($domObj, $mode);
|
402 |
+
$domObj->load($domObj->save());
|
403 |
+
}
|
404 |
+
|
405 |
+
}
|
406 |
+
|
407 |
/* Display the button */
|
408 |
public function display($args = array() )
|
409 |
{
|
472 |
$block->set($this->data);
|
473 |
}
|
474 |
|
475 |
+
// create the button
|
476 |
$domObj = $this->parse_button($mode);
|
477 |
|
478 |
+
// create CSS
|
479 |
maxUtils::startTime('button-parse-css-'. $this->id);
|
480 |
$this->parse_css($mode, $compile);
|
481 |
maxUtils::endTime('button-parse-css-'. $this->id);
|
482 |
|
483 |
+
// operation after creating CSS model. Mainly adding extra classes
|
484 |
+
$this->post_parse_button($domObj, $mode);
|
485 |
+
|
486 |
+
|
487 |
if (! $preview) // no js on previews
|
488 |
$this->parse_js($mode);
|
489 |
|
531 |
{
|
532 |
$domObj->find('a',0)->class .= ' normal';
|
533 |
$domObj = $this->cssParser->outputInline($domObj);
|
|
|
534 |
}
|
535 |
|
536 |
|
861 |
|
862 |
if (! is_null($atts['extraclass']))
|
863 |
{
|
864 |
+
|
865 |
+
$this->data['advanced']['extra_classes'] .= ' ' . $atts['extraclass'];
|
866 |
}
|
867 |
|
868 |
switch($atts['style'])
|
886 |
);
|
887 |
$args = apply_filters('mb_shortcode_display_args', $args);
|
888 |
|
|
|
889 |
$output = $this->display($args);
|
890 |
|
891 |
return $output;
|
classes/installation.php
CHANGED
@@ -85,9 +85,19 @@ class maxInstall
|
|
85 |
{
|
86 |
global $wpdb;
|
87 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
88 |
$conversion_path = MB()->get_plugin_path() . '/assets/libraries/font-awesome-5/shims.json';
|
89 |
$conversion_array = json_decode(file_get_contents($conversion_path), ARRAY_A);
|
90 |
|
|
|
91 |
$sql = 'select id, icon from ' . maxUtils::get_table_name();
|
92 |
$result = $wpdb->get_results($sql, ARRAY_A);
|
93 |
if (count($result) == 0)
|
85 |
{
|
86 |
global $wpdb;
|
87 |
|
88 |
+
$table_name = maxUtils::get_table_name();
|
89 |
+
$sql = ' SHOW COLUMNS FROM ' . $table_name . ' LIKE "icon"';
|
90 |
+
$result = $wpdb->get_results($sql, ARRAY_A);
|
91 |
+
|
92 |
+
// when the icon field does not exist. Otherwise this causes an activate notice.
|
93 |
+
if (count($result) == 0)
|
94 |
+
return;
|
95 |
+
|
96 |
+
|
97 |
$conversion_path = MB()->get_plugin_path() . '/assets/libraries/font-awesome-5/shims.json';
|
98 |
$conversion_array = json_decode(file_get_contents($conversion_path), ARRAY_A);
|
99 |
|
100 |
+
|
101 |
$sql = 'select id, icon from ' . maxUtils::get_table_name();
|
102 |
$result = $wpdb->get_results($sql, ARRAY_A);
|
103 |
if (count($result) == 0)
|
classes/max-utils.php
CHANGED
@@ -117,7 +117,9 @@ class maxUtils
|
|
117 |
}
|
118 |
|
119 |
static function strip_px($value) {
|
120 |
-
|
|
|
|
|
121 |
}
|
122 |
|
123 |
static function generate_font_sizes($start, $end, $step = 1)
|
117 |
}
|
118 |
|
119 |
static function strip_px($value) {
|
120 |
+
$value = rtrim( intval($value), 'px');
|
121 |
+
$value = rtrim( intval($value), '%');
|
122 |
+
return $value;
|
123 |
}
|
124 |
|
125 |
static function generate_font_sizes($start, $end, $step = 1)
|
classes/maxCSSParser.php
CHANGED
@@ -60,7 +60,6 @@ class maxCSSParser
|
|
60 |
if (count($children) > 0)
|
61 |
$struct[$root->tag] = $this->loadRecursive(array(), $children);
|
62 |
|
63 |
-
|
64 |
$this->struct = $struct;
|
65 |
|
66 |
|
@@ -72,6 +71,7 @@ class maxCSSParser
|
|
72 |
{
|
73 |
|
74 |
$class = $domChild->class;
|
|
|
75 |
$class = str_replace(" ",".", $class); // combine seperate classes
|
76 |
$struct[$class]["tag"] = $domChild->tag;
|
77 |
|
@@ -96,7 +96,6 @@ class maxCSSParser
|
|
96 |
|
97 |
$this->data = $data;
|
98 |
|
99 |
-
|
100 |
if (isset($data["settings"])) // room for settings in parser
|
101 |
{
|
102 |
$settings = $data["settings"];
|
@@ -145,8 +144,11 @@ class maxCSSParser
|
|
145 |
$scss->setImportPaths(MB()->get_plugin_path() . "assets/scss");
|
146 |
|
147 |
$minify = get_option("maxbuttons_minify", 1);
|
|
|
148 |
if ($minify == 1)
|
|
|
149 |
$scss->setFormatter('\Leafo\ScssPhp\Formatter\Crunched');
|
|
|
150 |
|
151 |
$compile = " @import '_mixins.scss'; " . $css;
|
152 |
//maxUtils::addTime("CSSParser: Compile start ");
|
60 |
if (count($children) > 0)
|
61 |
$struct[$root->tag] = $this->loadRecursive(array(), $children);
|
62 |
|
|
|
63 |
$this->struct = $struct;
|
64 |
|
65 |
|
71 |
{
|
72 |
|
73 |
$class = $domChild->class;
|
74 |
+
|
75 |
$class = str_replace(" ",".", $class); // combine seperate classes
|
76 |
$struct[$class]["tag"] = $domChild->tag;
|
77 |
|
96 |
|
97 |
$this->data = $data;
|
98 |
|
|
|
99 |
if (isset($data["settings"])) // room for settings in parser
|
100 |
{
|
101 |
$settings = $data["settings"];
|
144 |
$scss->setImportPaths(MB()->get_plugin_path() . "assets/scss");
|
145 |
|
146 |
$minify = get_option("maxbuttons_minify", 1);
|
147 |
+
// var_dump($minify); var_dump($css);
|
148 |
if ($minify == 1)
|
149 |
+
{
|
150 |
$scss->setFormatter('\Leafo\ScssPhp\Formatter\Crunched');
|
151 |
+
}
|
152 |
|
153 |
$compile = " @import '_mixins.scss'; " . $css;
|
154 |
//maxUtils::addTime("CSSParser: Compile start ");
|
classes/maxbuttons-class.php
CHANGED
@@ -70,7 +70,6 @@ class maxButtonsPlugin
|
|
70 |
add_action('maxbuttons/ajax/getAjaxButtons', array(maxUtils::namespaceit('maxButtonsAdmin'), 'getAjaxButtons') );
|
71 |
add_action('maxbuttons/ajax/mediaShortcodeOptions', array(maxUtils::namespaceit('maxButtonsAdmin'), 'mediaShortcodeOptions'));
|
72 |
add_action('maxbuttons/ajax/save_review_notice_status', array(maxUtils::namespaceit('maxAdmin'), "setReviewNoticeStatus") );
|
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"));
|
@@ -476,13 +475,12 @@ class maxButtonsPlugin
|
|
476 |
|
477 |
}
|
478 |
|
479 |
-
|
480 |
/** Inits the options for WP editor, like tinymce and other buttons **/
|
481 |
public function init_wp_editor_options()
|
482 |
{
|
483 |
-
if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
|
484 |
return;
|
485 |
-
}
|
486 |
// option
|
487 |
if (get_option('maxbuttons_noshowtinymce') == 1) return;
|
488 |
|
@@ -492,7 +490,7 @@ class maxButtonsPlugin
|
|
492 |
add_filter('mce_buttons', array($this, 'tinymce_button'));
|
493 |
add_filter('mce_external_plugins', array($this, 'add_tinymce_button'));
|
494 |
|
495 |
-
|
496 |
$icon_url = MB()->get_plugin_url() . 'images/mb-peach-32.png';
|
497 |
echo "<script type='text/javascript'>
|
498 |
var maxButtonsTinyMCE = {
|
@@ -500,7 +498,7 @@ class maxButtonsPlugin
|
|
500 |
};
|
501 |
</script>";
|
502 |
});
|
503 |
-
|
504 |
|
505 |
}
|
506 |
|
@@ -642,8 +640,6 @@ class maxButtonsPlugin
|
|
642 |
$button_ids = array();
|
643 |
$use_file = get_option('maxbuttons_usecssfile', false);
|
644 |
|
645 |
-
$use_file = false;
|
646 |
-
|
647 |
foreach ($this->footer as $type => $part)
|
648 |
{
|
649 |
if ($type == 'css' && $use_file) // use file output to a CSS filebased output, don't put it inline.
|
@@ -655,7 +651,6 @@ class maxButtonsPlugin
|
|
655 |
else
|
656 |
echo "nonum $id";
|
657 |
}
|
658 |
-
|
659 |
continue;
|
660 |
}
|
661 |
|
70 |
add_action('maxbuttons/ajax/getAjaxButtons', array(maxUtils::namespaceit('maxButtonsAdmin'), 'getAjaxButtons') );
|
71 |
add_action('maxbuttons/ajax/mediaShortcodeOptions', array(maxUtils::namespaceit('maxButtonsAdmin'), 'mediaShortcodeOptions'));
|
72 |
add_action('maxbuttons/ajax/save_review_notice_status', array(maxUtils::namespaceit('maxAdmin'), "setReviewNoticeStatus") );
|
|
|
73 |
|
74 |
//add_action("wp_ajax_set_review_notice_status", array($this, "setReviewNoticeStatus"));
|
75 |
add_action('wp_ajax_mb_button_action', array(maxUtils::namespaceit('maxButtons'), "ajax_action"));
|
475 |
|
476 |
}
|
477 |
|
|
|
478 |
/** Inits the options for WP editor, like tinymce and other buttons **/
|
479 |
public function init_wp_editor_options()
|
480 |
{
|
481 |
+
/*if ( ! current_user_can( 'edit_posts' ) && ! current_user_can( 'edit_pages' ) ) {
|
482 |
return;
|
483 |
+
} */
|
484 |
// option
|
485 |
if (get_option('maxbuttons_noshowtinymce') == 1) return;
|
486 |
|
490 |
add_filter('mce_buttons', array($this, 'tinymce_button'));
|
491 |
add_filter('mce_external_plugins', array($this, 'add_tinymce_button'));
|
492 |
|
493 |
+
/* add_action('before_wp_tiny_mce', function($settings) {
|
494 |
$icon_url = MB()->get_plugin_url() . 'images/mb-peach-32.png';
|
495 |
echo "<script type='text/javascript'>
|
496 |
var maxButtonsTinyMCE = {
|
498 |
};
|
499 |
</script>";
|
500 |
});
|
501 |
+
*/
|
502 |
|
503 |
}
|
504 |
|
640 |
$button_ids = array();
|
641 |
$use_file = get_option('maxbuttons_usecssfile', false);
|
642 |
|
|
|
|
|
643 |
foreach ($this->footer as $type => $part)
|
644 |
{
|
645 |
if ($type == 'css' && $use_file) // use file output to a CSS filebased output, don't put it inline.
|
651 |
else
|
652 |
echo "nonum $id";
|
653 |
}
|
|
|
654 |
continue;
|
655 |
}
|
656 |
|
includes/maxbuttons-button.php
CHANGED
@@ -233,7 +233,6 @@ $admin->get_header(array("title" => $page_title, "title_action" => $action) );
|
|
233 |
|
234 |
<?php #### STARTING FIELDS;
|
235 |
|
236 |
-
|
237 |
$button->admin_fields();
|
238 |
|
239 |
?>
|
@@ -248,7 +247,7 @@ $admin->get_header(array("title" => $page_title, "title_action" => $action) );
|
|
248 |
if ( ! class_exists( '_WP_Editors', false ) )
|
249 |
require( ABSPATH . WPINC . '/class-wp-editor.php' );
|
250 |
|
251 |
-
|
252 |
\_WP_Editors::wp_link_dialog() ?>
|
253 |
|
254 |
</div>
|
233 |
|
234 |
<?php #### STARTING FIELDS;
|
235 |
|
|
|
236 |
$button->admin_fields();
|
237 |
|
238 |
?>
|
247 |
if ( ! class_exists( '_WP_Editors', false ) )
|
248 |
require( ABSPATH . WPINC . '/class-wp-editor.php' );
|
249 |
|
250 |
+
//add the interface of the link picker.
|
251 |
\_WP_Editors::wp_link_dialog() ?>
|
252 |
|
253 |
</div>
|
includes/maxbuttons-settings.php
CHANGED
@@ -80,6 +80,8 @@ if (isset($_POST["replace"]) && check_admin_referer('mb_bulk_edit', 'bulk_edit')
|
|
80 |
|
81 |
}
|
82 |
|
|
|
|
|
83 |
?>
|
84 |
<?php
|
85 |
$admin = MB()->getClass('admin');
|
@@ -100,7 +102,7 @@ $admin->get_header(array("tabs_active" => true, "title" => $page_title) );
|
|
100 |
<div class="option-design">
|
101 |
|
102 |
<?php settings_fields( 'maxbuttons_settings' ); ?>
|
103 |
-
<label><?php _e('MaxButtons User Level', 'maxbuttons') ?></label>
|
104 |
<div class="input">
|
105 |
<select name="maxbuttons_user_level">
|
106 |
<?php $maxbuttons_user_level = get_option('maxbuttons_user_level'); ?>
|
80 |
|
81 |
}
|
82 |
|
83 |
+
//$wp_roles = new \WP_Roles();
|
84 |
+
//echo "<PRE>"; print_r($wp_roles); echo "</PRE>";
|
85 |
?>
|
86 |
<?php
|
87 |
$admin = MB()->getClass('admin');
|
102 |
<div class="option-design">
|
103 |
|
104 |
<?php settings_fields( 'maxbuttons_settings' ); ?>
|
105 |
+
<label><?php _e('MaxButtons User Level for editing buttons', 'maxbuttons') ?></label>
|
106 |
<div class="input">
|
107 |
<select name="maxbuttons_user_level">
|
108 |
<?php $maxbuttons_user_level = get_option('maxbuttons_user_level'); ?>
|
js/maxajax.js
CHANGED
@@ -150,4 +150,5 @@ maxAjax.prototype.defaultErrorHandler = function(jq,status,error, action)
|
|
150 |
console.error(jq);
|
151 |
console.error(status);
|
152 |
console.error(error);
|
|
|
153 |
}
|
150 |
console.error(jq);
|
151 |
console.error(status);
|
152 |
console.error(error);
|
153 |
+
console.error(action);
|
154 |
}
|
js/maxbuttons-admin.js
CHANGED
@@ -293,7 +293,6 @@ maxAdmin.prototype.update_color = function(event, ui, color)
|
|
293 |
this.saveIndicator(true);
|
294 |
|
295 |
var target = $(event.target);
|
296 |
-
//var color = target.val();
|
297 |
|
298 |
if (color.indexOf('#') === -1)
|
299 |
color = '#' + color;
|
@@ -301,7 +300,6 @@ maxAdmin.prototype.update_color = function(event, ui, color)
|
|
301 |
var id = target.attr('id');
|
302 |
$('#' + id).val(color); // otherwise field value is running 1 click behind.
|
303 |
|
304 |
-
|
305 |
if(id.indexOf('box_shadow') !== -1)
|
306 |
{
|
307 |
this.updateBoxShadow(target);
|
@@ -818,18 +816,6 @@ maxAdmin.prototype.formAjaxSave = function (e)
|
|
818 |
}).done($.proxy(this.saveDone, this));
|
819 |
}
|
820 |
|
821 |
-
/*
|
822 |
-
maxAdmin.prototype.buttonSubmit = function (e)
|
823 |
-
{
|
824 |
-
|
825 |
-
e.preventDefault();
|
826 |
-
$('[data-form]').prop('disabled', true);
|
827 |
-
var formName = $(e.target).data('form');
|
828 |
-
$('#' + formName).submit();
|
829 |
-
|
830 |
-
}
|
831 |
-
*/
|
832 |
-
|
833 |
maxAdmin.prototype.saveDone = function (res)
|
834 |
{
|
835 |
$('[data-form]').prop('disabled', false);
|
293 |
this.saveIndicator(true);
|
294 |
|
295 |
var target = $(event.target);
|
|
|
296 |
|
297 |
if (color.indexOf('#') === -1)
|
298 |
color = '#' + color;
|
300 |
var id = target.attr('id');
|
301 |
$('#' + id).val(color); // otherwise field value is running 1 click behind.
|
302 |
|
|
|
303 |
if(id.indexOf('box_shadow') !== -1)
|
304 |
{
|
305 |
this.updateBoxShadow(target);
|
816 |
}).done($.proxy(this.saveDone, this));
|
817 |
}
|
818 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
819 |
maxAdmin.prototype.saveDone = function (res)
|
820 |
{
|
821 |
$('[data-form]').prop('disabled', false);
|
js/min/tinymce.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
tinymce.create("tinymce.plugins.maxButtons",{init:function(n,t){n.addButton("maxbutton",{title:"Insert MaxButton",image:"undefined"!=typeof
|
1 |
+
tinymce.create("tinymce.plugins.maxButtons",{init:function(n,t){console.log(mbtrans),n.addButton("maxbutton",{title:"Insert MaxButton",image:"undefined"!=typeof mbtrans?mbtrans.icon:null,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
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
/**
|
6 |
* Inserts shortcode content
|
7 |
*/
|
8 |
-
|
9 |
ed.addButton( 'maxbutton', {
|
10 |
title : 'Insert MaxButton',
|
11 |
-
image : (typeof
|
12 |
onclick : function() {
|
13 |
var mm = new window.maxFoundry.maxMedia();
|
14 |
mm.init();
|
5 |
/**
|
6 |
* Inserts shortcode content
|
7 |
*/
|
8 |
+
console.log(mbtrans);
|
9 |
ed.addButton( 'maxbutton', {
|
10 |
title : 'Insert MaxButton',
|
11 |
+
image : (typeof mbtrans !== 'undefined') ? mbtrans.icon : null,
|
12 |
onclick : function() {
|
13 |
var mm = new window.maxFoundry.maxMedia();
|
14 |
mm.init();
|
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'))
|
@@ -85,7 +85,6 @@ if (! function_exists("MaxButtons\MB")) {
|
|
85 |
}
|
86 |
$m = new maxButtonsPlugin();
|
87 |
|
88 |
-
|
89 |
// Activation / deactivation
|
90 |
register_activation_hook(__FILE__, array(maxUtils::namespaceit("maxInstall"),'activation_hook') );
|
91 |
register_deactivation_hook(__FILE__,array(maxUtils::namespaceit("maxInstall"), 'deactivation_hook') );
|
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.6
|
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.6');
|
20 |
|
21 |
+
define('MAXBUTTONS_RELEASE',"25 Oct 2018");
|
22 |
|
23 |
|
24 |
if (! function_exists('MaxButtons\maxbutton_double_load'))
|
85 |
}
|
86 |
$m = new maxButtonsPlugin();
|
87 |
|
|
|
88 |
// Activation / deactivation
|
89 |
register_activation_hook(__FILE__, array(maxUtils::namespaceit("maxInstall"),'activation_hook') );
|
90 |
register_deactivation_hook(__FILE__,array(maxUtils::namespaceit("maxInstall"), 'deactivation_hook') );
|
readme.txt
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
Contributors: maxfoundry, basszje, arcware, johnbhartley
|
3 |
Tags: wordpress button plugin, share button, wordpress buttons, css3 button generator, responsive buttons, css wordpress button
|
4 |
Requires at least: 4.8
|
5 |
-
Tested up to: 4.9.
|
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,16 @@ Secondly, please use latin only characters for button name ( Basic settings) and
|
|
255 |
|
256 |
== Changelog ==
|
257 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
258 |
= 7.5.2 =
|
259 |
|
260 |
* Fix - Further fixes for TinyMCE while being loaded out of WP-editor context.
|
2 |
Contributors: maxfoundry, basszje, arcware, johnbhartley
|
3 |
Tags: wordpress button plugin, share button, wordpress buttons, css3 button generator, responsive buttons, css wordpress button
|
4 |
Requires at least: 4.8
|
5 |
+
Tested up to: 4.9.9
|
6 |
Requires PHP: 5.4
|
7 |
+
Stable tag: 7.6
|
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.6 =
|
259 |
+
|
260 |
+
* Fix - Saving buttons in Gutenberg block
|
261 |
+
* Fix - Extra classes could conflict with styling in certain situations
|
262 |
+
* Fix - Removed requirements for any user roles in adding buttons to content
|
263 |
+
* Fix - Icon in Gutenberg classic block
|
264 |
+
* Fix - Activation check could trigger notices when missing database table fields
|
265 |
+
* Fix - Bug when using Siteorigins in Widgets area
|
266 |
+
* Removed - Shortcake Font Awesome reference
|
267 |
+
|
268 |
= 7.5.2 =
|
269 |
|
270 |
* Fix - Further fixes for TinyMCE while being loaded out of WP-editor context.
|