init
This commit is contained in:
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"$schema": "https://schemas.wp.org/trunk/block.json",
|
||||
"apiVersion": 3,
|
||||
"name": "premium-content/container",
|
||||
"title": "Paid Content",
|
||||
"description": "Restrict access to your content for paying subscribers.",
|
||||
"keywords": [
|
||||
"buy",
|
||||
"credit card",
|
||||
"debit card",
|
||||
"monetize",
|
||||
"earn",
|
||||
"exclusive",
|
||||
"gated",
|
||||
"gofundme",
|
||||
"memberships",
|
||||
"money",
|
||||
"newsletter",
|
||||
"paid",
|
||||
"patreon",
|
||||
"pay",
|
||||
"payments",
|
||||
"paywall",
|
||||
"premium content",
|
||||
"purchase",
|
||||
"recurring",
|
||||
"repeat",
|
||||
"signin",
|
||||
"stripe",
|
||||
"subscribe",
|
||||
"subscriptions",
|
||||
"support",
|
||||
"sponsor",
|
||||
"square",
|
||||
"toast",
|
||||
"venmo",
|
||||
"stripe",
|
||||
"substack"
|
||||
],
|
||||
"version": "12.5.0",
|
||||
"textdomain": "jetpack",
|
||||
"category": "monetize",
|
||||
"icon": "<svg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg'><path d='m12.74,14.43l-4.1-1.26-.13.71-.42,6.87c-.03.49.52.81.93.54l3.72-2.48,4,2.51c.42.26.96-.07.92-.56l-.64-6.87v-.71l-4.28,1.26Z'/><path d='m12.74,15.14c-3.55,0-6.44-2.89-6.44-6.44s2.89-6.44,6.44-6.44,6.44,2.89,6.44,6.44-2.89,6.44-6.44,6.44Zm0-11.89c-3,0-5.44,2.44-5.44,5.44s2.44,5.44,5.44,5.44,5.44-2.44,5.44-5.44-2.44-5.44-5.44-5.44Z'/><path d='M11.95 11.08 9.36 8.48 10.06 7.77 11.95 9.66 15.42 6.19 16.13 6.9 11.95 11.08z'/></svg>",
|
||||
"supports": {
|
||||
"html": false
|
||||
},
|
||||
"providesContext": {
|
||||
"premium-content/planIds": "selectedPlanIds",
|
||||
"premium-content/isPreview": "isPreview",
|
||||
"isPremiumContentChild": "isPremiumContentChild"
|
||||
},
|
||||
"attributes": {
|
||||
"selectedPlanIds": {
|
||||
"type": "array",
|
||||
"default": []
|
||||
},
|
||||
"isPreview": {
|
||||
"type": "boolean",
|
||||
"default": false
|
||||
},
|
||||
"isPremiumContentChild": {
|
||||
"type": "boolean",
|
||||
"default": true
|
||||
}
|
||||
},
|
||||
"example": {
|
||||
"attributes": {
|
||||
"isPreview": true
|
||||
}
|
||||
},
|
||||
"editorScript": "jetpack-blocks-editor"
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<?php return array('dependencies' => array('wp-polyfill'), 'version' => '0d4bc8846ef7f6286b82');
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-premium-content-container .components-notice-list .components-notice__content{margin:0}.wp-block-premium-content-logged-out-view .wp-block-jetpack-recurring-payments{display:inline-block;margin-inline-end:.5em}.wp-block-premium-content-login-button.aligncenter{align-items:center;display:flex;justify-content:center}.wp-block-premium-content-login-button.alignright{float:right}.wp-block-jetpack-button.is-style-outline .wp-block-button__link,.wp-block-premium-content-login-button.is-style-outline .wp-block-button__link{background-color:unset;color:#2f2f2f}.wp-block-premium-content-logged-out-view__buttons{display:flex;margin-top:20px}.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{margin-inline-end:20px}@media(min-width:660px){.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{min-width:200px}}
|
||||
@@ -0,0 +1 @@
|
||||
(()=>{var e={72856:(e,t,o)=>{"use strict";o.d(t,{qR:()=>n});let r="";function n(e){if("https://subscribe.wordpress.com"===e.origin&&e.data){const t=JSON.parse(e.data);if(t&&t.result&&t.result.jwt_token&&(r=t.result.jwt_token,s(r)),t&&"close"===t.action&&r)window.location.reload(!0);else if(t&&"close"===t.action){window.removeEventListener("message",n);document.getElementById("memberships-modal-window").close(),document.body.classList.remove("jetpack-memberships-modal-open")}}}const s=function(e){const t=new Date,o=new Date(t.setMonth(t.getMonth()+1));document.cookie=`wp-jp-premium-content-session=${e}; expires=${o.toGMTString()}; path=/`}},79366:(e,t,o)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(o.p=window.Jetpack_Block_Assets_Base_Url)}},t={};function o(r){var n=t[r];if(void 0!==n)return n.exports;var s=t[r]={exports:{}};return e[r](s,s.exports,o),s.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e+"../"})(),(()=>{"use strict";o(79366)})(),(()=>{"use strict";var e=o(72856);document.addEventListener("DOMContentLoaded",(function(){"undefined"!=typeof window&&window.addEventListener("message",e.qR,!1)}))})()})();
|
||||
@@ -0,0 +1 @@
|
||||
.wp-block-premium-content-container .components-notice-list .components-notice__content{margin:0}.wp-block-premium-content-logged-out-view .wp-block-jetpack-recurring-payments{display:inline-block;margin-inline-end:.5em}.wp-block-premium-content-login-button.aligncenter{align-items:center;display:flex;justify-content:center}.wp-block-premium-content-login-button.alignright{float:left}.wp-block-jetpack-button.is-style-outline .wp-block-button__link,.wp-block-premium-content-login-button.is-style-outline .wp-block-button__link{background-color:unset;color:#2f2f2f}.wp-block-premium-content-logged-out-view__buttons{display:flex;margin-top:20px}.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{margin-inline-end:20px}@media(min-width:660px){.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{min-width:200px}}
|
||||
Reference in New Issue
Block a user