diff options
Diffstat (limited to 'plugins/jetpack/_inc/blocks/premium-content')
4 files changed, 4 insertions, 0 deletions
diff --git a/plugins/jetpack/_inc/blocks/premium-content/view.asset.php b/plugins/jetpack/_inc/blocks/premium-content/view.asset.php new file mode 100644 index 00000000..a83291f6 --- /dev/null +++ b/plugins/jetpack/_inc/blocks/premium-content/view.asset.php @@ -0,0 +1 @@ +<?php return array('dependencies' => array('wp-polyfill'), 'version' => '459d69f1e48d569018a1d7765db92528');
\ No newline at end of file diff --git a/plugins/jetpack/_inc/blocks/premium-content/view.css b/plugins/jetpack/_inc/blocks/premium-content/view.css new file mode 100644 index 00000000..ca5116fd --- /dev/null +++ b/plugins/jetpack/_inc/blocks/premium-content/view.css @@ -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-right:.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-premium-content-logged-out-view__buttons{display:flex;margin-top:20px}.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{margin-right:20px}@media(min-width:660px){.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{min-width:200px}}
\ No newline at end of file diff --git a/plugins/jetpack/_inc/blocks/premium-content/view.js b/plugins/jetpack/_inc/blocks/premium-content/view.js new file mode 100644 index 00000000..d37af8a6 --- /dev/null +++ b/plugins/jetpack/_inc/blocks/premium-content/view.js @@ -0,0 +1 @@ +!function(){var t={57836:function(t,e,n){"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&window.Jetpack_Block_Assets_Base_Url.url&&(n.p=window.Jetpack_Block_Assets_Base_Url.url)}},e={};function n(o){var r=e[o];if(void 0!==r)return r.exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},function(){var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");o.length&&(t=o[o.length-1].src)}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t+"../"}(),function(){"use strict";n(57836)}(),function(){"use strict";document.addEventListener("DOMContentLoaded",(function(){let t="";"undefined"!=typeof window&&window.addEventListener("message",(function(e){if("https://subscribe.wordpress.com"===e.origin&&e.data){const n=JSON.parse(e.data);if(n&&n.result&&n.result.jwt_token){t=n.result.jwt_token;const e=new Date;e.setTime(e.getTime()+31536e6),document.cookie="jp-premium-content-session="+t+"; expires="+e.toGMTString()+"; path=/"}n&&"close"===n.action&&t&&(document.location.href=function(t,e,n){const o=new RegExp("([?&])"+e+"=.*?(&|$)","i"),r=-1!==t.indexOf("?")?"&":"?";return t.match(o)?t.replace(o,"$1"+e+"="+n+"$2"):t+r+e+"="+n}(document.location.href,"token",t))}}),!1)}))}()}();
\ No newline at end of file diff --git a/plugins/jetpack/_inc/blocks/premium-content/view.rtl.css b/plugins/jetpack/_inc/blocks/premium-content/view.rtl.css new file mode 100644 index 00000000..af5b9a13 --- /dev/null +++ b/plugins/jetpack/_inc/blocks/premium-content/view.rtl.css @@ -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-left:.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-premium-content-logged-out-view__buttons{display:flex;margin-top:20px}.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{margin-left:20px}@media(min-width:660px){.wp-block-premium-content-logged-out-view__buttons .wp-block-button__link{min-width:200px}}
\ No newline at end of file |