PluginProbe
Extendify / 1.9.3
Extendify v1.9.3
3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 0.7.0 All 126 releases
extendify / src / Library / components / modals / ProModal.js

ProModal.js in Extendify 1.9.3, at src/Library/components/modals/ProModal.js

47 lines 2.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { safeHTML } from '@wordpress/dom'
2 import { useRef } from '@wordpress/element'
3 import { __, sprintf } from '@wordpress/i18n'
4 import { brandLogo } from '@library/components/icons'
5 import { SplitModal } from './SplitModal'
6
7 export const ProModal = () => {
8 const initialFocus = useRef(null)
9 return (
10 <SplitModal isOpen={true} invertedButtonColor={true} ref={initialFocus}>
11 <div>
12 <div className="mb-5 flex items-center space-x-2 text-extendify-black">
13 {brandLogo}
14 </div>
15 <h3 className="mt-0 text-xl">
16 {__('Pro Patterns and Layouts', 'extendify')}
17 </h3>
18 <p
19 className="text-sm text-black"
20 dangerouslySetInnerHTML={{
21 __html: safeHTML(
22 sprintf(
23 // translators: %s: The partners@extendify.com email address.
24 __(
25 "Access to our Pro catalog is available exclusively for customers of select hosting providers. If you're interested in full access, have your hosting provider reach out to %s.",
26 'extendify',
27 ),
28 '<a href="mailto:partners@extendify.com">partners@extendify.com</a>',
29 ),
30 ),
31 }}
32 />
33 </div>
34 <div className="justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black">
35 <img
36 alt={__('Upgrade Now', 'extendify')}
37 className="max-w-full rounded-tr-sm rounded-br-sm"
38 src={
39 window.extendifyData.asset_path +
40 '/modal-extendify-black.png'
41 }
42 />
43 </div>
44 </SplitModal>
45 )
46 }
47