Changeset 2679542
- Timestamp:
- 02/16/2022 01:05:47 AM (3 years ago)
- Location:
- simpleform
- Files:
-
- 69 added
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
simpleform/trunk/README.txt
r2664061 r2679542 4 4 Donate link: https://wpsform.com/ 5 5 Tags: contact form, form builder, form, custom form, smtp, email, message, contact, ajax, information, support, block 6 Requires at least: 5. 26 Requires at least: 5.6 7 7 Tested up to: 5.9 8 8 Requires PHP: 5.6 9 Stable tag: 2.1. 19 Stable tag: 2.1.2 10 10 License: GPLv2 or later 11 11 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 159 159 160 160 == Changelog == 161 162 = 2.1.2 (16 February 2022) = 163 * Fixed: repeated creation of unwanted forms when visiting the widgets page if simpleform has been moved to inactive widgets area 164 * Fixed: migration of the classic widget in the block-based widgets editor 165 * Fixed: error when managing the widget in the customizer page 166 * Fixed: displaying of the title and description when using the block even if the chosen settings do not allow the displaying 167 * Fixed: incorrect displaying of a form visible only by anonymous users when editing it with the block editor 168 * Fixed: uninstall error 169 * Fixed: JavaScript errors 170 * Changed: code cleaning and optimization 171 * Changed: pre-built contact form page 172 * Changed: visibility option and widget related options in the settings page have been removed 173 * Added: admin notice when the form cannot be seen by the admin when visiting the website's front end 161 174 162 175 = 2.1.1 (25 January 2022) = -
simpleform/trunk/admin/block/build/index.asset.php
r2618058 r2679542 1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => ' c6eca46b7ce4cda2956a75ceb36ec2ce');1 <?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill', 'wp-server-side-render'), 'version' => '66ffe28a05bcff0be29ce3236e43acf9'); -
simpleform/trunk/admin/block/build/index.css
r2618058 r2679542 1 .wp-block-simpleform-form-selector{border:1px dotted red}.d-none{display:none!important}.visible{visibility:visible!important}.invisible{opacity:0;visibility:hidden!important}. components-placeholder.sform-selector-wrap{background:#545454;color:#fff;margin:28px auto 0;max-width:840px}.sform-selector-wrap div{justify-content:center;text-align:center}.sform-selector-wrap h3{font-weight:700;margin-bottom:10px;width:100%}.sform-selector-wrap img{height:100px;width:auto}span.selector-message{width:100%}.sform-selector-wrap select{height:40px!important;padding-left:20px!important}.sform-selector-wrap .components-base-control{margin:20px 0 10px}.newform{margin-bottom:24px}.newform a{text-decoration:none}.link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-admin-theme-color);height:auto;margin:0;outline:none;padding:0;text-align:left}.newform:hover .insert-icon{display:inline-block}.insert-icon{color:var(--wp-admin-theme-color);display:none;height:16px;padding-left:10px;text-decoration:none}.titleoptions{height:52px;margin-bottom:24px;margin-top:-5px}.heading-alignment:last-child,.heading-level:first-child{max-width:45%}.sformbuttons{background:#f7f7f7;border-top:1px solid #e0e0e0;padding:16px}.sformbutton,.sformbuttons{height:62px;margin:0 -16px -16px}.sformbutton{padding:0 16px 16px}.sform-button{font-size:12px;height:28px;line-height:22px;padding:3px 7px}.rangeoptions{margin-bottom:0!important}.heading-level,.sform-button.left{float:left}.heading-alignment,.sform-button.right{float:right}.anchor-control{margin-bottom:24px}p.description.inspector{color:#757575;font-size:12px;line-height:1.5;margin-bottom:1em}p.description.inside{margin-top:2em}p.description a{display:block;margin-top:8px}.sform-settings-palette .components-circular-option-picker__option{border:1px solid #fefefe}.sform-settings-fieldset{margin-bottom:20px}.sform-settings-legend{margin-bottom:15px}.sform-settings-legend .component-color-indicator{vertical-align:text-top}.sform-settings-palette .components-circular-option-picker__custom-clear-wrapper{justify-content:flex-start}.component-color-indicator.transparent{background-image:url(images/transparent.a72c9a18.png)!important}.components-base-control.advanced{margin-bottom:0}#duplication-notice{-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px;box-sizing:border-box;color:inherit;cursor:pointer;margin:0;min-height:200px;outline:1px solid transparent;padding:1em;position:relative;text-align:left;width:100%}fieldset:disabled .checkmark,fieldset:disabled button,fieldset:disabled input,fieldset:disabled label{cursor:default!important}.wp-block fieldset:disabled a,fieldset:disabled input{color:inherit}fieldset:disabled a,fieldset:disabled button{pointer-events:none!important}button:disabled{border:none}input[type=checkbox]:disabled{opacity:0}.minimal textarea:disabled,.transparent textarea:disabled{background-color:transparent!important}.highlighted textarea:disabled{background-color:#eaeaea!important}1 .wp-block-simpleform-form-selector{border:1px dotted red}.d-none{display:none!important}.visible{visibility:visible!important}.invisible{opacity:0;visibility:hidden!important}.sform-introduction p{color:inherit!important;font-size:inherit!important}.components-placeholder.sform-selector-wrap{background:#545454;color:#fff;margin:28px auto 0;max-width:840px}.sform-selector-wrap div{justify-content:center;text-align:center}.sform-selector-wrap h3{font-weight:700;margin-bottom:10px;width:100%}.sform-selector-wrap img{height:100px;width:auto}span.selector-message{width:100%}.sform-selector-wrap select{height:40px!important;padding-left:20px!important}.sform-selector-wrap .components-base-control{margin:20px 0 10px}.newform{margin-bottom:24px}.newform a{text-decoration:none}.link{background:none;border:0;border-radius:0;box-shadow:none;color:var(--wp-admin-theme-color);height:auto;margin:0;outline:none;padding:0;text-align:left}.newform:hover .insert-icon{display:inline-block}.insert-icon{color:var(--wp-admin-theme-color);display:none;height:16px;padding-left:10px;text-decoration:none}.titleoptions{height:52px;margin-bottom:24px;margin-top:-5px}.heading-alignment:last-child,.heading-level:first-child{max-width:45%}.sformbuttons{background:#f7f7f7;border-top:1px solid #e0e0e0;padding:16px}.sformbutton,.sformbuttons{height:62px;margin:0 -16px -16px}.sformbutton{padding:0 16px 16px}.sform-button{font-size:12px;height:28px;line-height:22px;padding:3px 7px}.rangeoptions{margin-bottom:0!important}.heading-level,.sform-button.left{float:left}.heading-alignment,.sform-button.right{float:right}.anchor-control{margin-bottom:24px}p.description.inspector{color:#757575;font-size:12px;line-height:1.5;margin-bottom:1em}p.description.inside{margin-top:2em}p.description a{display:block;margin-top:8px}.sform-settings-palette .components-circular-option-picker__option{border:1px solid #fefefe}.sform-settings-fieldset{margin-bottom:20px}.sform-settings-legend{margin-bottom:15px}.sform-settings-legend .component-color-indicator{vertical-align:text-top}.sform-settings-palette .components-circular-option-picker__custom-clear-wrapper{justify-content:flex-start}.component-color-indicator.transparent{background-image:url(images/transparent.a72c9a18.png)!important}.components-base-control.advanced{margin-bottom:0}#duplication-notice{-moz-font-smoothing:subpixel-antialiased;-webkit-font-smoothing:subpixel-antialiased;background-color:#fff;border-radius:2px;box-shadow:inset 0 0 0 1px;box-sizing:border-box;color:inherit;cursor:pointer;margin:0;min-height:200px;outline:1px solid transparent;padding:1em;position:relative;text-align:left;width:100%}.form-wrap fieldset:disabled{border:0;padding:0}fieldset:disabled .checkmark,fieldset:disabled button,fieldset:disabled input,fieldset:disabled label{cursor:default!important}.wp-block fieldset:disabled a,fieldset:disabled input{color:inherit}fieldset:disabled a,fieldset:disabled button{pointer-events:none!important}button:disabled{border:none}input[type=checkbox]:disabled{opacity:0!important}.minimal textarea:disabled,.transparent textarea:disabled{background-color:transparent!important}.highlighted textarea:disabled{background-color:#eaeaea!important} -
simpleform/trunk/admin/block/build/index.js
r2618058 r2679542 1 !function(){"use strict";var e={n:function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(t,{a:t}),t},d:function(o,t){for(var l in t)e.o(t,l)&&!e.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:t[l]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o=window.wp.blocks,t=window.wp.element,l={block:(0,t.createElement)("svg",{height:"20px",width:"20px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 180 180"},(0,t.createElement)("path",{fill:"currentColor",d:"M96.326,111.597c0-18.193-0.167-36.391,0.053-54.58 c0.188-15.525,3.512-29.949,12.957-41.421c9.567-11.622,21.017-11.457,30.737-0.01c7.372,8.682,10.607,19.568,12.215,31.381 c0.732,5.379,0.851,10.786,0.849,16.214c-0.011,29.197-0.002,58.396-0.007,87.595c-0.002,6.48-4.014,10.405-9.378,9.323 c-1.924-0.389-1.816-2.022-1.926-3.624c-0.695-10.047-0.688-10.011-8.982-7.314c-6.804,2.212-13.586,4.543-20.463,6.387 c-3.582,0.962-5.123,2.99-4.787,7.271c0.146,1.889,0.034,3.815-0.05,5.717c-0.121,2.802-1.362,4.579-3.627,5.479 c-6.666,2.648-7.592,1.872-7.592-6.516C96.325,148.864,96.325,130.23,96.326,111.597z"}),(0,t.createElement)("path",{fill:"currentColor",d:"M27.769,107.198c0-15.412-0.03-30.824,0.006-46.234 c0.066-28.643,17.508-50.748,41.681-53.416c10.049-1.108,20.08-0.48,30.118-0.75c0.936-0.025,2.139-0.439,2.631,0.961 c0.478,1.368-0.575,2.092-1.229,2.922c-0.76,0.967-1.845,1.741-2.281,2.873c-2.752,7.121-7.72,7.832-13.544,7.427 c-6.419-0.445-12.871-0.373-19.217,1.558C49.624,27.498,38.989,43.42,39.058,63.261c0.029,8.499,0.51,16.996,0.485,25.493 c-0.039,13.634-0.362,27.268-0.496,40.901c-0.065,6.679,1.043,7.76,6.557,8.476c12.062,1.562,24.085,3.49,36.146,5.019 c3.442,0.438,4.282,2.441,4.271,6.104c-0.025,9.025-0.132,8.982-7.748,7.741c-11.527-1.878-23.107-3.308-34.656-5.002 c-3.365-0.496-4.713,0.846-4.562,5.06c0.346,9.731,0.213,8.388-7.725,7.188c-2.969-0.446-3.621-2.725-3.603-5.963 C27.816,141.25,27.769,124.225,27.769,107.198z"}),(0,t.createElement)("path",{fill:"currentColor",d:"M75.697,51.212c-5.191-0.897-10.416-0.479-15.628-0.553 c-2.054-0.029-2.659-0.985-2.13-3.342c1.504-6.724,6.782-12.072,12.691-12.477c3.083-0.211,6.184-0.019,9.271-0.12 c1.641-0.054,1.945,0.99,1.602,2.487c-0.899,3.906-1.4,7.864-1.404,11.914c-0.002,1.369-0.648,2.056-1.787,2.086 C77.44,51.23,76.568,51.212,75.697,51.212z"}),(0,t.createElement)("path",{fill:"#FFF",d:"M73.535,48.245c-3.321-0.574-6.665-0.307-10.001-0.354 c-1.313-0.019-1.702-0.63-1.362-2.139c0.963-4.303,4.34-7.726,8.121-7.986c1.975-0.135,3.959-0.012,5.936-0.076 c1.049-0.035,1.244,0.633,1.024,1.592c-0.577,2.5-0.897,5.033-0.899,7.625c0,0.875-0.414,1.316-1.144,1.335 C74.651,48.256,74.094,48.245,73.535,48.245z"}))},r=window.wp.i18n,n=window.wp.blockEditor,a=window.wp.components,m=window.wp.serverSideRender,s=e.n(m);(0,o.registerBlockType)("simpleform/form-selector",{icon:l.block,edit:function(e){const{attributes:{preview:o,formId:l,optionNew:m,formOptions:i,displayTitle:c,titleOptions:p,titleHeading: F,titleAlignment:f,formDescription:d,formEnding:_,bgColor:u,borderRadius:g,labelColor:h,buttonColor:C,hoverButtonColor:E,buttonBorderColor:b,hoverButtonBorderColor:v,buttonTextColor:B,hoverButtonTextColor:w,topMargin:N,rightMargin:D,bottomMargin:k,leftMargin:y,topPadding:I,rightPadding:x,bottomPadding:S,leftPadding:P,formAnchor:O,className:A,formWidget:T,formDisplay:G,formShortcode:V},setAttributes:z}=e,R=sformblockData.forms.map((e=>({label:e.name,value:e.id}))),M=new URLSearchParams(window.location.search).get("post"),L=(window.location.pathname,window.location.pathname.split("/"));function H(e){if(""!=e){if(z({formId:e,formOptions:"visible",optionNew:"d-none",formDisplay:!0}),z(c?{titleOptions:"visible"}:{titleOptions:"d-none"}),"1"==e)var o="[simpleform]";else o='[simpleform id="'+e+'"]';var t=document.getElementsByClassName("blocks-shortcode__textarea");if(t.length>0)for(var l=0;l<t.length;l++)if(o==t[l].value){z({formDisplay:!1,formShortcode:!0,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"});break}var r=document.querySelectorAll(".wp-block-html textarea");if(r.length>0)for(l=0;l<r.length;l++)if(r[l].value.includes(o)){z({formDisplay:!1,formShortcode:!0,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"});break}var n=document.getElementsByClassName("wp-block-paragraph");if(n.length>0)for(l=0;l<n.length;l++)if(n[l].innerText.includes(o)){z({formDisplay:!1,formShortcode:!0,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"});break}var a="form#form-"+e;for(document.querySelectorAll(a).length>=1&&z({formDisplay:!1,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"}),l=0;l<L.length;l++)"widgets.php"==L[l]&&z({formWidget:!0})}else z({formId:"",formOptions:"d-none",optionNew:"visible",titleOptions:"d-none",formDisplay:!1})}function W(e){return e===l}L.length;const j=sformblockData.above,q=sformblockData.below,U=0!==j.length&&j.find(W)?(0,t.createElement)(a.ToggleControl,{key:"simpleform-block-controls-topdesc",label:(0,r.__)("Show Description Above","simpleform"),checked:!!d,onChange:e=>z({formDescription:e})}):"",Y=0!==q.length&&q.find(W)?(0,t.createElement)(a.ToggleControl,{key:"simpleform-block-controls-bottomdesc",label:(0,r.__)("Show Description Below","simpleform"),checked:!!_,onChange:e=>z({formEnding:e})}):"",J=u&&"#FFFFFF"!==u&"transparent"!==u?(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Border Radius","simpleform"),beforeIcon:"admin-settings",value:g,onChange:e=>z({borderRadius:e}),min:0,max:100,withInputField:!0}):"",K=u&&"transparent"===u?"transparent":"",Q=u?(0,t.createElement)(a.ColorIndicator,{colorValue:u,className:K}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#FFFFFF"}),X=!u||u&&"#39414D"!=u&&"#3582C4"!=u?"#000000":"#FFFFFF",Z=h?(0,t.createElement)(a.ColorIndicator,{colorValue:h}):(0,t.createElement)(a.ColorIndicator,{colorValue:X}),$=[{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"},{name:(0,r.__)("Dark Blue","simpleform"),color:"#3582C4"},{name:(0,r.__)("Blue","simpleform"),color:"#C5D9ED"},{name:(0,r.__)("Green","simpleform"),color:"#D1E4DD"},{name:(0,r.__)("Purple","simpleform"),color:"#D1D1E4"},{name:(0,r.__)("Red","simpleform"),color:"#E4D1D1"},{name:(0,r.__)("Yellow","simpleform"),color:"#EEEADD"},{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"},{name:(0,r.__)("Transparent","simpleform"),color:"transparent"}],ee=(u&&"#39414D"!=u&&"#3582C4"!=u&&"#C5D9ED"!=u&&"#D1E4DD"!=u&&"#D1D1E4"!=u&&"#E4D1D1"!=u&&"#EEEADD"!=u&&"#F0F0F1"!=u&&"#F6F7F7"!=u&&"#FFFFFF"!=u&&"transparent"!=u&&$.push({name:(0,r.__)("Customized","simpleform"),color:u}),[{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}]),oe=(h&&"#F6F7F7"!=h&&"#FFFFFF"!=h&&ee.push({name:(0,r.__)("Customized","simpleform"),color:h}),(0,r.__)("Black","simpleform"),(0,r.__)("Dark Grey","simpleform"),(0,r.__)("Light Grey","simpleform"),(0,r.__)("White","simpleform"),h&&"#000000"!=h&&"#39414D"!=h&&"#F6F7F7"!=h&&"#FFFFFF"!=h&&ee.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"}]),te=(h&&"#000000"!=h&&"#39414D"!=h&&oe.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}]),le=(h&&"#000000"!=h&&"#39414D"!=h&&"#FFFFFF"!=h&&te.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"}]),re=(h&&"#000000"!=h&&"#39414D"!=h&&le.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}]);h&&"#000000"!=h&&"#39414D"!=h&&"#F6F7F7"!=h&&"#FFFFFF"!=h&&re.push({name:(0,r.__)("Customized","simpleform"),color:h}),sformblockData.default_style;const ne=sformblockData.basic_style,ae=sformblockData.rounded_style,me=sformblockData.minimal_style,se=sformblockData.transparent_style,ie=sformblockData.highlighted_style;0!==ne.length&&ne.find(W),0!==ae.length&&ae.find(W),0!==me.length&&me.find(W),0!==se.length&&se.find(W),0!==ie.length&&ie.find(W);const ce=[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}],pe=[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"},{name:(0,r.__)("Transparent","simpleform"),color:"transparent"}],Fe=(C&&"#6C757D"!=C&&"#007BFF"!=C&&"#C51162"!=C&&"#FFA500"!=C&&"#85C641"!=C&&"transparent"!=C&&pe.push({name:(0,r.__)("Customized","simpleform"),color:C}),[{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"},{name:(0,r.__)("Transparent","simpleform"),color:"transparent"}]),fe=(E&&"#F0F0F1"!=E&&"#F6F7F7"!=E&&"#FFFFFF"!=E&&"transparent"!=E&&Fe.push({name:(0,r.__)("Customized","simpleform"),color:E}),E&&"#007BFF"!=E&&"#C51162"!=E&&"#FFA500"!=E&&"#85C641"!=E&&ce.push({name:(0,r.__)("Customized","simpleform"),color:E}),[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}]),de=(b&&"#007BFF"!=b&&"#C51162"!=b&&"#FFA500"!=b&&"#85C641"!=b&&fe.push({name:(0,r.__)("Customized","simpleform"),color:b}),[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}]);v&&"#007BFF"!=v&&"#C51162"!=v&&"#FFA500"!=v&&"#85C641"!=v&&de.push({name:(0,r.__)("Customized","simpleform"),color:v});const _e=u||"#FFFFFF",ue=h||X,ge=C||"#007BFF",he=C&&"transparent"==C?"#007BFF":"#FFFFFF",Ce=E||he,Ee=b||"#007BFF",be=v||"#007BFF",ve=C&&"transparent"==C?"#007BFF":"#FFFFFF",Be=B||ve,we=w||"#007BFF",Ne=C&&"transparent"===C?"transparent":"",De=C?(0,t.createElement)(a.ColorIndicator,{colorValue:C,className:Ne}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),ke=E&&"transparent"===E?"transparent":"",ye=E?(0,t.createElement)(a.ColorIndicator,{colorValue:E,className:ke}):(0,t.createElement)(a.ColorIndicator,{colorValue:he}),Ie=b?(0,t.createElement)(a.ColorIndicator,{colorValue:b}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),xe=v?(0,t.createElement)(a.ColorIndicator,{colorValue:v}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),Se=B?(0,t.createElement)(a.ColorIndicator,{colorValue:B}):(0,t.createElement)(a.ColorIndicator,{colorValue:ve}),Pe=w?(0,t.createElement)(a.ColorIndicator,{colorValue:w}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),Oe=[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}],Ae=[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}],Te=(B&&"#000000"!=B&&"#F0F0F1"!=B&&"#F6F7F7"!=B&&"#FFFFFF"!=B&&Oe.push({name:(0,r.__)("Customized","simpleform"),color:B}),B&&"#007BFF"!=B&&"#C51162"!=B&&"#FFA500"!=B&&"#85C641"!=B&&Ae.push({name:(0,r.__)("Customized","simpleform"),color:B}),[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}]),Ge=[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}],Ve=(w&&"#007BFF"!=w&&"#C51162"!=w&&"#FFA500"!=w&&"#85C641"!=w&&Te.push({name:(0,r.__)("Customized","simpleform"),color:w}),w&&"#000000"!=w&&"#F0F0F1"!=w&&"#F6F7F7"!=w&&"#FFFFFF"!=w&&Ge.push({name:(0,r.__)("Customized","simpleform"),color:w}),[(0,t.createElement)(n.InspectorControls,{key:"simpleform-block-controls"},(0,t.createElement)(a.Panel,null,(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Form Settings","simpleform")},(0,t.createElement)(a.SelectControl,{value:l,options:R,onChange:H}),(0,t.createElement)("div",{className:"newform "+m},(0,t.createElement)("a",{href:"admin.php?page=sform-new&post="+M,target:"_blank"},(0,t.createElement)(a.Button,{className:"link"},(0,r.__)("Add a new Form","simpleform")),(0,t.createElement)(a.Icon,{icon:"insert",className:"insert-icon"}))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.ToggleControl,{label:(0,r.__)("Show Title","simpleform"),checked:c,onChange:function(e){z({displayTitle:e}),z(1==e?{titleOptions:"visible"}:{titleOptions:"d-none"})}}),(0,t.createElement)("div",{className:"titleoptions "+p},(0,t.createElement)(a.SelectControl,{className:"heading-level",label:(0,r.__)("Level","simpleform"),value:F,options:[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],onChange:e=>z({titleHeading:e})}),(0,t.createElement)(a.SelectControl,{className:"heading-alignment",label:(0,r.__)("Alignment","simpleform"),value:f,options:[{label:(0,r.__)("Left","simpleform"),value:"left"},{label:(0,r.__)("Center","simpleform"),value:"center"},{label:(0,r.__)("Right","simpleform"),value:"right"}],onChange:e=>z({titleAlignment:e})})),U,Y,(0,t.createElement)("div",{className:"sformbuttons"},(0,t.createElement)("a",{href:"admin.php?page=sform-editor&form="+l,target:"_blank"},(0,t.createElement)(a.Button,{className:"is-primary sform-button left"},(0,r.__)("Editor","simpleform"))),(0,t.createElement)("a",{href:"admin.php?page=sform-settings&form="+l,target:"_blank"},(0,t.createElement)(a.Button,{className:"is-primary sform-button right"},(0,r.__)("Settings","simpleform")))))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Color Settings","simpleform"),initialOpen:!1},(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Form Background Color","simpleform"),Q),(0,t.createElement)(n.ColorPalette,{colors:$,value:_e,onChange:e=>{z({bgColor:e}),"#FFFFFF"!==e&&"transparent"!==e||z({borderRadius:0}),z("#39414D"===e||"#3582C4"===e?{labelColor:"#FFFFFF"}:{labelColor:"#000000"})},className:"sform-settings-palette"})),J,(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Label Color","simpleform"),Z),(0,t.createElement)(n.ColorPalette,{colors:function(e){switch(e){case"#39414D":case"#3582C4":return ee;default:return le}}(u),value:ue,onChange:e=>z({labelColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Button Color","simpleform"),De),(0,t.createElement)(n.ColorPalette,{colors:pe,value:ge,onChange:e=>{z({buttonColor:e}),z("transparent"===e?{hoverButtonColor:"#007BFF",buttonBorderColor:"#007BFF",hoverButtonBorderColor:"#007BFF",buttonTextColor:"#007BFF",hoverButtonTextColor:"#FFFFFF"}:{hoverButtonColor:"#FFFFFF",buttonBorderColor:e,hoverButtonBorderColor:e,buttonTextColor:"#FFFFFF",hoverButtonTextColor:e})},className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Hover Button Color","simpleform"),ye),(0,t.createElement)(n.ColorPalette,{colors:function(e){return"transparent"===e?ce:Fe}(C),value:Ce,onChange:e=>z({hoverButtonColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Button Border Color","simpleform"),Ie),(0,t.createElement)(n.ColorPalette,{colors:fe,value:Ee,onChange:e=>z({buttonBorderColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Hover Button Border Color","simpleform"),xe),(0,t.createElement)(n.ColorPalette,{colors:de,value:be,onChange:e=>z({hoverButtonBorderColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Button Text Color","simpleform"),Se),(0,t.createElement)(n.ColorPalette,{colors:function(e){return"transparent"===e?Ae:Oe}(C),value:Be,onChange:e=>z({buttonTextColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Hover Button Text Color","simpleform"),Pe),(0,t.createElement)(n.ColorPalette,{colors:function(e){return"transparent"===e?Ge:Te}(C),value:we,onChange:e=>z({hoverButtonTextColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("p",{className:"description inspector"},(0,r.__)("Do you need to give an extra touch of color? Go to the editor and add your code","simpleform")),(0,t.createElement)("div",{className:"sformbutton"},(0,t.createElement)("a",{href:"admin.php?page=sform-editor&form="+l+"#css",target:"_blank"},(0,t.createElement)(a.Button,{className:"is-secondary is-small sform-button left"},(0,r.__)("Add additional CSS","simpleform")))))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Spacing","simpleform"),initialOpen:!1},(0,t.createElement)("p",{className:"description inspector"}," ",(0,r.__)("Space outside the form container","simpleform")," ",(0,r.__)("(px unit)","simpleform")),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Top Margin","simpleform"),beforeIcon:"admin-settings",value:N,onChange:e=>z({topMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Right Margin","simpleform"),beforeIcon:"admin-settings",value:D,onChange:e=>z({rightMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Bottom Margin","simpleform"),beforeIcon:"admin-settings",value:k,onChange:e=>z({bottomMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Left Margin","simpleform"),beforeIcon:"admin-settings",value:y,onChange:e=>z({leftMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)("p",{className:"description inspector inside"},(0,r.__)("Space inside the form container","simpleform")," ",(0,r.__)("(px unit)","simpleform")),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Top Padding","simpleform"),beforeIcon:"admin-settings",value:I,onChange:e=>z({topPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Right Padding","simpleform"),beforeIcon:"admin-settings",value:x,onChange:e=>z({rightPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Bottom Padding","simpleform"),beforeIcon:"admin-settings",value:S,onChange:e=>z({bottomPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Left Padding","simpleform"),beforeIcon:"admin-settings",value:P,onChange:e=>z({leftPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Advanced","simpleform"),initialOpen:!1},(0,t.createElement)("div",{className:"anchor-control"},(0,t.createElement)("div",null,(0,t.createElement)(a.TextControl,{label:(0,r.__)("HTML anchor","simpleform"),value:O,onChange:e=>z({formAnchor:e}),className:"advanced"})," "),(0,t.createElement)("p",{className:"description inspector"},(0,r.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page.","simpleform"),(0,t.createElement)(a.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},(0,r.__)("Learn more about anchors","simpleform")))),(0,t.createElement)("div",null,(0,t.createElement)("div",null,(0,t.createElement)(a.TextControl,{label:(0,r.__)("Additional CSS class(es)","simpleform"),value:A,onChange:e=>z({className:e}),className:"advanced"})),(0,t.createElement)("p",{className:"description inspector"},(0,r.__)("Separate multiple classes with spaces.","simpleform")," "))))))]),ze=[(0,t.createElement)(s(),{key:"simpleform-block-render",block:"simpleform/form-selector",attributes:e.attributes})],Re=[(0,t.createElement)(a.Placeholder,{key:"simpleform-block-wrap",className:"sform-selector-wrap"},(0,t.createElement)("img",{src:sformblockData.logo_url}),(0,t.createElement)("h3",null,(0,r.__)("SimpleForm","simpleform")),(0,t.createElement)("span",{className:"selector-message"},(0,r.__)("Contact form made simple","simpleform")),(0,t.createElement)(a.SelectControl,{value:l,options:R,onChange:H}))];return l?[ze,Ve]:o?(0,t.createElement)(t.Fragment,{key:"simpleform-block-inserter-preview"},(0,t.createElement)("img",{src:sformblockData.cover_url})):[Re,Ve]},save:()=>null})}();1 !function(){"use strict";var e={n:function(o){var t=o&&o.__esModule?function(){return o.default}:function(){return o};return e.d(t,{a:t}),t},d:function(o,t){for(var l in t)e.o(t,l)&&!e.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:t[l]})},o:function(e,o){return Object.prototype.hasOwnProperty.call(e,o)}},o=window.wp.blocks,t=window.wp.element,l={block:(0,t.createElement)("svg",{height:"20px",width:"20px",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 180 180"},(0,t.createElement)("path",{fill:"currentColor",d:"M96.326,111.597c0-18.193-0.167-36.391,0.053-54.58 c0.188-15.525,3.512-29.949,12.957-41.421c9.567-11.622,21.017-11.457,30.737-0.01c7.372,8.682,10.607,19.568,12.215,31.381 c0.732,5.379,0.851,10.786,0.849,16.214c-0.011,29.197-0.002,58.396-0.007,87.595c-0.002,6.48-4.014,10.405-9.378,9.323 c-1.924-0.389-1.816-2.022-1.926-3.624c-0.695-10.047-0.688-10.011-8.982-7.314c-6.804,2.212-13.586,4.543-20.463,6.387 c-3.582,0.962-5.123,2.99-4.787,7.271c0.146,1.889,0.034,3.815-0.05,5.717c-0.121,2.802-1.362,4.579-3.627,5.479 c-6.666,2.648-7.592,1.872-7.592-6.516C96.325,148.864,96.325,130.23,96.326,111.597z"}),(0,t.createElement)("path",{fill:"currentColor",d:"M27.769,107.198c0-15.412-0.03-30.824,0.006-46.234 c0.066-28.643,17.508-50.748,41.681-53.416c10.049-1.108,20.08-0.48,30.118-0.75c0.936-0.025,2.139-0.439,2.631,0.961 c0.478,1.368-0.575,2.092-1.229,2.922c-0.76,0.967-1.845,1.741-2.281,2.873c-2.752,7.121-7.72,7.832-13.544,7.427 c-6.419-0.445-12.871-0.373-19.217,1.558C49.624,27.498,38.989,43.42,39.058,63.261c0.029,8.499,0.51,16.996,0.485,25.493 c-0.039,13.634-0.362,27.268-0.496,40.901c-0.065,6.679,1.043,7.76,6.557,8.476c12.062,1.562,24.085,3.49,36.146,5.019 c3.442,0.438,4.282,2.441,4.271,6.104c-0.025,9.025-0.132,8.982-7.748,7.741c-11.527-1.878-23.107-3.308-34.656-5.002 c-3.365-0.496-4.713,0.846-4.562,5.06c0.346,9.731,0.213,8.388-7.725,7.188c-2.969-0.446-3.621-2.725-3.603-5.963 C27.816,141.25,27.769,124.225,27.769,107.198z"}),(0,t.createElement)("path",{fill:"currentColor",d:"M75.697,51.212c-5.191-0.897-10.416-0.479-15.628-0.553 c-2.054-0.029-2.659-0.985-2.13-3.342c1.504-6.724,6.782-12.072,12.691-12.477c3.083-0.211,6.184-0.019,9.271-0.12 c1.641-0.054,1.945,0.99,1.602,2.487c-0.899,3.906-1.4,7.864-1.404,11.914c-0.002,1.369-0.648,2.056-1.787,2.086 C77.44,51.23,76.568,51.212,75.697,51.212z"}),(0,t.createElement)("path",{fill:"#FFF",d:"M73.535,48.245c-3.321-0.574-6.665-0.307-10.001-0.354 c-1.313-0.019-1.702-0.63-1.362-2.139c0.963-4.303,4.34-7.726,8.121-7.986c1.975-0.135,3.959-0.012,5.936-0.076 c1.049-0.035,1.244,0.633,1.024,1.592c-0.577,2.5-0.897,5.033-0.899,7.625c0,0.875-0.414,1.316-1.144,1.335 C74.651,48.256,74.094,48.245,73.535,48.245z"}))},r=window.wp.i18n,n=window.wp.blockEditor,a=window.wp.components,m=window.wp.serverSideRender,s=e.n(m);(0,o.registerBlockType)("simpleform/form-selector",{icon:l.block,edit:function(e){const{attributes:{preview:o,formId:l,optionNew:m,formOptions:i,displayTitle:c,titleOptions:p,titleHeading:f,titleAlignment:F,formDescription:d,formEnding:_,bgColor:u,borderRadius:g,labelColor:h,buttonColor:C,hoverButtonColor:E,buttonBorderColor:b,hoverButtonBorderColor:v,buttonTextColor:B,hoverButtonTextColor:w,topMargin:N,rightMargin:D,bottomMargin:k,leftMargin:y,topPadding:I,rightPadding:x,bottomPadding:S,leftPadding:P,formAnchor:O,className:A,formWidget:T,formDisplay:G,formShortcode:V},setAttributes:z}=e,R=sformblockData.forms.map((e=>({label:e.name,value:e.id}))),M=new URLSearchParams(window.location.search).get("post"),L=(window.location.pathname,window.location.pathname.split("/"));function H(e){if(""!=e){if(z({formId:e,formOptions:"visible",optionNew:"d-none",formDisplay:!0}),z(c?{titleOptions:"visible"}:{titleOptions:"d-none"}),"1"==e)var o="[simpleform]";else o='[simpleform id="'+e+'"]';var t=document.getElementsByClassName("blocks-shortcode__textarea");if(t.length>0)for(var l=0;l<t.length;l++)if(o==t[l].value){z({formDisplay:!1,formShortcode:!0,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"});break}var r=document.querySelectorAll(".wp-block-html textarea");if(r.length>0)for(l=0;l<r.length;l++)if(r[l].value.includes(o)){z({formDisplay:!1,formShortcode:!0,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"});break}var n=document.getElementsByClassName("wp-block-paragraph");if(n.length>0)for(l=0;l<n.length;l++)if(n[l].innerText.includes(o)){z({formDisplay:!1,formShortcode:!0,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"});break}var a="form#form-"+e;for(document.querySelectorAll(a).length>=1&&z({formDisplay:!1,formOptions:"d-none",optionNew:"d-none",titleOptions:"d-none"}),l=0;l<L.length;l++)"widgets.php"==L[l]&&z({formWidget:!0})}else z({formId:"",formOptions:"d-none",optionNew:"visible",titleOptions:"d-none",formDisplay:!1})}function W(e){return e===l}L.length;const j=sformblockData.above,q=sformblockData.below,U=0!==j.length&&j.find(W)?(0,t.createElement)(a.ToggleControl,{key:"simpleform-block-controls-topdesc",label:(0,r.__)("Show Description Above","simpleform"),checked:!!d,onChange:e=>z({formDescription:e})}):"",Y=0!==q.length&&q.find(W)?(0,t.createElement)(a.ToggleControl,{key:"simpleform-block-controls-bottomdesc",label:(0,r.__)("Show Description Below","simpleform"),checked:!!_,onChange:e=>z({formEnding:e})}):"",J=u&&"#FFFFFF"!==u&"transparent"!==u?(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Border Radius","simpleform"),beforeIcon:"admin-settings",value:g,onChange:e=>z({borderRadius:e}),min:0,max:100,withInputField:!0}):"",K=u&&"transparent"===u?"transparent":"",Q=u?(0,t.createElement)(a.ColorIndicator,{colorValue:u,className:K}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#FFFFFF"}),X=!u||u&&"#39414D"!=u&&"#3582C4"!=u?"#000000":"#FFFFFF",Z=h?(0,t.createElement)(a.ColorIndicator,{colorValue:h}):(0,t.createElement)(a.ColorIndicator,{colorValue:X}),$=[{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"},{name:(0,r.__)("Dark Blue","simpleform"),color:"#3582C4"},{name:(0,r.__)("Blue","simpleform"),color:"#C5D9ED"},{name:(0,r.__)("Green","simpleform"),color:"#D1E4DD"},{name:(0,r.__)("Purple","simpleform"),color:"#D1D1E4"},{name:(0,r.__)("Red","simpleform"),color:"#E4D1D1"},{name:(0,r.__)("Yellow","simpleform"),color:"#EEEADD"},{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"},{name:(0,r.__)("Transparent","simpleform"),color:"transparent"}],ee=(u&&"#39414D"!=u&&"#3582C4"!=u&&"#C5D9ED"!=u&&"#D1E4DD"!=u&&"#D1D1E4"!=u&&"#E4D1D1"!=u&&"#EEEADD"!=u&&"#F0F0F1"!=u&&"#F6F7F7"!=u&&"#FFFFFF"!=u&&"transparent"!=u&&$.push({name:(0,r.__)("Customized","simpleform"),color:u}),[{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}]),oe=(h&&"#F6F7F7"!=h&&"#FFFFFF"!=h&&ee.push({name:(0,r.__)("Customized","simpleform"),color:h}),(0,r.__)("Black","simpleform"),(0,r.__)("Dark Grey","simpleform"),(0,r.__)("Light Grey","simpleform"),(0,r.__)("White","simpleform"),h&&"#000000"!=h&&"#39414D"!=h&&"#F6F7F7"!=h&&"#FFFFFF"!=h&&ee.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"}]),te=(h&&"#000000"!=h&&"#39414D"!=h&&oe.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}]),le=(h&&"#000000"!=h&&"#39414D"!=h&&"#FFFFFF"!=h&&te.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"}]),re=(h&&"#000000"!=h&&"#39414D"!=h&&le.push({name:(0,r.__)("Customized","simpleform"),color:h}),[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Dark Gray","simpleform"),color:"#39414D"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}]);h&&"#000000"!=h&&"#39414D"!=h&&"#F6F7F7"!=h&&"#FFFFFF"!=h&&re.push({name:(0,r.__)("Customized","simpleform"),color:h}),sformblockData.default_style;const ne=sformblockData.basic_style,ae=sformblockData.rounded_style,me=sformblockData.minimal_style,se=sformblockData.transparent_style,ie=sformblockData.highlighted_style;0!==ne.length&&ne.find(W),0!==ae.length&&ae.find(W),0!==me.length&&me.find(W),0!==se.length&&se.find(W),0!==ie.length&&ie.find(W);const ce=[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}],pe=[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"},{name:(0,r.__)("Transparent","simpleform"),color:"transparent"}],fe=(C&&"#6C757D"!=C&&"#007BFF"!=C&&"#C51162"!=C&&"#FFA500"!=C&&"#85C641"!=C&&"transparent"!=C&&pe.push({name:(0,r.__)("Customized","simpleform"),color:C}),[{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"},{name:(0,r.__)("Transparent","simpleform"),color:"transparent"}]),Fe=(E&&"#F0F0F1"!=E&&"#F6F7F7"!=E&&"#FFFFFF"!=E&&"transparent"!=E&&fe.push({name:(0,r.__)("Customized","simpleform"),color:E}),E&&"#007BFF"!=E&&"#C51162"!=E&&"#FFA500"!=E&&"#85C641"!=E&&ce.push({name:(0,r.__)("Customized","simpleform"),color:E}),[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}]),de=(b&&"#007BFF"!=b&&"#C51162"!=b&&"#FFA500"!=b&&"#85C641"!=b&&Fe.push({name:(0,r.__)("Customized","simpleform"),color:b}),[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}]);v&&"#007BFF"!=v&&"#C51162"!=v&&"#FFA500"!=v&&"#85C641"!=v&&de.push({name:(0,r.__)("Customized","simpleform"),color:v});const _e=u||"transparent",ue=h||X,ge=C||"#007BFF",he=C&&"transparent"==C?"#007BFF":"#FFFFFF",Ce=E||he,Ee=b||"#007BFF",be=v||"#007BFF",ve=C&&"transparent"==C?"#007BFF":"#FFFFFF",Be=B||ve,we=w||"#007BFF",Ne=C&&"transparent"===C?"transparent":"",De=C?(0,t.createElement)(a.ColorIndicator,{colorValue:C,className:Ne}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),ke=E&&"transparent"===E?"transparent":"",ye=E?(0,t.createElement)(a.ColorIndicator,{colorValue:E,className:ke}):(0,t.createElement)(a.ColorIndicator,{colorValue:he}),Ie=b?(0,t.createElement)(a.ColorIndicator,{colorValue:b}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),xe=v?(0,t.createElement)(a.ColorIndicator,{colorValue:v}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),Se=B?(0,t.createElement)(a.ColorIndicator,{colorValue:B}):(0,t.createElement)(a.ColorIndicator,{colorValue:ve}),Pe=w?(0,t.createElement)(a.ColorIndicator,{colorValue:w}):(0,t.createElement)(a.ColorIndicator,{colorValue:"#007BFF"}),Oe=[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}],Ae=[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}],Te=(B&&"#000000"!=B&&"#F0F0F1"!=B&&"#F6F7F7"!=B&&"#FFFFFF"!=B&&Oe.push({name:(0,r.__)("Customized","simpleform"),color:B}),B&&"#007BFF"!=B&&"#C51162"!=B&&"#FFA500"!=B&&"#85C641"!=B&&Ae.push({name:(0,r.__)("Customized","simpleform"),color:B}),[{name:(0,r.__)("Blu","simpleform"),color:"#007BFF"},{name:(0,r.__)("Violet","simpleform"),color:"#C51162"},{name:(0,r.__)("Orange","simpleform"),color:"#FFA500"},{name:(0,r.__)("Green","simpleform"),color:"#85C641"}]),Ge=[{name:(0,r.__)("Black","simpleform"),color:"#000000"},{name:(0,r.__)("Soft Grey","simpleform"),color:"#F0F0F1"},{name:(0,r.__)("Light Grey","simpleform"),color:"#F6F7F7"},{name:(0,r.__)("White","simpleform"),color:"#FFFFFF"}],Ve=(w&&"#007BFF"!=w&&"#C51162"!=w&&"#FFA500"!=w&&"#85C641"!=w&&Te.push({name:(0,r.__)("Customized","simpleform"),color:w}),w&&"#000000"!=w&&"#F0F0F1"!=w&&"#F6F7F7"!=w&&"#FFFFFF"!=w&&Ge.push({name:(0,r.__)("Customized","simpleform"),color:w}),[(0,t.createElement)(n.InspectorControls,{key:"simpleform-block-controls"},(0,t.createElement)(a.Panel,null,(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Form Settings","simpleform")},(0,t.createElement)(a.SelectControl,{value:l,options:R,onChange:H}),(0,t.createElement)("div",{className:"newform "+m},(0,t.createElement)("a",{href:"admin.php?page=sform-new&post="+M,target:"_blank"},(0,t.createElement)(a.Button,{className:"link"},(0,r.__)("Add a new Form","simpleform")),(0,t.createElement)(a.Icon,{icon:"insert",className:"insert-icon"}))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.ToggleControl,{label:(0,r.__)("Show Title","simpleform"),checked:c,onChange:function(e){z({displayTitle:e}),z(1==e?{titleOptions:"visible"}:{titleOptions:"d-none"})}}),(0,t.createElement)("div",{className:"titleoptions "+p},(0,t.createElement)(a.SelectControl,{className:"heading-level",label:(0,r.__)("Level","simpleform"),value:f,options:[{label:"H1",value:"h1"},{label:"H2",value:"h2"},{label:"H3",value:"h3"},{label:"H4",value:"h4"},{label:"H5",value:"h5"},{label:"H6",value:"h6"}],onChange:e=>z({titleHeading:e})}),(0,t.createElement)(a.SelectControl,{className:"heading-alignment",label:(0,r.__)("Alignment","simpleform"),value:F,options:[{label:(0,r.__)("Left","simpleform"),value:"left"},{label:(0,r.__)("Center","simpleform"),value:"center"},{label:(0,r.__)("Right","simpleform"),value:"right"}],onChange:e=>z({titleAlignment:e})})),U,Y,(0,t.createElement)("div",{className:"sformbuttons"},(0,t.createElement)("a",{href:"admin.php?page=sform-editor&form="+l,target:"_blank"},(0,t.createElement)(a.Button,{className:"is-primary sform-button left"},(0,r.__)("Editor","simpleform"))),(0,t.createElement)("a",{href:"admin.php?page=sform-settings&form="+l,target:"_blank"},(0,t.createElement)(a.Button,{className:"is-primary sform-button right"},(0,r.__)("Settings","simpleform")))))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Color Settings","simpleform"),initialOpen:!1},(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Form Background Color","simpleform"),Q),(0,t.createElement)(n.ColorPalette,{colors:$,value:_e,onChange:e=>{z({bgColor:e}),"#FFFFFF"!==e&&"transparent"!==e||z({borderRadius:0}),z("#39414D"===e||"#3582C4"===e?{labelColor:"#FFFFFF"}:{labelColor:"#000000"})},className:"sform-settings-palette"})),J,(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Label Color","simpleform"),Z),(0,t.createElement)(n.ColorPalette,{colors:function(e){switch(e){case"#39414D":case"#3582C4":return ee;default:return le}}(u),value:ue,onChange:e=>z({labelColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Button Color","simpleform"),De),(0,t.createElement)(n.ColorPalette,{colors:pe,value:ge,onChange:e=>{z({buttonColor:e}),z("transparent"===e?{hoverButtonColor:"#007BFF",buttonBorderColor:"#007BFF",hoverButtonBorderColor:"#007BFF",buttonTextColor:"#007BFF",hoverButtonTextColor:"#FFFFFF"}:{hoverButtonColor:"#FFFFFF",buttonBorderColor:e,hoverButtonBorderColor:e,buttonTextColor:"#FFFFFF",hoverButtonTextColor:e})},className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Hover Button Color","simpleform"),ye),(0,t.createElement)(n.ColorPalette,{colors:function(e){return"transparent"===e?ce:fe}(C),value:Ce,onChange:e=>z({hoverButtonColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Button Border Color","simpleform"),Ie),(0,t.createElement)(n.ColorPalette,{colors:Fe,value:Ee,onChange:e=>z({buttonBorderColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Hover Button Border Color","simpleform"),xe),(0,t.createElement)(n.ColorPalette,{colors:de,value:be,onChange:e=>z({hoverButtonBorderColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Button Text Color","simpleform"),Se),(0,t.createElement)(n.ColorPalette,{colors:function(e){return"transparent"===e?Ae:Oe}(C),value:Be,onChange:e=>z({buttonTextColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("fieldset",{className:"sform-settings-fieldset"},(0,t.createElement)("legend",{className:"sform-settings-legend"},(0,r.__)("Hover Button Text Color","simpleform"),Pe),(0,t.createElement)(n.ColorPalette,{colors:function(e){return"transparent"===e?Ge:Te}(C),value:we,onChange:e=>z({hoverButtonTextColor:e}),className:"sform-settings-palette"})),(0,t.createElement)("p",{className:"description inspector"},(0,r.__)("Do you need to give an extra touch of color? Go to the editor and add your code","simpleform")),(0,t.createElement)("div",{className:"sformbutton"},(0,t.createElement)("a",{href:"admin.php?page=sform-editor&form="+l+"#css",target:"_blank"},(0,t.createElement)(a.Button,{className:"is-secondary is-small sform-button left"},(0,r.__)("Add additional CSS","simpleform")))))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Spacing","simpleform"),initialOpen:!1},(0,t.createElement)("p",{className:"description inspector"}," ",(0,r.__)("Space outside the form container","simpleform")," ",(0,r.__)("(px unit)","simpleform")),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Top Margin","simpleform"),beforeIcon:"admin-settings",value:N,onChange:e=>z({topMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Right Margin","simpleform"),beforeIcon:"admin-settings",value:D,onChange:e=>z({rightMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Bottom Margin","simpleform"),beforeIcon:"admin-settings",value:k,onChange:e=>z({bottomMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Left Margin","simpleform"),beforeIcon:"admin-settings",value:y,onChange:e=>z({leftMargin:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)("p",{className:"description inspector inside"},(0,r.__)("Space inside the form container","simpleform")," ",(0,r.__)("(px unit)","simpleform")),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Top Padding","simpleform"),beforeIcon:"admin-settings",value:I,onChange:e=>z({topPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Right Padding","simpleform"),beforeIcon:"admin-settings",value:x,onChange:e=>z({rightPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Bottom Padding","simpleform"),beforeIcon:"admin-settings",value:S,onChange:e=>z({bottomPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}),(0,t.createElement)(a.RangeControl,{label:(0,r.__)("Left Padding","simpleform"),beforeIcon:"admin-settings",value:P,onChange:e=>z({leftPadding:e}),min:0,max:100,className:"rangeoptions",withInputField:!0}))),(0,t.createElement)("div",{className:i},(0,t.createElement)(a.PanelBody,{title:(0,r.__)("Advanced","simpleform"),initialOpen:!1},(0,t.createElement)("div",{className:"anchor-control"},(0,t.createElement)("div",null,(0,t.createElement)(a.TextControl,{label:(0,r.__)("HTML anchor","simpleform"),value:O,onChange:e=>z({formAnchor:e}),className:"advanced"})," "),(0,t.createElement)("p",{className:"description inspector"},(0,r.__)("Enter a word or two — without spaces — to make a unique web address just for this block, called an “anchor.” Then, you’ll be able to link directly to this section of your page.","simpleform"),(0,t.createElement)(a.ExternalLink,{href:"https://wordpress.org/support/article/page-jumps/"},(0,r.__)("Learn more about anchors","simpleform")))),(0,t.createElement)("div",null,(0,t.createElement)("div",null,(0,t.createElement)(a.TextControl,{label:(0,r.__)("Additional CSS class(es)","simpleform"),value:A,onChange:e=>z({className:e}),className:"advanced"})),(0,t.createElement)("p",{className:"description inspector"},(0,r.__)("Separate multiple classes with spaces.","simpleform")," "))))))]),ze=[(0,t.createElement)(s(),{key:"simpleform-block-render",block:"simpleform/form-selector",attributes:e.attributes})],Re=[(0,t.createElement)(a.Placeholder,{key:"simpleform-block-wrap",className:"sform-selector-wrap"},(0,t.createElement)("img",{src:sformblockData.logo_url}),(0,t.createElement)("h3",null,(0,r.__)("SimpleForm","simpleform")),(0,t.createElement)("span",{className:"selector-message"},(0,r.__)("Contact form made simple","simpleform")),(0,t.createElement)(a.SelectControl,{value:l,options:R,onChange:H}))];return l?[ze,Ve]:o?(0,t.createElement)(t.Fragment,{key:"simpleform-block-inserter-preview"},(0,t.createElement)("img",{src:sformblockData.cover_url})):[Re,Ve]},save:()=>null})}(); -
simpleform/trunk/admin/block/class-block.php
r2664049 r2679542 182 182 // Write styling settings to default styling file 183 183 file_put_contents(SIMPLEFORM_PATH . 'public/css/block-style.css',$blocks_style); 184 // LOCK_EX prevents anyone else writing to the file at the same time 184 185 } 185 186 … … 199 200 $form_attributes = $form_id != '' && $form_id != '1' && get_option('sform_'.$form_id.'_attributes') != false ? get_option('sform_'.$form_id.'_attributes') : get_option('sform_attributes'); 200 201 $settings = $form_id != '' && $form_id != '1' && get_option('sform_'.$form_id.'_settings') != false ? get_option('sform_'.$form_id.'_settings') : get_option('sform_settings'); 202 $frontend_notice = ! empty( $settings['frontend_notice'] ) ? esc_attr($settings['frontend_notice']) : 'true'; 201 203 $custom_css = ! empty( $form_attributes['additional_css'] ) ? esc_attr($form_attributes['additional_css']) : ''; 202 204 $form_template = ! empty( $settings['form_template'] ) ? esc_attr($settings['form_template']) : 'default'; … … 262 264 263 265 else { 264 265 $above_form = isset( $_GET['sending'] ) && $_GET['sending'] == 'success' && isset( $_GET['form'] ) && $_GET['form'] == $form_id ? '' : $form_description; 266 $below_form = isset( $_GET['sending'] ) && $_GET['sending'] == 'success' && isset( $_GET['form'] ) && $_GET['form'] == $form_id ? '' : $bottom_text; 267 $return_html = $start_wrap . $form_title . $above_form . do_shortcode($shortcode) . $below_form . $end_wrap; 266 $show_for = ! empty( $form_attributes['show_for'] ) ? esc_attr($form_attributes['show_for']) : 'all'; 267 $user_role = ! empty( $form_attributes['user_role'] ) ? esc_attr($form_attributes['user_role']) : 'any'; 268 $current_user = wp_get_current_user(); 269 if ( $show_for == 'out' ) { $form_user = '<b>' . __( 'logged-out users','simpleform') . '</b>'; $for_role = ''; } 270 elseif ( $show_for == 'in' ) { $form_user = '<b>' . __( 'logged-in users','simpleform') . '</b>'; $for_role = $user_role; } 271 else { $form_user = __( 'everyone','simpleform'); $for_role = ''; } 272 $form_user_role = !empty($for_role) ? ' ' . __( 'with the role of','simpleform') . ' <b>' . translate_user_role(ucfirst($user_role)) . '</b>' : '' ; 273 274 if ( ($show_for == 'out' && is_user_logged_in()) || ($show_for == 'in' && ! is_user_logged_in()) || ($show_for == 'in' && is_user_logged_in() && $user_role != 'any' && ! in_array($user_role, (array) $current_user->roles)) ) { 275 if ( current_user_can('manage_options') && $frontend_notice == 'true' ) { 276 $return_html = '<div id="sform-admin-message" style="font-size: 0.8em; border: 1px solid; margin-top: 20px; padding: 20px 15px; height: -webkit-fit-content; height: -moz-fit-content; height: fit-content;"><p class="heading" style="font-weight: 600; margin-bottom: 10px;">'. __('SimpleForm Admin Notice', 'simpleform') . '</p>'. __('The form is visible only for ', 'simpleform') . $form_user . $form_user_role . '. ' . __( 'Your role does not allow you to see it!','simpleform') .'</div>'; 277 } 278 else { 279 $return_html = ''; 280 } 281 } 282 else { 283 $above_form = isset( $_GET['sending'] ) && $_GET['sending'] == 'success' && isset( $_GET['form'] ) && $_GET['form'] == $form_id ? '' : $form_description; 284 $below_form = isset( $_GET['sending'] ) && $_GET['sending'] == 'success' && isset( $_GET['form'] ) && $_GET['form'] == $form_id ? '' : $bottom_text; 285 $return_html = $start_wrap . $form_title . $above_form . do_shortcode($shortcode) . $below_form . $end_wrap; 286 } 268 287 } 269 288 … … 603 622 $ids = array(); 604 623 $blocks = parse_blocks( $content ); 605 624 625 if ($blocks){ 606 626 foreach ( $blocks as $block ) { 607 627 … … 654 674 655 675 } 676 } 656 677 657 678 return $ids; -
simpleform/trunk/admin/class-admin.php
r2664049 r2679542 187 187 global $pagenow; 188 188 189 if( $hook != $sform_entries && $hook != $sform_forms && $hook != $sform_form_page && $hook != $sform_editor && $hook != $sform_settings && $hook != $sform_new && $hook != $sform_support && $pagenow != 'widgets.php' )189 if( $hook != $sform_entries && $hook != $sform_forms && $hook != $sform_form_page && $hook != $sform_editor && $hook != $sform_settings && $hook != $sform_new && $hook != $sform_support && $pagenow != 'widgets.php' && $pagenow != 'customize.php' ) 190 190 return; 191 191 … … 210 210 global $pagenow; 211 211 212 if( $hook != $sform_entries && $hook != $sform_forms && $hook != $sform_form_page && $hook != $sform_editor && $hook != $sform_settings && $hook != $sform_new && $pagenow != 'widgets.php' )212 if( $hook != $sform_entries && $hook != $sform_forms && $hook != $sform_form_page && $hook != $sform_editor && $hook != $sform_settings && $hook != $sform_new && $pagenow != 'widgets.php' && $pagenow != 'customize.php' ) 213 213 return; 214 214 … … 554 554 $main_settings = get_option('sform_settings'); 555 555 $admin_notices = isset($_POST['admin-notices']) ? 'true' : 'false'; 556 $admin_limits = isset($_POST['admin-limits']) ? 'true' : 'false'; 557 $widget_editor = isset($_POST['widget-editor']) ? 'true' : 'false'; 558 $widget_options = isset($_POST['widget-options']) ? 'true' : 'false'; 556 $frontend_notice = isset($_POST['frontend-notice']) ? 'true' : 'false'; 559 557 $admin_color = isset($_POST['admin-color']) ? sanitize_text_field($_POST['admin-color']) : 'default'; 560 558 $ajax_submission = isset($_POST['ajax-submission']) ? 'true' : 'false'; … … 709 707 $settings = array( 710 708 'admin_notices' => $admin_notices, 711 'admin_limits' => $admin_limits, 712 'widget_editor' => $widget_editor, 713 'widget' => $widget_options, 709 'frontend_notice' => $frontend_notice, 714 710 'admin_color' => $admin_color, 715 711 'ajax_submission' => $ajax_submission, … … 805 801 if ( $form_settings != '' ) { 806 802 $form_settings['admin_notices'] = $admin_notices; 807 $form_settings['admin_limits'] = $admin_limits; 808 $form_settings['widget_editor'] = $widget_editor; 809 $form_settings['widget'] = $widget_options; 803 $form_settings['frontend_notice'] = $frontend_notice; 810 804 $form_settings['admin_color'] = $admin_color; 811 805 $form_settings['deletion_data'] = $uninstall; … … 829 823 830 824 $admin_notices = ! empty($main_settings['admin_notices']) ? esc_attr($main_settings['admin_notices']) : 'false'; 831 $admin_limits = ! empty($main_settings['admin_limits']) ? esc_attr($main_settings['admin_limits']) : 'false'; 832 $widget_options = ! empty($main_settings['widget']) ? esc_attr($main_settings['widget']) : 'false'; 833 $widget_editor = ! empty($main_settings['widget_editor']) ? esc_attr($main_settings['widget_editor']) : 'false'; 825 $frontend_notice = ! empty($main_settings['frontend_notice']) ? esc_attr($main_settings['frontend_notice']) : 'true'; 834 826 $admin_color = ! empty($main_settings['admin_color']) ? esc_attr($main_settings['admin_color']) : 'default'; 835 827 $uninstall = ! empty($main_settings['deletion_data']) ? esc_attr($main_settings['deletion_data']) : 'false'; … … 848 840 'confirmation_pageid' => $confirmation_pageid, 849 841 'admin_notices' => $admin_notices, 850 'admin_limits' => $admin_limits, 851 'widget_editor' => $widget_editor, 852 'widget' => $widget_options, 842 'frontend_notice' => $frontend_notice, 853 843 'admin_color' => $admin_color, 854 844 'html5_validation' => $html5_validation, … … 937 927 if ( $update_result ) { 938 928 939 if ( $widget_editor == 'true' ):940 global $wpdb;941 $table_name = "{$wpdb->prefix}sform_shortcodes";942 $widget_forms = $wpdb->get_results( "SELECT id, widget FROM $table_name WHERE area != 'page' AND area != 'draft'", 'ARRAY_A' );943 $shortcodes_ids = array_column($widget_forms, 'id');944 $widget_ids = array_column($widget_forms, 'widget');945 $sidebars_widgets = get_option('sidebars_widgets');946 947 if ( $widget_ids ) {948 foreach($widget_ids as $widget_id) {949 $sform_widget = 'sform_widget-' . $widget_id;950 $sform_widget_array = array($sform_widget);951 foreach ( $sidebars_widgets as $sidebar => $widgets ) {952 if ( is_array( $widgets ) && in_array($sform_widget, $widgets)) {953 $sidebars_widgets[$sidebar] = array_diff($widgets,$sform_widget_array);954 update_option( 'sidebars_widgets', $sidebars_widgets );955 }956 }957 }958 $simpleform_widgets = array();959 update_option( 'widget_sform_widget', $simpleform_widgets );960 }961 962 if ( $shortcodes_ids ) {963 foreach($shortcodes_ids as $shortcode_id) {964 $wpdb->update($table_name, array('area' => 'page', 'widget' => '0'), array('id' => $shortcode_id ));965 }966 }967 endif;968 969 929 echo json_encode( array( 'error' => false, 'update' => true, 'message' => __( 'Settings were successfully saved', 'simpleform' ) ) ); 970 930 exit; … … 1162 1122 return; 1163 1123 } 1124 1125 // MERGE shortcode_pages AND block_pages 1126 // - QUERIES 1164 1127 1165 1128 $id = array($post_id); … … 1339 1302 1340 1303 } 1341 1342 /** 1343 * Display an admin notice in case there are any SimpleForm widgets running on WordPress 5.8. 1344 * 1345 * @since 2.0.3 1346 */ 1347 1348 public function general_admin_notice($hook){ 1349 1350 global $pagenow; 1351 1352 if ( $pagenow == 'widgets.php' ) { 1353 1354 $settings = get_option("sform_settings"); 1355 $widget_editor = ! empty( $settings['widget_editor'] ) ? esc_attr($settings['widget_editor']) : 'false'; 1356 $sidebars_widgets = get_option('sidebars_widgets'); 1357 $simpleform_widgets = ''; 1358 foreach ( $sidebars_widgets as $sidebar => $widgets ) { 1359 if ( is_array( $widgets ) ) { 1360 foreach ( $widgets as $key => $widget_id ) { 1361 if ( strpos($widget_id, 'sform_widget-' ) !== false ) { 1362 $simpleform_widgets .= '1'; 1363 } 1364 } 1365 } 1366 } 1367 1368 if ( ! empty($simpleform_widgets) && $widget_editor == 'false' ) { 1369 echo '<div class="notice notice-warning is-dismissible"><p>'. __( 'To maintain the best site editing experience for you, SimpleForm, the plugin you are using, has disabled the widget screen introduced in WordPress 5.8.', 'simpleform' ) . ' ' . __('To use the new widgets editor, you have to check the related option.', 'simpleform' ) . ' ' . __('Navigate to Contacts > Settings page. You will find the <b>"Widgets Block Editor"</b> option in the management preferences section within the general tab.', 'simpleform' ) . ' ' . __('By checking this option, all SimpleForm widgets used previously will be deleted. You can continue using the contact form as a widget, but you’ll have to manually insert it in widget areas as a block. You will not be able to choose where to display it by using the "Show/Hide on" and the "Selected pages" options.', 'simpleform' ) . '</p></div>'; 1370 } 1371 1372 } 1373 1374 } 1375 1304 1376 1305 /** 1377 1306 * Delete form. … … 1633 1562 1634 1563 if ( ! in_array($form_id, $form_ids) ) { 1635 1636 1564 echo json_encode(array('error' => true, 'redirect' => true, 'url' => admin_url('admin.php?page=sform-forms'), 'message' => __('The form has been permanently deleted', 'simpleform' ) )); 1637 1565 exit; 1638 1639 1566 } 1640 1567 … … 1717 1644 else { 1718 1645 $schedule = $wpdb->update($table_shortcodes, array('relocation' => '1', 'moveto' => $moveto, 'to_be_moved' => 'next', 'onetime_moving' => '0', 'deletion' => $deletion ), array('id' => $form_id )); 1719 1720 1646 $update .= $schedule ? 'done' : ''; 1721 1647 $message = sprintf( __( 'Moving to %s successfully scheduled', 'simpleform' ), $form_to_name ); 1722 1723 1648 } 1724 1649 -
simpleform/trunk/admin/class-widget.php
r2587421 r2679542 5 5 * 6 6 * @since 1.10 7 * @version 2.1.2 7 8 */ 8 9 … … 14 15 * @since 1.10 15 16 */ 17 18 // Add compatibility with the legacy widget block for versions of WordPress prior to 5.8 19 public $show_instance_in_rest = true; 16 20 17 21 public function __construct() { 18 22 19 $widget_options = array ('classname' => __FUNCTION__, 'description' => __( 'Displays a contact form with SimpleForm', 'simpleform' ) ); 20 parent::__construct('sform_widget', __( 'SimpleForm Contact Form', 'simpleform'), $widget_options ); 21 add_filter ('pre_update_option_sidebars_widgets',array($this, 'update_sform_shortcodes'), 10, 1); 22 add_action('delete_widget', array($this, 'cleanup_sform_shortcodes'), 10, 3 ); 23 add_filter('get_sform_shortcode_id', array($this, 'get_sform_shortcode_id') ); 23 if ( version_compare( $GLOBALS['wp_version'], '5.8', '<' ) ) { 24 $widget_options = array ('classname' => __FUNCTION__, 'description' => __( 'Display a contact form.', 'simpleform' ) ); 25 } 26 27 else { 28 $widget_options = array ('classname' => __FUNCTION__, 'description' => __( 'Display a contact form.', 'simpleform' ), 'show_instance_in_rest' => true ); 29 } 30 31 parent::__construct('sform_widget', __( 'SimpleForm', 'simpleform'), $widget_options ); 32 33 // Add/Remove the widget related form and options on update widgets 34 add_filter ('pre_update_option_sidebars_widgets',array($this, 'update_forms'), 10, 1); 35 // Delete the form after a widget has been marked for deletion 36 add_action('delete_widget', array($this, 'cleanup_sform_shortcodes'), 10, 3 ); 37 // Get the form ID used in the widget 38 add_filter('get_sform_shortcode_id', array($this, 'get_form_id') ); 39 // Hide the widget from the legacy widget block 24 40 add_filter( 'widget_types_to_hide_from_legacy_widget_block', array( $this, 'hide_sform_widget' )); 25 41 26 42 } 27 43 28 44 /** 29 45 * Output the widget admin form … … 39 55 $shortcode_id = ! empty( $instance['shortcode_id'] ) ? $instance['shortcode_id'] : apply_filters( 'get_sform_shortcode_id', $this->number ); 40 56 $widget_id = ! empty( $instance['sform_widget_id'] ) ? $instance['sform_widget_id'] : ''; 41 $class 57 $class = ! empty( $instance['sform_widget_class'] ) ? $instance['sform_widget_class'] : ''; 42 58 $visibility = ! empty( $instance['sform_widget_visibility'] ) ? $instance['sform_widget_visibility'] : 'all'; 43 59 $hidden_pages = ! empty( $instance['sform_widget_hidden_pages'] ) ? $instance['sform_widget_hidden_pages'] : ''; 44 60 $visible_pages = ! empty( $instance['sform_widget_visible_pages'] ) ? $instance['sform_widget_visible_pages'] : ''; 45 $id = is_int($this->number) ? $this->number : '0';46 $util = new SimpleForm_Util();47 $placeholder = $id . ':widget';48 $pages = $util->form_pages($placeholder);49 61 $hidden_pages_array = ! empty($hidden_pages) ? explode(',',$hidden_pages) : array(); 50 $visible_pages_array = ! empty($visible_pages) ? explode(',',$visible_pages) : array(); 51 $pages_list = ''; 52 $counter = 0; 53 54 switch ($visibility) { 55 case 'all': 56 if ( ! empty($pages) ) { $total = count($pages); foreach ( $pages as $page ) { ++$counter; $separator = $counter < $total ? ',' : '' ; $pages_list .= '<a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none; color:#b12938;">'. $page .'</a>' . $separator; } } 57 break; 58 case 'visible': 59 if ( ! empty($pages) && ! empty(array_intersect($pages, $visible_pages_array) ) ) { $total = count(array_intersect($pages, $visible_pages_array)); foreach ( array_intersect($pages, $visible_pages_array) as $page ) { ++$counter; $separator = $counter < $total ? ',' : '' ; $pages_list .= '<a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none; color:#b12938;">'. $page .'</a>' . $separator; } } 60 break; 61 case 'hidden': 62 if ( ! empty($pages) ) { foreach ( $pages as $page ) { if ( ! in_array($page,$hidden_pages_array) ) { ++$counter; $pages_list .= '<a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none; color:#b12938;">'. $page .'</a>,'; } } $total = $counter; if (!empty($pages_list)) { $pages_list = substr($pages_list, 0, -1); } } 63 } 64 65 if ( ! empty($pages_list) ) { 66 $alert = '<div>' . _n( 'The widget cannot be displayed on this page', 'The widget cannot be displayed on these pages', $total, 'simpleform' ) . ': ' . $pages_list . '<br>' . __( 'You may display the form only once to make it work properly.', 'simpleform' ) . '</div>'; 67 } 68 else { 69 $alert = ''; 70 } 71 72 echo '<div class="widget-alert">'.$alert.'</div>'; 62 $visible_pages_array = ! empty($visible_pages) ? explode(',',$visible_pages) : array(); 63 $settings = get_option('sform_settings'); 64 $color = ! empty( $settings['admin_color'] ) ? esc_attr($settings['admin_color']) : 'default'; 73 65 ?> 74 66 … … 77 69 <p><label for="<?php echo $this->get_field_id( 'sform_widget_audience' ); ?>"><?php _e( 'Show for:', 'simpleform' ) ?></label><select name="<?php echo $this->get_field_name( 'sform_widget_audience' ); ?>" id="<?php echo $this->get_field_id('sform_widget_audience') ?>" class="widefat sform-target" field="<?php echo $this->number;?>" ><option value="all" <?php selected( $audience, 'all') ?>><?php _e( 'Everyone', 'simpleform' ) ?></option><option value="out" <?php echo selected( $audience, 'out' ) ?>><?php _e( 'Logged-out users', 'simpleform' ) ?></option><option value="in" <?php echo selected( $audience, 'in' ) ?>><?php _e( 'Logged-in users', 'simpleform' ) ?></option></select></p> 78 70 79 <p id="usertype" class="role-<?php echo $this->number; if ( $audience !='in' ) {echo ' unseen'; } ?>"><label for="<?php echo $this->get_field_id( 'sform_widget_role' ); ?>"><?php _e( 'Role', 'simpleform' ) ?>:</label><select name="<?php echo $this->get_field_name( 'sform_widget_role' ); ?>" id="<?php echo $this->get_field_id( 'sform_widget_role' ); ?>" class="widefat"><option value="any" <?php selected( $role, 'any') ?>><?php _e('Any','simpleform') ?></option><?php wp_dropdown_roles($role)?></select></p>71 <p id="usertype" class="role-<?php echo $this->number; if ( $audience !='in' ) {echo ' unseen'; } ?>"><label for="<?php echo $this->get_field_id( 'sform_widget_role' ); ?>"><?php _e( 'Role', 'simpleform' ) ?>:</label><select name="<?php echo $this->get_field_name( 'sform_widget_role' ); ?>" id="<?php echo $this->get_field_id( 'sform_widget_role' ); ?>" class="widefat"><option value="any" <?php selected( $role, 'any') ?>><?php _e('Any','simpleform') ?></option><?php $roles = ''; $wp_roles = wp_roles()->roles; foreach ( $wp_roles as $wp_role => $details ) { $name = translate_user_role( $details['name'] ); if ( $role === $wp_role ) { $roles .= "\n\t<option selected='selected' value='" . esc_attr( $wp_role ) . "'>$name</option>"; } else { $roles .= "\n\t<option value='" . esc_attr( $wp_role ) . "'>$name</option>"; } } echo $roles; ?></select></p> 80 72 81 <?php 82 $settings = get_option('sform_settings'); 83 $color = ! empty( $settings['admin_color'] ) ? esc_attr($settings['admin_color']) : 'default'; 84 $widget_options = ! empty( $settings['widget'] ) ? esc_attr($settings['widget']) : 'true'; 85 if ( $widget_options == 'true' ) { 86 ?> 87 88 <p id="visibility" class="<?php if ( $visibility =='all' ) {echo 'visibility'; } ?>"> 89 <label for="<?php echo $this->get_field_id( 'sform_widget_visibility' ) ?>"><?php _e( 'Show/Hide on:', 'simpleform' ) ?></label> 90 <select name="<?php echo $this->get_field_name( 'sform_widget_visibility' ) ?>" id="<?php echo $this->get_field_id( 'sform_widget_visibility' ) ?>" class="widefat sfwidget" box="visibility-<?php echo $this->number; ?>"> 91 <option value="all" <?php selected( $visibility, 'all') ?>><?php _e( 'Show anywhere', 'simpleform' ) ?></option> 92 <option value="hidden" <?php selected( $visibility, 'hidden') ?>><?php _e( 'Hide on selected', 'simpleform' ) ?></option> 93 <option value="visible" <?php selected( $visibility, 'visible') ?>><?php _e( 'Show on selected', 'simpleform' ) ?></option> 94 </select> 95 </p> 96 97 <p id="visibility-notes" class="<?php if ( $visibility !='all' ) {echo ' unseen';}?>"><?php _e( 'Pages including shortcode or block are excluded by default', 'simpleform' ) ?></p> 98 73 <p id="visibility" class="<?php if ( $visibility =='all' ) {echo 'visibility'; } ?>"><label for="<?php echo $this->get_field_id( 'sform_widget_visibility' ) ?>"><?php _e( 'Show/Hide on:', 'simpleform' ) ?></label><select name="<?php echo $this->get_field_name( 'sform_widget_visibility' ) ?>" id="<?php echo $this->get_field_id( 'sform_widget_visibility' ) ?>" class="widefat sfwidget" box="visibility-<?php echo $this->number; ?>"><option value="all" <?php selected( $visibility, 'all') ?>><?php _e( 'Show anywhere', 'simpleform' ) ?></option><option value="hidden" <?php selected( $visibility, 'hidden') ?>><?php _e( 'Hide on selected', 'simpleform' ) ?></option><option value="visible" <?php selected( $visibility, 'visible') ?>><?php _e( 'Show on selected', 'simpleform' ) ?></option></select></p> 74 99 75 <div id="sform-widget-hidden-pages" class="widget-pages visibility-<?php echo $this->number; if ( $visibility !='hidden' ) {echo ' unseen';}?>"> 100 76 <p class="first"> 101 77 <label for="<?php echo $this->get_field_id( 'sform_widget_hidden_pages' ) ?>"><?php _e( 'Selected pages', 'simpleform' ) ?>:</label> 102 <input class="widefat" id="<?php echo $this->get_field_id( 'sform_widget_hidden_pages' ); ?>" name="<?php echo $this->get_field_name( 'sform_widget_hidden_pages' ) ?>" type="text" value="<?php echo $hidden_pages; ?>" placeholder=" <?php esc_attr_e('List includes pages with a shortcode or block','simpleform') ?>"></p>78 <input class="widefat" id="<?php echo $this->get_field_id( 'sform_widget_hidden_pages' ); ?>" name="<?php echo $this->get_field_name( 'sform_widget_hidden_pages' ) ?>" type="text" value="<?php echo $hidden_pages; ?>" placeholder=""></p> 103 79 <p class="sform-widget-description"><?php _e( 'Use a comma-separated list of IDs for more than one page', 'simpleform' ) ?></p> 104 80 </div> … … 107 83 <p class="first"> 108 84 <label for="<?php echo $this->get_field_id( 'sform_widget_visible_pages' ); ?>"><?php _e( 'Selected pages', 'simpleform' ) ?>:</label> 109 <input type="text" name="<?php echo $this->get_field_name('sform_widget_visible_pages') ?>" id="<?php echo $this->get_field_id( 'sform_widget_visible_pages' ) ?>" class="widefat" value="<?php echo $visible_pages ?>" placeholder=" <?php esc_attr_e('List excludes pages with a shortcode or block','simpleform') ?>"></p>85 <input type="text" name="<?php echo $this->get_field_name('sform_widget_visible_pages') ?>" id="<?php echo $this->get_field_id( 'sform_widget_visible_pages' ) ?>" class="widefat" value="<?php echo $visible_pages ?>" placeholder=""></p> 110 86 <p class="sform-widget-description"><?php _e( 'Use a comma-separated list of IDs for more than one page', 'simpleform' ) ?></p> 111 87 </div> 112 88 113 <?php114 }115 ?>116 117 89 <div class="sform-widget-boxes"> 118 <p><b ><?php _e( 'Add CSS selectors to customize the widget:', 'simpleform' ) ?></b></p>90 <p><b style="font-size: 13px"><?php _e( 'Add CSS selectors to customize the widget:', 'simpleform' ) ?></b></p> 119 91 120 92 <p><label for="<?php echo $this->get_field_id( 'sform_widget_id' ) ?>"><?php _e( 'Custom ID:', 'simpleform' ); ?></label><input type="text" name="<?php echo $this->get_field_name( 'sform_widget_id' ) ?>" id="<?php echo $this->get_field_id( 'sform_widget_id' ) ?>" class="widefat" value="<?php echo esc_attr( $widget_id ) ?>"></p> … … 124 96 125 97 <?php if ( $shortcode_id) { ?> 126 127 <div class="sform-widget-boxes buttons"><p><b><?php _e( 'Change how the contact form is displayed and works:', 'simpleform' ) ?></b></p><p id="widget-buttons"><a href="<?php echo admin_url('admin.php?page=sform-editor') . '&form='. $shortcode_id; ?>" target="_blank"><span id="widget-button-editor" class="wp-core-ui button <?php echo $color ?>"><?php _e( 'Open Editor', 'simpleform' ) ?></span></a><a href="<?php echo admin_url('admin.php?page=sform-settings') . '&form='. $shortcode_id; ?>" target="_blank"><span id="widget-button-settings" class="wp-core-ui button <?php echo $color ?>"><?php _e( 'Open Settings', 'simpleform' ) ?></span></a></p></div> 128 129 <?php 130 } 98 <div class="sform-widget-boxes buttons"><p><b style="font-size: 13px"><?php _e( 'Change how the contact form is displayed and works:', 'simpleform' ) ?></b></p><p id="widget-buttons"><a href="<?php echo admin_url('admin.php?page=sform-editor') . '&form='. $shortcode_id; ?>" target="_blank"><span id="widget-button-editor" class="wp-core-ui button <?php echo $color ?>"><?php _e( 'Open Editor', 'simpleform' ) ?></span></a><a href="<?php echo admin_url('admin.php?page=sform-settings') . '&form='. $shortcode_id; ?>" target="_blank"><span id="widget-button-settings" class="wp-core-ui button <?php echo $color ?>"><?php _e( 'Open Settings', 'simpleform' ) ?></span></a></p></div> 99 <?php } 131 100 132 101 } … … 148 117 $role_values = array_merge(array_keys($roles),$all_roles); 149 118 $instance['sform_widget_role'] = $instance['sform_widget_audience'] == 'in' && isset($new_instance['sform_widget_role']) && in_array($new_instance['sform_widget_role'], $role_values) ? $new_instance['sform_widget_role'] : 'any'; 150 151 global $wpdb;152 $table_name = $wpdb->prefix . 'sform_shortcodes';153 $sql = "SELECT id FROM `$table_name` WHERE widget = %s";154 $form_id = $wpdb->get_var( $wpdb->prepare( $sql, $this->number ) );155 if ( $form_id ) {156 $instance['shortcode_id'] = $form_id;157 $form_attributes = get_option('sform_'.$form_id.'_attributes');158 $form_attributes['show_for'] = $instance['sform_widget_audience'];159 $form_attributes['user_role'] = $instance['sform_widget_role'];160 update_option('sform_'.$form_id.'_attributes', $form_attributes);161 }162 163 119 $settings = get_option('sform_settings'); 164 $widget_options = ! empty( $settings['widget'] ) ? esc_attr($settings['widget']) : 'true';165 if ( $widget_options == 'true' ) {166 120 $instance['sform_widget_visibility'] = isset($new_instance['sform_widget_visibility']) && in_array($new_instance['sform_widget_visibility'], array('all', 'hidden', 'visible')) ? $new_instance['sform_widget_visibility'] : 'all'; 167 168 121 $checked_hidden_pages = preg_match('/^[0-9, ]+$/', $new_instance['sform_widget_hidden_pages']) ? str_replace(' ', '', $new_instance['sform_widget_hidden_pages']) : ''; 169 122 if ( ! empty($checked_hidden_pages) ) { … … 180 133 $instance_hidden_pages = ''; 181 134 } 182 183 135 $instance['sform_widget_hidden_pages'] = $instance_hidden_pages; 184 185 136 $checked_visible_pages = preg_match('/^[0-9, ]+$/', $new_instance['sform_widget_visible_pages']) ? str_replace(' ', '', $new_instance['sform_widget_visible_pages']) : ''; 186 137 if ( ! empty($checked_visible_pages) ) { 187 // Remove first and last comma, empty id and fake page id188 138 $visible_pages_array = explode(',',$checked_visible_pages); 189 139 foreach ($visible_pages_array as $key => $post) { … … 197 147 $instance_visible_pages = ''; 198 148 } 199 200 $instance['sform_widget_visible_pages'] = $instance_visible_pages; 201 } 202 149 $instance['sform_widget_visible_pages'] = $instance_visible_pages; 203 150 $instance['sform_widget_id'] = isset( $new_instance['sform_widget_id'] ) ? sanitize_text_field($new_instance['sform_widget_id']) : ''; 204 151 $instance['sform_widget_class'] = isset( $new_instance['sform_widget_class'] ) ? sanitize_text_field($new_instance['sform_widget_class']) : ''; 205 152 206 153 return $instance; 207 154 … … 216 163 public function widget( $args, $instance ) { 217 164 218 $title = isset( $instance['sform_widget_title'] ) ? $instance['sform_widget_title'] : '';165 $current_user = wp_get_current_user(); 219 166 $widget_audience = isset( $instance['sform_widget_audience']) ? $instance['sform_widget_audience'] : 'all'; 220 $role = isset( $instance['sform_widget_role'] ) ? $instance['sform_widget_role'] : 'any'; 221 $id = isset( $instance['sform_widget_id'] ) ? $instance['sform_widget_id'] : ''; 222 $class = isset( $instance['sform_widget_class'] ) ? $instance['sform_widget_class'] : ''; 223 $shortcode_id = isset( $instance['shortcode_id'] ) ? $instance['shortcode_id'] : ''; 224 global $wpdb; 225 $table_name = "{$wpdb->prefix}sform_shortcodes"; 226 227 if ( empty($shortcode_id) ) { 228 $widget_id = $this->number; 229 $sql = "SELECT id FROM `$table_name` WHERE widget = %s"; 230 $shortcode_id = $wpdb->get_var( $wpdb->prepare( $sql, $widget_id ) ); 231 } 232 $settings = get_option("sform_{$shortcode_id}_settings") != false ? get_option("sform_{$shortcode_id}_settings") : get_option("sform_settings"); 233 $widget_options = ! empty( $settings['widget'] ) ? esc_attr($settings['widget']) : 'true'; 234 $admin_limits = ! empty( $settings['admin_limits'] ) ? esc_attr($settings['admin_limits']) : 'false'; 235 global $post; 236 237 if ( ( current_user_can('manage_options') && $admin_limits != 'true' && $widget_audience == 'out' && is_user_logged_in() ) || ( !current_user_can('manage_options') && $widget_audience == 'out' && is_user_logged_in() ) || ( $widget_audience == 'in' && ! is_user_logged_in() ) ) 238 return; 239 240 $current_user = wp_get_current_user(); 241 if ( ( current_user_can('manage_options') && $admin_limits != 'true' || !current_user_can('manage_options') ) && $widget_audience != 'all' && $role != 'any' && ! in_array( $role, (array) $current_user->roles ) ) 242 return; 243 244 if ( $widget_options == 'true' ) { 245 167 $role = isset( $instance['sform_widget_role'] ) ? $instance['sform_widget_role'] : 'any'; 246 168 $widget_visibility = isset( $instance['sform_widget_visibility']) ? $instance['sform_widget_visibility'] : 'all'; 247 169 $hidden_pages = isset( $instance['sform_widget_hidden_pages'] ) ? explode(',',$instance['sform_widget_hidden_pages']) : array(); 248 170 $visible_pages = isset( $instance['sform_widget_visible_pages'] ) ? explode(',',$instance['sform_widget_visible_pages']) : array(); 249 250 $util = new SimpleForm_Util(); 251 $pages = $util->form_pages($shortcode_id); 171 $title = isset( $instance['sform_widget_title'] ) ? $instance['sform_widget_title'] : ''; 172 $id = isset( $instance['sform_widget_id'] ) ? $instance['sform_widget_id'] : ''; 173 $class = isset( $instance['sform_widget_class'] ) ? $instance['sform_widget_class'] : ''; 174 $shortcode_id = isset( $instance['shortcode_id'] ) ? $instance['shortcode_id'] : apply_filters( 'get_sform_shortcode_id', $this->number ); 175 $settings = ! empty($shortcode_id) && get_option("sform_{$shortcode_id}_settings") != false ? get_option("sform_{$shortcode_id}_settings") : get_option("sform_settings"); 176 $frontend_notice = ! empty( $settings['frontend_notice'] ) ? esc_attr($settings['frontend_notice']) : 'true'; 177 global $post; 178 if ( $widget_audience == 'out' ) { $form_user = '<b>' . __( 'logged-out users','simpleform') . '</b>'; $for_role = ''; } 179 elseif ( $widget_audience == 'in' ) { $form_user = '<b>' . __( 'logged-in users','simpleform') . '</b>'; $for_role = $role; } 180 else { $form_user = __( 'everyone','simpleform'); $for_role = ''; } 181 $form_user_role = !empty($for_role) ? ' ' . __( 'with the role of','simpleform') . ' <b>' . translate_user_role(ucfirst($role)) . '</b>' : '' ; 182 $role_message = '<div id="sform-admin-message" style="font-size: 0.8em; border: 1px solid; margin-top: 20px; padding: 20px 15px; height: -webkit-fit-content; height: -moz-fit-content; height: fit-content;"><p class="heading" style="font-weight: 600; margin-bottom: 10px;">'. __('SimpleForm Admin Notice', 'simpleform') . '</p>'. __('The form is visible only for ', 'simpleform') . $form_user . $form_user_role . '. ' . __( 'Your role does not allow you to see it!','simpleform') .'</div>'; 183 $page_message = '<div id="sform-admin-message" style="font-size: 0.8em; border: 1px solid; margin-top: 20px; padding: 20px 15px; height: -webkit-fit-content; height: -moz-fit-content; height: fit-content;"><p class="heading" style="font-weight: 600; margin-bottom: 10px;">'. __('SimpleForm Admin Notice', 'simpleform') . '</p>'. __('The form cannot be viewed in this page due to visibility settings setted!', 'simpleform') .'</div>'; 184 $is_gb_editor = defined( 'REST_REQUEST' ) && REST_REQUEST; 185 186 if ( ( $widget_audience == 'out' && is_user_logged_in() ) || ( $widget_audience == 'in' && ! is_user_logged_in() ) || ( $widget_audience == 'in' && is_user_logged_in() && $role != 'any' && ! in_array( $role, (array) $current_user->roles ) ) ) 187 // Check if the current request is inside the Customizer preview, if true show a notice when option enabled 188 if ( is_customize_preview() && $frontend_notice == 'true' ) { 189 echo $args['before_widget'] . $role_message . $args['after_widget']; 190 return; 191 } 192 elseif ( $is_gb_editor ) { 193 // Display always 194 } 195 else { 196 // Do not display 197 return; 198 } 199 200 if ( ( $widget_visibility == 'hidden' && $post && in_array($post->ID,$hidden_pages) ) || ( $widget_visibility == 'visible' && $post && ! in_array($post->ID,$visible_pages) ) ) 201 if ( is_customize_preview() && $frontend_notice == 'true' ) { 202 echo $args['before_widget'] . $page_message . $args['after_widget']; 203 return; 204 } 205 elseif ( $is_gb_editor ) { 206 } 207 else { 208 return; 209 } 210 211 echo $args['before_widget'] . '<div id="'.$id.'" class="sforms-widget '.$class.'">'; 212 213 if ( $title ) { echo $args['before_title'] . $title . $args['after_title']; } 252 214 253 If ( ! empty($pages) ) { 254 if ( is_admin() || ( $widget_visibility == 'all' && in_array($post->ID,$pages) ) || ( $widget_visibility == 'hidden' && in_array($post->ID,$pages) && ! in_array($post->ID,$hidden_pages) ) || ( $widget_visibility == 'visible' && in_array($post->ID,$pages) && in_array($post->ID,$visible_pages) ) ) 255 return; 256 } 257 else { 258 if ( is_admin() || ( $widget_visibility == 'hidden' && in_array($post->ID,$hidden_pages) ) || ( $widget_visibility == 'visible' && ! in_array($post->ID,$visible_pages) ) ) 259 return; 260 } 261 262 } 263 264 echo $args['before_widget'] . '<div id="'.$id.'" class="sforms-widget '.$class.'">'; 265 266 if ( $title ) { echo $args['before_title'] . $title . $args['after_title']; } 267 268 $shortcode = '[simpleform id="'.$shortcode_id.'"]'; 215 $shortcode = '[simpleform id="'.$shortcode_id.'"]'; 269 216 270 echo do_shortcode( $shortcode );217 echo do_shortcode( $shortcode ); 271 218 272 echo '</div>' . $args['after_widget'];273 274 $cssfile = ! empty( $settings['stylesheet_file'] ) ? esc_attr($settings['stylesheet_file']) : 'false';275 $form_template = ! empty( $settings['form_template'] ) ? esc_attr($settings['form_template']) : 'default';276 $stylesheet = ! empty( $settings['stylesheet'] ) ? esc_attr($settings['stylesheet']) : 'false';277 278 if ( $stylesheet == 'false' ) {219 echo '</div>' . $args['after_widget']; 220 221 $cssfile = ! empty( $settings['stylesheet_file'] ) ? esc_attr($settings['stylesheet_file']) : 'false'; 222 $form_template = ! empty( $settings['form_template'] ) ? esc_attr($settings['form_template']) : 'default'; 223 $stylesheet = ! empty( $settings['stylesheet'] ) ? esc_attr($settings['stylesheet']) : 'false'; 224 225 if ( $stylesheet == 'false' ) { 279 226 wp_enqueue_style( 'sform-public-style' ); 280 } else {227 } else { 281 228 if( $cssfile == 'true' ) { 282 229 wp_enqueue_style( 'sform-custom-style' ); 283 230 } 284 }285 286 $ajax = ! empty( $settings['ajax_submission'] ) ? esc_attr($settings['ajax_submission']) : 'false';287 $javascript = ! empty( $settings['javascript'] ) ? esc_attr($settings['javascript']) : 'false';288 $ajax_error = ! empty( $settings['ajax_error'] ) ? stripslashes(esc_attr($settings['ajax_error'])) : __( 'Error occurred during AJAX request. Please contact support!', 'simpleform' );289 $outside_error = ! empty( $settings['outside_error'] ) ? esc_attr($settings['outside_error']) : 'bottom';290 $outside = $outside_error == 'top' || $outside_error == 'bottom' ? 'true' : 'false';291 292 wp_localize_script('sform_public_script', 'ajax_sform_processing', array('ajaxurl' => admin_url('admin-ajax.php'), 'ajax_error' => $ajax_error, 'outside' => $outside ));293 wp_enqueue_script( 'sform_form_script');294 if( $ajax == 'true' ) {295 wp_enqueue_script( 'sform_public_script');296 }297 if ( $javascript == 'true' ) {298 if (is_child_theme() ) {299 wp_enqueue_script( 'sform-custom-script', get_stylesheet_directory_uri() . '/simpleform/custom-script.js', array( 'jquery' ), '', true );300 } else {301 wp_enqueue_script( 'sform-custom-script', get_template_directory_uri() . '/simpleform/custom-script.js', array( 'jquery' ), '', true );302 }303 }231 } 232 233 $ajax = ! empty( $settings['ajax_submission'] ) ? esc_attr($settings['ajax_submission']) : 'false'; 234 $javascript = ! empty( $settings['javascript'] ) ? esc_attr($settings['javascript']) : 'false'; 235 $ajax_error = ! empty( $settings['ajax_error'] ) ? stripslashes(esc_attr($settings['ajax_error'])) : __( 'Error occurred during AJAX request. Please contact support!', 'simpleform' ); 236 $outside_error = ! empty( $settings['outside_error'] ) ? esc_attr($settings['outside_error']) : 'bottom'; 237 $outside = $outside_error == 'top' || $outside_error == 'bottom' ? 'true' : 'false'; 238 239 wp_localize_script('sform_public_script', 'ajax_sform_processing', array('ajaxurl' => admin_url('admin-ajax.php'), 'ajax_error' => $ajax_error, 'outside' => $outside )); 240 wp_enqueue_script( 'sform_form_script'); 241 if( $ajax == 'true' ) { 242 wp_enqueue_script( 'sform_public_script'); 243 } 244 if ( $javascript == 'true' ) { 245 if (is_child_theme() ) { 246 wp_enqueue_script( 'sform-custom-script', get_stylesheet_directory_uri() . '/simpleform/custom-script.js', array( 'jquery' ), '', true ); 247 } else { 248 wp_enqueue_script( 'sform-custom-script', get_template_directory_uri() . '/simpleform/custom-script.js', array( 'jquery' ), '', true ); 249 } 250 } 304 251 305 252 } 306 253 307 254 /** 308 * Add/ Edit shortcode related to simpleform widget309 * 310 * @since 1.10311 */ 312 313 public function update_ sform_shortcodes($sidebars_widgets) {314 315 foreach ( $sidebars_widgets as $sidebar => $widgets ) { 316 if ( is_array( $widgets ) ) { 317 foreach ( $widgets as $key => $widget_id ) { 318 if ( strpos($widget_id, 'sform_widget-' ) !== false) {319 $id = explode("sform_widget-", $widget_id)[1]; 320 global $wp_registered_sidebars; 321 $widget_area = isset($wp_registered_sidebars[$sidebar]['name']) ? $wp_registered_sidebars[$sidebar]['name'] : '';322 global $wpdb; 323 $table_name = $wpdb->prefix . 'sform_shortcodes'; 324 $sql = "SELECT id FROM `$table_name` WHERE widget = %s"; 325 $shortcode = $wpdb->get_var( $wpdb->prepare( $sql, $id ) );326 // Check if exists the shortcode for this widget327 if ( ! $shortcode) {328 $rows = $wpdb->get_row(" SHOW TABLE STATUS LIKE '$table_name'");255 * Add/Remove the widget related form and options on update widgets 256 * 257 * @since 2.1.2 258 */ 259 260 public function update_forms($sidebars_widgets) { 261 262 global $wp_registered_sidebars, $wpdb; 263 $sform_widget = get_option('widget_sform_widget'); 264 265 foreach ( $sidebars_widgets as $sidebar => $widgets ) { 266 if ( is_array( $widgets ) && $sidebar !== 'wp_inactive_widgets' ) { 267 foreach ( $widgets as $key => $value ) { 268 if ( strpos($value, 'sform_widget-' ) !== false ) { 269 $id = explode("sform_widget-", $value)[1]; 270 if ( ! isset( $sform_widget[$id]['shortcode_id'] ) ) { 271 $widget_area = isset($wp_registered_sidebars[$sidebar]['name']) ? $wp_registered_sidebars[$sidebar]['name'] : ''; 272 $sql = "SELECT id FROM {$wpdb->prefix}sform_shortcodes WHERE widget = %d"; 273 $form_id = $wpdb->get_var( $wpdb->prepare( $sql, $id ) ); 274 if ( ! $form_id ) { 275 $rows = $wpdb->get_row("SHOW TABLE STATUS LIKE '{$wpdb->prefix}sform_shortcodes'"); 329 276 $shortcode_id = $rows->Auto_increment; 330 277 $shortcode_name = 'simpleform id="'.$shortcode_id.'"'; 331 278 $search_name = '%'. __( 'Contact Form','simpleform') . '%'; 332 $sql = $wpdb->prepare("SELECT name FROM $table_name WHERE name LIKE %s AND widget != 0", $search_name);279 $sql = $wpdb->prepare("SELECT name FROM {$wpdb->prefix}sform_shortcodes WHERE name LIKE %s", $search_name); 333 280 $names = $wpdb->get_col($sql); 334 281 $number =array(); … … 341 288 $new_suffix = !empty($number)? max($number) + 1 : ''; 342 289 $name_suffix = $new_suffix == 1 ? '2' : $new_suffix; 343 $form_name = __( 'Contact Form','simpleform') . ' ' . $name_suffix; 344 $wpdb->insert($table_name, array('shortcode' => $shortcode_name, 'area' => $widget_area, 'name' => $form_name, 'widget' => $this->number )); 345 // Set shortcode id without saving widget (It allows to show setting buttons on reload) 346 $sform_widget = get_option('widget_sform_widget'); 290 $form_name = __( 'Contact Form','simpleform') . ' ' . $name_suffix; 291 $wpdb->insert($wpdb->prefix . 'sform_shortcodes', array('shortcode' => $shortcode_name, 'area' => $widget_area, 'name' => $form_name, 'widget' => $id, 'status' => 'published', 'target' => 'all' )); 347 292 $sform_widget[$id]['shortcode_id'] = $shortcode_id; 348 293 update_option('widget_sform_widget', $sform_widget); … … 353 298 add_option("sform_{$shortcode_id}_settings", $default_settings); 354 299 } 355 else { 356 $sql = "SELECT area FROM `$table_name` WHERE widget = %s"; 357 $area = $wpdb->get_var( $wpdb->prepare( $sql, $id ) ); 358 if ( isset($area) && $area != $widget_area ) { 359 $wpdb->update($table_name, array('area' => $widget_area), array('widget' => $id )); 360 } 361 } 300 } 301 } 302 } 303 304 } 305 306 // Delete inactive widgets and related data after a widget has been marked for removal inside the Customizer preview 307 if ( is_array( $widgets ) && $sidebar === 'wp_inactive_widgets' ) { 308 foreach ( $widgets as $key => $value ) { 309 if ( strpos($value, 'sform_widget-' ) !== false ) { 310 $id = explode("sform_widget-", $value)[1]; 311 if ( isset( $sform_widget[$id]['shortcode_id'] ) ) { 312 $form_id = $sform_widget[$id]['shortcode_id']; 313 } 314 else { 315 $form_id = $wpdb->get_var( $wpdb->prepare( "SELECT id FROM {$wpdb->prefix}sform_shortcodes WHERE widget = %d", $id ) ); 316 } 317 $pattern1 = 'sform_'.$form_id.'_%'; 318 $pattern2 = 'sform_last_'.$form_id.'_message'; 319 $wpdb->query( $wpdb->prepare("DELETE FROM {$wpdb->options} WHERE option_name LIKE '%s' OR option_name = '%s'", $pattern1, $pattern2) ); 320 unset($sform_widget[$id]); 321 // Rewrite option without occurrences of this widget. 322 update_option('widget_sform_widget', $sform_widget); 323 unset($sidebars_widgets['wp_inactive_widgets'][$key]); 324 $wpdb->delete($wpdb->prefix . 'sform_shortcodes', array('id' => $form_id, 'widget' => $id )); 325 $wpdb->delete( $wpdb->prefix . 'sform_submissions', array('form' => $form_id ) ); 362 326 } 363 } 364 } 365 } 366 367 return $sidebars_widgets; 327 } 328 } 329 330 } 331 332 return $sidebars_widgets; 368 333 369 334 } 370 335 371 336 /** 372 * Delete the shortcode after a widget has been marked for deletion and update the widget option337 * Delete the form after a widget has been marked for deletion 373 338 * 374 339 * @since 1.10 … … 380 345 $id = explode("sform_widget-", $widget_id)[1]; 381 346 global $wpdb; 382 $table_name = $wpdb->prefix . 'sform_shortcodes'; 383 $sql = "SELECT id FROM `$table_name` WHERE widget = %s"; 347 $sql = "SELECT id FROM {$wpdb->prefix}sform_shortcodes WHERE widget = %s"; 384 348 $form_id = $wpdb->get_var( $wpdb->prepare( $sql, $id ) ); 385 $wpdb->delete($table_name, array('widget' => $id )); 386 $table_submissions = "{$wpdb->prefix}sform_submissions"; 387 // Use a new option to ask if the submissions should be saved and should be included in the main form or deleted 388 $wpdb->update($table_submissions, array('form' => '1'), array( 'form' => $form_id)); 389 $attributes_option = 'sform_'.$form_id.'_attributes'; 390 $attributes = get_option($attributes_option); 391 if ( $attributes != false ) { $wpdb->query( $wpdb->prepare("DELETE FROM {$wpdb->options} WHERE option_name = '%s'", $attributes_option) ); } 392 $settings_option = 'sform_'.$form_id.'_settings'; 393 $settings = get_option('sform_'.$form_id.'_settings'); 394 if ( $settings != false ) { $wpdb->query( $wpdb->prepare("DELETE FROM {$wpdb->options} WHERE option_name = '%s'", $settings_option) ); } 395 396 // DELETE LAST MESSAGE TRANSIENT 349 $wpdb->delete($wpdb->prefix . 'sform_shortcodes', array('widget' => $id )); 350 $wpdb->delete( $wpdb->prefix . 'sform_submissions', array('form' => $form_id ) ); 351 $pattern1 = 'sform_'.$form_id.'_%'; 352 $pattern2 = 'sform_last_'.$form_id.'_message'; 353 $wpdb->query( $wpdb->prepare("DELETE FROM {$wpdb->options} WHERE option_name LIKE '%s' OR option_name = '%s'", $pattern1, $pattern2) ); 397 354 $sform_widget = get_option('widget_sform_widget'); 398 355 unset($sform_widget[$id]); 356 // Rewrite option without occurrences of this widget. 399 357 update_option('widget_sform_widget', $sform_widget); 400 358 } … … 403 361 404 362 /** 405 * Get the shortcode id when the widget is activated for the first time406 * 407 * @since 1.10.6408 */ 409 410 public function get_ sform_shortcode_id() {363 * Get the form ID used in the widget 364 * 365 * @since 2.1.2 366 */ 367 368 public function get_form_id($widget_id) { 411 369 412 global $wpdb; 413 $table_name = $wpdb->prefix . 'sform_shortcodes'; 414 $rows = $wpdb->get_row(" SHOW TABLE STATUS LIKE '$table_name' "); 415 $shortcode_id = $rows->Auto_increment; 416 370 $id = is_int($widget_id) && (int)$widget_id > 0 ? $widget_id : ''; 371 $shortcode_id = ''; 372 373 if ( ! empty($id) ) { 374 global $wpdb; 375 $sql = "SELECT id FROM {$wpdb->prefix}sform_shortcodes WHERE widget = %d"; 376 $formID = $wpdb->get_var( $wpdb->prepare( $sql, $id ) ); 377 if ( isset($formID) ) { 378 $sform_widget = get_option('widget_sform_widget'); 379 $sform_widget[$widget_id]['shortcode_id'] = $formID; 380 update_option('widget_sform_widget', $sform_widget); 381 $shortcode_id = $formID; 382 } 383 } 384 385 else { 386 global $wpdb; 387 $rows = $wpdb->get_row("SHOW TABLE STATUS LIKE '{$wpdb->prefix}sform_shortcodes'"); 388 $shortcode_id = $rows->Auto_increment; 389 } 390 417 391 return $shortcode_id; 418 392 419 393 } 420 /** 421 * Hide the simpleform widget from the "select widget" dropdown and from the block inserter. 394 395 /** 396 * Hide the widget from the legacy widget block dropdown and from the block inserter when the widgets block editor is enabled 422 397 * 423 398 * @since 2.0.3 … … 427 402 428 403 $widget_types[] = 'sform_widget'; 429 404 $widget_types[] = 'sform_widget-'; 405 430 406 return $widget_types; 431 407 432 } 433 408 } 409 434 410 } 435 411 -
simpleform/trunk/admin/css/admin-min.css
r2664049 r2679542 1 .invisible{visibility:hidden}.removed,.secret,.unseen{display:none!important}#new-release{font-size:13px!important;line-height:1;color:#bbb;padding:14px 0!important;float:left;display:flex;line-height:1.5}#new-release a{color:#bbb;text-decoration:none}#new-release .update a{color:#f6866f}.wrap div.error,.wrap div.notice-success{margin:15px 0 10px}.full-width-bar{margin:0 -9999rem;padding:0 9999rem;clear:both}body,html{overflow-x:hidden}.full-width-bar>h1{margin:0}.sform.wrap>h1>div{float:right}h1.title{color:#fff;line-height:36px;font-size:22px;font-weight:500}h1.title>span{display:inline-block;padding:0 20px 0 0;position:relative;vertical-align:sub;font-size:28px;top:1px}.full-width-bar.default,h1.title.default{background-color:#2271b1!important}.full-width-bar.light,h1.title.light{background-color:#04a4cc!important}.full-width-bar.modern,h1.title.modern{background-color:#4664eb!important}.full-width-bar.blue,h1.title.blue{background-color:#e3af55!important}.full-width-bar.coffee,h1.title.coffee{background-color:#c7a589!important}.full-width-bar.ectoplasm,h1.title.ectoplasm{background-color:#a9bd4f!important}.full-width-bar.midnight,h1.title.midnight{background-color:#e35950!important}.full-width-bar.ocean,h1.title.ocean{background-color:#9ebaa0!important}.full-width-bar.sunrise,h1.title.sunrise{background-color:#dd823b!important}.full-width-bar.foggy,h1.title.foggy{background-color:#8993ab!important}.full-width-bar.polar,h1.title.polar{background-color:#fff!important;color:inherit}div.selector{display:inline-block;float:right}#wrap-selector{font-size:.6em;padding-right:10px;float:left}.form-selector{float:right;padding:0;top:0}select#form{line-height:34px;vertical-align:top}select#form.default{border-color:rgb(34 113 177 / 25%)}select#form.light{border-color:rgb(4 164 204 / 25%)}select#form.modern{border-color:rgb(56 88 233 / 25%)}select#form.blue{border-color:rgb(9 100 132 / 25%)}select#form.coffee{border-color:rgb(199 165 137 / 25%)}select#form.ectoplasm{border-color:rgb(163 183 69 / 25%)}select#form.midnight{border-color:rgb(225 77 67 / 25%)}select#form.ocean{border-color:rgb(158 186 160 / 25%)}select#form.sunrise{border-color:rgb(221 130 59 / 25%)}select#form.foggy{border-color:rgb(34 113 177 / 25%)}select#form.polar{border-color:#8993ab}select.default:focus,select.default:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.light:focus,select.light:hover{color:#04a4cc;border-color:#04a4cc;box-shadow:none}select.modern:focus,select.modern:hover{color:#3858e9;border-color:#3858e9;box-shadow:none}select.blue:focus,select.blue:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.coffee:focus,select.coffee:hover{color:#2271b1;border-color:#c7a589;box-shadow:none}select.ectoplasm:focus,select.ectoplasm:hover{color:#2271b1;border-color:#a3b745;box-shadow:none}select.midnight:focus,select.midnight:hover{color:#2271b1;border-color:#e14d43;box-shadow:none}select.ocean:focus,select.ocean:hover{color:#2271b1;border-color:#9ebaa0;box-shadow:none}select.sunrise:focus,select.sunrise:hover{color:#dd823b;border-color:#dcdfe6;box-shadow:none}select.foggy:focus,select.foggy:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.polar:focus,select.polar:hover{color:#53a0de;border-color:#53a0de;box-shadow:none}#page-description{padding:10px 0}.notice.trwidget{margin-top:30px}#editor-tabs,#settings-tabs{margin-left:15px;position:relative;right:0;left:0;min-height:35px;font-size:0;z-index:1;border-bottom:0}.nav-tab{padding:5px 25px;margin-left:5px;border-bottom:none!important;color:#8993ab!important;background:#dcdfe6}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:hover,.nav-tab.nav-tab-active:hover{background:#fff!important;color:#8993ab!important;border-bottom:1px solid #fff!important;margin-bottom:-1px}.nav-tab:focus,.nav-tab:hover{background-color:#8993ab;color:#fff!important;cursor:pointer}a .dashicons{line-height:26px;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;text-decoration:none}#editor-tabs a,#settings-tabs a{position:relative;display:inline-block;margin:0;border-bottom:0;margin-bottom:-1px;text-decoration:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none}#editor-tabs a.form-button,#settings-tabs a.form-button{margin-right:0;float:right}#editor-tabs a.last,#settings-tabs a.last{margin-right:0!important}.form-button{background:#dcdfe6;color:#8993ab;border-bottom:none!important;border:1px solid #dcdfe6;line-height:24px}.form-button:focus{box-shadow:none;outline:0}.form-button>span{white-space:nowrap}.form-button>span>span.text{margin-left:5px}.form-button.default:hover{background:#f0f0f1;color:#2271b1}.form-button.light:hover{background:#f0f0f1;color:#04a4cc}.form-button.modern:hover{background:#f0f0f1;color:#3858e9}.form-button.blue:hover{background:#f0f0f1;color:#096484}.form-button.coffee:hover{background:#59524c;color:#fff}.form-button.ectoplasm:hover{background:#f0f0f1;color:#829237}.form-button.midnight:hover{background:#f0f0f1;color:#d02c21}.form-button.ocean:hover{background:#738e96;color:#fff}.form-button.sunrise:hover{background:#f0f0f1;color:#dd823b}.form-button.foggy:hover{background:#2271b1;color:#fff}.form-button.polar:hover{background:#53a0de;color:#fff}#attributes,#card,#settings{background:#fff;padding-top:25px}.options-heading span{cursor:pointer}.options-heading span span{padding-left:10px}.toggle.dashicons{color:#dcdfe6}.dashicons-arrow-up-alt2:hover{color:#f6866f}.dashicons-arrow-down-alt2:hover{color:#9bcc79}.options-heading.closed{margin-bottom:1.85em}.icon-button{color:#dcdfe6;font-size:26px;margin:-3px 0;float:right}.icon-button.default:hover{color:#2271b1}.icon-button.light:hover{color:#04a4cc}.icon-button.modern:hover{color:#3858e9}.icon-button.blue:hover{color:#096484}.icon-button.coffee:hover{color:#59524c}.icon-button.ectoplasm:hover{color:#a3b745}.icon-button.midnight:hover{color:#e14d43}.icon-button.ocean:hover{color:#738e96}.icon-button.sunrise:hover{color:#dd823b}.icon-button.foggy:hover{color:#72aee6}.icon-button.polar:hover{color:#53a0de}.settings-page.button,.widgets-page.button{text-align:center;float:right;margin-top:15px!important;padding:0 10px;border-radius:3px;font-size:13px;font-weight:600;cursor:pointer}.section.admin.collapsed,.section.akismet.collapsed,.section.auto.collapsed,.section.custom.collapsed,.section.fields.collapsed,.section.formdescription.collapsed,.section.formfields.collapsed,.section.layout.collapsed,.section.notification.collapsed,.section.recaptcha.collapsed,.section.rules.collapsed,.section.sending.collapsed,.section.smtp.collapsed,.section.spam.collapsed,.section.specifics.collapsed,.section.storage.collapsed,.section.style.collapsed,.section.submission.collapsed,.section.success.collapsed,.section.uninstall.collapsed{font-size:0;margin:0;opacity:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-webkit-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-moz-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-o-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s}.section.admin,.section.akismet,.section.custom,.section.formdescription,.section.layout,.section.rules,.section.sending,.section.spam,.section.style,.section.submission,.section.success,.section.uninstall{max-height:800px;transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-webkit-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-moz-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-o-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s}.section.auto,.section.notification,.section.recaptcha,.section.smtp,.section.specifics,.section.storage{max-height:1500px;transition:max-height 1.25s linear,opacity 1.5s,font-size 1.5s,margin 1.5s,padding 1.5s}.section.fields{max-height:3500px;transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-webkit-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-moz-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-o-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s}.section.formfields{max-height:5500px;transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-webkit-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-moz-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-o-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s}th>span{cursor:default}.switch-box{display:inline-table;width:100%;position:relative;height:20px;line-height:20px}.switch-input{position:relative;display:inline-block;float:left;margin-right:10px;width:40px;height:20px}.switch-input input{top:2px;left:4px;margin:0;position:absolute;opacity:0!important;width:20px;height:20px}.switch-input input:active+span{outline:0;box-shadow:none}.switch-label{display:inline-block;vertical-align:middle;width:calc(100% - 50px)}.switch-input input+span{position:absolute;z-index:1;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#dcdfe6;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:20px;border:2px solid #dcdfe6}.switch-input input+span:before{position:absolute;content:"";height:16px;width:16px;background-color:#fff;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:50%}.switch-input input:checked+span:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px)}label.multiselect{position:relative;cursor:pointer;display:inline-block;padding-left:34px;line-height:24px;margin-right:10px;margin-bottom:10px}label.multiselect.last{margin-right:0}input[type=checkbox].multiselect{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{position:absolute;cursor:pointer;top:0;left:0;height:20px;width:20px;border-radius:4px;background-color:#dcdfe6;border:2px solid #dcdfe6}.checkmark:after{left:7px;top:2px;width:4px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);content:"";position:absolute;display:none}input[type=checkbox]:checked+.checkmark{background-color:#0d6efd;border:2px solid #0d6efd}input[type=checkbox]:checked+.checkmark:after{display:block}#columns-description.description{margin-top:-3px}form.default .switch-input input:checked+span,form.default input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.default .switch-input input:active+span{outline:0;box-shadow:none}form.light .switch-input input:checked+span,form.light input[type=checkbox]:checked+.checkmark{background:#04a4cc;border:2px solid #04a4cc}form.light .switch-input input:active+span{outline:0;box-shadow:none}form.modern .switch-input input:checked+span,form.modern input[type=checkbox]:checked+.checkmark{background:#3858e9;border:2px solid #3858e9}form.modern .switch-input input:active+span{outline:0;box-shadow:none}form.blue .switch-input input:checked+span,form.blue input[type=checkbox]:checked+.checkmark{background:#096484;border:2px solid #096484}form.blue .switch-input input:active+span{outline:0;box-shadow:none}form.coffee .switch-input input:checked+span,form.coffee input[type=checkbox]:checked+.checkmark{background:#c7a589;border:2px solid #c7a589}form.coffee .switch-input input:active+span{outline:0;box-shadow:none}form.ectoplasm .switch-input input:checked+span,form.ectoplasm input[type=checkbox]:checked+.checkmark{background:#a3b745;border:2px solid #a3b745}form.ectoplasm .switch-input input:active+span{outline:0;box-shadow:none}form.midnight .switch-input input:checked+span,form.midnight input[type=checkbox]:checked+.checkmark{background:#e14d43;border:2px solid #e14d43}form.midnight .switch-input input:active+span{outline:0;box-shadow:none}form.ocean .switch-input input:checked+span,form.ocean input[type=checkbox]:checked+.checkmark{background:#9ebaa0;border:2px solid #9ebaa0}form.ocean .switch-input input:active+span{outline:0;box-shadow:none}form.sunrise .switch-input input:checked+span,form.sunrise input[type=checkbox]:checked+.checkmark{background:#dd823b;border:2px solid #dd823b}form.sunrise .switch-input input:active+span{outline:0;box-shadow:none}form.foggy .switch-input input:checked+span,form.foggy input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.foggy .switch-input input:active+span{outline:0;box-shadow:none}form.polar .switch-input input:checked+span,form.polar input[type=checkbox]:checked+.checkmark{background:#53a0de;border:2px solid #53a0de}form.polar .switch-input input:active+span{outline:0;box-shadow:none}input[type=radio]{border:2px solid #dcdfe6;height:18px;width:18px;margin-top:-3px!important;margin-right:10px!important}form.default input[type=radio]:checked,form.foggy input[type=radio]:checked{background:#2271b1;border-color:#2271b1}form.default input[type=radio]:active,form.default input[type=radio]:focus,form.foggy input[type=radio]:active,form.foggy input[type=radio]:focus{border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=radio]:active,form.light input[type=radio]:focus{border-color:#04a4cc;outline:0;box-shadow:none}form.light input[type=radio]:checked{background:#04a4cc;border-color:#04a4cc}form.modern input[type=radio]:active,form.modern input[type=radio]:focus{border-color:#3858e9;outline:0;box-shadow:none}form.modern input[type=radio]:checked{background:#3858e9;border-color:#3858e9}form.blue input[type=radio]:active,form.blue input[type=radio]:focus{border-color:#096484;outline:0;box-shadow:none}form.blue input[type=radio]:checked{background:#096484;border-color:#096484}form.coffee input[type=radio]:active,form.coffee input[type=radio]:focus{border-color:#c7a589;outline:0;box-shadow:none}form.coffee input[type=radio]:checked{background:#c7a589;border-color:#c7a589}form.ectoplasm input[type=radio]:active,form.ectoplasm input[type=radio]:focus{border-color:#a3b745;outline:0;box-shadow:none}form.ectoplasm input[type=radio]:checked{background:#a3b745;border-color:#a3b745}form.midnight input[type=radio]:active,form.midnight input[type=radio]:focus{border-color:#e14d43;outline:0;box-shadow:none}form.midnight input[type=radio]:checked{background:#e14d43;border-color:#e14d43}form.ocean input[type=radio]:active,form.ocean input[type=radio]:focus{border-color:#9ebaa0;outline:0;box-shadow:none}form.ocean input[type=radio]:checked{background:#9ebaa0;border-color:#9ebaa0}form.sunrise input[type=radio]:active,input[type=radio]:focus{border-color:#dd823b;outline:0;box-shadow:none}form.sunrise input[type=radio]:checked{background:#dd823b;border-color:#dd823b}form.polar input[type=radio]:active,form.polar input[type=radio]:focus{border-color:#53a0de;outline:0;box-shadow:none}form.polar input[type=radio]:checked{background:#53a0de;border-color:#53a0de}input[type=radio]:checked::before{background-color:#fff}.form-table td fieldset label{margin-right:20px!important}textarea{height:230px!important;width:100%;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}textarea.description{height:148px!important}textarea.labels{height:100px!important}input.sform{width:100%}input.sform[type=number]{width:90px!important;text-align:center}form.default input[type=number]:focus,form.default input[type=text]:focus,form.default select.sform:focus,form.default textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=number]:focus,form.light input[type=text]:focus,form.light select.sform:focus,form.light textarea:focus{border:2px solid #04a4cc!important;border-color:#04a4cc;outline:0;box-shadow:none}form.modern input[type=number]:focus,form.modern input[type=text]:focus,form.modern select.sform:focus,form.modern textarea:focus{border:2px solid #3858e9!important;border-color:#3858e9;outline:0;box-shadow:none}form.blue input[type=number]:focus,form.blue input[type=text]:focus,form.blue select.sform:focus,form.blue textarea:focus{border:2px solid #096484!important;border-color:#096484;outline:0;box-shadow:none}form.coffee input[type=number]:focus,form.coffee input[type=text]:focus,form.coffee select.sform:focus,form.coffee textarea:focus{border:2px solid #c7a589!important;border-color:#c7a589;outline:0;box-shadow:none}form.ectoplasm input[type=number]:focus,form.ectoplasm input[type=text]:focus,form.ectoplasm select.sform:focus,form.ectoplasm textarea:focus{border:2px solid #a3b745!important;border-color:#a3b745;outline:0;box-shadow:none}form.midnight input[type=number]:focus,form.midnight input[type=text]:focus,form.midnight select.sform:focus,form.midnight textarea:focus{border:2px solid #e14d43!important;border-color:#e14d43;outline:0;box-shadow:none}form.ocean input[type=number]:focus,form.ocean input[type=text]:focus,form.ocean select.sform:focus,form.ocean textarea:focus{border:2px solid #9ebaa0!important;border-color:#9ebaa0;outline:0;box-shadow:none}form.sunrise input[type=number]:focus,form.sunrise input[type=text]:focus,form.sunrise select.sform:focus,form.sunrise textarea:focus{border-color:#dd823b;border:2px solid #dd823b!important;color:#dd823b;outline:0;box-shadow:none}form.foggy input[type=number]:focus,form.foggy input[type=text]:focus,form.foggy select.sform:focus,form.foggy textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.polar input[type=number]:focus,form.polar input[type=text]:focus,form.polar select.sform:focus,form.polar textarea:focus{border:2px solid #53a0de;border-color:#53a0de;outline:0;box-shadow:none}input.sform[type=number],input.sform[type=text],select.sform{height:42px!important;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}select.sform{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:2px 20px 2px 8px!important;padding-right:30px!important}form.default select.sform:focus,form.default select.sform:hover{color:#2271b1}form.light select.sform:focus,form.light select.sform:hover{color:#04a4cc}form.modern select.sform:focus,form.modern select.sform:hover{color:#3858e9}form.blue select.sform:focus,form.modern blue.sform:hover{color:#2271b1}form.coffee select.sform:focus,form.coffee select.sform:hover{color:#2271b1}form.ectoplasm select.sform:focus,form.ectoplasm select.sform:hover{color:#2271b1}form.midnight select.sform:focus,form.midnight select.sform:hover{color:#2271b1}form.ocean select.sform:focus,form.ocean select.sform:hover{color:#2271b1}form.sunrise select.sform:hover{color:#dd823b}form.foggy select.sform:focus,form.foggy select.sform:hover{color:#2271b1}form.polar select.sform:focus,form.polar select.sform:hover{color:#53a0de}td>p.description{margin-bottom:-2px;letter-spacing:-.6px}#deletion-toggle.default,#smpt-warnings.default,form.default .privacy-setting.button,form.default .settings-page.button,form.default .widgets-page.button,span.default.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.light,#smpt-warnings.light,form.light .privacy-setting.button,form.light .settings-page.button,form.light .widgets-page.button,span.light.button.unavailable{color:#04a4cc;border-color:#04a4cc}#deletion-toggle.modern,#smpt-warnings.modern,form.modern .privacy-setting.button,form.modern .settings-page.button,form.modern .widgets-page.button,span.modern.button.unavailable{color:#3858e9;border-color:#3858e9}#deletion-toggle.blue,#smpt-warnings.blue,form.blue .privacy-setting.button,form.blue .settings-page.button,form.blue .widgets-page.button,span.blue.button.unavailable{color:#096484;border-color:#096484}#deletion-toggle.coffee,#smpt-warnings.coffee,form.coffee .privacy-setting.button,form.coffee .settings-page.button,form.coffee .widgets-page.button,span.coffee.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.coffee:hover,#smpt-warnings.coffee:hover,form.coffee .privacy-setting.button:hover,form.coffee .settings-page.button:hover,form.coffee .widgets-page.button:hover,span.coffee.button.unavailable:hover{color:#fff;border-color:#59524c;background-color:#59524c}#deletion-toggle.ectoplasm,#smpt-warnings.ectoplasm,form.ectoplasm .privacy-setting.button,form.ectoplasm .settings-page.button,form.ectoplasm .widgets-page.button,span.ectoplasm.button.unavailable{color:#a3b745;border-color:#a3b745}#deletion-toggle.ectoplasm:hover,#smpt-warnings.ectoplasm:hover,form.ectoplasm .privacy-setting.button:hover,form.ectoplasm .settings-page.button:hover,form.ectoplasm .widgets-page.button:hover,span.ectoplasm.button.unavailable:hover{color:#829237;border-color:#829237}#deletion-toggle.midnight,#smpt-warnings.midnight,form.midnight .privacy-setting.button,form.midnight .settings-page.button,form.midnight .widgets-page.button,span.midnight.button.unavailable{color:#e14d43;border-color:#e14d43}#deletion-toggle.midnight:hover,#smpt-warnings.midnight:hover,form.midnight .privacy-setting.button:hover,form.midnight .settings-page.button:hover,form.midnight .widgets-page.button:hover,span.midnight.button.unavailable:hover{color:#d02c21;border-color:#d02c21}#deletion-toggle.ocean,#smpt-warnings.ocean,form.ocean .privacy-setting.button,form.ocean .settings-page.button,form.ocean .widgets-page.button,span.ocean.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.ocean:hover,#smpt-warnings.ocean:hover,form.ocean .privacy-setting.button:hover,form.ocean .settings-page.button:hover,form.ocean .widgets-page.button:hover,span.ocean.button.unavailable:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#deletion-toggle.sunrise,#smpt-warnings.sunrise,form.sunrise .privacy-setting.button,form.sunrise .settings-page.button,form.sunrise .widgets-page.button,span.sunrise.button.unavailable{color:#dd823b;border-color:#dd823b}#deletion-toggle.foggy,#smpt-warnings.foggy,form.foggy .privacy-setting.button,form.foggy .settings-page.button,form.foggy .widgets-page.button,span.foggy.button.unavailable{color:#72aee6;border-color:#72aee6}#deletion-toggle.polar,#smpt-warnings.polar,form.polar .privacy-setting.button,form.polar .settings-page.button,form.polar .widgets-page.button,span.polar.button.unavailable{color:#53a0de;border-color:#53a0de}#deletion-toggle.polar:hover,#smpt-warnings.polar:hover,form.polar .privacy-setting.button:hover,form.polar .settings-page.button:hover,form.polar .widgets-page.button:hover,span.polar.button.unavailable:hover{color:#fff;background-color:#53a0de}select.sform:disabled:hover{color:#a7aaad!important}.switch-input input:disabled+span{cursor:default;box-shadow:none!important}label.disabled{cursor:default}.switch-input input:disabled:checked+span{opacity:.7}input[type=radio]:disabled,input[type=radio]:disabled:checked{cursor:default;box-shadow:none!important}input[type=radio]:disabled:active,input[type=radio]:disabled:focus{border-color:#dcdfe6!important}input[type=radio]:disabled:active:checked,input[type=radio]:disabled:focus:checked{border-color:#53a0de!important} #submit-wrap{margin:0 auto;text-align:center;padding:0 40px 100px}#alert-wrap{position:relative}#noscript{position:absolute;left:0;right:0;color:#fff;border-radius:8px;background:#dc3545;margin:0 75px 25px;line-height:30px;height:30px;padding:9px}#message-wrap{visibility:hidden;color:#909090;border-radius:8px;background:#f2f2f2;margin:0 75px 38px;line-height:30px;height:30px;padding:9px}#message-wrap.error{background:#f6866f;border:0;color:#fff}#message-wrap.success{background:#9bcc79;color:#fff}#message-wrap.unchanged{background:#f8cd5e;color:#fff}#message-wrap.seen{visibility:visible}.submit-button{padding:5px 12px;outline:0;border-radius:8px;font-size:13px;text-transform:uppercase;cursor:pointer;line-height:2.15384615;min-height:30px;border:none}form.default .submit-button{background:#2271b1;color:#fff}form.default .submit-button:hover{background:#135e96;color:#fff}form.default .submit-button:active{background:#135e96;color:#fff}form.light .submit-button{background:#04a4cc;color:#fff}form.light .submit-button:hover{background:#04b0db;color:#fff}form.light .submit-button:active{background:#0490b3;color:#fff}form.modern .submit-button{background:#3858e9;color:#fff}form.modern .submit-button:hover{background:#4664eb;color:#fff}form.modern .submit-button:active{background:#2145e6;color:#fff}form.blue .submit-button{background:#e1a948;color:#fff}form.blue .submit-button:hover{background:#e3af55;color:#fff}form.blue .submit-button:active{background:#dd9f32;color:#fff}form.coffee .submit-button{background:#c7a589;color:#fff}form.coffee .submit-button:hover{background:#ccad93;color:#fff}form.coffee .submit-button:active{background:#bf9878;color:#fff}form.ectoplasm .submit-button{background:#a3b745;color:#fff}form.ectoplasm .submit-button:hover{background:#a9bd4f;color:#fff}form.ectoplasm .submit-button:active{background:#93a43e;color:#fff}form.midnight .submit-button{background:#e14d43;color:#fff}form.midnight .submit-button:hover{background:#e35950;color:#fff}form.midnight .submit-button:active{background:#dd382d;color:#fff}form.ocean .submit-button{background:#9ebaa0;color:#fff}form.ocean .submit-button:hover{background:#a7c0a9;color:#fff}form.ocean .submit-button:active{background:#8faf91;color:#fff}form.sunrise .submit-button{background:#dd823b;color:#fff}form.sunrise .submit-button:hover{background:#c36922;color:#fff}form.sunrise .submit-button:active{background:#d97426;color:#fff}form.foggy .submit-button{background:#2271b1;color:#fff}form.foggy .submit-button:hover{background:#135e96;color:#fff}form.foggy .submit-button:active{background:#135e96;color:#fff}form.polar .submit-button{background:#53a0de;color:#fff}form.polar .submit-button:hover{background:#77b4e5;color:#fff}form.polar .submit-button:active{background:#318dd7;color:#fff}span.button.unavailable{float:left;margin-right:10px}span.button.unavailable a{color:#fff;text-decoration:none}span.button.unavailable:hover a{color:#fff}#set-page-icon.default:hover,span.default.button.unavailable a{color:#2271b1}#set-page-icon.light:hover,span.light.button.unavailable a{color:#04a4cc}#set-page-icon.modern:hover,span.modern.button.unavailable a{color:#3858e9}#set-page-icon.blue:hover,span.blue.button.unavailable a{color:#096484}#set-page-icon.coffee:hover,span.coffee.button.unavailable a{color:#2271b1}span.coffee.button.unavailable:hover a{color:#fff}#set-page-icon.ectoplasm:hover,span.ectoplasm.button.unavailable a{color:#a3b745}span.ectoplasm.button.unavailable:hover a{color:#829237}#set-page-icon.midnight:hover,span.midnight.button.unavailable a{color:#e14d43}#set-page-icon.ocean:hover,span.ocean.button.unavailable a{color:#2271b1}span.ocean.button.unavailable:hover a{color:#fff}#set-page-icon.sunrise:hover,span.sunrise.button.unavailable a{color:#dd823b}#set-page-icon.foggy:hover,span.foggy.button.unavailable a{color:#72aee6}#set-page-icon.polar:hover,span.polar.button.unavailable a{color:#53a0de}span.polar.button.unavailable:hover a{color:#fff}.publish-link{text-decoration:none;color:#9ccc79}.publish-link:hover{color:#9ccc79}input[placeholder]{text-overflow:ellipsis}::-moz-placeholder{text-overflow:ellipsis}input:-moz-placeholder{text-overflow:ellipsis}.head-bracket{font-style:italic;font-weight:400;padding-left:10px}#shortcode-copy{margin-left:5px;border:none;outline:0;background-color:transparent;line-height:inherit;width:40px;height:40px;padding:8px;border-radius:40px;cursor:pointer}#shortcode-copy:hover{background-color:#eee!important}#shortcode-copy:active{background-color:#dcdfe6!important}#shortcode-copy img{vertical-align:middle;width:24px}#shortcode-tooltip{background-color:#8993ab;display:none;color:#fff!important;padding:4px 7px;border-radius:5px;font-size:.75rem;margin-left:5px}.widgets-page.button{text-align:center;float:right;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}.slug{margin-left:10px}.privacy-setting.button{text-align:center;float:none;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}#label-error,.privacy-setting{margin-left:10px!important}#label-error-top{margin-left:10px!important;font-weight:400!important;color:#f6866f}#set-page-icon{float:right;margin-top:-17px;cursor:pointer}#post-status{margin-right:25px}span.description.left{font-size:13px;font-style:italic;padding-left:10px}#form-borders{margin-left:20px}#smpt-warnings{margin-top:15px!important;font-size:13px;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer}tr.smpt-warnings{background-color:#e4e7ec}div.description h4{margin:1.3em 0}tr.smpt-warnings>td{padding:18px 41px 30px 36px;vertical-align:none;border-width:0 0 0 5px;border-style:solid;background:#e5f5fa;border-color:#00a0d2}.description pre{white-space:pre-wrap}#smpt-warnings:hover{background:#f0f0f1}.notice-toggle{white-space:nowrap}.submission-notice>.notice{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:15px}#submissions-data{padding:0;display:flex}#submissions-data li{float:left;padding:20px 0;width:19%;text-align:center;background:#dcdfe6;opacity:.65;padding-bottom:26px}#submissions-data li:hover{opacity:1}.type{margin-right:1.25%}.label{color:#666;text-transform:uppercase;font-size:.8em}.value{display:block;clear:both;font-size:2em;font-weight:300;line-height:40px}#empty-submission,#last-submission,#submissions-notice{padding:30px 30px 50px;margin-top:20px;background:#fff}#empty-submission h3,#last-submission h3,#submissions-notice h3{line-height:30px}#deletion-notice{padding:5px 40px 30px;margin:0 -40px;background:#eb8a84;color:#fff;margin-bottom:-23px}#deletion-notice h3{line-height:30px;color:#fff}#deletion-notice .disclaimer{display:inline-block;padding:6px 0;width:60%}#deletion-notice .delete{display:inline-block;padding:6px 10px;background:#fff;color:#e35950;border-radius:5px;cursor:pointer}#deletion-notice .cancel{margin-right:50px}input.delete{font-size:inherit;margin:0;border:0;line-height:inherit}#deletion-toggle{margin-top:30px;font-size:13px;font-weight:600;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer;padding:6px 10px;background:#fff;border-style:solid;border-width:1px}#deletion-toggle:hover{background:#f0f0f1}#deletion-buttons{float:right;width:auto}@media screen and (max-width:960px){#deletion-notice .disclaimer{width:100%}#deletion-buttons{width:100%;text-align:center;float:none;margin:20px 0 0}}#deletion-notice span.dashicons,#empty-submission span.dashicons,#last-submission span.dashicons,#submissions-notice span.dashicons{font-size:30px;width:30px;height:30px;padding-right:10px}.row{box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-.5rem;margin-left:-.5rem}.columns-body{padding:10px}.columns-body>h4{margin-top:15px;margin-bottom:5px}@media only screen and (min-width:75em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%;box-sizing:border-box;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}}@media only screen and (min-width:48em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (min-width:64em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (max-width:36em){.columns-wrap{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}#visibility-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-pages p.first{margin-bottom:5px!important}p.last,p.visibility{margin-bottom:0!important}.widget-alert{margin-top:15px;margin-right:-15px;margin-left:-15px;padding:0 15px;color:#fff;background:#f6866f}.widget-alert div{padding:6px 0}.sform-widget-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.sform-widget-boxes{margin-top:30px}.sform-widget-boxes.buttons p label{line-height:40px}.sform-widget-description{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-button{padding:6px 10px;background:#007cba;border-color:#007cba;color:#fff;font-size:12px;width:90px;margin-top:6px;text-align:center;cursor:pointer}.widget-button:hover{background:#0071a1;border-color:#0071a1}#widget-button-editor{float:left}#widget-button-settings{float:right}#widget-button-editor,#widget-button-settings{text-align:center;padding:0 10px;border-radius:4px;font-weight:600;cursor:pointer}p#widget-buttons{margin-top:1em;height:42px}#widget-button-editor.default,#widget-button-settings.default,.support.button.default{color:#2271b1;border-color:#2271b1}#widget-button-editor.light,#widget-button-settings.light,.support.button.light{color:#04a4cc;border-color:#04a4cc}#widget-button-editor.modern,#widget-button-settings.modern,.support.button.modern{color:#3858e9;border-color:#3858e9}#widget-button-editor.blue,#widget-button-settings.blue,.support.button.blue{color:#096484;border-color:#096484}#widget-button-editor.coffee,#widget-button-settings.coffee,.support.button.coffee{color:#2271b1;border-color:#2271b1}#widget-button-editor.coffee:hover,#widget-button-settings.coffee:hover,.support.button.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}#widget-button-editor.ectoplasm,#widget-button-settings.ectoplasm,.support.button.ectoplasm{color:#a3b745;border-color:#a3b745}#widget-button-editor.ectoplasm:hover,#widget-button-settings.ectoplasm:hover,.support.button.ectoplasm:hover{color:#829237;border-color:#829237}#widget-button-editor.midnight,#widget-button-settings.midnight,.support.button.midnight{color:#e14d43;border-color:#e14d43}#widget-button-editor.midnight:hover,#widget-button-settings.midnight:hover,.support.button.midnight:hover{color:#d02c21;border-color:#d02c21}#widget-button-editor.ocean,#widget-button-settings.ocean,.support.button.ocean{color:#2271b1;border-color:#2271b1}#widget-button-editor.ocean:hover,#widget-button-settings.ocean:hover,.support.button.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#widget-button-editor.sunrise,#widget-button-settings.sunrise,.support.button.sunrise{color:#dd823b;border-color:#dd823b}#widget-button-editor.foggy,#widget-button-settings.foggy,.support.button.foggy{color:#72aee6;border-color:#72aee6}#widget-button-editor.polar,#widget-button-settings.polar,.support.button.polar{color:#53a0de;border-color:#53a0de}#widget-button-editor.polar:hover,#widget-button-settings.polar:hover,.support.button.polar:hover{color:#fff;background-color:#53a0de}.checkbox-switch.default:hover p{visibility:visible}.dashicons-lock.red,.lock.notes.red{color:#d63638}.dashicons-lock.orange,.lock.notes.orange{color:orange}.dashicons-unlock,.lock.notes{color:#85c641}.dashicons-lock:hover+span,.dashicons-unlock:hover+span{visibility:visible}#card-submit-wrap{margin:0 auto;padding:0 40px 100px}#alert-wrap,#form-buttons{text-align:center}.button.back-list.default{color:#2271b1;border-color:#2271b1}.button.back-list.light{color:#04a4cc;border-color:#04a4cc}.button.back-list.modern{color:#3858e9;border-color:#3858e9}.button.back-list.blue{color:#096484;border-color:#096484}.button.back-list.coffee{color:#2271b1;border-color:#2271b1}.button.back-list.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}.button.back-list.ectoplasm{color:#a3b745;border-color:#a3b745}.button.back-list.ectoplasm:hover{color:#829237;border-color:#829237}.button.back-list.midnight{color:#e14d43;border-color:#e14d43}.button.back-list.midnight:hover{color:#d02c21;border-color:#d02c21}.button.back-list.ocean{color:#2271b1;border-color:#2271b1}.button.back-list.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}.button.back-list.sunrise{color:#dd823b;border-color:#dd823b}.button.back-list.foggy{color:#72aee6;border-color:#72aee6}.button.back-list.polar{color:#53a0de;border-color:#53a0de}.button.back-list.polar:hover{color:#fff;background-color:#53a0de}.forwarding{padding-right:3px}#deletion-notice.success{text-align:center;background:#75c375}#deletion-notice .disclaimer.success{padding:0;line-height:48px}#deletion-notice .disclaimer.success span{font-size:80px;width:68px;height:48px;line-height:48px;padding-right:0}#deletion-notice.confirm{background:#d63638}div.notice{margin-top:13px!important}@media screen and (max-width:374px){#editor-tabs a,#settings-tabs a{font-size:.75rem}}@media screen and (max-width:520px){.type{margin-right:0!important;border-right:1px solid #8993ab!important}#submissions-data{margin:15px 0!important}#submissions-data li{padding:20px 7px!important;width:calc(20% -1px)!important}.label{font-size:.7em!important;letter-spacing:-.5px}.value{font-size:1.5em!important}#empty-submission,#last-submission,#submissions-notice{padding:10px 15px 30px!important;margin:20px 0!important}#last-submission{overflow:auto}label.multiselect{width:100%}}@media screen and (max-width:782px){#deletion-notice{padding:5px 10px 30px!important;margin:0 -50px!important}.submissions-list .notice{margin:20px}#deletion-toggle{margin:20px;margin-top:30px}#page-description.overview{padding:10px 0!important;margin-left:-10px!important;margin-right:-10px!important}#submissions-data li{width:20%}.type{margin-right:0;border-right:1px solid #8993ab!important}.label{font-size:.75em}#empty-submission,#last-submission,#submissions-notice{padding:30px 20px 50px!important}#sform-wrap{padding-right:10px}#page-description{padding:10px}form{padding:10px}.sform.wrap{margin-top:0}.responsive{display:none!important}h1.title{padding:10px}select#form{padding:0 24px 0 8px;min-height:34px;font-size:13px}.wrap{margin-right:0;padding-right:10px;margin-left:-10px;padding-left:10px}.nav-tab{border:none;line-height:26px}#editor-tabs #card-tabs,#settings-tabs,form#attributes,form#card,form#settings{margin:0 -10px}#editor-tabs,#settings-tabs{overflow:hidden;padding:0 0 0 10px;height:auto;margin-left:-10px!important;margin-right:-10px}.form-button{line-height:25px}#editor-tabs a,#settings-tabs a{margin-right:0!important;padding:5px 8px!important;font-weight:400}#attributes,#card,#settings{border:none}.options-heading{padding:0 10px 10px}.options-heading.closed>a>.icon-button,.options-heading.closed>span>.icon-button{display:none}.options-heading>a>.icon-button,.options-heading>span>.icon-button{display:block}th.option{padding:15px 10px}td.checkbox-switch,td.checkbox-switch.notes,td.multicheckbox.notes,td.plaintext,td.plaintext.last,td.radio,td.radio.notes,td.radio.notes.last,td.select,td.select.notes,td.text,td.text.notes,td.textarea,td.used-page{padding:10px}td.plaintext.icon{padding:0 10px}td.plaintext.widget #edit-widget{margin-top:-11px!important;margin-bottom:0!important}td.checkbox-switch.last,td.checkbox-switch.last.notes,td.last.radio,td.last.select,td.last.select.notes,td.last.text,td.last.text.notes,td.last.textarea,td.last.used-page{padding:10px 10px 40px}#label-error,#set-page{display:none}label-error-top{display:block}label.radio{width:100%}#smpt-warnings.text,.privacy-setting.button,.settings-page.button,.widgets-page.button,a .text{display:none}input[type=radio]:checked::before{width:.5rem;height:.5rem;margin:.1875rem}tr.outside th{padding:45px 10px 15px}tr.outside td.plaintextt{padding:10px}#attributes{margin:0 -10px}#editor-tabs a.form-page{margin-right:5px!important}td.column-locks span{margin-left:-5px;margin-top:-1px}.lock.notes{padding:3px 10px}.icon-button{line-height:46px!important}.button.back-list{display:none}.subsubsub{font-size:13px;width:100%}.tablenav .tablenav-pages{margin:0}.tablenav.top,p.search-box{text-align:center}.tablenav.top{margin:20px 0 12px 0}.tablenav.bottom{margin:8px 20px 0}#forms-table .tablenav .button{margin-bottom:0!important;margin-left:10px;margin-right:0!important}.row-actions{display:flex!important}#forms-table{padding:20px 0 10px 0}.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column,tbody td.check-column{padding:8px 0 0 10px}.widefat td,.widefat th{padding:14px 10px}input[type=checkbox]{margin:2px 0 8px 10px!important}.widefat tfoot td input[type=checkbox],.widefat thead td input[type=checkbox]{margin:0 0 8px 10px!important}.wp-list-table .toggle-row{top:16px}.wp-list-table .is-expanded td:not(.hidden){padding-bottom:10px!important;padding-right:20px!important}.tablenav-pages .pagination-links{font-size:13px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0!important;padding:0 4px;font-size:16px;line-height:1.625;text-align:center;margin-left:10px}.tablenav-pages .pagination-links .current-page{margin:0 2px 0 0;font-size:13px;text-align:center;min-width:30px;min-height:30px;margin:0;padding:0 4px}}@media screen and (min-width:783px){.submissions-list .notice{margin:5px 0 2px}#sform-wrap{padding-right:20px}.sform.wrap{margin:38px 20px 0 2px}h1.title{padding:10px 0}.nav-tab{border:1px solid #dcdfe6;line-height:24px}#editor-tabs a,#settings-tabs a{font-size:14px;margin-right:5px!important;padding:5px 25px}#attributes,#card,#settings{border:1px solid #dcdfe6}.options-heading,.options-heading span span{line-height:60px}.options-heading{padding:0 41px}.options-heading.closed>a>.settings-page,.options-heading.closed>a>.widgets-page,.options-heading.closed>span>#smpt-warnings{display:none}.options-heading>a>.settings-page,.options-heading>a>.widgets-page,.options-heading>span>#smpt-warnings{display:block}#set-page-icon,.icon-button{display:none}th.option{padding:36px 41px 30px;width:275px}td.checkbox-switch.notes{padding:34px 50px 12px 10px}td.checkbox-switch{padding:34px 50px 35px 10px}td.multicheckbox.notes{padding:33px 50px 7px 10px}td.last.select{padding:24px 50px 54px 9px}td.last.radio{padding:30px 50px 60px 10px}td.select.notes{padding:24px 50px 1px 9px}td.checkbox-switch.last.notes{padding:34px 50px 42px 10px}td.checkbox-switch.last{padding:34px 50px 65px 10px}td.text{padding:24px 50px 24px 9px}td.last.text{padding:24px 50px 54px 9px}td.radio{padding:30px 50px 30px 9px}td.last.select.notes{padding:24px 50px 31px 9px}td.textarea{padding:21px 50px 24px 9px}td.text.notes{padding:23px 50px 2px 9px}td.radio.notes{padding:30px 50px 7px 10px}td.radio.notes.last{padding:30px 50px 37px 10px}td.last.text.notes{padding:23px 50px 32px 9px}td.select{padding:24px 50px 24px 9px}td>p.description{padding-right:50px}td.plaintext{padding:36px 50px 36px 9px}td.plaintext.last{padding:36px 50px 66px 9px}td.plaintext.widget{padding:24px 50px 24px 9px;line-height:42px}td.plaintext.icon{padding:26px 50px 24px 9px}td.used-page{padding:36px 50px 36px 9px}td.last.textarea{padding:21px 50px 24px 9px}tr.outside th{padding:66px 41px 30px}tr.outside td.plaintext{padding:56px 50px 24px 9px}td.column-locks,th.column-locks,th.column-status,td.column-status{text-align:center}.dashicons-lock,.dashicons-unlock{width:100%}td.column-entries,td.column-forwarding,th.column-entries,th.column-forwarding{width:100px;text-align:center}td.column-movedentries,th.column-movedentries{width:150px;text-align:center}td.column-target,th.column-target{text-align:center}td.column-creation,th.column-creation{text-align:center}th.column-creation a{display:inline-flex}th.column-creation a span{margin-left:17px}th.column-creation a span.sorting-indicator{margin-left:7px}.button.admin{float:right;padding:3px 10px!important}.button.admin{float:right;padding:3px 10px!important}}1 .invisible{visibility:hidden}.removed,.secret,.unseen{display:none!important}#new-release{font-size:13px!important;line-height:1;color:#bbb;padding:14px 0!important;float:left;display:flex;line-height:1.5}#new-release a{color:#bbb;text-decoration:none}#new-release .update a{color:#f6866f}.wrap div.error,.wrap div.notice-success{margin:15px 0 10px}.full-width-bar{margin:0 -9999rem;padding:0 9999rem;clear:both}body,html{overflow-x:hidden}.full-width-bar>h1{margin:0}.sform.wrap>h1>div{float:right}h1.title{color:#fff;line-height:36px;font-size:22px;font-weight:500}h1.title>span{display:inline-block;padding:0 20px 0 0;position:relative;vertical-align:sub;font-size:28px;top:1px}.full-width-bar.default,h1.title.default{background-color:#2271b1!important}.full-width-bar.light,h1.title.light{background-color:#04a4cc!important}.full-width-bar.modern,h1.title.modern{background-color:#4664eb!important}.full-width-bar.blue,h1.title.blue{background-color:#e3af55!important}.full-width-bar.coffee,h1.title.coffee{background-color:#c7a589!important}.full-width-bar.ectoplasm,h1.title.ectoplasm{background-color:#a9bd4f!important}.full-width-bar.midnight,h1.title.midnight{background-color:#e35950!important}.full-width-bar.ocean,h1.title.ocean{background-color:#9ebaa0!important}.full-width-bar.sunrise,h1.title.sunrise{background-color:#dd823b!important}.full-width-bar.foggy,h1.title.foggy{background-color:#8993ab!important}.full-width-bar.polar,h1.title.polar{background-color:#fff!important;color:inherit}div.selector{display:inline-block;float:right}#wrap-selector{font-size:.6em;padding-right:10px;float:left}.form-selector{float:right;padding:0;top:0}select#form{line-height:34px;vertical-align:top}select#form.default{border-color:rgb(34 113 177 / 25%)}select#form.light{border-color:rgb(4 164 204 / 25%)}select#form.modern{border-color:rgb(56 88 233 / 25%)}select#form.blue{border-color:rgb(9 100 132 / 25%)}select#form.coffee{border-color:rgb(199 165 137 / 25%)}select#form.ectoplasm{border-color:rgb(163 183 69 / 25%)}select#form.midnight{border-color:rgb(225 77 67 / 25%)}select#form.ocean{border-color:rgb(158 186 160 / 25%)}select#form.sunrise{border-color:rgb(221 130 59 / 25%)}select#form.foggy{border-color:rgb(34 113 177 / 25%)}select#form.polar{border-color:#8993ab}select.default:focus,select.default:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.light:focus,select.light:hover{color:#04a4cc;border-color:#04a4cc;box-shadow:none}select.modern:focus,select.modern:hover{color:#3858e9;border-color:#3858e9;box-shadow:none}select.blue:focus,select.blue:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.coffee:focus,select.coffee:hover{color:#2271b1;border-color:#c7a589;box-shadow:none}select.ectoplasm:focus,select.ectoplasm:hover{color:#2271b1;border-color:#a3b745;box-shadow:none}select.midnight:focus,select.midnight:hover{color:#2271b1;border-color:#e14d43;box-shadow:none}select.ocean:focus,select.ocean:hover{color:#2271b1;border-color:#9ebaa0;box-shadow:none}select.sunrise:focus,select.sunrise:hover{color:#dd823b;border-color:#dcdfe6;box-shadow:none}select.foggy:focus,select.foggy:hover{color:#2271b1;border-color:#2271b1;box-shadow:none}select.polar:focus,select.polar:hover{color:#53a0de;border-color:#53a0de;box-shadow:none}#page-description{padding:10px 0}.notice.trwidget{margin-top:30px}#editor-tabs,#settings-tabs{margin-left:15px;position:relative;right:0;left:0;min-height:35px;font-size:0;z-index:1;border-bottom:0}.nav-tab{padding:5px 25px;margin-left:5px;border-bottom:none!important;color:#8993ab!important;background:#dcdfe6}.nav-tab-active,.nav-tab-active:focus,.nav-tab-active:hover,.nav-tab.nav-tab-active:hover{background:#fff!important;color:#8993ab!important;border-bottom:1px solid #fff!important;margin-bottom:-1px}.nav-tab:focus,.nav-tab:hover{background-color:#8993ab;color:#fff!important;cursor:pointer}a .dashicons{line-height:26px;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none;text-decoration:none}#editor-tabs a,#settings-tabs a{position:relative;display:inline-block;margin:0;border-bottom:0;margin-bottom:-1px;text-decoration:none;transition:none;-webkit-transition:none;-moz-transition:none;-o-transition:none}#editor-tabs a.form-button,#settings-tabs a.form-button{margin-right:0;float:right}#editor-tabs a.last,#settings-tabs a.last{margin-right:0!important}.form-button{background:#dcdfe6;color:#8993ab;border-bottom:none!important;border:1px solid #dcdfe6;line-height:24px}.form-button:focus{box-shadow:none;outline:0}.form-button>span{white-space:nowrap}.form-button>span>span.text{margin-left:5px}.form-button.default:hover{background:#f0f0f1;color:#2271b1}.form-button.light:hover{background:#f0f0f1;color:#04a4cc}.form-button.modern:hover{background:#f0f0f1;color:#3858e9}.form-button.blue:hover{background:#f0f0f1;color:#096484}.form-button.coffee:hover{background:#59524c;color:#fff}.form-button.ectoplasm:hover{background:#f0f0f1;color:#829237}.form-button.midnight:hover{background:#f0f0f1;color:#d02c21}.form-button.ocean:hover{background:#738e96;color:#fff}.form-button.sunrise:hover{background:#f0f0f1;color:#dd823b}.form-button.foggy:hover{background:#2271b1;color:#fff}.form-button.polar:hover{background:#53a0de;color:#fff}#attributes,#card,#settings{background:#fff;padding-top:25px}.options-heading span{cursor:pointer}.options-heading span span{padding-left:10px}.toggle.dashicons{color:#dcdfe6}.dashicons-arrow-up-alt2:hover{color:#f6866f}.dashicons-arrow-down-alt2:hover{color:#9bcc79}.options-heading.closed{margin-bottom:1.85em}.icon-button{color:#dcdfe6;font-size:26px;margin:-3px 0;float:right}.icon-button.default:hover{color:#2271b1}.icon-button.light:hover{color:#04a4cc}.icon-button.modern:hover{color:#3858e9}.icon-button.blue:hover{color:#096484}.icon-button.coffee:hover{color:#59524c}.icon-button.ectoplasm:hover{color:#a3b745}.icon-button.midnight:hover{color:#e14d43}.icon-button.ocean:hover{color:#738e96}.icon-button.sunrise:hover{color:#dd823b}.icon-button.foggy:hover{color:#72aee6}.icon-button.polar:hover{color:#53a0de}.settings-page.button,.widgets-page.button{text-align:center;float:right;margin-top:15px!important;padding:0 10px;border-radius:3px;font-size:13px;font-weight:600;cursor:pointer}.section.admin.collapsed,.section.akismet.collapsed,.section.auto.collapsed,.section.custom.collapsed,.section.fields.collapsed,.section.formdescription.collapsed,.section.formfields.collapsed,.section.layout.collapsed,.section.notification.collapsed,.section.recaptcha.collapsed,.section.rules.collapsed,.section.sending.collapsed,.section.smtp.collapsed,.section.spam.collapsed,.section.specifics.collapsed,.section.storage.collapsed,.section.style.collapsed,.section.submission.collapsed,.section.success.collapsed,.section.uninstall.collapsed{font-size:0;margin:0;opacity:0;padding:0;max-height:0;overflow:hidden;transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-webkit-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-moz-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s;-o-transition:max-height .3s linear,opacity .15s,font-size .15s,margin .15s,padding .15s}.section.admin,.section.akismet,.section.custom,.section.formdescription,.section.layout,.section.rules,.section.sending,.section.spam,.section.style,.section.submission,.section.success,.section.uninstall{max-height:800px;transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-webkit-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-moz-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s;-o-transition:max-height .5s linear,opacity 1s,font-size 1s,margin 1s,padding 1s}.section.auto,.section.notification,.section.recaptcha,.section.smtp,.section.specifics,.section.storage{max-height:1500px;transition:max-height 1.25s linear,opacity 1.5s,font-size 1.5s,margin 1.5s,padding 1.5s}.section.fields{max-height:3500px;transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-webkit-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-moz-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s;-o-transition:max-height 1.75s linear,opacity 2s,font-size 2s,margin 2s,padding 2s}.section.formfields{max-height:5500px;transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-webkit-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-moz-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s;-o-transition:max-height 2s linear,opacity 2.25s,font-size 2.25s,margin 2.25s,padding 2.25s}th>span{cursor:default}.switch-box{display:inline-table;width:100%;position:relative;height:20px;line-height:20px}.switch-input{position:relative;display:inline-block;float:left;margin-right:10px;width:40px;height:20px}.switch-input input{top:2px;left:4px;margin:0;position:absolute;opacity:0!important;width:20px;height:20px}.switch-input input:active+span{outline:0;box-shadow:none}.switch-label{display:inline-block;vertical-align:middle;width:calc(100% - 50px)}.switch-input input+span{position:absolute;z-index:1;cursor:pointer;top:0;left:0;right:0;bottom:0;background:#dcdfe6;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:20px;border:2px solid #dcdfe6}.switch-input input+span:before{position:absolute;content:"";height:16px;width:16px;background-color:#fff;-webkit-transition:.4s;transition:.4s;-moz-transition:.4s;-o-transition:.4s;border-radius:50%}.switch-input input:checked+span:before{-webkit-transform:translateX(20px);-ms-transform:translateX(20px);transform:translateX(20px)}label.multiselect{position:relative;cursor:pointer;display:inline-block;padding-left:34px;line-height:24px;margin-right:10px;margin-bottom:10px}label.multiselect.last{margin-right:0}input[type=checkbox].multiselect{position:absolute;opacity:0;cursor:pointer;height:0;width:0}.checkmark{position:absolute;cursor:pointer;top:0;left:0;height:20px;width:20px;border-radius:4px;background-color:#dcdfe6;border:2px solid #dcdfe6}.checkmark:after{left:7px;top:2px;width:4px;height:10px;border:solid #fff;border-width:0 3px 3px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);content:"";position:absolute;display:none}input[type=checkbox]:checked+.checkmark{background-color:#0d6efd;border:2px solid #0d6efd}input[type=checkbox]:checked+.checkmark:after{display:block}#columns-description.description{margin-top:-3px}form.default .switch-input input:checked+span,form.default input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.default .switch-input input:active+span{outline:0;box-shadow:none}form.light .switch-input input:checked+span,form.light input[type=checkbox]:checked+.checkmark{background:#04a4cc;border:2px solid #04a4cc}form.light .switch-input input:active+span{outline:0;box-shadow:none}form.modern .switch-input input:checked+span,form.modern input[type=checkbox]:checked+.checkmark{background:#3858e9;border:2px solid #3858e9}form.modern .switch-input input:active+span{outline:0;box-shadow:none}form.blue .switch-input input:checked+span,form.blue input[type=checkbox]:checked+.checkmark{background:#096484;border:2px solid #096484}form.blue .switch-input input:active+span{outline:0;box-shadow:none}form.coffee .switch-input input:checked+span,form.coffee input[type=checkbox]:checked+.checkmark{background:#c7a589;border:2px solid #c7a589}form.coffee .switch-input input:active+span{outline:0;box-shadow:none}form.ectoplasm .switch-input input:checked+span,form.ectoplasm input[type=checkbox]:checked+.checkmark{background:#a3b745;border:2px solid #a3b745}form.ectoplasm .switch-input input:active+span{outline:0;box-shadow:none}form.midnight .switch-input input:checked+span,form.midnight input[type=checkbox]:checked+.checkmark{background:#e14d43;border:2px solid #e14d43}form.midnight .switch-input input:active+span{outline:0;box-shadow:none}form.ocean .switch-input input:checked+span,form.ocean input[type=checkbox]:checked+.checkmark{background:#9ebaa0;border:2px solid #9ebaa0}form.ocean .switch-input input:active+span{outline:0;box-shadow:none}form.sunrise .switch-input input:checked+span,form.sunrise input[type=checkbox]:checked+.checkmark{background:#dd823b;border:2px solid #dd823b}form.sunrise .switch-input input:active+span{outline:0;box-shadow:none}form.foggy .switch-input input:checked+span,form.foggy input[type=checkbox]:checked+.checkmark{background:#2271b1;border:2px solid #2271b1}form.foggy .switch-input input:active+span{outline:0;box-shadow:none}form.polar .switch-input input:checked+span,form.polar input[type=checkbox]:checked+.checkmark{background:#53a0de;border:2px solid #53a0de}form.polar .switch-input input:active+span{outline:0;box-shadow:none}input[type=radio]{border:2px solid #dcdfe6;height:18px;width:18px;margin-top:-3px!important;margin-right:10px!important}form.default input[type=radio]:checked,form.foggy input[type=radio]:checked{background:#2271b1;border-color:#2271b1}form.default input[type=radio]:active,form.default input[type=radio]:focus,form.foggy input[type=radio]:active,form.foggy input[type=radio]:focus{border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=radio]:active,form.light input[type=radio]:focus{border-color:#04a4cc;outline:0;box-shadow:none}form.light input[type=radio]:checked{background:#04a4cc;border-color:#04a4cc}form.modern input[type=radio]:active,form.modern input[type=radio]:focus{border-color:#3858e9;outline:0;box-shadow:none}form.modern input[type=radio]:checked{background:#3858e9;border-color:#3858e9}form.blue input[type=radio]:active,form.blue input[type=radio]:focus{border-color:#096484;outline:0;box-shadow:none}form.blue input[type=radio]:checked{background:#096484;border-color:#096484}form.coffee input[type=radio]:active,form.coffee input[type=radio]:focus{border-color:#c7a589;outline:0;box-shadow:none}form.coffee input[type=radio]:checked{background:#c7a589;border-color:#c7a589}form.ectoplasm input[type=radio]:active,form.ectoplasm input[type=radio]:focus{border-color:#a3b745;outline:0;box-shadow:none}form.ectoplasm input[type=radio]:checked{background:#a3b745;border-color:#a3b745}form.midnight input[type=radio]:active,form.midnight input[type=radio]:focus{border-color:#e14d43;outline:0;box-shadow:none}form.midnight input[type=radio]:checked{background:#e14d43;border-color:#e14d43}form.ocean input[type=radio]:active,form.ocean input[type=radio]:focus{border-color:#9ebaa0;outline:0;box-shadow:none}form.ocean input[type=radio]:checked{background:#9ebaa0;border-color:#9ebaa0}form.sunrise input[type=radio]:active,input[type=radio]:focus{border-color:#dd823b;outline:0;box-shadow:none}form.sunrise input[type=radio]:checked{background:#dd823b;border-color:#dd823b}form.polar input[type=radio]:active,form.polar input[type=radio]:focus{border-color:#53a0de;outline:0;box-shadow:none}form.polar input[type=radio]:checked{background:#53a0de;border-color:#53a0de}input[type=radio]:checked::before{background-color:#fff}.form-table td fieldset label{margin-right:20px!important}textarea{height:230px!important;width:100%;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}textarea.description{height:148px!important}textarea.labels{height:100px!important}input.sform{width:100%}input.sform[type=number]{width:90px!important;text-align:center}form.default input[type=number]:focus,form.default input[type=text]:focus,form.default select.sform:focus,form.default textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.light input[type=number]:focus,form.light input[type=text]:focus,form.light select.sform:focus,form.light textarea:focus{border:2px solid #04a4cc!important;border-color:#04a4cc;outline:0;box-shadow:none}form.modern input[type=number]:focus,form.modern input[type=text]:focus,form.modern select.sform:focus,form.modern textarea:focus{border:2px solid #3858e9!important;border-color:#3858e9;outline:0;box-shadow:none}form.blue input[type=number]:focus,form.blue input[type=text]:focus,form.blue select.sform:focus,form.blue textarea:focus{border:2px solid #096484!important;border-color:#096484;outline:0;box-shadow:none}form.coffee input[type=number]:focus,form.coffee input[type=text]:focus,form.coffee select.sform:focus,form.coffee textarea:focus{border:2px solid #c7a589!important;border-color:#c7a589;outline:0;box-shadow:none}form.ectoplasm input[type=number]:focus,form.ectoplasm input[type=text]:focus,form.ectoplasm select.sform:focus,form.ectoplasm textarea:focus{border:2px solid #a3b745!important;border-color:#a3b745;outline:0;box-shadow:none}form.midnight input[type=number]:focus,form.midnight input[type=text]:focus,form.midnight select.sform:focus,form.midnight textarea:focus{border:2px solid #e14d43!important;border-color:#e14d43;outline:0;box-shadow:none}form.ocean input[type=number]:focus,form.ocean input[type=text]:focus,form.ocean select.sform:focus,form.ocean textarea:focus{border:2px solid #9ebaa0!important;border-color:#9ebaa0;outline:0;box-shadow:none}form.sunrise input[type=number]:focus,form.sunrise input[type=text]:focus,form.sunrise select.sform:focus,form.sunrise textarea:focus{border-color:#dd823b;border:2px solid #dd823b!important;color:#dd823b;outline:0;box-shadow:none}form.foggy input[type=number]:focus,form.foggy input[type=text]:focus,form.foggy select.sform:focus,form.foggy textarea:focus{border:2px solid #2271b1!important;border-color:#2271b1;outline:0;box-shadow:none}form.polar input[type=number]:focus,form.polar input[type=text]:focus,form.polar select.sform:focus,form.polar textarea:focus{border:2px solid #53a0de;border-color:#53a0de;outline:0;box-shadow:none}input.sform[type=number],input.sform[type=text],select.sform{height:42px!important;padding:10px 15px;-moz-border-radius:4px;-webkit-border-radius:4px;border-radius:4px;background-color:#fff!important;border:2px solid #dcdfe6;font-size:14px!important;line-height:24px!important;color:#444}select.sform{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:2px 20px 2px 8px!important;padding-right:30px!important}form.default select.sform:focus,form.default select.sform:hover{color:#2271b1}form.light select.sform:focus,form.light select.sform:hover{color:#04a4cc}form.modern select.sform:focus,form.modern select.sform:hover{color:#3858e9}form.blue select.sform:focus,form.modern blue.sform:hover{color:#2271b1}form.coffee select.sform:focus,form.coffee select.sform:hover{color:#2271b1}form.ectoplasm select.sform:focus,form.ectoplasm select.sform:hover{color:#2271b1}form.midnight select.sform:focus,form.midnight select.sform:hover{color:#2271b1}form.ocean select.sform:focus,form.ocean select.sform:hover{color:#2271b1}form.sunrise select.sform:hover{color:#dd823b}form.foggy select.sform:focus,form.foggy select.sform:hover{color:#2271b1}form.polar select.sform:focus,form.polar select.sform:hover{color:#53a0de}td>p.description{margin-bottom:-2px;letter-spacing:-.6px}#deletion-toggle.default,#smpt-warnings.default,form.default .privacy-setting.button,form.default .settings-page.button,form.default .widgets-page.button,span.default.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.light,#smpt-warnings.light,form.light .privacy-setting.button,form.light .settings-page.button,form.light .widgets-page.button,span.light.button.unavailable{color:#04a4cc;border-color:#04a4cc}#deletion-toggle.modern,#smpt-warnings.modern,form.modern .privacy-setting.button,form.modern .settings-page.button,form.modern .widgets-page.button,span.modern.button.unavailable{color:#3858e9;border-color:#3858e9}#deletion-toggle.blue,#smpt-warnings.blue,form.blue .privacy-setting.button,form.blue .settings-page.button,form.blue .widgets-page.button,span.blue.button.unavailable{color:#096484;border-color:#096484}#deletion-toggle.coffee,#smpt-warnings.coffee,form.coffee .privacy-setting.button,form.coffee .settings-page.button,form.coffee .widgets-page.button,span.coffee.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.coffee:hover,#smpt-warnings.coffee:hover,form.coffee .privacy-setting.button:hover,form.coffee .settings-page.button:hover,form.coffee .widgets-page.button:hover,span.coffee.button.unavailable:hover{color:#fff;border-color:#59524c;background-color:#59524c}#deletion-toggle.ectoplasm,#smpt-warnings.ectoplasm,form.ectoplasm .privacy-setting.button,form.ectoplasm .settings-page.button,form.ectoplasm .widgets-page.button,span.ectoplasm.button.unavailable{color:#a3b745;border-color:#a3b745}#deletion-toggle.ectoplasm:hover,#smpt-warnings.ectoplasm:hover,form.ectoplasm .privacy-setting.button:hover,form.ectoplasm .settings-page.button:hover,form.ectoplasm .widgets-page.button:hover,span.ectoplasm.button.unavailable:hover{color:#829237;border-color:#829237}#deletion-toggle.midnight,#smpt-warnings.midnight,form.midnight .privacy-setting.button,form.midnight .settings-page.button,form.midnight .widgets-page.button,span.midnight.button.unavailable{color:#e14d43;border-color:#e14d43}#deletion-toggle.midnight:hover,#smpt-warnings.midnight:hover,form.midnight .privacy-setting.button:hover,form.midnight .settings-page.button:hover,form.midnight .widgets-page.button:hover,span.midnight.button.unavailable:hover{color:#d02c21;border-color:#d02c21}#deletion-toggle.ocean,#smpt-warnings.ocean,form.ocean .privacy-setting.button,form.ocean .settings-page.button,form.ocean .widgets-page.button,span.ocean.button.unavailable{color:#2271b1;border-color:#2271b1}#deletion-toggle.ocean:hover,#smpt-warnings.ocean:hover,form.ocean .privacy-setting.button:hover,form.ocean .settings-page.button:hover,form.ocean .widgets-page.button:hover,span.ocean.button.unavailable:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#deletion-toggle.sunrise,#smpt-warnings.sunrise,form.sunrise .privacy-setting.button,form.sunrise .settings-page.button,form.sunrise .widgets-page.button,span.sunrise.button.unavailable{color:#dd823b;border-color:#dd823b}#deletion-toggle.foggy,#smpt-warnings.foggy,form.foggy .privacy-setting.button,form.foggy .settings-page.button,form.foggy .widgets-page.button,span.foggy.button.unavailable{color:#72aee6;border-color:#72aee6}#deletion-toggle.polar,#smpt-warnings.polar,form.polar .privacy-setting.button,form.polar .settings-page.button,form.polar .widgets-page.button,span.polar.button.unavailable{color:#53a0de;border-color:#53a0de}#deletion-toggle.polar:hover,#smpt-warnings.polar:hover,form.polar .privacy-setting.button:hover,form.polar .settings-page.button:hover,form.polar .widgets-page.button:hover,span.polar.button.unavailable:hover{color:#fff;background-color:#53a0de}select.sform:disabled:hover{color:#a7aaad!important}.switch-input input:disabled+span{cursor:default;box-shadow:none!important}label.disabled{cursor:default}.switch-input input:disabled:checked+span{opacity:.7}input[type=radio]:disabled,input[type=radio]:disabled:checked{cursor:default;box-shadow:none!important}input[type=radio]:disabled:active,input[type=radio]:disabled:focus{border-color:#dcdfe6!important}input[type=radio]:disabled:active:checked,input[type=radio]:disabled:focus:checked{border-color:#53a0de!important}input[type=checkbox]:disabled{opacity:0!important}#submit-wrap{margin:0 auto;text-align:center;padding:0 40px 100px}#alert-wrap{position:relative}#noscript{position:absolute;left:0;right:0;color:#fff;border-radius:8px;background:#dc3545;margin:0 75px 25px;line-height:30px;height:30px;padding:9px}#message-wrap{visibility:hidden;color:#909090;border-radius:8px;background:#f2f2f2;margin:0 75px 38px;line-height:30px;height:30px;padding:9px}#message-wrap.error{background:#f6866f;border:0;color:#fff}#message-wrap.success{background:#9bcc79;color:#fff}#message-wrap.unchanged{background:#f8cd5e;color:#fff}#message-wrap.seen{visibility:visible}.submit-button{padding:5px 12px;outline:0;border-radius:8px;font-size:13px;text-transform:uppercase;cursor:pointer;line-height:2.15384615;min-height:30px;border:none}form.default .submit-button{background:#2271b1;color:#fff}form.default .submit-button:hover{background:#135e96;color:#fff}form.default .submit-button:active{background:#135e96;color:#fff}form.light .submit-button{background:#04a4cc;color:#fff}form.light .submit-button:hover{background:#04b0db;color:#fff}form.light .submit-button:active{background:#0490b3;color:#fff}form.modern .submit-button{background:#3858e9;color:#fff}form.modern .submit-button:hover{background:#4664eb;color:#fff}form.modern .submit-button:active{background:#2145e6;color:#fff}form.blue .submit-button{background:#e1a948;color:#fff}form.blue .submit-button:hover{background:#e3af55;color:#fff}form.blue .submit-button:active{background:#dd9f32;color:#fff}form.coffee .submit-button{background:#c7a589;color:#fff}form.coffee .submit-button:hover{background:#ccad93;color:#fff}form.coffee .submit-button:active{background:#bf9878;color:#fff}form.ectoplasm .submit-button{background:#a3b745;color:#fff}form.ectoplasm .submit-button:hover{background:#a9bd4f;color:#fff}form.ectoplasm .submit-button:active{background:#93a43e;color:#fff}form.midnight .submit-button{background:#e14d43;color:#fff}form.midnight .submit-button:hover{background:#e35950;color:#fff}form.midnight .submit-button:active{background:#dd382d;color:#fff}form.ocean .submit-button{background:#9ebaa0;color:#fff}form.ocean .submit-button:hover{background:#a7c0a9;color:#fff}form.ocean .submit-button:active{background:#8faf91;color:#fff}form.sunrise .submit-button{background:#dd823b;color:#fff}form.sunrise .submit-button:hover{background:#c36922;color:#fff}form.sunrise .submit-button:active{background:#d97426;color:#fff}form.foggy .submit-button{background:#2271b1;color:#fff}form.foggy .submit-button:hover{background:#135e96;color:#fff}form.foggy .submit-button:active{background:#135e96;color:#fff}form.polar .submit-button{background:#53a0de;color:#fff}form.polar .submit-button:hover{background:#77b4e5;color:#fff}form.polar .submit-button:active{background:#318dd7;color:#fff}span.button.unavailable{float:left;margin-right:10px}span.button.unavailable a{color:#fff;text-decoration:none}span.button.unavailable:hover a{color:#fff}#set-page-icon.default:hover,span.default.button.unavailable a{color:#2271b1}#set-page-icon.light:hover,span.light.button.unavailable a{color:#04a4cc}#set-page-icon.modern:hover,span.modern.button.unavailable a{color:#3858e9}#set-page-icon.blue:hover,span.blue.button.unavailable a{color:#096484}#set-page-icon.coffee:hover,span.coffee.button.unavailable a{color:#2271b1}span.coffee.button.unavailable:hover a{color:#fff}#set-page-icon.ectoplasm:hover,span.ectoplasm.button.unavailable a{color:#a3b745}span.ectoplasm.button.unavailable:hover a{color:#829237}#set-page-icon.midnight:hover,span.midnight.button.unavailable a{color:#e14d43}#set-page-icon.ocean:hover,span.ocean.button.unavailable a{color:#2271b1}span.ocean.button.unavailable:hover a{color:#fff}#set-page-icon.sunrise:hover,span.sunrise.button.unavailable a{color:#dd823b}#set-page-icon.foggy:hover,span.foggy.button.unavailable a{color:#72aee6}#set-page-icon.polar:hover,span.polar.button.unavailable a{color:#53a0de}span.polar.button.unavailable:hover a{color:#fff}.publish-link{text-decoration:none;color:#9ccc79}.publish-link:hover{color:#9ccc79}input[placeholder]{text-overflow:ellipsis}::-moz-placeholder{text-overflow:ellipsis}input:-moz-placeholder{text-overflow:ellipsis}.head-bracket{font-style:italic;font-weight:400;padding-left:10px}#shortcode-copy{margin-left:5px;border:none;outline:0;background-color:transparent;line-height:inherit;width:40px;height:40px;padding:8px;border-radius:40px;cursor:pointer}#shortcode-copy:hover{background-color:#eee!important}#shortcode-copy:active{background-color:#dcdfe6!important}#shortcode-copy img{vertical-align:middle;width:24px}#shortcode-tooltip{background-color:#8993ab;display:none;color:#fff!important;padding:4px 7px;border-radius:5px;font-size:.75rem;margin-left:5px}.widgets-page.button{text-align:center;float:right;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}.slug{margin-left:10px}.privacy-setting.button{text-align:center;float:none;margin-top:6px!important;border-radius:4px;font-size:.9em;font-weight:600;cursor:pointer}#label-error,.privacy-setting{margin-left:10px!important}#label-error-top{margin-left:10px!important;font-weight:400!important;color:#f6866f}#set-page-icon{float:right;margin-top:-17px;cursor:pointer}#post-status{margin-right:25px}span.description.left{font-size:13px;font-style:italic;padding-left:10px}#form-borders{margin-left:20px}#smpt-warnings{margin-top:15px!important;font-size:13px;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer}tr.smpt-warnings{background-color:#e4e7ec}div.description h4{margin:1.3em 0}tr.smpt-warnings>td{padding:18px 41px 30px 36px;vertical-align:none;border-width:0 0 0 5px;border-style:solid;background:#e5f5fa;border-color:#00a0d2}.description pre{white-space:pre-wrap}#smpt-warnings:hover{background:#f0f0f1}.notice-toggle{white-space:nowrap}.submission-notice>.notice{margin-left:0;margin-right:0;margin-top:5px;margin-bottom:15px}#submissions-data{padding:0;display:flex}#submissions-data li{float:left;padding:20px 0;width:19%;text-align:center;background:#dcdfe6;opacity:.65;padding-bottom:26px}#submissions-data li:hover{opacity:1}.type{margin-right:1.25%}.label{color:#666;text-transform:uppercase;font-size:.8em}.value{display:block;clear:both;font-size:2em;font-weight:300;line-height:40px}#empty-submission,#last-submission,#submissions-notice{padding:30px 30px 50px;margin-top:20px;background:#fff}#empty-submission h3,#last-submission h3,#submissions-notice h3{line-height:30px}#deletion-notice{padding:5px 40px 30px;margin:0 -40px;background:#eb8a84;color:#fff;margin-bottom:-23px}#deletion-notice h3{line-height:30px;color:#fff}#deletion-notice .disclaimer{display:inline-block;padding:6px 0;width:60%}#deletion-notice .delete{display:inline-block;padding:6px 10px;background:#fff;color:#e35950;border-radius:5px;cursor:pointer}#deletion-notice .cancel{margin-right:50px}input.delete{font-size:inherit;margin:0;border:0;line-height:inherit}#deletion-toggle{margin-top:30px;font-size:13px;font-weight:600;text-align:center;float:right;border-radius:4px;font-weight:400;cursor:pointer;padding:6px 10px;background:#fff;border-style:solid;border-width:1px}#deletion-toggle:hover{background:#f0f0f1}#deletion-buttons{float:right;width:auto}@media screen and (max-width:960px){#deletion-notice .disclaimer{width:100%}#deletion-buttons{width:100%;text-align:center;float:none;margin:20px 0 0}}#deletion-notice span.dashicons,#empty-submission span.dashicons,#last-submission span.dashicons,#submissions-notice span.dashicons{font-size:30px;width:30px;height:30px;padding-right:10px}.row{box-sizing:border-box;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-webkit-flex:0 1 auto;-ms-flex:0 1 auto;flex:0 1 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;-webkit-flex-wrap:wrap;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-.5rem;margin-left:-.5rem}.columns-body{padding:10px}.columns-body>h4{margin-top:15px;margin-bottom:5px}@media only screen and (min-width:75em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%;box-sizing:border-box;-webkit-box-flex:0;-webkit-flex:0 0 auto;-ms-flex:0 0 auto;flex:0 0 auto;padding-right:.5rem;padding-left:.5rem}}@media only screen and (min-width:48em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (min-width:64em),all{.columns-wrap{-webkit-flex-basis:50%;-ms-flex-preferred-size:50%;flex-basis:50%;max-width:50%}}@media only screen and (max-width:36em){.columns-wrap{-webkit-flex-basis:100%;-ms-flex-preferred-size:100%;flex-basis:100%;max-width:100%}}#visibility-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-pages p.first{margin-bottom:5px!important}p.last,p.visibility{margin-bottom:0!important}.widget-alert{margin-top:15px;margin-right:-15px;margin-left:-15px;padding:0 15px;color:#fff;background:#f6866f}.widget-alert div{padding:6px 0}.sform-widget-notes{font-size:12px;margin-top:5px;letter-spacing:-.25px}.sform-widget-boxes{margin-top:30px}.sform-widget-boxes.buttons p label{line-height:40px}.sform-widget-description{font-size:12px;margin-top:5px;letter-spacing:-.25px}.widget-button{padding:6px 10px;background:#007cba;border-color:#007cba;color:#fff;font-size:12px;width:90px;margin-top:6px;text-align:center;cursor:pointer}.widget-button:hover{background:#0071a1;border-color:#0071a1}#widget-button-editor{float:left}#widget-button-settings{float:right}#widget-button-editor,#widget-button-settings{text-align:center;padding:0 10px;border-radius:4px;font-weight:600;cursor:pointer}p#widget-buttons{margin-top:1em;height:42px}#widget-button-editor.default,#widget-button-settings.default,.support.button.default{color:#2271b1;border-color:#2271b1}#widget-button-editor.light,#widget-button-settings.light,.support.button.light{color:#04a4cc;border-color:#04a4cc}#widget-button-editor.modern,#widget-button-settings.modern,.support.button.modern{color:#3858e9;border-color:#3858e9}#widget-button-editor.blue,#widget-button-settings.blue,.support.button.blue{color:#096484;border-color:#096484}#widget-button-editor.coffee,#widget-button-settings.coffee,.support.button.coffee{color:#2271b1;border-color:#2271b1}#widget-button-editor.coffee:hover,#widget-button-settings.coffee:hover,.support.button.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}#widget-button-editor.ectoplasm,#widget-button-settings.ectoplasm,.support.button.ectoplasm{color:#a3b745;border-color:#a3b745}#widget-button-editor.ectoplasm:hover,#widget-button-settings.ectoplasm:hover,.support.button.ectoplasm:hover{color:#829237;border-color:#829237}#widget-button-editor.midnight,#widget-button-settings.midnight,.support.button.midnight{color:#e14d43;border-color:#e14d43}#widget-button-editor.midnight:hover,#widget-button-settings.midnight:hover,.support.button.midnight:hover{color:#d02c21;border-color:#d02c21}#widget-button-editor.ocean,#widget-button-settings.ocean,.support.button.ocean{color:#2271b1;border-color:#2271b1}#widget-button-editor.ocean:hover,#widget-button-settings.ocean:hover,.support.button.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}#widget-button-editor.sunrise,#widget-button-settings.sunrise,.support.button.sunrise{color:#dd823b;border-color:#dd823b}#widget-button-editor.foggy,#widget-button-settings.foggy,.support.button.foggy{color:#72aee6;border-color:#72aee6}#widget-button-editor.polar,#widget-button-settings.polar,.support.button.polar{color:#53a0de;border-color:#53a0de}#widget-button-editor.polar:hover,#widget-button-settings.polar:hover,.support.button.polar:hover{color:#fff;background-color:#53a0de}.checkbox-switch.default:hover p{visibility:visible}.dashicons-lock.red,.lock.notes.red{color:#d63638}.dashicons-lock.orange,.lock.notes.orange{color:orange}.dashicons-unlock,.lock.notes{color:#85c641}.dashicons-lock:hover+span,.dashicons-unlock:hover+span{visibility:visible}#card-submit-wrap{margin:0 auto;padding:0 40px 100px}#alert-wrap,#form-buttons{text-align:center}.button.back-list.default{color:#2271b1;border-color:#2271b1}.button.back-list.light{color:#04a4cc;border-color:#04a4cc}.button.back-list.modern{color:#3858e9;border-color:#3858e9}.button.back-list.blue{color:#096484;border-color:#096484}.button.back-list.coffee{color:#2271b1;border-color:#2271b1}.button.back-list.coffee:hover{color:#fff;border-color:#59524c;background-color:#59524c}.button.back-list.ectoplasm{color:#a3b745;border-color:#a3b745}.button.back-list.ectoplasm:hover{color:#829237;border-color:#829237}.button.back-list.midnight{color:#e14d43;border-color:#e14d43}.button.back-list.midnight:hover{color:#d02c21;border-color:#d02c21}.button.back-list.ocean{color:#2271b1;border-color:#2271b1}.button.back-list.ocean:hover{color:#fff;border-color:#0a4b78;background-color:#738e96}.button.back-list.sunrise{color:#dd823b;border-color:#dd823b}.button.back-list.foggy{color:#72aee6;border-color:#72aee6}.button.back-list.polar{color:#53a0de;border-color:#53a0de}.button.back-list.polar:hover{color:#fff;background-color:#53a0de}.forwarding{padding-right:3px}#deletion-notice.success{text-align:center;background:#75c375}#deletion-notice .disclaimer.success{padding:0;line-height:48px}#deletion-notice .disclaimer.success span{font-size:80px;width:68px;height:48px;line-height:48px;padding-right:0}#deletion-notice.confirm{background:#d63638}div.notice{margin-top:13px!important}@media screen and (max-width:374px){#editor-tabs a,#settings-tabs a{font-size:.75rem}}@media screen and (max-width:520px){.type{margin-right:0!important;border-right:1px solid #8993ab!important}#submissions-data{margin:15px 0!important}#submissions-data li{padding:20px 7px!important;width:calc(20% -1px)!important}.label{font-size:.7em!important;letter-spacing:-.5px}.value{font-size:1.5em!important}#empty-submission,#last-submission,#submissions-notice{padding:10px 15px 30px!important;margin:20px 0!important}#last-submission{overflow:auto}label.multiselect{width:100%}}@media screen and (max-width:782px){#deletion-notice{padding:5px 10px 30px!important;margin:0 -50px!important}.submissions-list .notice{margin:20px}#deletion-toggle{margin:20px;margin-top:30px}#page-description.overview{padding:10px 0!important;margin-left:-10px!important;margin-right:-10px!important}#submissions-data li{width:20%}.type{margin-right:0;border-right:1px solid #8993ab!important}.label{font-size:.75em}#empty-submission,#last-submission,#submissions-notice{padding:30px 20px 50px!important}#sform-wrap{padding-right:10px}#page-description{padding:10px}form{padding:10px}.sform.wrap{margin-top:0}.responsive{display:none!important}h1.title{padding:10px}select#form{padding:0 24px 0 8px;min-height:34px;font-size:13px}.wrap{margin-right:0;padding-right:10px;margin-left:-10px;padding-left:10px}.nav-tab{border:none;line-height:26px}#editor-tabs #card-tabs,#settings-tabs,form#attributes,form#card,form#settings{margin:0 -10px}#editor-tabs,#settings-tabs{overflow:hidden;padding:0 0 0 10px;height:auto;margin-left:-10px!important;margin-right:-10px}.form-button{line-height:25px}#editor-tabs a,#settings-tabs a{margin-right:0!important;padding:5px 8px!important;font-weight:400}#attributes,#card,#settings{border:none}.options-heading{padding:0 10px 10px}.options-heading.closed>a>.icon-button,.options-heading.closed>span>.icon-button{display:none}.options-heading>a>.icon-button,.options-heading>span>.icon-button{display:block}th.option{padding:15px 10px}td.checkbox-switch,td.checkbox-switch.notes,td.multicheckbox.notes,td.plaintext,td.plaintext.last,td.radio,td.radio.notes,td.radio.notes.last,td.select,td.select.notes,td.text,td.text.notes,td.textarea,td.used-page{padding:10px}td.plaintext.icon{padding:0 10px}td.plaintext.widget #edit-widget{margin-top:-11px!important;margin-bottom:0!important}td.checkbox-switch.last,td.checkbox-switch.last.notes,td.last.radio,td.last.select,td.last.select.notes,td.last.text,td.last.text.notes,td.last.textarea,td.last.used-page{padding:10px 10px 40px}#label-error,#set-page{display:none}label-error-top{display:block}label.radio{width:100%}#smpt-warnings.text,.privacy-setting.button,.settings-page.button,.widgets-page.button,a .text{display:none}input[type=radio]:checked::before{width:.5rem;height:.5rem;margin:.1875rem}tr.outside th{padding:45px 10px 15px}tr.outside td.plaintextt{padding:10px}#attributes{margin:0 -10px}#editor-tabs a.form-page{margin-right:5px!important}td.column-locks span{margin-left:-5px;margin-top:-1px}.lock.notes{padding:3px 10px}.icon-button{line-height:46px!important}.button.back-list{display:none}.subsubsub{font-size:13px;width:100%}.tablenav .tablenav-pages{margin:0}.tablenav.top,p.search-box{text-align:center}.tablenav.top{margin:20px 0 12px 0}.tablenav.bottom{margin:8px 20px 0}#forms-table .tablenav .button{margin-bottom:0!important;margin-left:10px;margin-right:0!important}.row-actions{display:flex!important}#forms-table{padding:20px 0 10px 0}.widefat tbody th.check-column,.widefat tfoot td.check-column,.widefat thead td.check-column,tbody td.check-column{padding:8px 0 0 10px}.widefat td,.widefat th{padding:14px 10px}input[type=checkbox]{margin:2px 0 8px 10px!important}.widefat tfoot td input[type=checkbox],.widefat thead td input[type=checkbox]{margin:0 0 8px 10px!important}.wp-list-table .toggle-row{top:16px}.wp-list-table .is-expanded td:not(.hidden){padding-bottom:10px!important;padding-right:20px!important}.tablenav-pages .pagination-links{font-size:13px}.tablenav .tablenav-pages .button,.tablenav .tablenav-pages .tablenav-pages-navspan{display:inline-block;vertical-align:baseline;min-width:30px;min-height:30px;margin:0!important;padding:0 4px;font-size:16px;line-height:1.625;text-align:center;margin-left:10px}.tablenav-pages .pagination-links .current-page{margin:0 2px 0 0;font-size:13px;text-align:center;min-width:30px;min-height:30px;margin:0;padding:0 4px}}@media screen and (min-width:783px){.submissions-list .notice{margin:5px 0 2px}#sform-wrap{padding-right:20px}.sform.wrap{margin:38px 20px 0 2px}h1.title{padding:10px 0}.nav-tab{border:1px solid #dcdfe6;line-height:24px}#editor-tabs a,#settings-tabs a{font-size:14px;margin-right:5px!important;padding:5px 25px}#attributes,#card,#settings{border:1px solid #dcdfe6}.options-heading,.options-heading span span{line-height:60px}.options-heading{padding:0 41px}.options-heading.closed>a>.settings-page,.options-heading.closed>a>.widgets-page,.options-heading.closed>span>#smpt-warnings{display:none}.options-heading>a>.settings-page,.options-heading>a>.widgets-page,.options-heading>span>#smpt-warnings{display:block}#set-page-icon,.icon-button{display:none}th.option{padding:36px 41px 30px;width:275px}td.checkbox-switch.notes{padding:34px 50px 12px 10px}td.checkbox-switch{padding:34px 50px 35px 10px}td.multicheckbox.notes{padding:33px 50px 7px 10px}td.last.select{padding:24px 50px 54px 9px}td.last.radio{padding:30px 50px 60px 10px}td.select.notes{padding:24px 50px 1px 9px}td.checkbox-switch.last.notes{padding:34px 50px 42px 10px}td.checkbox-switch.last{padding:34px 50px 65px 10px}td.text{padding:24px 50px 24px 9px}td.last.text{padding:24px 50px 54px 9px}td.radio{padding:30px 50px 30px 9px}td.last.select.notes{padding:24px 50px 31px 9px}td.textarea{padding:21px 50px 24px 9px}td.text.notes{padding:23px 50px 2px 9px}td.radio.notes{padding:30px 50px 7px 10px}td.radio.notes.last{padding:30px 50px 37px 10px}td.last.text.notes{padding:23px 50px 32px 9px}td.select{padding:24px 50px 24px 9px}td>p.description{padding-right:50px}td.plaintext{padding:36px 50px 36px 9px}td.plaintext.last{padding:36px 50px 66px 9px}td.plaintext.widget{padding:24px 50px 24px 9px;line-height:42px}td.plaintext.icon{padding:26px 50px 24px 9px}td.used-page{padding:36px 50px 36px 9px}td.last.textarea{padding:21px 50px 24px 9px}tr.outside th{padding:66px 41px 30px}tr.outside td.plaintext{padding:56px 50px 24px 9px}td.column-locks,th.column-locks,th.column-status,td.column-status{text-align:center}.dashicons-lock,.dashicons-unlock{width:100%}td.column-entries,td.column-forwarding,th.column-entries,th.column-forwarding{width:100px;text-align:center}td.column-movedentries,th.column-movedentries{width:150px;text-align:center}td.column-target,th.column-target{text-align:center}td.column-creation,th.column-creation{text-align:center}th.column-creation a{display:inline-flex}th.column-creation a span{margin-left:17px}th.column-creation a span.sorting-indicator{margin-left:7px}.button.admin{float:right;padding:3px 10px!important}.button.admin{float:right;padding:3px 10px!important}}#available-widgets [class*=sform] .widget-title:before{content:url("data:image/svg+xml,%3Csvg width='20px' height='20px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180' %3E%3Cpath fill='currentColor' d='M96.326,111.597c0-18.193-0.167-36.391,0.053-54.58 c0.188-15.525,3.512-29.949,12.957-41.421c9.567-11.622,21.017-11.457,30.737-0.01c7.372,8.682,10.607,19.568,12.215,31.381 c0.732,5.379,0.851,10.786,0.849,16.214c-0.011,29.197-0.002,58.396-0.007,87.595c-0.002,6.48-4.014,10.405-9.378,9.323 c-1.924-0.389-1.816-2.022-1.926-3.624c-0.695-10.047-0.688-10.011-8.982-7.314c-6.804,2.212-13.586,4.543-20.463,6.387 c-3.582,0.962-5.123,2.99-4.787,7.271c0.146,1.889,0.034,3.815-0.05,5.717c-0.121,2.802-1.362,4.579-3.627,5.479 c-6.666,2.648-7.592,1.872-7.592-6.516C96.325,148.864,96.325,130.23,96.326,111.597z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M27.769,107.198c0-15.412-0.03-30.824,0.006-46.234 c0.066-28.643,17.508-50.748,41.681-53.416c10.049-1.108,20.08-0.48,30.118-0.75c0.936-0.025,2.139-0.439,2.631,0.961 c0.478,1.368-0.575,2.092-1.229,2.922c-0.76,0.967-1.845,1.741-2.281,2.873c-2.752,7.121-7.72,7.832-13.544,7.427 c-6.419-0.445-12.871-0.373-19.217,1.558C49.624,27.498,38.989,43.42,39.058,63.261c0.029,8.499,0.51,16.996,0.485,25.493 c-0.039,13.634-0.362,27.268-0.496,40.901c-0.065,6.679,1.043,7.76,6.557,8.476c12.062,1.562,24.085,3.49,36.146,5.019 c3.442,0.438,4.282,2.441,4.271,6.104c-0.025,9.025-0.132,8.982-7.748,7.741c-11.527-1.878-23.107-3.308-34.656-5.002 c-3.365-0.496-4.713,0.846-4.562,5.06c0.346,9.731,0.213,8.388-7.725,7.188c-2.969-0.446-3.621-2.725-3.603-5.963 C27.816,141.25,27.769,124.225,27.769,107.198z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M75.697,51.212c-5.191-0.897-10.416-0.479-15.628-0.553 c-2.054-0.029-2.659-0.985-2.13-3.342c1.504-6.724,6.782-12.072,12.691-12.477c3.083-0.211,6.184-0.019,9.271-0.12 c1.641-0.054,1.945,0.99,1.602,2.487c-0.899,3.906-1.4,7.864-1.404,11.914c-0.002,1.369-0.648,2.056-1.787,2.086 C77.44,51.23,76.568,51.212,75.697,51.212z'%3E%3C/path%3E%3Cpath fill='%23FFF' d='M73.535,48.245c-3.321-0.574-6.665-0.307-10.001-0.354 c-1.313-0.019-1.702-0.63-1.362-2.139c0.963-4.303,4.34-7.726,8.121-7.986c1.975-0.135,3.959-0.012,5.936-0.076 c1.049-0.035,1.244,0.633,1.024,1.592c-0.577,2.5-0.897,5.033-0.899,7.625c0,0.875-0.414,1.316-1.144,1.335 C74.651,48.256,74.094,48.245,73.535,48.245z'%3E%3C/path%3E%3C/svg%3E")} -
simpleform/trunk/admin/css/admin.css
r2664049 r2679542 225 225 input[type=radio]:disabled:active, input[type=radio]:disabled:focus { border-color: #dcdfe6 !important; } 226 226 input[type=radio]:disabled:active:checked, input[type=radio]:disabled:focus:checked { border-color: #53a0de !important; } 227 input[type=checkbox]:disabled { opacity: 0 !important; } 227 228 #submit-wrap { margin: 0 auto; text-align: center; padding: 0 40px 100px; } 228 229 #alert-wrap { position: relative; } … … 557 558 .button.admin { float: right; padding: 3px 10px !important; } 558 559 } 560 561 /* Customizer page */ 562 #available-widgets [class*="sform"] .widget-title:before { content: url("data:image/svg+xml,%3Csvg width='20px' height='20px' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 180 180' %3E%3Cpath fill='currentColor' d='M96.326,111.597c0-18.193-0.167-36.391,0.053-54.58 c0.188-15.525,3.512-29.949,12.957-41.421c9.567-11.622,21.017-11.457,30.737-0.01c7.372,8.682,10.607,19.568,12.215,31.381 c0.732,5.379,0.851,10.786,0.849,16.214c-0.011,29.197-0.002,58.396-0.007,87.595c-0.002,6.48-4.014,10.405-9.378,9.323 c-1.924-0.389-1.816-2.022-1.926-3.624c-0.695-10.047-0.688-10.011-8.982-7.314c-6.804,2.212-13.586,4.543-20.463,6.387 c-3.582,0.962-5.123,2.99-4.787,7.271c0.146,1.889,0.034,3.815-0.05,5.717c-0.121,2.802-1.362,4.579-3.627,5.479 c-6.666,2.648-7.592,1.872-7.592-6.516C96.325,148.864,96.325,130.23,96.326,111.597z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M27.769,107.198c0-15.412-0.03-30.824,0.006-46.234 c0.066-28.643,17.508-50.748,41.681-53.416c10.049-1.108,20.08-0.48,30.118-0.75c0.936-0.025,2.139-0.439,2.631,0.961 c0.478,1.368-0.575,2.092-1.229,2.922c-0.76,0.967-1.845,1.741-2.281,2.873c-2.752,7.121-7.72,7.832-13.544,7.427 c-6.419-0.445-12.871-0.373-19.217,1.558C49.624,27.498,38.989,43.42,39.058,63.261c0.029,8.499,0.51,16.996,0.485,25.493 c-0.039,13.634-0.362,27.268-0.496,40.901c-0.065,6.679,1.043,7.76,6.557,8.476c12.062,1.562,24.085,3.49,36.146,5.019 c3.442,0.438,4.282,2.441,4.271,6.104c-0.025,9.025-0.132,8.982-7.748,7.741c-11.527-1.878-23.107-3.308-34.656-5.002 c-3.365-0.496-4.713,0.846-4.562,5.06c0.346,9.731,0.213,8.388-7.725,7.188c-2.969-0.446-3.621-2.725-3.603-5.963 C27.816,141.25,27.769,124.225,27.769,107.198z'%3E%3C/path%3E%3Cpath fill='currentColor' d='M75.697,51.212c-5.191-0.897-10.416-0.479-15.628-0.553 c-2.054-0.029-2.659-0.985-2.13-3.342c1.504-6.724,6.782-12.072,12.691-12.477c3.083-0.211,6.184-0.019,9.271-0.12 c1.641-0.054,1.945,0.99,1.602,2.487c-0.899,3.906-1.4,7.864-1.404,11.914c-0.002,1.369-0.648,2.056-1.787,2.086 C77.44,51.23,76.568,51.212,75.697,51.212z'%3E%3C/path%3E%3Cpath fill='%23FFF' d='M73.535,48.245c-3.321-0.574-6.665-0.307-10.001-0.354 c-1.313-0.019-1.702-0.63-1.362-2.139c0.963-4.303,4.34-7.726,8.121-7.986c1.975-0.135,3.959-0.012,5.936-0.076 c1.049-0.035,1.244,0.633,1.024,1.592c-0.577,2.5-0.897,5.033-0.899,7.625c0,0.875-0.414,1.316-1.144,1.335 C74.651,48.256,74.094,48.245,73.535,48.245z'%3E%3C/path%3E%3C/svg%3E"); } -
simpleform/trunk/admin/js/admin-min.js
r2664049 r2679542 1 !function(m){"use strict";m(window).load(function(){ m("ul#submissions-data").hover(function(){m("#last-submission").addClass("unseen"),m("#submissions-notice").removeClass("unseen")},function(){m("#last-submission").removeClass("unseen"),m("#submissions-notice").addClass("unseen")}),m("#shortcode-copy").click(function(){event.preventDefault();var e=document.createElement("input");e.style="position: absolute; left: -1000px; top: -1000px",document.body.appendChild(e),e.value=m("#shortcode").text(),e.select(),document.execCommand("copy"),document.body.removeChild(e),m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copied),setTimeout(function(){m("#shortcode-tooltip").hide()},1500)}),m("#shortcode-copy").hover(function(){m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copy),m("#shortcode-tooltip").show()},function(){m("#shortcode-tooltip").hide()}),m("#show-for").change(function(){var e=m(this).val(),e=m(location).attr("href")+"&showfor="+e;document.location.href=e}),m("#name-field").on("change",function(){"hidden"==m("#name-field option:selected").val()?m(".trname").addClass("unseen"):(m(".trname").removeClass("unseen"),1==m("#namelabel").prop("checked")?m("tr.namelabel").addClass("unseen"):m("tr.namelabel").removeClass("unseen"))}),m("#lastname-field").on("change",function(){"hidden"==m("#lastname-field option:selected").val()?m(".trlastname").addClass("unseen"):(m(".trlastname").removeClass("unseen"),1==m("#lastnamelabel").prop("checked")?m("tr.lastnamelabel").addClass("unseen"):m("tr.lastnamelabel").removeClass("unseen"))}),m("#email-field").on("change",function(){"hidden"==m("#email-field option:selected").val()?m(".tremail").addClass("unseen"):(m(".tremail").removeClass("unseen"),1==m("#emaillabel").prop("checked")?m("tr.emaillabel").addClass("unseen"):m("tr.emaillabel").removeClass("unseen"))}),m("#phone-field").on("change",function(){"hidden"==m("#phone-field option:selected").val()?m(".trphone").addClass("unseen"):(m(".trphone").removeClass("unseen"),1==m("#phonelabel").prop("checked")?m("tr.phonelabel").addClass("unseen"):m("tr.phonelabel").removeClass("unseen"))}),m("#subject-field").on("change",function(){"hidden"==m("#subject-field option:selected").val()?m(".trsubject").addClass("unseen"):(m(".trsubject").removeClass("unseen"),1==m("#subjectlabel").prop("checked")?m("tr.subjectlabel").addClass("unseen"):m("tr.subjectlabel").removeClass("unseen"))}),m("#captcha-field").on("change",function(){"hidden"==m("#captcha-field option:selected").val()?m(".trcaptchalabel").addClass("unseen"):m(".trcaptchalabel").removeClass("unseen")}),m("#preference-field").on("change",function(){"hidden"==m("#preference-field option:selected").val()?m(".trpreference").addClass("unseen"):m(".trpreference").removeClass("unseen")}),m("#consent-field").on("change",function(){"hidden"==m("#consent-field option:selected").val()?m(".trconsent").addClass("unseen"):(m(".trconsent").removeClass("unseen"),1==m("#privacy-link").prop("checked")?m(".trpage").removeClass("unseen"):m(".trpage").addClass("unseen"))}),m("#privacy-link").on("click",function(){var e,s=m("#consent-label").val(),t=ajax_sform_settings_options_object.privacy;1==m(this).prop("checked")?m(".trpage").removeClass("unseen"):(m(".trpage").addClass("unseen"),e=new RegExp("<a [^>]*>"+t+"</a>","i"),t=s.replace(e,t),m("#consent-label").val(t),m("#privacy-page").val(""),m("#set-page, #set-page-icon").addClass("unseen"),m("#set-page, #set-page-icon").attr("page",0),m("#post-status").html(" "))}),m("#privacy-page").on("change",function(){var e=m(this).val(),s=m("#set-page").attr("page");""!=e?(m("#page-id").val(e),e==s?m("#set-page, #set-page-icon").addClass("unseen"):m("#set-page, #set-page-icon").removeClass("unseen")):(m("#set-page, #set-page-icon").addClass("unseen"),m("#privacy-link").click())}),m("#set-page").click(function(e){m("#label-error").html("");var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page").addClass("unseen"),m("#set-page").attr("page",t))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("#set-page-icon").click(function(e){var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error-top").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page-icon").addClass("unseen"),m("#set-page-icon").attr("page",t))},error:function(e){m("#label-error-top").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m(".field-label").on("click",function(){var e=m(this).attr("id");1==m(this).prop("checked")?m("tr."+e).addClass("unseen"):m("tr."+e).removeClass("unseen")}),m("#required-sign").on("click",function(){1==m(this).prop("checked")?m(".trsign").addClass("unseen"):m(".trsign").removeClass("unseen")}),m("#optional-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.required&&m("#required-word").val(ajax_sform_settings_options_object.optional)}),m("#required-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.optional&&m("#required-word").val(ajax_sform_settings_options_object.required)}),m(".nav-tab").on("click",function(){var e=m(this).attr("id");m(".nav-tab-active").removeClass("nav-tab-active"),m(".navtab").addClass("unseen"),m("#tab-"+e).removeClass("unseen"),m(this).addClass("nav-tab-active"),"appearance"==e?m(".editorpage").text(ajax_sform_settings_options_object.appearance):m(".editorpage").text(ajax_sform_settings_options_object.builder)}),m("#widget-editor").on("click",function(){1==m(this).prop("checked")?m(".trwidget").addClass("unseen"):m(".trwidget").removeClass("unseen")}),m("#form-template").on("change",function(){var e=m("#form-template option:selected").val();"transparent"==e?m("#form-borders").removeClass("unseen"):m("#form-borders").addClass("unseen"),"customized"==e?m("#template-notice").text(ajax_sform_settings_options_object.notes):m("#template-notice").html(" ")}),m("#stylesheet").on("click",function(){1==m(this).prop("checked")?m(".trstylesheet").removeClass("unseen"):m(".trstylesheet").addClass("unseen")}),m("#stylesheet-file").on("click",function(){1==m(this).prop("checked")?m("#stylesheet-description").html(ajax_sform_settings_options_object.cssenabled):m("#stylesheet-description").html(ajax_sform_settings_options_object.cssdisabled)}),m("#javascript").on("click",function(){1==m(this).prop("checked")?m("#javascript-description").html(ajax_sform_settings_options_object.jsenabled):m("#javascript-description").html(ajax_sform_settings_options_object.jsdisabled)}),m("#outside-error").on("change",function(){var n=m("#outside-error option:selected").val(),e=m("label#focusout").html();"none"!=n&&m(".out").each(function(e,s){var t,s=m(s);"top"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.bottom,ajax_sform_settings_options_object.top)),"bottom"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.top,ajax_sform_settings_options_object.bottom)),console.log(s.attr("placeholder")),s.attr("placeholder",t)}),"top"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.topnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):"bottom"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.bottomnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.focusout,ajax_sform_settings_options_object.nofocus)),m("#outside-notice").html(" "),m(".trout").addClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).addClass("last"))}),m("#characters-length").on("click",function(){1==m(this).prop("checked")?(m("#characters-description").html(ajax_sform_settings_options_object.showcharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.numnamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.numlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.numsuber),m("#incomplete-message").val(ajax_sform_settings_options_object.nummsger)):(m("#characters-description").html(ajax_sform_settings_options_object.hidecharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.gennamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.genlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.gensuber),m("#incomplete-message").val(ajax_sform_settings_options_object.genmsger))}),m("#ajax-submission").on("click",function(){1==m(this).prop("checked")?m(".trajax").removeClass("unseen"):m(".trajax").addClass("unseen")}),m("#confirmation-message").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").removeClass("unseen"),m(".trsuccessredirect").addClass("unseen"),m("#confirmation-page").val(""),m("#post-status").html(" "))}),m("#success-redirect").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").addClass("unseen"),m(".trsuccessredirect").removeClass("unseen"))}),m("#confirmation-page, #privacy-page").on("change",function(){var e=m(this).find("option:selected"),s=e.attr("value");"draft"==e.attr("Tag")?m("#post-status").html(ajax_sform_settings_options_object.status+' - <strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none; color: #9ccc79;">'+ajax_sform_settings_options_object.publish+"</a></strong>"):""!=s?(e='<strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.edit+"</a></strong>",s='<strong><a href="'+ajax_sform_settings_options_object.pageurl+"/?page_id="+s+'" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.view+"</a></strong>",s=ajax_sform_settings_options_object.pagelinks.replace(ajax_sform_settings_options_object.edit,e).replace(ajax_sform_settings_options_object.view,s),m("#post-status").html(s)):m("#post-status").html(" ")}),m(".notice-toggle").on("click",function(){m(".smpt-warnings").hasClass("unseen")?(m("#smpt-warnings").text(ajax_sform_settings_options_object.hide),m(".smpt-settings").addClass("unseen"),m(".smpt-warnings").removeClass("unseen")):(m("#smpt-warnings").text(ajax_sform_settings_options_object.show),m("#trsmtpon").removeClass("unseen"),m(".smpt-warnings").addClass("unseen"),1==m("#server-smtp").prop("checked")?(m(".trsmtp").removeClass("unseen"),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):m(".trsmtp").addClass("unseen"))}),m("#server-smtp").on("click",function(){1==m(this).prop("checked")?(m(".trsmtp").removeClass("unseen"),m("#tdsmtp").removeClass("last"),m("#smtp-notice").text(ajax_sform_settings_options_object.smtpnotes),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):(m(".trsmtp").addClass("unseen"),m("#tdsmtp").addClass("last"),m("#smtp-notice").text(""))}),m("#smtp-authentication").on("click",function(){1==m(this).prop("checked")?(m("#tdauthentication").removeClass("last"),m(".trauthentication").removeClass("unseen")):(m("#tdauthentication").addClass("last"),m(".trauthentication").addClass("unseen"))}),m("#notification").on("click",function(){1==m(this).prop("checked")?(m(".trnotification").removeClass("unseen"),m("#tdnotification").removeClass("last"),1==m("#custom-name").prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen"),1==m("#default-subject").prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")):(m(".trnotification").addClass("unseen"),m("#tdnotification").addClass("last"))}),m("#requester-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#form-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#custom-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen")}),m("#request-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").addClass("unseen"):m(".trcustomsubject").removeClass("unseen")}),m("#default-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")}),m("#autoresponder").on("click",function(){1==m(this).prop("checked")?(m(".trauto").removeClass("unseen"),m("#tdconfirmation").removeClass("last")):(m(".trauto").addClass("unseen"),m("#tdconfirmation").addClass("last"))}),m("#save-settings").click(function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").html(ajax_sform_settings_options_object.loading);var s=m("form#settings").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_edit_options",success:function(e){var s=e.error,t=(e.message,e.update);!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&m(".message").addClass("success"))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change","input[type=checkbox], input[type=radio], select",function(){m(".message").removeClass("seen error success unchanged")}),m(document).on("input","input[type=text], input[type=email], textarea",function(){m(".message").removeClass("seen error success unchanged")}),m("#save-attributes").click(function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#attributes").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=shortcode_costruction",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&(!0===n?document.location.href=a:m(".message").addClass("success")))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change",".sform-target",function(){var e=m(this).val(),s=m(this).attr("field");"in"===e?m("p#usertype.role-"+s).removeClass("unseen"):m("p#usertype.role-"+s).addClass("unseen")}),m(document).on("change",".sfwidget",function(){var e=m(this).attr("box"),s=m(this).val();"all"===s?(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen"),m("p#visibility-notes").removeClass("unseen"),m("p#visibility").addClass("visibility")):(m("p#visibility-notes").addClass("unseen"),m("p#visibility").removeClass("visibility"),"hidden"===s?(m("div#sform-widget-hidden-pages."+e).removeClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen")):(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).removeClass("unseen")))}),m("#form").change(function(){var e=m(this).val(),s=m(location).attr("href"),t=new URLSearchParams(s),n=t.get("form");s=-1<s.indexOf("form=")?e?s.replace("&form="+n,"&form="+e):s.replace("&form="+n,""):e?s+"&form="+e:s;t=t.get("paged");s=-1<s.indexOf("paged=")?s.replace("&paged="+t,""):s,document.location.href=s}),m(".cbfield").on("click",function(){var e=m(this).attr("field");1==m(this).prop("checked")?m(".tr"+e).addClass("secret"):(m(".tr"+e).removeClass("secret"),1==m("#"+e+"label").prop("checked")?m("tr."+e+"label").addClass("unseen"):m("tr."+e+"label").removeClass("unseen"))}),m("#admin-notices").on("click",function(){1==m(this).prop("checked")?m(".admin-notices").addClass("invisible"):m(".admin-notices").removeClass("invisible")}),m("#duplicate").on("click",function(){1==m(this).prop("checked")?m(".trduplicate").removeClass("unseen"):m(".trduplicate").addClass("unseen")}),m(".sform-switch").on("click",function(){0==m(this).prop("checked")?m(this).val("false"):m(this).val("true")}),m("#admin-color").on("change",function(e){var s=m(this).val(),t=m("#settings").attr("class"),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"admin_color_scheme",verification_nonce:n,"admin-color":s},success:function(e){e.error;var s=e.color;!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").removeClass(t),m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").addClass(s))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("span.heading").on("click",function(){var e=m(this).attr("section");m(".section."+e).toggleClass("collapsed"),m(".section."+e).hasClass("collapsed")?(m("span.toggle."+e).removeClass("dashicons-arrow-up-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-down-alt2"),m("#h2-"+e).addClass("closed")):(m("span.toggle."+e).removeClass("dashicons-arrow-down-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-up-alt2"),m("#h2-"+e).removeClass("closed"))}),-1<window.location.href.indexOf("#css")&&(document.getElementById("appearance").click(),document.getElementById("additional-css").focus()),m("#deletion-toggle, .cancel.delete").on("click",function(){m("#deletion-notice").hasClass("unseen")?(m("#alert-wrap").addClass("unseen"),m("#form-buttons").addClass("unseen"),m("#deletion-toggle").addClass("unseen"),m("#deletion-notice").removeClass("unseen"),m("span#confirm").addClass("unseen")):(m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-toggle").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-form").on("click",function(){1==m(this).prop("checked")?m("#deletion-toggle").removeClass("unseen"):(m("#deletion-toggle").addClass("unseen"),m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-confirm").click(function(e){var s=m("form#deletion").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_delete_form",success:function(e){e.error;var s=e.message,t=e.redirect_url,n=e.img,a=e.confirm;!0===e.error&&(m("span#default").addClass("unseen"),m("span#confirm").removeClass("unseen"),m("span#confirm").html(s),a&&(m("#deletion-notice").addClass("confirm"),m("#hidden-confirm").html(a))),!1===e.error&&(m(".disclaimer").html(s),m("#deletion-buttons").addClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#deletion-notice, .disclaimer").addClass("success"),m("h3.deletion").text(s),m(".disclaimer").html(n),setTimeout(function(){document.location.href=t},3e3))},error:function(e){m(".disclaimer").html("AJAX call failed")}}),e.preventDefault(),!1}),m("#relocation").on("click",function(){1==m(this).prop("checked")?(m(".trmoving").removeClass("unseen"),""!=m("#moveto").val()&&(m(".trmoveto").removeClass("unseen"),""!=m("#starting").val()&&"next"!=m("#starting").val()&&m(".tronetime").removeClass("unseen"))):(m(".trmoving").addClass("unseen"),m(".trmoveto").addClass("unseen"),m(".tronetime").addClass("unseen"))}),m("#moveto").on("change",function(){var e=m(this).val(),s=m('#moveto option[value="'+e+'"]').text();m("#starting").val(""),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"),m(".tronetime").addClass("unseen"),""==e?(m(".trmoveto").addClass("unseen"),m("#starting").val(""),m("#onetime").prop("checked",!0)):(m("#form-to").val(s),m(".trmoveto").removeClass("unseen"))}),m("#starting").on("change",function(){var e=m(this).val();"next"==e||""==e?(m(".tronetime").addClass("unseen"),m("#onetime").prop("checked",!1),m(".description.onetime").removeClass("invisible")):(m(".tronetime").removeClass("unseen"),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"))}),m("#onetime").on("click",function(){1==m(this).prop("checked")?m(".description.onetime").addClass("invisible"):m(".description.onetime").removeClass("invisible")}),m("#save-card").click(function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#card").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=form_update",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.moving,o=e.restore,r=e.messages,i=e.moved,c=e.select,l=e.onetime,d=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message),!0===n&&setTimeout(function(){document.location.href=d},1e3)),!1===s&&(m(".message").html(e.message),!1===t?m(".message").addClass("unchanged"):(m(".message").addClass("success"),!0===a&&(m("#starting").html(c),m("#tdentries").removeClass("last"),m(".trmoved, .trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),!1===l?(m("#starting").val("next"),m(".tronetime").addClass("unseen")):(m("#relocation").prop("checked",!1),m("#moveto").val(""),m("#starting").val(""),m(".trmoving, .trmoveto, .tronetime").addClass("unseen"))),!1===a&&(!0===o&&(m("#starting").html(c),m("#tdentries").addClass("last"),m(".trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),m("#restore").prop("checked",!1),m(".trmoved, .trrestore").addClass("unseen")),!1===l&&m("#starting").val("next"))))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1});var e=document.getElementById("new-release").innerHTML;m("#storing-notice").on("click",function(){document.getElementById("new-release").innerHTML===e?document.getElementById("new-release").innerHTML=ajax_sform_settings_options_object.storing_notice:document.getElementById("new-release").innerHTML=e})})}(jQuery);1 !function(m){"use strict";m(window).load(function(){var e;m("ul#submissions-data").hover(function(){m("#last-submission").addClass("unseen"),m("#submissions-notice").removeClass("unseen")},function(){m("#last-submission").removeClass("unseen"),m("#submissions-notice").addClass("unseen")}),m("#shortcode-copy").click(function(){event.preventDefault();var e=document.createElement("input");e.style="position: absolute; left: -1000px; top: -1000px",document.body.appendChild(e),e.value=m("#shortcode").text(),e.select(),document.execCommand("copy"),document.body.removeChild(e),m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copied),setTimeout(function(){m("#shortcode-tooltip").hide()},1500)}),m("#shortcode-copy").hover(function(){m("#shortcode-tooltip").text(ajax_sform_settings_options_object.copy),m("#shortcode-tooltip").show()},function(){m("#shortcode-tooltip").hide()}),m("#show-for").change(function(){var e=m(this).val(),e=m(location).attr("href")+"&showfor="+e;document.location.href=e}),m("#name-field").on("change",function(){"hidden"==m("#name-field option:selected").val()?m(".trname").addClass("unseen"):(m(".trname").removeClass("unseen"),1==m("#namelabel").prop("checked")?m("tr.namelabel").addClass("unseen"):m("tr.namelabel").removeClass("unseen"))}),m("#lastname-field").on("change",function(){"hidden"==m("#lastname-field option:selected").val()?m(".trlastname").addClass("unseen"):(m(".trlastname").removeClass("unseen"),1==m("#lastnamelabel").prop("checked")?m("tr.lastnamelabel").addClass("unseen"):m("tr.lastnamelabel").removeClass("unseen"))}),m("#email-field").on("change",function(){"hidden"==m("#email-field option:selected").val()?m(".tremail").addClass("unseen"):(m(".tremail").removeClass("unseen"),1==m("#emaillabel").prop("checked")?m("tr.emaillabel").addClass("unseen"):m("tr.emaillabel").removeClass("unseen"))}),m("#phone-field").on("change",function(){"hidden"==m("#phone-field option:selected").val()?m(".trphone").addClass("unseen"):(m(".trphone").removeClass("unseen"),1==m("#phonelabel").prop("checked")?m("tr.phonelabel").addClass("unseen"):m("tr.phonelabel").removeClass("unseen"))}),m("#subject-field").on("change",function(){"hidden"==m("#subject-field option:selected").val()?m(".trsubject").addClass("unseen"):(m(".trsubject").removeClass("unseen"),1==m("#subjectlabel").prop("checked")?m("tr.subjectlabel").addClass("unseen"):m("tr.subjectlabel").removeClass("unseen"))}),m("#captcha-field").on("change",function(){"hidden"==m("#captcha-field option:selected").val()?m(".trcaptchalabel").addClass("unseen"):m(".trcaptchalabel").removeClass("unseen")}),m("#preference-field").on("change",function(){"hidden"==m("#preference-field option:selected").val()?m(".trpreference").addClass("unseen"):m(".trpreference").removeClass("unseen")}),m("#consent-field").on("change",function(){"hidden"==m("#consent-field option:selected").val()?m(".trconsent").addClass("unseen"):(m(".trconsent").removeClass("unseen"),1==m("#privacy-link").prop("checked")?m(".trpage").removeClass("unseen"):m(".trpage").addClass("unseen"))}),m("#privacy-link").on("click",function(){var e,s=m("#consent-label").val(),t=ajax_sform_settings_options_object.privacy;1==m(this).prop("checked")?m(".trpage").removeClass("unseen"):(m(".trpage").addClass("unseen"),e=new RegExp("<a [^>]*>"+t+"</a>","i"),t=s.replace(e,t),m("#consent-label").val(t),m("#privacy-page").val(""),m("#set-page, #set-page-icon").addClass("unseen"),m("#set-page, #set-page-icon").attr("page",0),m("#post-status").html(" "))}),m("#privacy-page").on("change",function(){var e=m(this).val(),s=m("#set-page").attr("page");""!=e?(m("#page-id").val(e),e==s?m("#set-page, #set-page-icon").addClass("unseen"):m("#set-page, #set-page-icon").removeClass("unseen")):(m("#set-page, #set-page-icon").addClass("unseen"),m("#privacy-link").click())}),m("#set-page").click(function(e){m("#label-error").html("");var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page").addClass("unseen"),m("#set-page").attr("page",t))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("#set-page-icon").click(function(e){var s=m('textarea[name="consent-label"]').val(),t=m('input[name="page-id"]').val(),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"setting_privacy",verification_nonce:n,"page-id":t,"consent-label":s},success:function(e){!0===e.error&&m("#label-error-top").html("Error occurred during creation of the link"),!1===e.error&&(m("#consent-label").val(e.label),m("#set-page-icon").addClass("unseen"),m("#set-page-icon").attr("page",t))},error:function(e){m("#label-error-top").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m(".field-label").on("click",function(){var e=m(this).attr("id");1==m(this).prop("checked")?m("tr."+e).addClass("unseen"):m("tr."+e).removeClass("unseen")}),m("#required-sign").on("click",function(){1==m(this).prop("checked")?m(".trsign").addClass("unseen"):m(".trsign").removeClass("unseen")}),m("#optional-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.required&&m("#required-word").val(ajax_sform_settings_options_object.optional)}),m("#required-labelling").on("click",function(){m("#required-word").val()==ajax_sform_settings_options_object.optional&&m("#required-word").val(ajax_sform_settings_options_object.required)}),m(".nav-tab").on("click",function(){var e=m(this).attr("id");m(".nav-tab-active").removeClass("nav-tab-active"),m(".navtab").addClass("unseen"),m("#tab-"+e).removeClass("unseen"),m(this).addClass("nav-tab-active"),"appearance"==e?m(".editorpage").text(ajax_sform_settings_options_object.appearance):m(".editorpage").text(ajax_sform_settings_options_object.builder)}),m("#widget-editor").on("click",function(){1==m(this).prop("checked")?m(".trwidget").addClass("unseen"):m(".trwidget").removeClass("unseen")}),m("#form-template").on("change",function(){var e=m("#form-template option:selected").val();"transparent"==e?m("#form-borders").removeClass("unseen"):m("#form-borders").addClass("unseen"),"customized"==e?m("#template-notice").text(ajax_sform_settings_options_object.notes):m("#template-notice").html(" ")}),m("#stylesheet").on("click",function(){1==m(this).prop("checked")?m(".trstylesheet").removeClass("unseen"):m(".trstylesheet").addClass("unseen")}),m("#stylesheet-file").on("click",function(){1==m(this).prop("checked")?m("#stylesheet-description").html(ajax_sform_settings_options_object.cssenabled):m("#stylesheet-description").html(ajax_sform_settings_options_object.cssdisabled)}),m("#javascript").on("click",function(){1==m(this).prop("checked")?m("#javascript-description").html(ajax_sform_settings_options_object.jsenabled):m("#javascript-description").html(ajax_sform_settings_options_object.jsdisabled)}),m("#outside-error").on("change",function(){var n=m("#outside-error option:selected").val(),e=m("label#focusout").html();"none"!=n&&m(".out").each(function(e,s){var t,s=m(s);"top"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.bottom,ajax_sform_settings_options_object.top)),"bottom"==n&&(t=s.attr("placeholder").replace(ajax_sform_settings_options_object.top,ajax_sform_settings_options_object.bottom)),console.log(s.attr("placeholder")),s.attr("placeholder",t)}),"top"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.topnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):"bottom"==n?(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.nofocus,ajax_sform_settings_options_object.focusout)),m("#outside-notice").text(ajax_sform_settings_options_object.bottomnotes),m(".trout").removeClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).removeClass("last")):(m("label#focusout").html(e.replace(ajax_sform_settings_options_object.focusout,ajax_sform_settings_options_object.nofocus)),m("#outside-notice").html(" "),m(".trout").addClass("removed"),(m("#trcaptcha").hasClass("unseen")?m(".messagecell"):m(".captchacell")).addClass("last"))}),m("#characters-length").on("click",function(){1==m(this).prop("checked")?(m("#characters-description").html(ajax_sform_settings_options_object.showcharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.numnamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.numlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.numsuber),m("#incomplete-message").val(ajax_sform_settings_options_object.nummsger)):(m("#characters-description").html(ajax_sform_settings_options_object.hidecharacters),m("#incomplete-name").val(ajax_sform_settings_options_object.gennamer),m("#incomplete-lastname").val(ajax_sform_settings_options_object.genlster),m("#incomplete-subject").val(ajax_sform_settings_options_object.gensuber),m("#incomplete-message").val(ajax_sform_settings_options_object.genmsger))}),m("#ajax-submission").on("click",function(){1==m(this).prop("checked")?m(".trajax").removeClass("unseen"):m(".trajax").addClass("unseen")}),m("#confirmation-message").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").removeClass("unseen"),m(".trsuccessredirect").addClass("unseen"),m("#confirmation-page").val(""),m("#post-status").html(" "))}),m("#success-redirect").on("click",function(){1==m(this).prop("checked")&&(m(".trsuccessmessage").addClass("unseen"),m(".trsuccessredirect").removeClass("unseen"))}),m("#confirmation-page, #privacy-page").on("change",function(){var e=m(this).find("option:selected"),s=e.attr("value");"draft"==e.attr("Tag")?m("#post-status").html(ajax_sform_settings_options_object.status+' - <strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none; color: #9ccc79;">'+ajax_sform_settings_options_object.publish+"</a></strong>"):""!=s?(e='<strong><a href="'+ajax_sform_settings_options_object.adminurl+"post.php?post="+s+'&action=edit" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.edit+"</a></strong>",s='<strong><a href="'+ajax_sform_settings_options_object.pageurl+"/?page_id="+s+'" target="_blank" style="text-decoration: none;">'+ajax_sform_settings_options_object.view+"</a></strong>",s=ajax_sform_settings_options_object.pagelinks.replace(ajax_sform_settings_options_object.edit,e).replace(ajax_sform_settings_options_object.view,s),m("#post-status").html(s)):m("#post-status").html(" ")}),m(".notice-toggle").on("click",function(){m(".smpt-warnings").hasClass("unseen")?(m("#smpt-warnings").text(ajax_sform_settings_options_object.hide),m(".smpt-settings").addClass("unseen"),m(".smpt-warnings").removeClass("unseen")):(m("#smpt-warnings").text(ajax_sform_settings_options_object.show),m("#trsmtpon").removeClass("unseen"),m(".smpt-warnings").addClass("unseen"),1==m("#server-smtp").prop("checked")?(m(".trsmtp").removeClass("unseen"),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):m(".trsmtp").addClass("unseen"))}),m("#server-smtp").on("click",function(){1==m(this).prop("checked")?(m(".trsmtp").removeClass("unseen"),m("#tdsmtp").removeClass("last"),m("#smtp-notice").text(ajax_sform_settings_options_object.smtpnotes),1==m("#smtp-authentication").prop("checked")?m(".trauthentication").removeClass("unseen"):m(".trauthentication").addClass("unseen")):(m(".trsmtp").addClass("unseen"),m("#tdsmtp").addClass("last"),m("#smtp-notice").text(""))}),m("#smtp-authentication").on("click",function(){1==m(this).prop("checked")?(m("#tdauthentication").removeClass("last"),m(".trauthentication").removeClass("unseen")):(m("#tdauthentication").addClass("last"),m(".trauthentication").addClass("unseen"))}),m("#notification").on("click",function(){1==m(this).prop("checked")?(m(".trnotification").removeClass("unseen"),m("#tdnotification").removeClass("last"),1==m("#custom-name").prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen"),1==m("#default-subject").prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")):(m(".trnotification").addClass("unseen"),m("#tdnotification").addClass("last"))}),m("#requester-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#form-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").addClass("unseen"):m(".trcustomname").removeClass("unseen")}),m("#custom-name").on("click",function(){1==m(this).prop("checked")?m(".trcustomname").removeClass("unseen"):m(".trcustomname").addClass("unseen")}),m("#request-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").addClass("unseen"):m(".trcustomsubject").removeClass("unseen")}),m("#default-subject").on("click",function(){1==m(this).prop("checked")?m(".trcustomsubject").removeClass("unseen"):m(".trcustomsubject").addClass("unseen")}),m("#autoresponder").on("click",function(){1==m(this).prop("checked")?(m(".trauto").removeClass("unseen"),m("#tdconfirmation").removeClass("last")):(m(".trauto").addClass("unseen"),m("#tdconfirmation").addClass("last"))}),m("#save-settings").click(function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").html(ajax_sform_settings_options_object.loading);var s=m("form#settings").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_edit_options",success:function(e){var s=e.error,t=(e.message,e.update);!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&m(".message").addClass("success"))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change","input[type=checkbox], input[type=radio], select",function(){m(".message").removeClass("seen error success unchanged")}),m(document).on("input","input[type=text], input[type=email], textarea",function(){m(".message").removeClass("seen error success unchanged")}),m("#save-attributes").click(function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#attributes").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=shortcode_costruction",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message)),!1===s&&(m(".message").html(e.message),!1===t&&m(".message").addClass("unchanged"),!0===t&&(!0===n?document.location.href=a:m(".message").addClass("success")))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),m(document).on("change",".sform-target",function(){var e=m(this).val(),s=m(this).attr("field");"in"===e?m("p#usertype.role-"+s).removeClass("unseen"):m("p#usertype.role-"+s).addClass("unseen")}),m(document).on("change",".sfwidget",function(){var e=m(this).attr("box"),s=m(this).val();"all"===s?(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen"),m("p#visibility-notes").removeClass("unseen"),m("p#visibility").addClass("visibility")):(m("p#visibility-notes").addClass("unseen"),m("p#visibility").removeClass("visibility"),"hidden"===s?(m("div#sform-widget-hidden-pages."+e).removeClass("unseen"),m("div#sform-widget-visible-pages."+e).addClass("unseen")):(m("div#sform-widget-hidden-pages."+e).addClass("unseen"),m("div#sform-widget-visible-pages."+e).removeClass("unseen")))}),m("#form").change(function(){var e=m(this).val(),s=m(location).attr("href"),t=new URLSearchParams(s),n=t.get("form");s=-1<s.indexOf("form=")?e?s.replace("&form="+n,"&form="+e):s.replace("&form="+n,""):e?s+"&form="+e:s;t=t.get("paged");s=-1<s.indexOf("paged=")?s.replace("&paged="+t,""):s,document.location.href=s}),m(".cbfield").on("click",function(){var e=m(this).attr("field");1==m(this).prop("checked")?m(".tr"+e).addClass("secret"):(m(".tr"+e).removeClass("secret"),1==m("#"+e+"label").prop("checked")?m("tr."+e+"label").addClass("unseen"):m("tr."+e+"label").removeClass("unseen"))}),m("#admin-notices").on("click",function(){1==m(this).prop("checked")?m(".admin-notices").addClass("invisible"):m(".admin-notices").removeClass("invisible")}),m("#duplicate").on("click",function(){1==m(this).prop("checked")?m(".trduplicate").removeClass("unseen"):m(".trduplicate").addClass("unseen")}),m(".sform-switch").on("click",function(){0==m(this).prop("checked")?m(this).val("false"):m(this).val("true")}),m("#admin-color").on("change",function(e){var s=m(this).val(),t=m("#settings").attr("class"),n=m('input[name="verification_nonce"]').val();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:{action:"admin_color_scheme",verification_nonce:n,"admin-color":s},success:function(e){e.error;var s=e.color;!0===e.error&&m("#label-error").html("Error occurred during creation of the link"),!1===e.error&&(m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").removeClass(t),m(".full-width-bar, h1.title, select#form, .form-button, #settings, #smpt-warnings, .icon-button").addClass(s))},error:function(e){m("#label-error").html("Error occurred during creation of the link")}}),e.preventDefault(),!1}),m("span.heading").on("click",function(){var e=m(this).attr("section");m(".section."+e).toggleClass("collapsed"),m(".section."+e).hasClass("collapsed")?(m("span.toggle."+e).removeClass("dashicons-arrow-up-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-down-alt2"),m("#h2-"+e).addClass("closed")):(m("span.toggle."+e).removeClass("dashicons-arrow-down-alt2"),m("span.toggle."+e).addClass("dashicons-arrow-up-alt2"),m("#h2-"+e).removeClass("closed"))}),-1<window.location.href.indexOf("#css")&&(document.getElementById("appearance").click(),document.getElementById("additional-css").focus()),m("#deletion-toggle, .cancel.delete").on("click",function(){m("#deletion-notice").hasClass("unseen")?(m("#alert-wrap").addClass("unseen"),m("#form-buttons").addClass("unseen"),m("#deletion-toggle").addClass("unseen"),m("#deletion-notice").removeClass("unseen"),m("span#confirm").addClass("unseen")):(m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-toggle").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-form").on("click",function(){1==m(this).prop("checked")?m("#deletion-toggle").removeClass("unseen"):(m("#deletion-toggle").addClass("unseen"),m("#alert-wrap").removeClass("unseen"),m("#form-buttons").removeClass("unseen"),m("#deletion-notice").addClass("unseen"),m("span#default").removeClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#confirmation").val(""))}),m("#deletion-confirm").click(function(e){var s=m("form#deletion").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=sform_delete_form",success:function(e){e.error;var s=e.message,t=e.redirect_url,n=e.img,a=e.confirm;!0===e.error&&(m("span#default").addClass("unseen"),m("span#confirm").removeClass("unseen"),m("span#confirm").html(s),a&&(m("#deletion-notice").addClass("confirm"),m("#hidden-confirm").html(a))),!1===e.error&&(m(".disclaimer").html(s),m("#deletion-buttons").addClass("unseen"),m("#deletion-notice").removeClass("confirm"),m("#deletion-notice, .disclaimer").addClass("success"),m("h3.deletion").text(s),m(".disclaimer").html(n),setTimeout(function(){document.location.href=t},3e3))},error:function(e){m(".disclaimer").html("AJAX call failed")}}),e.preventDefault(),!1}),m("#relocation").on("click",function(){1==m(this).prop("checked")?(m(".trmoving").removeClass("unseen"),""!=m("#moveto").val()&&(m(".trmoveto").removeClass("unseen"),""!=m("#starting").val()&&"next"!=m("#starting").val()&&m(".tronetime").removeClass("unseen"))):(m(".trmoving").addClass("unseen"),m(".trmoveto").addClass("unseen"),m(".tronetime").addClass("unseen"))}),m("#moveto").on("change",function(){var e=m(this).val(),s=m('#moveto option[value="'+e+'"]').text();m("#starting").val(""),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"),m(".tronetime").addClass("unseen"),""==e?(m(".trmoveto").addClass("unseen"),m("#starting").val(""),m("#onetime").prop("checked",!0)):(m("#form-to").val(s),m(".trmoveto").removeClass("unseen"))}),m("#starting").on("change",function(){var e=m(this).val();"next"==e||""==e?(m(".tronetime").addClass("unseen"),m("#onetime").prop("checked",!1),m(".description.onetime").removeClass("invisible")):(m(".tronetime").removeClass("unseen"),m("#onetime").prop("checked",!0),m(".description.onetime").addClass("invisible"))}),m("#onetime").on("click",function(){1==m(this).prop("checked")?m(".description.onetime").addClass("invisible"):m(".description.onetime").removeClass("invisible")}),m("#save-card").click(function(e){m(".message").removeClass("error success unchanged"),m(".message").addClass("seen"),m(".message").text(ajax_sform_settings_options_object.saving);var s=m("form#card").serialize();return m.ajax({type:"POST",dataType:"json",url:ajax_sform_settings_options_object.ajaxurl,data:s+"&action=form_update",success:function(e){var s=e.error,t=(e.message,e.update),n=e.redirect,a=e.moving,o=e.restore,r=e.messages,i=e.moved,c=e.select,l=e.onetime,d=e.url;!0===s&&(m(".message").addClass("error"),m(".message").html(e.message),!0===n&&setTimeout(function(){document.location.href=d},1e3)),!1===s&&(m(".message").html(e.message),!1===t?m(".message").addClass("unchanged"):(m(".message").addClass("success"),!0===a&&(m("#starting").html(c),m("#tdentries").removeClass("last"),m(".trmoved, .trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),!1===l?(m("#starting").val("next"),m(".tronetime").addClass("unseen")):(m("#relocation").prop("checked",!1),m("#moveto").val(""),m("#starting").val(""),m(".trmoving, .trmoveto, .tronetime").addClass("unseen"))),!1===a&&(!0===o&&(m("#starting").html(c),m("#tdentries").addClass("last"),m(".trrestore").removeClass("unseen"),m("#entries").text(r),m("#submissions").val(r),m("#moved-entries").text(i),m("#moved-submissions").val(i),m("#restore").prop("checked",!1),m(".trmoved, .trrestore").addClass("unseen")),!1===l&&m("#starting").val("next"))))},error:function(e){m(".message").html("AJAX call failed")}}),e.preventDefault(),!1}),null!=document.getElementById("new-release")&&(e=document.getElementById("new-release").innerHTML,m("#storing-notice").on("click",function(){document.getElementById("new-release").innerHTML===e?document.getElementById("new-release").innerHTML=ajax_sform_settings_options_object.storing_notice:document.getElementById("new-release").innerHTML=e}))})}(jQuery); -
simpleform/trunk/admin/js/admin.js
r2664049 r2679542 954 954 }); 955 955 956 var currentText = document.getElementById("new-release").innerHTML;957 958 $("#storing-notice").on("click", function() {959 if ( document.getElementById("new-release").innerHTML === currentText) {956 if ( document.getElementById("new-release") != null ){ 957 var currentText = document.getElementById("new-release").innerHTML; 958 $("#storing-notice").on("click", function() { 959 if ( document.getElementById("new-release").innerHTML === currentText) { 960 960 document.getElementById("new-release").innerHTML = ajax_sform_settings_options_object.storing_notice; 961 } else {961 } else { 962 962 document.getElementById("new-release").innerHTML = currentText; 963 } 964 }); 963 } 964 }); 965 } 965 966 966 967 }); -
simpleform/trunk/admin/partials/editor.php
r2664049 r2679542 123 123 <tr><th class="option"><span><?php _e('Form Name','simpleform') ?></span></th><td class="text"><input class="sform" name="form-name" placeholder="<?php esc_attr_e('Enter a name for this Form','simpleform') ?>" id="form-name" type="text" value="<?php echo $contact_form_name; ?>"></td></tr> 124 124 125 <?php /* 125 126 <tr><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext icon"><span id="shortcode">[<?php echo $shortcode ?>]</span><button id="shortcode-copy"><img src="<?php echo $icon ?>"></button><span id="shortcode-tooltip"><?php _e('Copy shortcode','simpleform') ?></span></td></tr> 126 127 <tr><th class="option"><span><?php _e('Show for','simpleform') ?></span></th><td class="select"><select name="show-for" id="show-for" class="sform"><option value="all" <?php selected( $show_for, 'all'); ?>><?php _e('Everyone','simpleform') ?></option><option value="in" <?php selected( $show_for, 'in'); ?>><?php _e('Logged-in users','simpleform') ?></option><option value="out" <?php selected( $show_for, 'out'); ?>><?php _e('Logged-out users','simpleform') ?></option></select></td></tr> 128 129 <tr class="trlevel <?php if ( $show_for !='in') {echo 'unseen';} ?>"><th class="option"><span><?php _e('Role','simpleform') ?></span></th><td class="select"><select name="user-role" id="user-role" class="sform"><option value="any" <?php selected( $user_role, 'any'); ?>><?php _e('Any','simpleform') ?></option><?php wp_dropdown_roles($user_role); ?></select></td></tr> 130 131 <tr><th class="option"><span><?php _e('Published in','simpleform') ?></span></th><td class="used-page last"> 127 */ ?> 128 129 <tr><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="select"><select name="show-for" id="show-for" class="sform"><option value="all" <?php selected( $show_for, 'all'); ?>><?php _e('Everyone','simpleform') ?></option><option value="in" <?php selected( $show_for, 'in'); ?>><?php _e('Logged-in users','simpleform') ?></option><option value="out" <?php selected( $show_for, 'out'); ?>><?php _e('Logged-out users','simpleform') ?></option></select></td></tr> 130 131 <tr class="trlevel <?php if ( $show_for !='in') {echo 'unseen';} ?>"><th class="option"><span><?php _e('Restricted to','simpleform') ?></span></th><td class="select"><select name="user-role" id="user-role" class="sform"><option value="any" <?php selected( $user_role, 'any'); ?>><?php _e('Any','simpleform') ?></option><?php wp_dropdown_roles($user_role); ?></select></td></tr> 132 133 <tr><th class="option"><span><?php _e('Visible on','simpleform') ?></span></th><td class="used-page last"> 132 134 133 135 <?php … … 142 144 $publish_link = '<strong><a href="' . get_edit_post_link($page) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>'; 143 145 $post_status = get_post_status($page) == 'draft' ? __( 'Page in draft status not yet published','simpleform').' - ' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($page) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' ); 144 $pages .= '<span>' . get_the_title($page) . '</span><span class=" slug">[ ' . $post_status . ' ]<br>';146 $pages .= '<span>' . get_the_title($page) . '</span><span class=""> [ ' . $post_status . ' ]<br>'; 145 147 } 146 148 } … … 164 166 else { 165 167 $widget_area = $util->widget_area_name($block_key); 166 $pages .= $widget_area ? $widget_area .' '.__('widget area','simpleform').' [ <strong><a href="' . self_admin_url('widgets.php') . '" target="_blank" style="text-decoration: none;">'. __( 'Edit ','simpleform') .'</a></strong> ]<br>' : '';168 $pages .= $widget_area ? $widget_area .' '.__('widget area','simpleform').' [ <strong><a href="' . self_admin_url('widgets.php') . '" target="_blank" style="text-decoration: none;">'. __( 'Edit widget','simpleform') .'</a></strong> ]<br>' : ''; 167 169 } 168 170 } … … 211 213 $publish_link = '<strong><a href="' . get_edit_post_link($post) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>'; 212 214 $post_status = get_post_status($post) == 'draft' ? __( 'Page in draft status not yet published','simpleform').' - ' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($post) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($post) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' ); 213 $hidden_list .= '<span>' . get_the_title($post). '</span><span class=" slug">[ ' . $post_status . ' ]<br>';215 $hidden_list .= '<span>' . get_the_title($post). '</span><span class=""> [ ' . $post_status . ' ]<br>'; 214 216 } 215 217 } 216 $widget_pages = '<span>' . __( ' All Pages except:','simpleform') . '</span><br>' . $hidden_list;218 $widget_pages = '<span>' . __( 'Not visible in:','simpleform') . '</span><br>' . $hidden_list; 217 219 } 218 else { $widget_pages = __( ' All Pages','simpleform'); }220 else { $widget_pages = __( 'Visible in all pages','simpleform'); } 219 221 } 220 222 elseif ( $widget_visibility == 'visible' ) { … … 227 229 $publish_link = '<strong><a href="' . get_edit_post_link($post) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>'; 228 230 $post_status = get_post_status($post) == 'draft' ? __( 'Page in draft status not yet published','simpleform').' - ' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($post) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($post) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' ); 229 $visible_list .= '<span>' . get_the_title($post). '</span><span class=" slug">[ ' . $post_status . ' ]<br>';231 $visible_list .= '<span>' . get_the_title($post). '</span><span class=""> [ ' . $post_status . ' ]<br>'; 230 232 } 231 233 } 232 $widget_pages = $visible_list;234 $widget_pages = __( 'Visible only in:','simpleform') . '<br>' . $visible_list; 233 235 } 234 236 else { $widget_pages = __( 'No page selected yet','simpleform'); } 235 237 } 236 238 else { 237 $widget_pages = __( ' All Pages','simpleform');239 $widget_pages = __( 'Visible in all pages','simpleform'); 238 240 } ?> 239 241 240 <tr><th class="option"><span><?php _e('Widget Name','simpleform') ?></span></th><td class="plaintext widget"><span><?php _e( 'SimpleForm Contact Form','simpleform') ?></span><a href="<?php echo self_admin_url('widgets.php') ?>" target="_blank"><span class="dashicons dashicons-admin-appearance icon-button <?php echo $color ?>"></span><span class="widgets-page wp-core-ui button"><?php _e( 'Edit Widget', 'simpleform' ) ?></span></a></td></tr>241 242 <tr><th class="option"><span><?php _e('Widget Area','simpleform') ?></span></th><td class="plaintext"><?php echo $widget_area; ?></td></tr>243 244 242 <tr><th class="option"><span><?php _e('Form Name','simpleform') ?></span></th><td class="text"><input class="sform" name="form-name" placeholder="<?php esc_attr_e('Enter a name for this Form','simpleform') ?>" id="form-name" type="text" value="<?php echo $contact_form_name; ?>"></td></tr> 245 246 <tr class="textbutton"><th class="option"><span><?php _e('Show for','simpleform') ?></span></th><td class="plaintext"><?php echo $audience; ?></td></tr> 243 244 <?php /* 245 <tr><th class="option"><span><?php _e('Widget Area','simpleform') ?></span></th><td class="plaintext widget"><span><?php echo $widget_area; ?></span> [ <a href="<?php echo self_admin_url('widgets.php') ?>" target="_blank" style="text-decoration: none"><b><span class=""><?php _e( 'Edit', 'simpleform' ) ?></b></span></a> ]</td></tr> 246 */ ?> 247 248 <tr class="textbutton"><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="plaintext"><?php echo $audience; ?></td></tr> 247 249 248 250 <?php if ($widget_for == 'in') { ?> 249 <tr class="textbutton"><th class="option"><span><?php _e('Role','simpleform') ?></span></th><td class="plaintext"><?php echo $role_name; ?></td></tr> 250 <?php } ?> 251 252 <tr><th class="option"><span><?php _e('Published in','simpleform') ?></span></th><td class="used-page last"><?php echo $widget_pages; ?></td></tr> 251 <tr class="textbutton"><th class="option"><span><?php _e('Restricted to','simpleform') ?></span></th><td class="plaintext"><?php echo $role_name; ?></td></tr> 252 <?php } ?> 253 254 <tr><th class="option"><span><?php _e('Visible on','simpleform') ?></span></th><td class="plaintext widget"><?php echo $widget_area .' '.__('widget area','simpleform'); ?> [ <a href="<?php echo self_admin_url('widgets.php') ?>" target="_blank" style="text-decoration: none"><b><?php _e( 'Edit widget', 'simpleform' ) ?></b></a> ]</td></tr> 255 256 <tr><th class="option"><span><?php _e('Widget Visibility Rules','simpleform') ?></span></th><td class="used-page last"><?php echo $widget_pages; ?></td></tr> 253 257 254 258 <input type="hidden" id="widget-id" name="widget-id" value="<?php echo $widget_id ?>"> -
simpleform/trunk/admin/partials/form.php
r2664056 r2679542 45 45 $view = __( 'view','simpleform'); 46 46 $allpagesid = $wpdb->get_col( "SELECT id FROM {$wpdb->prefix}posts WHERE post_type != 'attachment' AND post_type != 'revision' AND post_status != 'trash' AND post_title != '' AND post_content != '' ORDER BY post_title ASC" ); 47 47 48 $show_for = ! empty( $attributes['show_for'] ) && !isset($_GET['showfor']) ? esc_attr($attributes['show_for']) : 'all'; 48 49 if ( $show_for == 'out' ) { $target = __( 'Logged-out users','simpleform'); } … … 63 64 $publish_link = '<strong><a href="' . get_edit_post_link($page) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>'; 64 65 $post_status = get_post_status($page) == 'draft' ? __( 'Page in draft status not yet published','simpleform').' - ' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($page) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($page) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' ); 65 $pages .= '<span>' . get_the_title($page) . '</span><span class=" slug">[ ' . $post_status . ' ]<br>';66 $pages .= '<span>' . get_the_title($page) . '</span><span class=""> [ ' . $post_status . ' ]<br>'; 66 67 $widget_block = get_option("widget_block") != false ? get_option("widget_block") : array(); 67 68 } 68 69 } 69 70 } 71 72 $table_name = "{$wpdb->prefix}sform_shortcodes"; 73 $widget_id = $wpdb->get_var( "SELECT widget FROM $table_name WHERE id = {$id}" ); 70 74 71 75 if ( !empty($widget_block) ) { … … 83 87 } 84 88 else { 85 $ widget_area = $util->widget_area_name($block_key);86 $pages .= $ widget_area ? $widget_area .' '.__('widget area','simpleform').' [ <strong><a href="' . self_admin_url('widgets.php') . '" target="_blank" style="text-decoration: none;">'. __( 'Edit','simpleform') .'</a></strong> ]<br>' : '';89 $block_widget_area = $util->widget_area_name($block_key); 90 $pages .= $block_widget_area ? $block_widget_area .' '.__('widget area','simpleform').' [ <strong><a href="' . self_admin_url('widgets.php') . '" target="_blank" style="text-decoration: none;">'. __( 'Edit','simpleform') .'</a></strong> ]<br>' : ''; 87 91 } 88 92 } 89 93 } 90 94 } 91 if ( empty($pages) ) { $pages = '<span>' . __('Still not used','simpleform') . '</span>'; } 95 if ( empty($pages) ) { 96 97 // Check for form embedded in widget area 98 99 $sform_widget = get_option('widget_sform_widget'); 100 if ( $widget_id != '0' && in_array($widget_id, array_keys($sform_widget)) ) { 101 $widget_visibility = ! empty($sform_widget[$widget_id]['sform_widget_visibility']) ? $sform_widget[$widget_id]['sform_widget_visibility'] : 'all'; 102 $hidden_pages = ! empty($sform_widget[$widget_id]['sform_widget_hidden_pages']) ? $sform_widget[$widget_id]['sform_widget_hidden_pages'] : ''; 103 $visible_pages = ! empty($sform_widget[$widget_id]['sform_widget_visible_pages']) ? $sform_widget[$widget_id]['sform_widget_visible_pages'] : ''; 104 105 $show_for = ! empty($sform_widget[$widget_id]['sform_widget_audience']) ? $sform_widget[$widget_id]['sform_widget_audience'] : 'all'; 106 if ( $show_for == 'out' ) { $target = __( 'Logged-out users','simpleform'); } 107 elseif ( $show_for == 'in' ) { $target = __( 'Logged-in users','simpleform'); } 108 else { $target = __( 'Everyone','simpleform'); } 109 $role = ! empty($sform_widget[$widget_id]['sform_widget_role']) ? $sform_widget[$widget_id]['sform_widget_role'] : 'any'; 110 global $wp_roles; 111 $role_name = $role == 'any' ? __( 'Any','simpleform') : translate_user_role($wp_roles->roles[$role]['name']); 112 113 if ( $widget_visibility == 'hidden' ) { 114 if ( ! empty($hidden_pages)) { 115 $pages_array = explode(',',$hidden_pages); 116 $ordered_pages_array = array_intersect( $allpagesid, $pages_array); 117 $hidden_list = ''; 118 foreach ($ordered_pages_array as $post) { 119 if ( get_post_status($post) == 'draft' || get_post_status($post) == 'publish' ) { 120 $publish_link = '<strong><a href="' . get_edit_post_link($post) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>'; 121 $post_status = get_post_status($post) == 'draft' ? __( 'Page in draft status not yet published','simpleform').' - ' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($post) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($post) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' ); 122 $hidden_list .= '<span>' . get_the_title($post). '</span><span class=""> [ ' . $post_status . ' ]<br>'; 123 } 124 } 125 $pages = '<span>' . __( 'Not visible in:','simpleform') . '</span><br>' . $hidden_list; 126 } 127 else { $pages = __( 'Visible in all pages','simpleform'); } 128 } 129 elseif ( $widget_visibility == 'visible' ) { 130 if ( ! empty($visible_pages)) { 131 $pages_array = explode(',',$visible_pages); 132 $ordered_pages_array = array_intersect( $allpagesid, $pages_array); 133 $visible_list = ''; 134 foreach ($ordered_pages_array as $post) { 135 if( get_post_status($post) == 'draft' || get_post_status($post) == 'publish' ) { 136 $publish_link = '<strong><a href="' . get_edit_post_link($post) . '" target="_blank" class="publish-link">' . __( 'Publish now','simpleform') . '</a></strong>'; 137 $post_status = get_post_status($post) == 'draft' ? __( 'Page in draft status not yet published','simpleform').' - ' . $publish_link : sprintf( __('%1$s or %2$s the page content', 'simpleform'), '<strong><a href="' . get_edit_post_link($post) .'" target="_blank" style="text-decoration: none;">'. $edit .'</a></strong>', '<strong><a href="' . get_page_link($post) . '" target="_blank" style="text-decoration: none;">'. $view .'</a></strong>' ); 138 $visible_list .= '<span>' . get_the_title($post). '</span><span class=""> [ ' . $post_status . ' ]<br>'; 139 } 140 } 141 $pages = __( 'Visible only in:','simpleform') . '<br>' . $visible_list; 142 } 143 else { $pages = __( 'No page selected yet','simpleform'); } 144 } 145 else { 146 $pages = __( 'Visible in all pages','simpleform'); 147 } 148 149 } 150 151 else { 152 $pages = '<span>' . __('Still not used','simpleform') . '</span>'; 153 } 154 155 } 156 92 157 $icon = SIMPLEFORM_URL . 'admin/img/copy_icon.png'; 93 158 $tzcity = get_option('timezone_string'); … … 113 178 $count_last_month = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = $id $where_submissions $where_month"); 114 179 $count_last_year = $wpdb->get_var("SELECT COUNT(id) FROM {$wpdb->prefix}sform_submissions WHERE form = $id $where_submissions $where_year"); 180 $type = $widget_id != '0' && in_array($widget_id, array_keys($sform_widget)) ? ' [ ' . __( 'shown on widget area', 'simpleform' ) . ' ]' : ''; 181 182 if ( $widget_id != '0' && in_array($widget_id, array_keys($sform_widget)) ) { 183 184 global $wp_registered_sidebars, $sidebars_widgets; foreach ( $sidebars_widgets as $sidebar => $widgets ) { if ( is_array( $widgets ) && $sidebar !== 'wp_inactive_widgets' ) { foreach ( $widgets as $key => $value ) { if ( strpos($value, 'sform_widget-'.$widget_id ) !== false ) { $widget_area = isset($wp_registered_sidebars[$sidebar]['name']) ? $wp_registered_sidebars[$sidebar]['name'] : ''; } } } } 185 186 } 187 115 188 ?> 116 189 … … 127 200 <tr><th class="option"><span><?php _e('Form Name','simpleform') ?></span></th><td class="plaintext"><?php esc_attr_e($form_data->name) ?></td></tr> 128 201 202 <tr><th class="option"><span><?php _e('Form ID','simpleform') ?></span></th><td class="plaintext"><?php esc_attr_e($form_data->id) ?></td></tr> 203 204 <?php if ( $widget_id != '0' && in_array($widget_id, array_keys($sform_widget)) ) { ?> 205 206 <tr><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext"><?php _e('Unavailable for widgets','simpleform') ?></td></tr> 207 208 <?php } 209 else { ?> 210 211 <tr class=""><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext icon"><span id="shortcode">[<?php echo $shortcode ?>]</span><button id="shortcode-copy"><img src="<?php echo $icon ?>"></button><span id="shortcode-tooltip"><?php _e('Copy shortcode','simpleform') ?></span></td></tr> 212 213 <?php } ?> 214 129 215 <tr><th class="option"><span><?php _e('Status','simpleform') ?></span></th><td class="plaintext"><?php echo $status ?></td></tr> 130 216 131 <tr><th class="option"><span><?php _e('Form ID','simpleform') ?></span></th><td class="plaintext"><?php esc_attr_e($form_data->id) ?></td></tr> 132 133 <tr class=""><th class="option"><span><?php _e('Shortcode','simpleform') ?></span></th><td class="plaintext icon"><span id="shortcode">[<?php echo $shortcode ?>]</span><button id="shortcode-copy"><img src="<?php echo $icon ?>"></button><span id="shortcode-tooltip"><?php _e('Copy shortcode','simpleform') ?></span></td></tr> 134 135 <tr><th class="option"><span><?php _e('Visibility','simpleform') ?></span></th><td class="plaintext"><?php echo $target ?></td></tr> 217 <tr><th class="option"><span><?php _e('Creation Date','simpleform') ?></span></th><td class="plaintext"><?php echo $creation_date ?></td></tr> 218 219 <tr><th class="option"><span><?php _e('Entries','simpleform') ?></span></th><td id="tdentries" class="plaintext"><span id="entries"><?php esc_attr_e($form_data->entries) ?></span></td></tr> 220 221 <tr class="trmoved <?php if ( $form_data->entries == '0' && $form_data->moved_entries == '0' ) { echo 'unseen'; } ?>"><th class="option"><span><?php _e('Moved Entries','simpleform') ?></span></th><td class="plaintext"><span id="moved-entries"><?php esc_attr_e($form_data->moved_entries) ?></span></td></tr> 222 223 <?php if ( esc_attr($form_data->status) == 'published' ) { ?> 224 225 <tr><th class="option"><span><?php _e('Visible to','simpleform') ?></span></th><td class="plaintext"><?php echo $target ?></td></tr> 136 226 137 227 <tr class="trlevel <?php if ( $show_for !='in') { echo 'unseen'; } ?>"><th class="option"><span><?php _e('Restricted to','simpleform') ?></span></th><td class="plaintext"><?php echo $role_name ?></td></tr> 138 228 139 <?php if ( esc_attr($form_data->status) == 'published' ) { ?> 140 141 <tr><th class="option"><span><?php _e('Published in','simpleform') ?></span></th><td class="used-page"><?php echo $pages ?></td></tr> 142 143 <?php } ?> 144 145 <tr><th class="option"><span><?php _e('Creation Date','simpleform') ?></span></th><td class="plaintext"><?php echo $creation_date ?></td></tr> 146 147 <tr><th class="option"><span><?php _e('Entries','simpleform') ?></span></th><td id="tdentries" class="plaintext <?php if ( $form_data->entries == '0' && $form_data->moved_entries == '0' ) { echo 'last'; } ?>"><span id="entries"><?php esc_attr_e($form_data->entries) ?></span></td></tr> 148 149 <tr class="trmoved <?php if ( $form_data->entries == '0' && $form_data->moved_entries == '0' ) { echo 'unseen'; } ?>"><th class="option"><span><?php _e('Moved Entries','simpleform') ?></span></th><td class="plaintext last"><span id="moved-entries"><?php esc_attr_e($form_data->moved_entries) ?></span></td></tr> 229 <?php if ( ! empty($widget_area) ) { ?> 230 231 <tr><th class="option"><span><?php _e('Visible on','simpleform') ?></span></th><td class="plaintext widget"><?php echo $widget_area .' '.__('widget area','simpleform'); ?> [ <a href="<?php echo self_admin_url('widgets.php') ?>" target="_blank" style="text-decoration: none"><b><?php _e( 'Edit widget', 'simpleform' ) ?></b></a> ]</td></tr> 232 233 <tr><th class="option"><span><?php _e('Widget Visibility Rules','simpleform') ?></span></th><td class="used-page last"><?php echo $pages ?></td></tr> 234 235 <?php } 236 237 else { ?> 238 239 <tr><th class="option"><span><?php _e('Visible on','simpleform') ?></span></th><td class="used-page last"><?php echo $pages ?></td></tr> 240 241 <?php } 242 243 } ?> 150 244 151 245 </tbody></table></div> … … 174 268 175 269 <div id="card-submit-wrap"> 270 271 <?php if ( count($shortcode_ids) > 1 ) { ?> 176 272 177 273 <div id="alert-wrap"> … … 216 312 <?php } ?> 217 313 314 <?php } ?> 315 218 316 </div> 219 317 -
simpleform/trunk/admin/partials/settings.php
r2664049 r2679542 6 6 $settings = get_option("sform_{$id}_settings") != false ? get_option("sform_{$id}_settings") : get_option("sform_settings"); 7 7 $admin_notices = ! empty( $settings['admin_notices'] ) ? esc_attr($settings['admin_notices']) : 'false'; 8 $widget_editor = ! empty( $settings['widget_editor'] ) ? esc_attr($settings['widget_editor']) : 'false';9 8 $color = ! empty( $settings['admin_color'] ) ? esc_attr($settings['admin_color']) : 'default'; 10 9 $notice = ''; … … 38 37 $simpleform_widgets = ''; 39 38 foreach ( $sidebars_widgets as $sidebar => $widgets ) { if ( is_array( $widgets ) ) { foreach ( $widgets as $key => $widget_id ) { if ( strpos($widget_id, 'sform_widget-' ) !== false ) { $simpleform_widgets .= '1'; }}}} 40 41 // Detect use of WordPress 5.8 and the existence of simpleform widget 42 if ( version_compare(get_bloginfo('version'),'5.8', '>=') && ! empty($simpleform_widgets) ) { 43 if ( $widget_editor == 'false' ) { ?> 44 <div class="notice notice-warning is-dismissible trwidget <?php if ( version_compare(get_bloginfo('version'),'5.8', '>=') && function_exists('wp_use_widgets_block_editor') && wp_use_widgets_block_editor() ) { echo 'unseen'; } ?>"><p><?php _e( 'To maintain the best site editing experience for you, SimpleForm has disabled the widget screen introduced in WordPress 5.8.', 'simpleform' ) ?> <?php _e('To use the new widgets editor, you have to check the related option.', 'simpleform' ) ?> <?php _e('Below you will find the <b>"Widgets Block Editor"</b> option in the management preferences section within the general tab.', 'simpleform' ) ?> <?php _e('By checking this option, all SimpleForm widgets used previously will be deleted. You can continue using the contact form as a widget, but you’ll have to manually insert it in widget areas as a block. You will not be able to choose where to display it by using the "Show/Hide on" and the "Selected pages" options.', 'simpleform' ) ?></p></div> 45 <?php } } ?> 39 ?> 46 40 47 41 <div id="page-description"><p><?php _e( 'Customize messages and whatever settings you want to better match your needs:','simpleform') ?></p></div> … … 57 51 <?php 58 52 $disabled_class = $id == '1' ? '' : 'class="disabled"'; 59 $admin_limits = ! empty( $settings['admin_limits'] ) ? esc_attr($settings['admin_limits']) : 'false';60 53 $html5_validation = ! empty( $settings['html5_validation'] ) ? esc_attr($settings['html5_validation']) : 'false'; 61 54 $out_error = ! empty( $settings['outside_error'] ) ? esc_attr($settings['outside_error']) : 'bottom'; … … 70 63 $cssfile = ! empty( $settings['stylesheet_file'] ) ? esc_attr($settings['stylesheet_file']) : 'false'; 71 64 $javascript = ! empty( $settings['javascript'] ) ? esc_attr($settings['javascript']) : 'false'; 72 $widget_options = ! empty( $settings['widget'] ) ? esc_attr($settings['widget']) : 'true';73 65 $css_notes_on = __('Create a directory inside your active theme\'s directory, name it "simpleform", add your CSS stylesheet file, and name it "custom-style.css"', 'simpleform' ); 74 66 $css_notes_off = __('Keep unchecked if you want to use your personal CSS code and include it somewhere in your theme\'s code without using an additional file', 'simpleform' ); … … 79 71 $uninstall = ! empty( $settings['deletion_data'] ) ? esc_attr($settings['deletion_data']) : 'true'; 80 72 $disabled = 'disabled="disabled"'; 73 $frontend_notice = ! empty( $settings['frontend_notice'] ) ? esc_attr($settings['frontend_notice']) : 'true'; 81 74 ?> 82 75 … … 87 80 <tr><th class="option"><span><?php _e('Admin Notices','simpleform') ?></span></th><td class="checkbox-switch notes"><div class="switch-box"><label class="switch-input"><input type="checkbox" name="admin-notices" id="admin-notices" class="sform-switch" value="false" <?php checked( $admin_notices, 'true'); if ( $id != '1' ) { echo $disabled; } ?>><span></span></label><label for="admin-notices" class="switch-label <?php if ( $id != '1' ) { echo 'disabled'; } ?>"><?php _e('Never display notices on the SimpleForm related admin pages','simpleform') ?></label></div><p class="description"><?php _e('Admin notices may include, but are not limited to, reminders, update notifications, calls to action, and links to documentation','simpleform') ?></p></td></tr> 88 81 89 <tr><th class="option"><span><?php _e('Visibility Settings','simpleform') ?></span></th><td class="checkbox-switch"><div class="switch-box"><label class="switch-input"><input type="checkbox" name="admin-limits" id="admin-limits" class="sform-switch" value="false" <?php checked( $admin_limits, 'true'); if ( $id != '1' ) { echo $disabled; } ?>><span></span></label><label for="admin-limits" class="switch-label <?php if ( $id != '1' ) { echo 'disabled'; } ?>"><?php _e( 'Override the form visibility settings if user is the admin','simpleform') ?></label></div></td></tr> 90 91 <?php if ( version_compare(get_bloginfo('version'),'5.8', '>=') && ! empty($simpleform_widgets) ) { ?> 92 <tr><th class="option"><span><?php _e( 'Widgets Block Editor', 'simpleform' ) ?></span></th><td class="checkbox-switch notes"><div class="switch-box"><label class="switch-input"><input type="checkbox" id="widget-editor" name="widget-editor" class="sform-switch" value="true" <?php checked( $widget_editor, 'true'); if ( $id != '1' ) { echo $disabled; } ?>><span></span></label><label for="widget-editor" class="switch-label <?php if ( $id != '1' ) { echo 'disabled'; } ?>"><?php _e( 'Use the widgets editor introduced in WordPress 5.8', 'simpleform' ); ?></label></div><p class="description"><?php _e('Keep unchecked if you want to continue using the classic widgets editor', 'simpleform' ); ?></p></td></tr> 93 <?php } ?> 94 95 <?php if ( version_compare(get_bloginfo('version'),'5.8', '<') || ( version_compare(get_bloginfo('version'),'5.8', '>=') && ! empty($simpleform_widgets) ) ) { ?> 96 <tr class="trwidget <?php if ( version_compare(get_bloginfo('version'),'5.8', '>=') && function_exists('wp_use_widgets_block_editor') && wp_use_widgets_block_editor() ) { echo 'unseen'; } ?>"><th class="option"><span><?php _e( 'Widget\'s Options', 'simpleform' ) ?></span></th><td class="checkbox-switch notes"><div class="switch-box"><label class="switch-input"><input type="checkbox" id="widget-options" name="widget-options" class="sform-switch" value="true" <?php checked( $widget_options, 'true'); if ( $id != '1' ) { echo $disabled; } ?>><span></span></label><label for="widget-options" class="switch-label <?php if ( $id != '1' ) { echo 'disabled'; } ?>"><?php _e( 'Use the default options for choosing where to display the SimpleForm widget', 'simpleform' ); ?></label></div><p class="description"><?php _e('Keep unchecked if you want to use a customized code or a third-party plugin to define where you want the widget to appear', 'simpleform' ); ?></p></td></tr> 97 <?php } ?> 82 <tr><th class="option"><span><?php _e('Front-end Admin Notice','simpleform') ?></span></th><td class="checkbox-switch notes"><div class="switch-box"><label class="switch-input"><input type="checkbox" name="frontend-notice" id="frontend-notice" class="sform-switch" value="true" <?php checked( $frontend_notice, 'true'); if ( $id != '1' ) { echo $disabled; } ?>><span></span></label><label for="frontend-notice" class="switch-label <?php if ( $id != '1' ) { echo 'disabled'; } ?>"><?php _e('Display an admin notice when the form cannot be seen by the admin when visiting the website\'s front end','simpleform') ?></label></div></td></tr> 98 83 99 84 <tr><th class="option"><span><?php _e( 'Admin Color Scheme', 'simpleform' ) ?></span></th><td class="last select"><select name="admin-color" id="admin-color" class="sform" <?php if ( $id != '1' ) { echo $disabled; } ?>><option value="default" <?php selected( $color, 'default'); ?>><?php _e('Default','simpleform') ?></option><option value="light" <?php selected( $color, 'light'); ?>><?php _e('Light','simpleform') ?></option><option value="modern" <?php selected( $color, 'modern'); ?>><?php _e('Modern','simpleform') ?></option><option value="blue" <?php selected( $color, 'blue'); ?>><?php _e('Blue','simpleform') ?></option><option value="coffee" <?php selected( $color, 'coffee'); ?>><?php _e('Coffee','simpleform') ?></option><option value="ectoplasm" <?php selected( $color, 'ectoplasm'); ?>><?php _e('Ectoplasm','simpleform') ?></option><option value="midnight" <?php selected( $color, 'midnight'); ?>><?php _e('Midnight','simpleform') ?></option><option value="ocean" <?php selected( $color, 'ocean'); ?>><?php _e('Ocean','simpleform') ?></option><option value="sunrise" <?php selected( $color, 'sunrise'); ?>><?php _e('Sunrise','simpleform') ?></option><option value="foggy" <?php selected( $color, 'foggy'); ?>><?php _e('Foggy','simpleform') ?></option><option value="polar" <?php selected( $color, 'polar'); ?>><?php _e('Polar','simpleform') ?></option></select></td></tr> -
simpleform/trunk/changelog.txt
r2664061 r2679542 1 1 == Changelog == 2 3 = 2.1.2 (16 February 2022) = 4 * Fixed: repeated creation of unwanted forms when visiting the widgets page if simpleform has been moved to inactive widgets area 5 * Fixed: migration of the classic widget in the block-based widgets editor 6 * Fixed: error when managing the widget in the customizer page 7 * Fixed: displaying of the title and description when using the block even if the chosen settings do not allow the displaying 8 * Fixed: incorrect displaying of a form visible only by anonymous users when editing it with the block editor 9 * Fixed: uninstall error 10 * Fixed: JavaScript errors 11 * Changed: code cleaning and optimization 12 * Changed: pre-built contact form page 13 * Changed: visibility option and widget related options in the settings page have been removed 14 * Added: admin notice when the form cannot be seen by the admin when visiting the website's front end 2 15 3 16 = 2.1.1 (25 January 2022) = -
simpleform/trunk/includes/class-activator.php
r2664049 r2679542 174 174 if ( !$settings ) { 175 175 176 $form_page = array( 'post_type' => 'page', 'post_content' => '[simpleform]', 'post_title' => __( 'Contact Us', 'simpleform' ), 'post_status' => 'draft' ); 176 $form_page_content = '<!-- wp:simpleform/form-selector {"formId":"1","optionNew":"d-none","formOptions":"visible"} /-->'; 177 $form_page = array( 'post_type' => 'page', 'post_content' => $form_page_content, 'post_title' => __( 'Contact Us', 'simpleform' ), 'post_status' => 'draft' ); 177 178 $thank_string1 = __( 'Thank you for contacting us.', 'simpleform' ); 178 179 $thank_string2 = __( 'Your message will be reviewed soon, and we\'ll get back to you as quickly as possible.', 'simpleform' ); … … 189 190 $settings = array( 190 191 'admin_notices' => 'false', 191 'admin_limits' => 'false',192 'widget' => 'true',193 192 'admin_color' => 'default', 194 193 'ajax_submission' => 'false', -
simpleform/trunk/includes/class-core.php
r2664049 r2679542 42 42 43 43 if ( defined( 'SIMPLEFORM_VERSION' ) ) { $this->version = SIMPLEFORM_VERSION; } 44 else { $this->version = '2.1 '; }44 else { $this->version = '2.1.2'; } 45 45 $this->plugin_name = 'simpleform'; 46 46 $this->load_dependencies(); … … 69 69 // The class responsible for defining the widget 70 70 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-widget.php'; 71 // The class responsible for defining the block 72 if ( version_compare(get_bloginfo('version'),'5.6', '>=') ) { 71 // The class responsible for defining the block (requires WordPress 5.6 or later) 72 if ( version_compare( $GLOBALS['wp_version'], '5.6', '>=' ) ) { 73 73 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/block/class-block.php'; 74 74 } … … 124 124 $this->loader->add_action( 'plugins_loaded', $plugin_admin, 'db_version_check' ); 125 125 } 126 // Retrieve pages list containing the SimpleForm shortcode126 // Update the pages list containing SimpleForm 127 127 $this->loader->add_action( 'save_post', $plugin_admin, 'sform_pages_list', 10, 2 ); 128 128 // Clean up the post content of any non-existent and redundant form … … 130 130 // Register ajax callback for change admin color scheme 131 131 $this->loader->add_action('wp_ajax_admin_color_scheme', $plugin_admin, 'admin_color_scheme'); 132 // Display an admin notice in case there are any SimpleForm widgets running on WordPress 5.8133 if ( version_compare(get_bloginfo('version'),'5.8', '>=') ) {134 $this->loader->add_action('admin_notices', $plugin_admin, 'general_admin_notice');135 }136 132 // Register ajax callback for form deleting 137 133 $this->loader->add_action('wp_ajax_sform_delete_form', $plugin_admin, 'sform_delete_form'); … … 196 192 $this->loader->add_filter( 'sidebars_widgets', $plugin_block, 'hide_widgets' ); 197 193 // Add block customized style in a block theme 198 if ( version_compare(get_bloginfo('version'),'5.9', '>=') ) { 194 if ( version_compare( $GLOBALS['wp_version'], '5.9', '>=' ) ) { 199 195 $this->loader->add_action( 'after_setup_theme', $plugin_block, 'enqueue_block_styles' ); 200 196 } -
simpleform/trunk/public/class-public.php
r2664049 r2679542 90 90 $settings = get_option('sform_settings'); 91 91 } else { 92 $option = 'sform_'.$atts_array['id'].'_attributes';93 $attributes_option = get_option($option);94 $attributes = $attributes_option != false ? $attributes_option: get_option('sform_attributes');95 $settings_option = get_option('sform_'.$atts_array['id'].'_settings');96 $settings = $settings_option != false ? $settings_option: get_option('sform_settings');92 //$option = 'sform_'.$atts_array['id'].'_attributes'; 93 // $attributes_option = get_option($option); 94 $attributes = ! empty($atts_array['id']) && get_option('sform_'.$atts_array['id'].'_attributes') != false ? get_option('sform_'.$atts_array['id'].'_attributes') : get_option('sform_attributes'); 95 // $settings_option = get_option('sform_'.$atts_array['id'].'_settings'); 96 $settings = ! empty($atts_array['id']) && get_option('sform_'.$atts_array['id'].'_settings') != false ? get_option('sform_'.$atts_array['id'].'_settings') : get_option('sform_settings'); 97 97 } 98 98 99 99 $show_for = ! empty( $attributes['show_for'] ) ? esc_attr($attributes['show_for']) : 'all'; 100 100 $user_role = ! empty( $attributes['user_role'] ) ? esc_attr($attributes['user_role']) : 'any'; 101 $admin_limits = ! empty( $settings['admin_limits'] ) ? esc_attr($settings['admin_limits']) : 'false';102 101 $custom_css = ! empty( $attributes['additional_css'] ) ? esc_attr($attributes['additional_css']) : ''; 103 104 if ( ( current_user_can('manage_options') && $admin_limits != 'true' && $show_for == 'out' && is_user_logged_in() ) || ( !current_user_can('manage_options') && $show_for == 'out' && is_user_logged_in() ) || ( $show_for == 'in' && ! is_user_logged_in() ) )105 return;106 107 102 $current_user = wp_get_current_user(); 108 if ( ( current_user_can('manage_options') && $admin_limits != 'true' || !current_user_can('manage_options') ) && $show_for != 'all' && $user_role != 'any' && ! in_array( $user_role, (array) $current_user->roles ) ) 109 return; 110 103 $frontend_notice = ! empty( $settings['frontend_notice'] ) ? esc_attr($settings['frontend_notice']) : 'true'; 104 105 if ( $show_for == 'out' ) { $form_user = '<b>' . __( 'logged-out users','simpleform') . '</b>'; $for_role = ''; } 106 elseif ( $show_for == 'in' ) { $form_user = '<b>' . __( 'logged-in users','simpleform') . '</b>'; $for_role = $user_role; } 107 else { $form_user = __( 'everyone','simpleform'); $for_role = ''; } 108 109 $form_user_role = !empty($for_role) ? ' ' . __( 'with the role of','simpleform') . ' <b>' . translate_user_role(ucfirst($user_role)) . '</b>' : '' ; 110 $admin_message = ''; 111 112 if ( ( $show_for == 'out' && is_user_logged_in() ) || ( $show_for == 'in' && ! is_user_logged_in() ) || ( $show_for == 'in' && is_user_logged_in() && $user_role != 'any' && ! in_array( $user_role, (array) $current_user->roles ) ) ) 113 if ( current_user_can('manage_options') ) { 114 $admin_message = '<div id="sform-admin-message" style="font-size: 0.8em; border: 1px solid; margin-top: 20px; padding: 20px 15px; height: -webkit-fit-content; height: -moz-fit-content; height: fit-content;"><p class="heading" style="font-weight: 600; margin-bottom: 10px;">'. __('SimpleForm Admin Notice', 'simpleform') . '</p>'. __('The form is visible only for ', 'simpleform') . $form_user . $form_user_role . '. ' . __( 'Your role does not allow you to see it!','simpleform') .'</div>'; 115 // return; 116 } 117 else { 118 return; 119 } 120 111 121 include 'partials/form-variables.php'; 112 122 … … 188 198 $above_form = isset( $_GET['sending'] ) && $_GET['sending'] == 'success' && isset( $_GET['form'] ) && $_GET['form'] == $atts_array['id'] ? '' : '<div id="sform-introduction-'.$atts_array['id'].'" class="sform-introduction '.$class_direction.'">'.$introduction_text.'</div>'; 189 199 $below_form = isset( $_GET['sending'] ) && $_GET['sending'] == 'success' && isset( $_GET['form'] ) && $_GET['form'] == $atts_array['id'] ? '' : '<div id="sform-bottom-'.$atts_array['id'].'" class="sform-bottom '.$class_direction.'">'.$bottom_text.'</div>'; 190 200 $is_gb_editor = defined( 'REST_REQUEST' ) && REST_REQUEST; 201 202 // Show an admin notice when the form settings do not allow the administrator to see it when visiting the website's front end 203 if ( ! empty($admin_message) && ! is_admin() && ! $is_gb_editor && ! is_customize_preview() ) { 204 if ( $frontend_notice == 'true' ) { return $admin_message; } 205 else { return ''; } 206 } 207 else { 191 208 if ( $atts_array['type'] != '' ) { return $contact_form; } 192 209 else { return $above_form . $contact_form . $below_form; } 193 210 } 211 194 212 } 195 213 … … 687 705 $count_entries = $wpdb->get_var("SELECT entries FROM {$wpdb->prefix}sform_shortcodes WHERE id = '$moveto'"); 688 706 $update_entries = $count_entries + 1; 689 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries , 'status' => 'used'), array('id' => $moveto ) );707 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries), array('id' => $moveto ) ); 690 708 $update_moved = esc_attr($form_data->moved_entries) + 1; 691 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('moved_entries' => $update_moved , 'status' => 'used'), array('id' => $form_id ) );709 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('moved_entries' => $update_moved), array('id' => $form_id ) ); 692 710 } 693 711 else { 694 712 $update_entries = esc_attr($form_data->entries) + 1; 695 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries , 'status' => 'used'), array('id' => $form_id ) );713 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries), array('id' => $form_id ) ); 696 714 } 697 715 … … 1263 1281 $count_entries = $wpdb->get_var("SELECT entries FROM {$wpdb->prefix}sform_shortcodes WHERE id = '$moveto'"); 1264 1282 $update_entries = $count_entries + 1; 1265 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries , 'status' => 'used'), array('id' => $moveto ) );1283 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries), array('id' => $moveto ) ); 1266 1284 $update_moved = esc_attr($form_data->moved_entries) + 1; 1267 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('moved_entries' => $update_moved , 'status' => 'used'), array('id' => $form_id ) );1285 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('moved_entries' => $update_moved), array('id' => $form_id ) ); 1268 1286 } 1269 1287 else { 1270 1288 // $wpdb->query( $wpdb->prepare("UPDATE $wpdb->prefix}sform_shortcodes SET status = 'used', entries = entries + 1 WHERE id = '%d'", $form_id) ); 1271 1289 $update_entries = esc_attr($form_data->entries) + 1; 1272 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries , 'status' => 'used'), array('id' => $form_id ) );1290 $wpdb->update($wpdb->prefix . 'sform_shortcodes', array('entries' => $update_entries), array('id' => $form_id ) ); 1273 1291 } 1274 1292 -
simpleform/trunk/public/css/public-min.css
r2664049 r2679542 1 .d-block{display:inline-block}.d-none{display:none!important}.v-visible{visibility:visible!important}.v-invisible{visibility:hidden!important;opacity:0}.align-left{text-align:left}.align-center{text-align:center}.align-right{text-align:right}h1.sform,h2.sform,h3.sform,h4.sform,h5.sform,h6.sform{color:inherit }.sform-introduction{padding-bottom:15px;clear:both}.sform-bottom{margin:0 auto;clear:both}.sform-field-group{line-height:1;padding-bottom:3px;clear:both}.sform-field-group label{display:block;margin-bottom:5px}label.sform{font-size:inherit;color:inherit;font-weight:400}label.sform.smaller{font-size:.9em}label.sform.larger{font-size:1.1em}.required-symbol.mark{color:#dc3545;padding-left:3px;background-color:transparent}.required-symbol.word{color:inherit;padding-left:3px;font-weight:300;font-size:.8em;font-style:italic}input.sform-field{width:100%;margin-bottom:0;outline:0;font-size:inherit;color:inherit;font-weight:400;line-height:normal;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}textarea.sform-field{width:100%;height:auto;outline:0;line-height:1.5;font-size:inherit;color:inherit;font-weight:400;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.half{clear:none}.email.half,.name.half{width:47.5%;float:left}.lastname.half,.phone.half{width:47.5%;float:right}.default input.sform-field{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 16px}.basic input.sform-field{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff;padding:10px 32px 10px 16px}.rounded input.sform-field{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 32px 10px 16px}.minimal input.sform-field{border:none;border-bottom:2px solid #ccc;border-radius:0;background-color:transparent;padding:10px 0}.transparent input.sform-field{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent;padding:10px 16px}.transparent.light .checkmark,.transparent.light div.captcha,.transparent.light input.sform-field,.transparent.light textarea.sform-field{border-color:#f8f8f8}.highlighted input.sform-field{border:none;border-radius:5px;background-color:#eaeaea;padding:10px 16px}.default textarea.sform-field{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 16px}.basic textarea.sform-field{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff;padding:10px 32px 10px 16px}.rounded textarea.sform-field{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 32px 10px 16px}.minimal textarea.sform-field{border:none;border-bottom:2px solid #ccc;border-radius:0;background-color:transparent;padding:10px 0}.transparent textarea.sform-field{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent;padding:10px 16px}.highlighted textarea.sform-field{border:none;border-radius:5px;background-color:#eaeaea;padding:10px 16px}.sform-field-group.checkbox{margin-top:20px}input.checkbox{position:absolute;opacity:0;height:1px;width:1px;appearance:none;-webkit-appearance:none;-moz-appearance:none}input.checkbox+label{position:relative;cursor:default;display:inline-block;margin-left:0;width:100%;font-size:inherit}input.checkbox+label a{color:inherit;text-decoration:underline;text-decoration-style:dotted}.checkmark{position:absolute;cursor:pointer;top:0;left:0;height:34px;width:34px}input.checkbox:checked+label .checkmark:after{display:block}.default input.checkbox+label,.highlighted input.checkbox+label,.minimal input.checkbox+label,.transparent input.checkbox+label{padding-left:50px;line-height:34px;margin-bottom:25px}.default .checkmark{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff}.default .checkmark:after,.highlighted .checkmark:after,.minimal .checkmark:after,.transparent .checkmark:after{left:10px;top:5px;width:12px;height:18px;border:solid #fff;border-width:0 4px 4px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);content:"";position:absolute;box-sizing:border-box;display:none}.default input.checkbox:checked+label .checkmark{border-color:#8bc34a;background-color:#8bc34a}.basic .checkmark{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff;margin-top:10px;height:20px;width:20px;line-height:20px;text-align:center;color:#fff;font-size:18px;font-weight:600}.basic .checkmark:after{display:none;box-sizing:border-box}.basic input.checkbox:checked+label .checkmark{background-color:#007bff;border-color:#007bff}.basic input.checkbox:checked+label .checkmark:after{content:"\2713";display:block}.basic input.checkbox+label{padding-left:30px;margin-top:10px;margin-bottom:30px;line-height:40px}.rounded .checkmark{width:52px;height:26px;border:none;border-radius:26px;background-color:#6c757d}.rounded .checkmark:after{position:absolute;display:inherit;content:"";height:18px;width:18px;left:4px;top:4px;border-radius:50%;background-color:#fff;-webkit-transition:.4s;transition:.4s}.rounded input.checkbox:checked+label .checkmark{background-color:#8bc34a}.rounded input.checkbox:checked+label .checkmark:after{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}.rounded input.checkbox+label{margin-bottom:22px;line-height:26px;padding-left:72px}.minimal .checkmark{border-width:2px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:transparent}.minimal input.checkbox:checked+label .checkmark{border-color:#8bc34a;background-color:#8bc34a}.transparent .checkmark{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent}.transparent input.checkbox:checked+label .checkmark{border-color:#0d6efd;background-color:#0d6efd}.highlighted .checkmark{border-width:1px;border-color:#eaeaea;border-style:solid;border-radius:5px;background-color:#eaeaea}.highlighted input.checkbox:checked+label .checkmark{border-color:#0d6efd;background-color:#0d6efd}div.captcha{width:200px;height:intrinsic}input.sform-field.question{width:110px;height:inherit;cursor:text;border:none;outline:0;display:inline-block;background-color:transparent;padding-right:0;padding-left:0;text-align:right;box-shadow:none}input.sform-field.captcha{width:75px;border:none;outline:0;display:inline-block;background-color:transparent;padding-right:0;padding-left:5px;box-shadow:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{appearance:textfield;-moz-appearance:textfield;-webkit-appearance:textfield}.default div.captcha{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff}.basic .sform-field-group.checkbox{margin-top:0}.basic div.captcha{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff}.rounded div.captcha{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:5px;background-color:#fff}.minimal div.captcha{border-bottom:2px solid #ccc;background-color:transparent}.transparent div.captcha{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent}.highlighted div.captcha{border:none;border-radius:5px;background-color:#eaeaea}#gcaptcha-wrap,.gcaptcha-wrap{margin:16px 0 30px}.rc-anchor-error-msg-container{letter-spacing:-.5px}.sizelabel{font-size:inherit;margin-bottom:22px}.sizelabel.smaller{font-size:.9em}.sizelabel.larger{font-size:1.1em}.submit-wrap{margin:22px 0}.submit-wrap button.sform{outline:0;font-size:inherit;text-transform:uppercase;font-weight:600;line-height:1.25;text-decoration:none;box-shadow:none;padding:10px 16px}.submit-wrap button.sform:hover{box-shadow:none}.default .submit-wrap button.sform{border-width:1px;border-color:#0090d5;border-style:solid;border-radius:25px;background-color:#0090d5;color:#fff;cursor:pointer}.default .submit-wrap button.sform:hover{color:#0090d5;background-color:#fff}.basic .submit-wrap button.sform{border-width:1px;border-color:#007bff;border-style:solid;border-radius:0;background-color:#007bff;color:#fff}.basic .submit-wrap button.sform:hover{border-color:#0062cc;background-color:#0069d9}.rounded .submit-wrap button.sform{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:50px;background-color:transparent;color:inherit}.rounded .submit-wrap button.sform:hover{border-color:#6c757d;color:#fff;background-color:#6c757d}.minimal .submit-wrap button.sform{border-width:2px;border-color:#0090d5;border-style:solid;border-radius:5px;background-color:#0090d5;color:#fff}.minimal .submit-wrap button.sform:hover{border-color:#0090d5;color:#0090d5;background-color:#fff}.transparent .submit-wrap button.sform{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:#333;color:#fff}.transparent .submit-wrap button.sform:hover{border-color:#0d6efd;color:#fff;background-color:#0d6efd}.highlighted .submit-wrap button.sform{border-width:1px;border-color:#333;border-style:solid;border-radius:5px;background-color:#333;color:#fff}.highlighted .submit-wrap button.sform:hover{border-color:#0d6efd;color:#fff;background-color:#0d6efd}.submit-wrap button.smaller{font-size:.9em}.submit-wrap button.larger{font-size:1.1em}.submit-wrap button:focus{outline:0}.submit-wrap button:hover{color:#fff;background-color:#0d6efd;border-color:#0d6efd;box-shadow:none}.submit-wrap.left{text-align:left}.submit-wrap.right{text-align:right}.submit-wrap.center{text-align:center}.submit-wrap.full{text-align:center}.submit-wrap button.fullwidth{width:100%}.carrots{opacity:0;position:absolute;top:0;left:0;height:0;width:0;z-index:-1}div.captcha.is-invalid,input.sform-field.is-invalid,input.sform-field.is-invalid+label .checkmark,textarea.sform-field.is-invalid{border-color:#dc3545}.sform-field.is-invalid:focus,div.captcha.is-invalid.focus{box-shadow:none}div.captcha.is-invalid+.error-des span{display:block}label.checkbox.is-invalid{color:#dc3545}.basic .sform-field.is-invalid,.basic div.captcha.is-invalid,.rounded .sform-field.is-invalid,.rounded div.captcha.is-invalid{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 5px center;background-size:1em}.basic textarea.sform-field.is-invalid,.rounded textarea.sform-field.is-invalid{background-position:top 14px right 5px}.basic input.sform-field.captcha.is-invalid,.basic input.sform-field.question.is-invalid,.rounded input.sform-field.captcha.is-invalid,.rounded input.sform-field.question.is-invalid{background-image:none}.rounded input.sform-field.is-invalid+label .checkmark{background-color:#dc3545}.highlighted div.captcha.is-invalid,.highlighted input.sform-field.is-invalid,.highlighted input.sform-field.is-invalid+label .checkmark,.highlighted textarea.sform-field.is-invalid{border:none;background-color:#f1abb2}input:focus,textarea:focus{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.sform-field.captcha:focus{background-color:transparent;box-shadow:none}.default div.captcha.focus,.default input.sform-field:focus,.default textarea.sform-field:focus{border-color:#0090d5;background-color:#fafafa;outline:0}.default div.captcha.is-invalid.focus,.default input.sform-field.is-invalid:focus,.default textarea.sform-field.is-invalid:focus,.minimal div.captcha.is-invalid.focus,.minimal input.sform-field.is-invalid:focus,.minimal textarea.sform-field.is-invalid:focus{border-color:#dc3545}.basic input.sform-field.captcha:focus,.basic input.sform-field.question:focus,.default input.sform-field.captcha:focus,.default input.sform-field.question:focus,.highlighted input.sform-field.captcha:focus,.highlighted input.sform-field.question:focus{background-color:transparent}.basic div.captcha.focus,.basic input.sform-field:focus,.basic textarea.sform-field:focus,.rounded div.captcha.focus,.rounded input.sform-field:focus,.rounded textarea.sform-field:focus{border-color:#007bff;box-shadow:0 0 0 2px rgba(0,123,255,.25);outline:0}.basic .sform-field.captcha:focus,.basic .sform-field.is-invalid.captcha:focus,.basic .sform-field.is-invalid.question:focus,.basic .sform-field.question:focus{box-shadow:none}.basic div.captcha.is-invalid.focus,.basic input.sform-field.is-invalid:focus,.basic textarea.sform-field.is-invalid:focus,.rounded div.captcha.is-invalid.focus,.rounded input.sform-field.is-invalid:focus,.rounded textarea.sform-field.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 2px rgba(220,53,69,.25)}.rounded .sform-field.captcha:focus,.rounded .sform-field.is-invalid.captcha:focus,.rounded .sform-field.is-invalid.question:focus,.rounded .sform-field.question:focus{box-shadow:none}.minimal div.captcha.focus,.minimal input.sform-field:focus,.minimal textarea.sform-field:focus{border-color:#0090d5;outline:0;box-shadow:none}.transparent div.captcha.focus,.transparent input.sform-field:focus,.transparent textarea.sform-field:focus{border-color:#0d6efd;background-color:#e8f0fe;outline:0;box-shadow:none}.transparent .sform-field.captcha:focus,.transparent .sform-field.is-invalid.captcha:focus,.transparent .sform-field.is-invalid.question:focus,.transparent .sform-field.question:focus{background-color:transparent;box-shadow:none}.transparent div.captcha.is-invalid.focus,.transparent input.sform-field.is-invalid:focus,.transparent textarea.sform-field.is-invalid:focus{border-color:#dc3545;background-color:#f1b1b7}.highlighted div.captcha.focus,.highlighted input.sform-field:focus,.highlighted textarea.sform-field:focus{border:none;background-color:rgba(13,110,253,.5);outline:0;box-shadow:none}.highlighted div.captcha.is-invalid.focus,.highlighted input.sform-field.is-invalid:focus,.highlighted textarea.sform-field.is-invalid:focus{background-color:#f1abb2}.error-des{line-height:1;color:#dc3545;font-size:14px;height:14px;margin-top:5px;margin-bottom:5px}.error-des span{display:none}.sform-field.is-invalid+.error-des span{display:block}.msgoutside{padding:0 0 5px 0;position:relative;outline:0}.msgoutside span{display:block;visibility:hidden;text-align:center;font-size:16px;padding:7.5px 12.5px}.default .msgoutside span,.highlighted .msgoutside span,.transparent .msgoutside span{border-radius:5px;background-color:#dc3545;color:#fff}.basic .msgoutside span{border-radius:0;background-color:#f8d7da;color:#721c24}.rounded .msgoutside span{border-radius:5px;background-color:#dc3545;color:#fff;opacity:.75}.minimal .msgoutside span{border-radius:5px;background-color:#f8d7da;color:#dc3545}.noscript{position:absolute;top:0;width:100%}.msgoutside.top{margin-bottom:20px}.form.confirmation{text-align:center;padding-top:50px;outline:0}.form.confirmation>img,.form.confirmation>p>img{margin:30px auto;width:250px}.sform-confirmation{position:relative;outline:0}.sform.spinner{height:44px;line-height:44px;width:120px;padding:3px 0}.minimal .sform.spinner,.transparent .sform.spinner{height:46px;line-height:46px}.sform.spinner.left{margin:0 auto 0 0}.sform.spinner.right{margin:0 0 0 auto}.sform.spinner.center{margin:0 auto}.sform.spinner>div{width:18px;height:18px;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.2s infinite ease-in-out both;animation:sk-bouncedelay 1.2s infinite ease-in-out both;margin:0 3px}.default .sform.spinner>div,.highlighted .sform.spinner>div,.minimal .sform.spinner>div{background-color:#0090d5}.basic .sform.spinner>div{background-color:#0069d9}.rounded .sform.spinner>div{background-color:#6c757d}.transparent .sform.spinner>div{background-color:#0d6efd}.sform.spinner .bounce1{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sform.spinner .bounce2{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sform.spinner .bounce3{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sform.spinner .bounce4{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;clear:right}.row .captcha-error{width:100%;padding-left:135px}.col-sm-10{position:relative;width:100%;min-height:1px}.checkbox.col-sm-10,.msgoutside.col-sm-10,.nolabel.col-sm-10,.submit-wrap.col-sm-10{float:right}.row.checkbox{float:right;width:calc(100% - 135px)}label.sform.col-sm-2{letter-spacing:-.05em}@media (min-width:576px){.col-sm-10{-ms-flex:0 0 calc(100% - 135px);flex:0 0 calc(100% - 135px);max-width:calc(100% - 135px)}.col-sm-2{-ms-flex:135px;flex:135px;max-width:135px;line-height:41px;padding-right:15px}}@media (max-width:575px){.col-sm-10{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.col-sm-2{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}@media (max-width:1023px){.email.half,.name.half{width:100%;float:left}.lastname.half,.phone.half{width:100%;float:right}}.sform-bottom.rtl,.sform-introduction.rtl,form.sform.rtl{direction:rtl}.rtl .sform-field-group label span{display:inline-block;padding-right:5px;padding-left:0}.rtl .lastname.half,.rtl .phone.half{float:left}.rtl .email.half,.rtl .name.half{float:right}.rtl .row{clear:left}.rtl .checkbox.col-sm-10,.rtl .nolabel.col-sm-10{float:left}.rtl .checkmark{right:0}.rtl label.sform.checkbox:before{right:0}.rtl.basic label.sform.checkbox{padding-right:35px;padding-left:0}.rtl.rounded label.sform.checkbox{padding-right:72px;padding-left:0}.rtl.basic input.sform-field,.rtl.basic textarea.sform-field,.rtl.rounded input.sform-field,.rtl.rounded textarea.sform-field{padding:10px 16px 10px 32px}.rtl.basic div.captcha.is-invalid,.rtl.basic input.sform-field.is-invalid,.rtl.rounded div.captcha.is-invalid,.rtl.rounded input.sform-field.is-invalid{background-position:left 5px center}.rtl.basic textarea.sform-field.is-invalid,.rtl.rounded textarea.sform-field.is-invalid{background-position:top 14px left 5px}.rtl .sform-field.question{text-align:left;padding-left:0}.rtl .sform-field.captcha{padding-right:5px}.rtl.basic input.sform-field.question,.rtl.rounded input.sform-field.question{padding-right:0;padding-left:0}.rtl.basic input.sform-field.captcha,.rtl.rounded input.sform-field.captcha{padding-right:5px;padding-left:32px}.rtl .captcha-error.row{padding-right:135px}.rtl .error-des span{text-align:right}.rtl .msgoutside,.rtl .submit-wrap{float:left;width:100%}.rtl .sform-field-group .col-sm-2{padding-right:0}.rtl label.checkbox span{padding-left:0;padding-right:0}.rtl label.checkbox span.required-symbol{padding-right:5px}.rtl .sform-field-group label span.d-none{display:none}.rtl label.checkbox{margin-right:0;padding-right:50px;padding-left:0}.rtl .sform-field-group label{text-align:right}.rtl .row.checkbox{float:left}.form-wrap.success{background-color:inherit!important}1 .d-block{display:inline-block}.d-none{display:none!important}.v-visible{visibility:visible!important}.v-invisible{visibility:hidden!important;opacity:0}.align-left{text-align:left}.align-center{text-align:center}.align-right{text-align:right}h1.sform,h2.sform,h3.sform,h4.sform,h5.sform,h6.sform{color:inherit;font-size:inherit}.sform-introduction{padding:20px 0 30px 0;clear:both}.sform-bottom{margin:0 auto;padding:20px 0 30px 0;clear:both}.sform-field-group{line-height:1;padding-bottom:3px;clear:both}.sform-field-group label{display:block;margin-bottom:5px}label.sform{font-size:inherit;color:inherit;font-weight:400}label.sform.smaller{font-size:.9em}label.sform.larger{font-size:1.1em}.required-symbol.mark{color:#dc3545;padding-left:3px;background-color:transparent}.required-symbol.word{color:inherit;padding-left:3px;font-weight:300;font-size:.8em;font-style:italic}input.sform-field{width:100%;margin-bottom:0;outline:0;font-size:inherit;color:inherit;font-weight:400;line-height:normal;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}textarea.sform-field{width:100%;height:auto;outline:0;line-height:1.5;font-size:inherit;color:inherit;font-weight:400;box-sizing:border-box;-webkit-box-sizing:border-box;-moz-box-sizing:border-box}.half{clear:none}.email.half,.name.half{width:47.5%;float:left}.lastname.half,.phone.half{width:47.5%;float:right}.default input.sform-field{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 16px}.basic input.sform-field{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff;padding:10px 32px 10px 16px}.rounded input.sform-field{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 32px 10px 16px}.minimal input.sform-field{border:none;border-bottom:2px solid #ccc;border-radius:0;background-color:transparent;padding:10px 0}.transparent input.sform-field{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent;padding:10px 16px}.transparent.light .checkmark,.transparent.light div.captcha,.transparent.light input.sform-field,.transparent.light textarea.sform-field{border-color:#f8f8f8}.highlighted input.sform-field{border:none;border-radius:5px;background-color:#eaeaea;padding:10px 16px}.default textarea.sform-field{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 16px}.basic textarea.sform-field{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff;padding:10px 32px 10px 16px}.rounded textarea.sform-field{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:5px;background-color:#fff;padding:10px 32px 10px 16px}.minimal textarea.sform-field{border:none;border-bottom:2px solid #ccc;border-radius:0;background-color:transparent;padding:10px 0}.transparent textarea.sform-field{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent;padding:10px 16px}.highlighted textarea.sform-field{border:none;border-radius:5px;background-color:#eaeaea;padding:10px 16px}.sform-field-group.checkbox{margin-top:20px}input.checkbox{position:absolute;opacity:0;height:1px;width:1px;appearance:none;-webkit-appearance:none;-moz-appearance:none}input.checkbox+label{position:relative;cursor:default;display:inline-block;margin-left:0;width:100%;font-size:inherit;box-sizing:border-box}input.checkbox+label a{color:inherit;text-decoration:underline;text-decoration-style:dotted}.checkmark{position:absolute;cursor:pointer;top:0;left:0;height:34px;width:34px}input.checkbox:checked+label .checkmark:after{display:block}.default input.checkbox+label,.highlighted input.checkbox+label,.minimal input.checkbox+label,.transparent input.checkbox+label{padding-left:50px;line-height:34px;margin-bottom:25px}.default .checkmark{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff}.default .checkmark:after,.highlighted .checkmark:after,.minimal .checkmark:after,.transparent .checkmark:after{left:10px;top:5px;width:12px;height:18px;border:solid #fff;border-width:0 4px 4px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg);content:"";position:absolute;box-sizing:border-box;display:none}.default input.checkbox:checked+label .checkmark{border-color:#8bc34a;background-color:#8bc34a}.basic .checkmark{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff;margin-top:10px;height:20px;width:20px;line-height:20px;text-align:center;color:#fff;font-size:18px;font-weight:600}.basic .checkmark:after{display:none;box-sizing:border-box}.basic input.checkbox:checked+label .checkmark{background-color:#007bff;border-color:#007bff}.basic input.checkbox:checked+label .checkmark:after{content:"\2713";display:block}.basic input.checkbox+label{padding-left:30px;margin-top:10px;margin-bottom:30px;line-height:40px}.rounded .checkmark{width:52px;height:26px;border:none;border-radius:26px;background-color:#6c757d}.rounded .checkmark:after{position:absolute;display:inherit;content:"";height:18px;width:18px;left:4px;top:4px;border-radius:50%;background-color:#fff;-webkit-transition:.4s;transition:.4s}.rounded input.checkbox:checked+label .checkmark{background-color:#8bc34a}.rounded input.checkbox:checked+label .checkmark:after{-webkit-transform:translateX(26px);-ms-transform:translateX(26px);transform:translateX(26px)}.rounded input.checkbox+label{margin-bottom:22px;line-height:26px;padding-left:72px}.minimal .checkmark{border-width:2px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:transparent}.minimal input.checkbox:checked+label .checkmark{border-color:#8bc34a;background-color:#8bc34a}.transparent .checkmark{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent}.transparent input.checkbox:checked+label .checkmark{border-color:#0d6efd;background-color:#0d6efd}.highlighted .checkmark{border-width:1px;border-color:#eaeaea;border-style:solid;border-radius:5px;background-color:#eaeaea}.highlighted input.checkbox:checked+label .checkmark{border-color:#0d6efd;background-color:#0d6efd}div.captcha{width:200px;height:intrinsic}input.sform-field.question{width:110px;height:inherit;cursor:text;border:none;outline:0;display:inline-block;background-color:transparent;padding-right:0;padding-left:0;text-align:right;box-shadow:none}input.sform-field.captcha{width:75px;border:none;outline:0;display:inline-block;background-color:transparent;padding-right:0;padding-left:5px;box-shadow:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{appearance:textfield;-moz-appearance:textfield;-webkit-appearance:textfield}.default div.captcha{border-width:1px;border-color:#ccc;border-style:solid;border-radius:5px;background-color:#fff}.basic .sform-field-group.checkbox{margin-top:0}.basic div.captcha{border-width:1px;border-color:#aaa;border-style:solid;border-radius:0;background-color:#fff}.rounded div.captcha{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:5px;background-color:#fff}.minimal div.captcha{border-bottom:2px solid #ccc;background-color:transparent}.transparent div.captcha{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:transparent}.highlighted div.captcha{border:none;border-radius:5px;background-color:#eaeaea}#gcaptcha-wrap,.gcaptcha-wrap{margin:16px 0 30px}.rc-anchor-error-msg-container{letter-spacing:-.5px}.sizelabel{font-size:inherit;margin-bottom:22px}.sizelabel.smaller{font-size:.9em}.sizelabel.larger{font-size:1.1em}.submit-wrap{margin:22px 0}.submit-wrap button.sform{outline:0;font-size:inherit;text-transform:uppercase;font-weight:600;line-height:1.25;text-decoration:none;box-shadow:none;padding:10px 16px}.submit-wrap button.sform:hover{box-shadow:none}.default .submit-wrap button.sform{border-width:1px;border-color:#007BFF;border-style:solid;border-radius:25px;background-color:#007BFF;color:#fff;cursor:pointer}.default .submit-wrap button.sform:hover{color:#007BFF;background-color:#fff}.basic .submit-wrap button.sform{border-width:1px;border-color:#007bff;border-style:solid;border-radius:0;background-color:#007bff;color:#fff}.basic .submit-wrap button.sform:hover{border-color:#0062cc;background-color:#0069d9}.rounded .submit-wrap button.sform{border-width:1px;border-color:#6c757d;border-style:solid;border-radius:50px;background-color:transparent;color:inherit}.rounded .submit-wrap button.sform:hover{border-color:#6c757d;color:#fff;background-color:#6c757d}.minimal .submit-wrap button.sform{border-width:2px;border-color:#007BFF;border-style:solid;border-radius:5px;background-color:#007BFF;color:#fff}.minimal .submit-wrap button.sform:hover{border-color:#007BFF;color:#007BFF;background-color:#fff}.transparent .submit-wrap button.sform{border-width:2px;border-color:#333;border-style:solid;border-radius:0;background-color:#333;color:#fff}.transparent .submit-wrap button.sform:hover{border-color:#0d6efd;color:#fff;background-color:#0d6efd}.highlighted .submit-wrap button.sform{border-width:1px;border-color:#333;border-style:solid;border-radius:5px;background-color:#333;color:#fff}.highlighted .submit-wrap button.sform:hover{border-color:#0d6efd;color:#fff;background-color:#0d6efd}.submit-wrap button.smaller{font-size:.9em}.submit-wrap button.larger{font-size:1.1em}.submit-wrap button:focus{outline:0}.submit-wrap button:hover{color:#fff;background-color:#0d6efd;border-color:#0d6efd;box-shadow:none}.submit-wrap.left{text-align:left}.submit-wrap.right{text-align:right}.submit-wrap.center{text-align:center}.submit-wrap.full{text-align:center}.submit-wrap button.fullwidth{width:100%}.carrots{opacity:0;position:absolute;top:0;left:0;height:0;width:0;z-index:-1}div.captcha.is-invalid,input.sform-field.is-invalid,input.sform-field.is-invalid+label .checkmark,textarea.sform-field.is-invalid{border-color:#dc3545}.sform-field.is-invalid:focus,div.captcha.is-invalid.focus{box-shadow:none}div.captcha.is-invalid+.error-des span{display:block}label.checkbox.is-invalid{color:#dc3545}.basic .sform-field.is-invalid,.basic div.captcha.is-invalid,.rounded .sform-field.is-invalid,.rounded div.captcha.is-invalid{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right 5px center;background-size:1em}.basic textarea.sform-field.is-invalid,.rounded textarea.sform-field.is-invalid{background-position:top 14px right 5px}.basic input.sform-field.captcha.is-invalid,.basic input.sform-field.question.is-invalid,.rounded input.sform-field.captcha.is-invalid,.rounded input.sform-field.question.is-invalid{background-image:none}.rounded input.sform-field.is-invalid+label .checkmark{background-color:#dc3545}.highlighted div.captcha.is-invalid,.highlighted input.sform-field.is-invalid,.highlighted input.sform-field.is-invalid+label .checkmark,.highlighted textarea.sform-field.is-invalid{border:none;background-color:#f1abb2}input:focus,textarea:focus{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.sform-field.captcha:focus{background-color:transparent;box-shadow:none}.default div.captcha.focus,.default input.sform-field:focus,.default textarea.sform-field:focus{border-color:#007BFF;background-color:#fafafa;outline:0}.default div.captcha.is-invalid.focus,.default input.sform-field.is-invalid:focus,.default textarea.sform-field.is-invalid:focus,.minimal div.captcha.is-invalid.focus,.minimal input.sform-field.is-invalid:focus,.minimal textarea.sform-field.is-invalid:focus{border-color:#dc3545}.basic input.sform-field.captcha:focus,.basic input.sform-field.question:focus,.default input.sform-field.captcha:focus,.default input.sform-field.question:focus,.highlighted input.sform-field.captcha:focus,.highlighted input.sform-field.question:focus{background-color:transparent}.basic div.captcha.focus,.basic input.sform-field:focus,.basic textarea.sform-field:focus,.rounded div.captcha.focus,.rounded input.sform-field:focus,.rounded textarea.sform-field:focus{border-color:#007bff;box-shadow:0 0 0 2px rgba(0,123,255,.25);outline:0}.basic .sform-field.captcha:focus,.basic .sform-field.is-invalid.captcha:focus,.basic .sform-field.is-invalid.question:focus,.basic .sform-field.question:focus{box-shadow:none}.basic div.captcha.is-invalid.focus,.basic input.sform-field.is-invalid:focus,.basic textarea.sform-field.is-invalid:focus,.rounded div.captcha.is-invalid.focus,.rounded input.sform-field.is-invalid:focus,.rounded textarea.sform-field.is-invalid:focus{border-color:#dc3545;box-shadow:0 0 0 2px rgba(220,53,69,.25)}.rounded .sform-field.captcha:focus,.rounded .sform-field.is-invalid.captcha:focus,.rounded .sform-field.is-invalid.question:focus,.rounded .sform-field.question:focus{box-shadow:none}.minimal div.captcha.focus,.minimal input.sform-field:focus,.minimal textarea.sform-field:focus{border-color:#007BFF;outline:0;box-shadow:none}.transparent div.captcha.focus,.transparent input.sform-field:focus,.transparent textarea.sform-field:focus{border-color:#0d6efd;background-color:#e8f0fe;outline:0;box-shadow:none}.transparent .sform-field.captcha:focus,.transparent .sform-field.is-invalid.captcha:focus,.transparent .sform-field.is-invalid.question:focus,.transparent .sform-field.question:focus{background-color:transparent;box-shadow:none}.transparent div.captcha.is-invalid.focus,.transparent input.sform-field.is-invalid:focus,.transparent textarea.sform-field.is-invalid:focus{border-color:#dc3545;background-color:#f1b1b7}.highlighted div.captcha.focus,.highlighted input.sform-field:focus,.highlighted textarea.sform-field:focus{border:none;background-color:rgba(13,110,253,.5);outline:0;box-shadow:none}.highlighted div.captcha.is-invalid.focus,.highlighted input.sform-field.is-invalid:focus,.highlighted textarea.sform-field.is-invalid:focus{background-color:#f1abb2}.error-des{line-height:1;color:#dc3545;font-size:14px;height:14px;margin-top:5px;margin-bottom:5px}.error-des span{display:none}.sform-field.is-invalid+.error-des span{display:block}.msgoutside{padding:0 0 5px 0;position:relative;outline:0}.msgoutside span{display:block;visibility:hidden;text-align:center;font-size:16px;padding:7.5px 12.5px}.default .msgoutside span,.highlighted .msgoutside span,.transparent .msgoutside span{border-radius:5px;background-color:#dc3545;color:#fff}.basic .msgoutside span{border-radius:0;background-color:#f8d7da;color:#721c24}.rounded .msgoutside span{border-radius:5px;background-color:#dc3545;color:#fff;opacity:.75}.minimal .msgoutside span{border-radius:5px;background-color:#f8d7da;color:#dc3545}.noscript{position:absolute;top:0;width:100%}.msgoutside.top{margin-bottom:20px}.form.confirmation{text-align:center;padding-top:50px;outline:0}.form.confirmation>img,.form.confirmation>p>img{margin:30px auto;width:250px}.sform-confirmation{position:relative;outline:0}.sform.spinner{height:44px;line-height:44px;width:120px;padding:3px 0}.minimal .sform.spinner,.transparent .sform.spinner{height:46px;line-height:46px}.sform.spinner.left{margin:0 auto 0 0}.sform.spinner.right{margin:0 0 0 auto}.sform.spinner.center{margin:0 auto}.sform.spinner>div{width:18px;height:18px;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.2s infinite ease-in-out both;animation:sk-bouncedelay 1.2s infinite ease-in-out both;margin:0 3px}.default .sform.spinner>div,.highlighted .sform.spinner>div,.minimal .sform.spinner>div{background-color:#007BFF}.basic .sform.spinner>div{background-color:#0069d9}.rounded .sform.spinner>div{background-color:#6c757d}.transparent .sform.spinner>div{background-color:#0d6efd}.sform.spinner .bounce1{-webkit-animation-delay:-.4s;animation-delay:-.4s}.sform.spinner .bounce2{-webkit-animation-delay:-.3s;animation-delay:-.3s}.sform.spinner .bounce3{-webkit-animation-delay:-.2s;animation-delay:-.2s}.sform.spinner .bounce4{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,100%,80%{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;clear:right}.row .captcha-error{width:100%;padding-left:135px}.col-sm-10{position:relative;width:100%;min-height:1px}.checkbox.col-sm-10,.msgoutside.col-sm-10,.nolabel.col-sm-10,.submit-wrap.col-sm-10{float:right}.row.checkbox{float:right;width:calc(100% - 135px)}label.sform.col-sm-2{letter-spacing:-.05em}@media (min-width:576px){.col-sm-10{-ms-flex:0 0 calc(100% - 135px);flex:0 0 calc(100% - 135px);max-width:calc(100% - 135px)}.col-sm-2{-ms-flex:135px;flex:135px;max-width:135px;line-height:41px;padding-right:15px}}@media (max-width:575px){.col-sm-10{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.col-sm-2{-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}}@media (max-width:1023px){.email.half,.name.half{width:100%;float:left}.lastname.half,.phone.half{width:100%;float:right}}.sform-bottom.rtl,.sform-introduction.rtl,form.sform.rtl{direction:rtl}.rtl .sform-field-group label span{display:inline-block;padding-right:5px;padding-left:0}.rtl .lastname.half,.rtl .phone.half{float:left}.rtl .email.half,.rtl .name.half{float:right}.rtl .row{clear:left}.rtl .checkbox.col-sm-10,.rtl .nolabel.col-sm-10{float:left}.rtl .checkmark{right:0}.rtl label.sform.checkbox:before{right:0}.rtl.basic label.sform.checkbox{padding-right:35px;padding-left:0}.rtl.rounded label.sform.checkbox{padding-right:72px;padding-left:0}.rtl.basic input.sform-field,.rtl.basic textarea.sform-field,.rtl.rounded input.sform-field,.rtl.rounded textarea.sform-field{padding:10px 16px 10px 32px}.rtl.basic div.captcha.is-invalid,.rtl.basic input.sform-field.is-invalid,.rtl.rounded div.captcha.is-invalid,.rtl.rounded input.sform-field.is-invalid{background-position:left 5px center}.rtl.basic textarea.sform-field.is-invalid,.rtl.rounded textarea.sform-field.is-invalid{background-position:top 14px left 5px}.rtl .sform-field.question{text-align:left;padding-left:0}.rtl .sform-field.captcha{padding-right:5px}.rtl.basic input.sform-field.question,.rtl.rounded input.sform-field.question{padding-right:0;padding-left:0}.rtl.basic input.sform-field.captcha,.rtl.rounded input.sform-field.captcha{padding-right:5px;padding-left:32px}.rtl .captcha-error.row{padding-right:135px}.rtl .error-des span{text-align:right}.rtl .msgoutside,.rtl .submit-wrap{float:left;width:100%}.rtl .sform-field-group .col-sm-2{padding-right:0}.rtl label.checkbox span{padding-left:0;padding-right:0}.rtl label.checkbox span.required-symbol{padding-right:5px}.rtl .sform-field-group label span.d-none{display:none}.rtl label.checkbox{margin-right:0;padding-right:50px;padding-left:0}.rtl .sform-field-group label{text-align:right}.rtl .row.checkbox{float:left}.form-wrap.success{background-color:inherit!important}#sform-admin-message{font-size:0.8em;border:1px solid;margin-top:20px;padding:20px 15px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}#sform-admin-message p.heading{font-weight:600;margin-bottom:10px} -
simpleform/trunk/public/css/public.css
r2664049 r2679542 7 7 .align-center { text-align: center; } 8 8 .align-right { text-align: right; } 9 h1.sform,h2.sform,h3.sform,h4.sform,h5.sform,h6.sform { color: inherit; }9 h1.sform,h2.sform,h3.sform,h4.sform,h5.sform,h6.sform { color: inherit; font-size: inherit; } 10 10 11 11 /* Text above form */ 12 .sform-introduction { padding -bottom: 15px; clear: both; }12 .sform-introduction { padding: 20px 0 30px 0; clear: both; } 13 13 14 14 /* Text below form */ 15 .sform-bottom { margin: 0 auto; clear: both; }15 .sform-bottom { margin: 0 auto; padding:20px 0 30px 0; clear: both; } 16 16 17 17 /* Form field group */ … … 53 53 .sform-field-group.checkbox { margin-top: 20px; } 54 54 input.checkbox { position: absolute; opacity: 0; height: 1px; width: 1px; appearance: none; -webkit-appearance: none; -moz-appearance: none; } 55 input.checkbox + label { position: relative; cursor: default; display: inline-block; margin-left: 0; width: 100%; font-size: inherit; }55 input.checkbox + label { position: relative; cursor: default; display: inline-block; margin-left: 0; width: 100%; font-size: inherit; box-sizing: border-box; } 56 56 input.checkbox + label a { color: inherit; text-decoration: underline; text-decoration-style: dotted; } 57 57 .checkmark { position: absolute; cursor: pointer; top: 0; left: 0; height: 34px; width: 34px; } … … 103 103 .submit-wrap button.sform { outline: none; font-size: inherit; text-transform: uppercase; font-weight: 600; line-height: 1.25; text-decoration: none; box-shadow: none; padding: 10px 16px; } 104 104 .submit-wrap button.sform:hover { box-shadow: none; } 105 .default .submit-wrap button.sform { border-width: 1px; border-color: #00 90D5; border-style: solid; border-radius: 25px; background-color: #0090D5; color: #FFF; cursor: pointer; }106 .default .submit-wrap button.sform:hover { color: #00 90D5; background-color: #FFF; }105 .default .submit-wrap button.sform { border-width: 1px; border-color: #007BFF; border-style: solid; border-radius: 25px; background-color: #007BFF; color: #FFF; cursor: pointer; } 106 .default .submit-wrap button.sform:hover { color: #007BFF; background-color: #FFF; } 107 107 .basic .submit-wrap button.sform { border-width: 1px; border-color: #007bff; border-style: solid; border-radius: 0; background-color: #007bff; color: #FFF; } 108 108 .basic .submit-wrap button.sform:hover { border-color: #0062cc; background-color: #0069d9; } 109 109 .rounded .submit-wrap button.sform { border-width: 1px; border-color: #6c757d; border-style: solid; border-radius: 50px; background-color: transparent; color: inherit; } 110 110 .rounded .submit-wrap button.sform:hover { border-color: #6c757d; color: #FFF; background-color: #6c757d; } 111 .minimal .submit-wrap button.sform { border-width: 2px; border-color: #00 90D5; border-style: solid; border-radius: 5px; background-color: #0090D5; color: #FFF; }112 .minimal .submit-wrap button.sform:hover { border-color: #00 90D5; color: #0090D5; background-color: #FFF; }111 .minimal .submit-wrap button.sform { border-width: 2px; border-color: #007BFF; border-style: solid; border-radius: 5px; background-color: #007BFF; color: #FFF; } 112 .minimal .submit-wrap button.sform:hover { border-color: #007BFF; color: #007BFF; background-color: #FFF; } 113 113 .transparent .submit-wrap button.sform { border-width: 2px; border-color: #333; border-style: solid; border-radius: 0; background-color: #333; color: #FFF; } 114 114 .transparent .submit-wrap button.sform:hover { border-color: #0d6efd; color: #FFF; background-color: #0d6efd; } … … 142 142 input:focus, textarea:focus { -webkit-transition: none; -moz-transition: none; -ms-transition: none; -o-transition: none; transition: none; } 143 143 .sform-field.captcha:focus { background-color: transparent; box-shadow: none; } 144 .default input.sform-field:focus, .default textarea.sform-field:focus, .default div.captcha.focus { border-color: #00 90D5; background-color: #fafafa; outline: none; }144 .default input.sform-field:focus, .default textarea.sform-field:focus, .default div.captcha.focus { border-color: #007BFF; background-color: #fafafa; outline: none; } 145 145 .default input.sform-field.is-invalid:focus, .default textarea.sform-field.is-invalid:focus, .default div.captcha.is-invalid.focus, .minimal input.sform-field.is-invalid:focus, .minimal textarea.sform-field.is-invalid:focus, .minimal div.captcha.is-invalid.focus { border-color: #dc3545; } 146 146 .default input.sform-field.question:focus, .default input.sform-field.captcha:focus, .basic input.sform-field.question:focus, .basic input.sform-field.captcha:focus, .highlighted input.sform-field.question:focus, .highlighted input.sform-field.captcha:focus { background-color: transparent; } … … 149 149 .basic input.sform-field.is-invalid:focus, .rounded input.sform-field.is-invalid:focus, .basic textarea.sform-field.is-invalid:focus, .rounded textarea.sform-field.is-invalid:focus, .basic div.captcha.is-invalid.focus, .rounded div.captcha.is-invalid.focus { border-color: #dc3545; box-shadow: 0 0 0 2px rgba(220,53,69,.25); } 150 150 .rounded .sform-field.question:focus, .rounded .sform-field.captcha:focus, .rounded .sform-field.is-invalid.question:focus, .rounded .sform-field.is-invalid.captcha:focus { box-shadow: none; } 151 .minimal input.sform-field:focus, .minimal textarea.sform-field:focus, .minimal div.captcha.focus { border-color: #00 90D5; outline: none; box-shadow: none; }151 .minimal input.sform-field:focus, .minimal textarea.sform-field:focus, .minimal div.captcha.focus { border-color: #007BFF; outline: none; box-shadow: none; } 152 152 .transparent input.sform-field:focus, .transparent textarea.sform-field:focus, .transparent div.captcha.focus { border-color: #0d6efd; background-color: #E8F0FE; outline: none; box-shadow: none; } 153 153 .transparent .sform-field.question:focus, .transparent .sform-field.captcha:focus, .transparent .sform-field.is-invalid.question:focus, .transparent .sform-field.is-invalid.captcha:focus { background-color: transparent; box-shadow: none; } … … 181 181 .sform.spinner.center { margin: 0 auto; } 182 182 .sform.spinner > div { width: 18px; height: 18px; border-radius: 100%; display: inline-block; -webkit-animation: sk-bouncedelay 1.2s infinite ease-in-out both; animation: sk-bouncedelay 1.2s infinite ease-in-out both; margin: 0 3px; } 183 .default .sform.spinner > div, .minimal .sform.spinner > div, .highlighted .sform.spinner > div { background-color: #00 90D5; }183 .default .sform.spinner > div, .minimal .sform.spinner > div, .highlighted .sform.spinner > div { background-color: #007BFF; } 184 184 .basic .sform.spinner > div { background-color: #0069d9; } 185 185 .rounded .sform.spinner > div { background-color: #6c757d; } … … 242 242 243 243 .form-wrap.success { background-color: inherit !important; } 244 245 #sform-admin-message { font-size: 0.8em; border: 1px solid; margin-top: 20px; padding: 20px 15px; height: -webkit-fit-content; height: -moz-fit-content; height: fit-content; } 246 #sform-admin-message p.heading { font-weight: 600; margin-bottom: 10px; } -
simpleform/trunk/public/partials/form-variables.php
r2618058 r2679542 45 45 $subject_field = ! empty( $attributes['subject_field'] ) ? esc_attr($attributes['subject_field']) : 'visible'; 46 46 $subject_requirement = ! empty( $attributes['subject_requirement'] ) ? esc_attr($attributes['subject_requirement']) : 'required'; 47 $captcha_field = ! empty( $attributes['captcha_field'] ) ? esc_attr($attributes['captcha_field']) : 'hidden'; 47 $captcha_field = ! empty( $attributes['captcha_field'] ) ? esc_attr($attributes['captcha_field']) : 'hidden'; 48 48 $name_label = ! empty( $attributes['name_label'] ) ? stripslashes(esc_attr($attributes['name_label'])) : __( 'Name', 'simpleform' ); 49 49 $name_field_requirement = $name_requirement == 'required' ? 'true' : 'false'; … … 297 297 $animation = $ajax == 'true' && $spinner == 'true' ? '<div id="spinner-'.$atts_array['id'].'" class="d-none '.$spinner_class.'"><div class="bounce1"></div><div class="bounce2"></div><div class="bounce3"></div><div class="bounce4"></div><div class="bounce5"></div></div>' : ''; 298 298 $focus_confirmation = $ajax != 'true' ? '<script type="text/javascript">document.getElementById("success-message-'.$atts_array['id'].'").focus();</script>' : ''; 299 $is_gb_editor = defined( 'REST_REQUEST' ) && REST_REQUEST; 300 $name_field = $name_field == 'anonymous' && $is_gb_editor ? 'visible' : $name_field; 301 $lastname_field = $lastname_field == 'anonymous' && $is_gb_editor ? 'visible' : $lastname_field; 302 $email_field = $email_field == 'anonymous' && $is_gb_editor ? 'visible' : $email_field; 303 $phone_field = $phone_field == 'anonymous' && $is_gb_editor ? 'visible' : $phone_field; 304 $subject_field = $subject_field == 'anonymous' && $is_gb_editor ? 'visible' : $subject_field; 305 $consent_field = $consent_field == 'anonymous' && $is_gb_editor ? 'visible' : $consent_field; 306 $preference_field = $preference_field == 'anonymous' && $is_gb_editor ? 'visible' : $preference_field; 307 $captcha_field = $captcha_field == 'anonymous' && $is_gb_editor ? 'visible' : $captcha_field; -
simpleform/trunk/simpleform.php
r2664066 r2679542 6 6 * Plugin URI: https://wpsform.com 7 7 * Description: Create a basic contact form for your website. Lightweight and very simple to manage, SimpleForm is immediately ready to use. 8 * Version: 2.1. 19 * Requires at least: 5. 28 * Version: 2.1.2 9 * Requires at least: 5.6 10 10 * Requires PHP: 5.6 11 11 * Author: WPSForm Team … … 26 26 27 27 define( 'SIMPLEFORM_NAME', 'SimpleForm' ); 28 define( 'SIMPLEFORM_VERSION', '2.1. 1' );28 define( 'SIMPLEFORM_VERSION', '2.1.2' ); 29 29 define( 'SIMPLEFORM_DB_VERSION', '2.1.1' ); 30 30 define( 'SIMPLEFORM_PATH', plugin_dir_path( __FILE__ ) ); -
simpleform/trunk/uninstall.php
r2553077 r2679542 12 12 } 13 13 14 // Confirm user has decided to remove all data, otherwise stop. 14 global $wpdb; 15 15 $settings = get_option('sform_settings'); 16 16 17 // Confirm user has decided to remove all data, otherwise stop. 17 18 if ( isset( $settings['deletion_data'] ) && esc_attr($settings['deletion_data']) == 'false' ) { 18 19 return; … … 20 21 21 22 if ( !is_multisite() ) { 22 global $wpdb;23 // Drop shortcodes table.24 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_shortcodes' );25 // Drop submissions table.26 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_submissions' );27 23 // Delete pre-built pages for contact form and thank you message 28 24 $form_page_ID = ! empty( $settings['form_pageid'] ) ? esc_attr($settings['form_pageid']) : ''; … … 31 27 if ( ! empty($confirmation_page_ID) && get_post_status($confirmation_page_ID) ) { wp_delete_post( $confirmation_page_ID, true); } 32 28 // Search shortcode and remove it from content of any page or post 33 global $wpdb;34 29 $table_post = $wpdb->prefix . 'posts'; 35 30 $table_name = $wpdb->prefix . 'sform_shortcodes'; … … 47 42 } 48 43 } 44 // Missing: Search block and remove it from content of any page or post 49 45 // Delete plugin options 50 46 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'sform\_%'" ); … … 53 49 // Remove any transients we've left behind. 54 50 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE ('%\_transient\_sform\_%')" ); 51 // Drop shortcodes table. 52 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_shortcodes' ); 53 // Drop submissions table. 54 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_submissions' ); 55 55 } 56 56 else { 57 global $wpdb;58 57 $blog_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" ); 59 58 $original_blog_id = get_current_blog_id(); 60 59 foreach ( $blog_ids as $blog_id ) { 61 60 switch_to_blog( $blog_id ); 62 // Drop shortcodes table.63 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_shortcodes' );64 // Drop submissions table.65 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_submissions' );66 61 // Delete pre-built pages for contact form and thank you message 67 62 $form_page_ID = ! empty( $settings['form_pageid'] ) ? esc_attr($settings['form_pageid']) : ''; … … 70 65 if ( ! empty($confirmation_page_ID) && get_post_status($confirmation_page_ID) ) { wp_delete_post( $confirmation_page_ID, true); } 71 66 // Search shortcode and remove it from content of any page or post 72 global $wpdb;73 67 $table_post = $wpdb->prefix . 'posts'; 74 68 $table_name = $wpdb->prefix . 'sform_shortcodes'; … … 86 80 } 87 81 } 82 // Missing: Search block and remove it from content of any page or post 88 83 // Delete plugin options 89 84 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE 'sform\_%'" ); … … 92 87 // Remove any transients we've left behind. 93 88 $wpdb->query( "DELETE FROM {$wpdb->options} WHERE option_name LIKE ('%\_transient\_sform\_%')" ); 89 // Drop shortcodes table. 90 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_shortcodes' ); 91 // Drop submissions table. 92 $wpdb->query( 'DROP TABLE IF EXISTS ' . $wpdb->prefix . 'sform_submissions' ); 94 93 } 95 94 switch_to_blog( $original_blog_id );
Note: See TracChangeset
for help on using the changeset viewer.