| @@ -1,13 +1,13 @@ | ||
| 1 | 1 | /** |
| 2 | 2 | * Configuration File. |
| 3 | 3 | * Establishes links and options parameters to be utilized by the S11FloatingLinks class. |
| 4 | 4 | * |
| 5 | + * @param {Object} wp | |
| 5 | 6 | * @class S11FloatingLinks |
| 6 | 7 | */ |
| 7 | 8 | |
| 8 | -( ( wp ) => { | |
| 9 | - | |
| 9 | +( wp => { | |
| 10 | 10 | /** |
| 11 | 11 | * WordPress dependencies |
| 12 | 12 | */ |
| 13 | 13 | const { __ } = wp.i18n; |
| @@ -53,9 +53,9 @@ | ||
| 53 | 53 | frmFloatingLinksConfig.freeVersionLinks = [ |
| 54 | 54 | { |
| 55 | 55 | title: __( 'Upgrade', 'formidable' ), |
| 56 | 56 | icon: frmFloatingLinksConfig.upgradeIcon, |
| 57 | - url: 'https://formidableforms.com/lite-upgrade/', | |
| 57 | + url: s11FloatingLinksData.upgradeUrl, | |
| 58 | 58 | openInNewTab: true |
| 59 | 59 | }, |
| 60 | 60 | { |
| 61 | 61 | title: __( 'Support', 'formidable' ), |
| @@ -65,9 +65,9 @@ | ||
| 65 | 65 | }, |
| 66 | 66 | { |
| 67 | 67 | title: __( 'Documentation', 'formidable' ), |
| 68 | 68 | icon: frmFloatingLinksConfig.documentationIcon, |
| 69 | - url: 'https://formidableforms.com/knowledgebase/', | |
| 69 | + url: s11FloatingLinksData.documentationUrl, | |
| 70 | 70 | openInNewTab: true |
| 71 | 71 | } |
| 72 | 72 | ]; |
| 73 | 73 | |
| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | frmFloatingLinksConfig.proVersionLinks = [ |
| 78 | 78 | { |
| 79 | 79 | title: __( 'Support & Docs', 'formidable' ), |
| 80 | 80 | icon: frmFloatingLinksConfig.supportIcon, |
| 81 | - url: 'https://formidableforms.com/knowledgebase/', | |
| 81 | + url: s11FloatingLinksData.documentationUrl, | |
| 82 | 82 | openInNewTab: true |
| 83 | 83 | } |
| 84 | 84 | ]; |
| 85 | 85 | |
| @@ -90,14 +90,14 @@ | ||
| 90 | 90 | hoverColor: '#4199FD', |
| 91 | 91 | bgHoverColor: '#F5FAFF', |
| 92 | 92 | logoIcon: ` |
| 93 | 93 | <svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" fill="none" viewBox="0 0 40 40"> |
| 94 | - <g clip-path="url(#a)"> | |
| 94 | + <g clip-path="url(#floatingLinksClipPath)"> | |
| 95 | 95 | <path fill="#F15A24" d="M19.265 25.641h9.401v4.957h-9.401v-4.957Z"/> |
| 96 | 96 | <path fill="#5E5E5F" d="M26.702 9.743H13.368a2.12 2.12 0 0 0-2.136 2.12V14.7h17.436V9.743h-1.966Zm-.171 7.864H11.249v12.991h4.957v-8.034h10.36a2.154 2.154 0 0 0 2.016-1.419 1.67 1.67 0 0 0 .103-.598v-2.94H26.53ZM20 40a20 20 0 0 1-6.748-38.827 20 20 0 0 1 14.526 37.254A19.847 19.847 0 0 1 20 40Zm0-37.35A17.35 17.35 0 0 0 7.727 32.272 17.358 17.358 0 0 0 32.275 7.726 17.232 17.232 0 0 0 20 2.666V2.65Z"/> |
| 97 | 97 | </g> |
| 98 | 98 | <defs> |
| 99 | - <clipPath id="a"> | |
| 99 | + <clipPath id="floatingLinksClipPath"> | |
| 100 | 100 | <path fill="#fff" d="M0 0h40v40H0z"/> |
| 101 | 101 | </clipPath> |
| 102 | 102 | </defs> |
| 103 | 103 | </svg> |
| @@ -108,6 +108,5 @@ | ||
| 108 | 108 | frmFloatingLinksConfig.links = s11FloatingLinksData.proIsInstalled ? frmFloatingLinksConfig.proVersionLinks : frmFloatingLinksConfig.freeVersionLinks; |
| 109 | 109 | |
| 110 | 110 | // Trigger the 'set_floating_links_config' action, passing the config |
| 111 | 111 | wp.hooks.doAction( 'set_floating_links_config', frmFloatingLinksConfig ); |
| 112 | - | |
| 113 | -})( window.wp ); | |
| 112 | +} )( window.wp ); | |