This commit is contained in:
emmymayo
2025-02-05 23:15:46 +01:00
commit 7269c99357
16995 changed files with 3389680 additions and 0 deletions
@@ -0,0 +1,77 @@
{
"$schema": "https://schemas.wp.org/trunk/block.json",
"apiVersion": 3,
"name": "jetpack/top-posts",
"title": "Top Posts & Pages",
"description": "Display your most popular content.",
"keywords": [
"ranking",
"views",
"trending",
"popular"
],
"version": "1.0",
"textdomain": "jetpack",
"category": "embed",
"icon": "<svg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px'><rect fill='none' height='24' width='24'/><path d='M19,5h-2V3H7v2H5C3.9,5,3,5.9,3,7v1c0,2.55,1.92,4.63,4.39,4.94c0.63,1.5,1.98,2.63,3.61,2.96V19H7v2h10v-2h-4v-3.1 c1.63-0.33,2.98-1.46,3.61-2.96C19.08,12.63,21,10.55,21,8V7C21,5.9,20.1,5,19,5z M5,8V7h2v3.82C5.84,10.4,5,9.3,5,8z M19,8 c0,1.3-0.84,2.4-2,2.82V7h2V8z'/></svg>",
"supports": {
"align": [
"wide",
"full"
],
"html": false,
"multiple": true,
"reusable": true,
"color": {
"gradients": true,
"link": true
},
"spacing": {
"margin": true,
"padding": true
},
"typography": {
"__experimentalFontFamily": true,
"fontSize": true,
"lineHeight": true
}
},
"attributes": {
"layout": {
"type": "string",
"default": "grid"
},
"displayAuthor": {
"type": "boolean",
"default": true
},
"displayDate": {
"type": "boolean",
"default": true
},
"displayThumbnail": {
"type": "boolean",
"default": true
},
"displayContext": {
"type": "boolean",
"default": false
},
"period": {
"type": "string",
"default": "7"
},
"postsToShow": {
"type": "number",
"default": 3
},
"postTypes": {
"type": "object",
"default": {
"post": true,
"page": true
}
}
},
"editorScript": "jetpack-blocks-editor"
}
@@ -0,0 +1 @@
<?php return array('dependencies' => array(), 'version' => 'acdb4ccfec08b62c30cc');
@@ -0,0 +1 @@
.wp-block-jetpack-top-posts{margin-bottom:1.5em}.wp-block-jetpack-top-posts img{width:100%}.wp-block-jetpack-top-posts span{display:block;word-wrap:break-word}.wp-block-jetpack-top-posts.is-list-layout .jetpack-top-posts-item{margin-bottom:1.5em}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper{align-items:flex-start;display:grid;gap:16px 12px;grid:auto/repeat(6,1fr)}@media only screen and (max-width:600px){.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper{display:block}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper .jetpack-top-posts-mock-thumbnail{display:none}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper .jetpack-top-posts-item{margin-bottom:1.5em}}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-mock-thumbnail{background-color:#f0f0f0;height:0;padding-bottom:75%;position:relative;width:100%}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-thumbnail{aspect-ratio:4/3;height:auto;max-width:100%;object-fit:cover}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-item{grid-column:span 2}.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="2"] .jetpack-top-posts-item,.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="4"] .jetpack-top-posts-item,.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="5"] .jetpack-top-posts-item:nth-child(5n),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="5"] .jetpack-top-posts-item:nth-child(5n-1),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(5n),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(5n-1),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(7n),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(7n-1){grid-column:span 3}
@@ -0,0 +1 @@
(()=>{var t={79366:(t,r,e)=>{"object"==typeof window&&window.Jetpack_Block_Assets_Base_Url&&(e.p=window.Jetpack_Block_Assets_Base_Url)}},r={};function e(o){var n=r[o];if(void 0!==n)return n.exports;var i=r[o]={exports:{}};return t[o](i,i.exports,e),i.exports}e.n=t=>{var r=t&&t.__esModule?()=>t.default:()=>t;return e.d(r,{a:r}),r},e.d=(t,r)=>{for(var o in r)e.o(r,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:r[o]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),e.o=(t,r)=>Object.prototype.hasOwnProperty.call(t,r),(()=>{var t;e.g.importScripts&&(t=e.g.location+"");var r=e.g.document;if(!t&&r&&(r.currentScript&&"SCRIPT"===r.currentScript.tagName.toUpperCase()&&(t=r.currentScript.src),!t)){var o=r.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=o[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e.p=t+"../"})(),(()=>{"use strict";e(79366)})()})();
@@ -0,0 +1 @@
.wp-block-jetpack-top-posts{margin-bottom:1.5em}.wp-block-jetpack-top-posts img{width:100%}.wp-block-jetpack-top-posts span{display:block;word-wrap:break-word}.wp-block-jetpack-top-posts.is-list-layout .jetpack-top-posts-item{margin-bottom:1.5em}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper{align-items:flex-start;display:grid;gap:16px 12px;grid:auto/repeat(6,1fr)}@media only screen and (max-width:600px){.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper{display:block}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper .jetpack-top-posts-mock-thumbnail{display:none}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-wrapper .jetpack-top-posts-item{margin-bottom:1.5em}}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-mock-thumbnail{background-color:#f0f0f0;height:0;padding-bottom:75%;position:relative;width:100%}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-thumbnail{aspect-ratio:4/3;height:auto;max-width:100%;object-fit:cover}.wp-block-jetpack-top-posts.is-grid-layout .jetpack-top-posts-item{grid-column:span 2}.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="2"] .jetpack-top-posts-item,.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="4"] .jetpack-top-posts-item,.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="5"] .jetpack-top-posts-item:nth-child(5n),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="5"] .jetpack-top-posts-item:nth-child(5n-1),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(5n),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(5n-1),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(7n),.wp-block-jetpack-top-posts.is-grid-layout[data-item-count="7"] .jetpack-top-posts-item:nth-child(7n-1){grid-column:span 3}