diff --git a/plugins/dynamiques-blocks/build/blocks-manifest.php b/plugins/dynamiques-blocks/build/blocks-manifest.php index 71737cc..53777c1 100644 --- a/plugins/dynamiques-blocks/build/blocks-manifest.php +++ b/plugins/dynamiques-blocks/build/blocks-manifest.php @@ -14,7 +14,11 @@ return array( ), 'supports' => array( - 'html' => false + 'html' => false, + 'color' => array( + 'background' => true, + 'text' => true + ) ), 'textdomain' => 'dernieres-dynamiques', 'editorScript' => 'file:./index.js', @@ -26,6 +30,10 @@ return array( 'displayType' => array( 'type' => 'string', 'default' => 'grid' + ), + 'showTableOfContents' => array( + 'type' => 'boolean', + 'default' => true ) ) ), diff --git a/plugins/dynamiques-blocks/build/dernieres-dynamiques/block.json b/plugins/dynamiques-blocks/build/dernieres-dynamiques/block.json index 2cf3625..c9f5692 100644 --- a/plugins/dynamiques-blocks/build/dernieres-dynamiques/block.json +++ b/plugins/dynamiques-blocks/build/dernieres-dynamiques/block.json @@ -9,7 +9,11 @@ "description": "Example block scaffolded with Create Block tool.", "example": {}, "supports": { - "html": false + "html": false, + "color": { + "background": true, + "text": true + } }, "textdomain": "dernieres-dynamiques", "editorScript": "file:./index.js", @@ -21,6 +25,10 @@ "displayType": { "type": "string", "default": "grid" + }, + "showTableOfContents": { + "type": "boolean", + "default": true } } } \ No newline at end of file diff --git a/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.asset.php b/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.asset.php index 8afa4fa..424da3d 100644 --- a/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.asset.php +++ b/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.asset.php @@ -1 +1 @@ - array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => 'dd3694142dcbdb8c8bb7'); + array('react-jsx-runtime', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-i18n', 'wp-server-side-render'), 'version' => '79dc145297e0d0e5c73e'); diff --git a/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js b/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js index e1ed424..93cf2c3 100644 --- a/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js +++ b/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js @@ -8,7 +8,7 @@ \*********************************************/ /***/ ((module) => { -module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"dynamiques-blocks/dernieres-dynamiques","version":"0.1.0","title":"Dernieres Dynamiques","category":"dynamiques-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false},"textdomain":"dernieres-dynamiques","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php","attributes":{"displayType":{"type":"string","default":"grid"}}}'); +module.exports = /*#__PURE__*/JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"dynamiques-blocks/dernieres-dynamiques","version":"0.1.0","title":"Dernieres Dynamiques","category":"dynamiques-blocks","icon":"smiley","description":"Example block scaffolded with Create Block tool.","example":{},"supports":{"html":false,"color":{"background":true,"text":true}},"textdomain":"dernieres-dynamiques","editorScript":"file:./index.js","editorStyle":"file:./index.css","style":"file:./style-index.css","viewScript":"file:./view.js","render":"file:./render.php","attributes":{"displayType":{"type":"string","default":"grid"},"showTableOfContents":{"type":"boolean","default":true}}}'); /***/ }), @@ -44,18 +44,24 @@ function Edit({ setAttributes }) { const { - displayType + displayType, + showTableOfContents = true } = attributes; function onDisplayTypeChange(value) { setAttributes({ displayType: value }); } + function onShowTableOfContentsChange(value) { + setAttributes({ + showTableOfContents: !showTableOfContents + }); + } return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.Fragment, { children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.InspectorControls, { - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { + children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.PanelBody, { title: (0,_wordpress_i18n__WEBPACK_IMPORTED_MODULE_0__.__)("Paramètres", "dernieres-dynamiques"), - children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { + children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.__experimentalToggleGroupControl, { className: "homegrade-blocks-highlight__variant", isBlock: true, label: "Type d'affichage des posts", @@ -68,7 +74,11 @@ function Edit({ label: "Grille", value: "grid" })] - }) + }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)(_wordpress_components__WEBPACK_IMPORTED_MODULE_2__.CheckboxControl, { + label: "Afficher la table des mati\xE8res", + checked: showTableOfContents, + onChange: onShowTableOfContentsChange + })] }) }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsx)("div", { ...(0,_wordpress_block_editor__WEBPACK_IMPORTED_MODULE_1__.useBlockProps)({ diff --git a/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js.map b/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js.map index 403e199..26a3e85 100644 --- a/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js.map +++ b/plugins/dynamiques-blocks/build/dernieres-dynamiques/index.js.map @@ -1 +1 @@ -{"version":3,"file":"dernieres-dynamiques/index.js","mappings":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ACA,uDAAuD,iBAAiB;WACxE;WACA,gDAAgD,aAAa;WAC7D,E;;;;;WCNA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://dynamiques-blocks/./src/dernieres-dynamiques/edit.js","webpack://dynamiques-blocks/./src/dernieres-dynamiques/editor.scss","webpack://dynamiques-blocks/./src/dernieres-dynamiques/index.js","webpack://dynamiques-blocks/./src/dernieres-dynamiques/save.js","webpack://dynamiques-blocks/./src/dernieres-dynamiques/style.scss","webpack://dynamiques-blocks/external window [\"wp\",\"blockEditor\"]","webpack://dynamiques-blocks/external window [\"wp\",\"blocks\"]","webpack://dynamiques-blocks/external window [\"wp\",\"components\"]","webpack://dynamiques-blocks/external window [\"wp\",\"i18n\"]","webpack://dynamiques-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://dynamiques-blocks/external window \"ReactJSXRuntime\"","webpack://dynamiques-blocks/webpack/bootstrap","webpack://dynamiques-blocks/webpack/runtime/chunk loaded","webpack://dynamiques-blocks/webpack/runtime/compat get default export","webpack://dynamiques-blocks/webpack/runtime/define property getters","webpack://dynamiques-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://dynamiques-blocks/webpack/runtime/make namespace object","webpack://dynamiques-blocks/webpack/runtime/jsonp chunk loading","webpack://dynamiques-blocks/webpack/before-startup","webpack://dynamiques-blocks/webpack/startup","webpack://dynamiques-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { InspectorControls, useBlockProps } from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tCheckboxControl,\n\tToggleControl,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nimport \"./editor.scss\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { displayType } = attributes;\n\n\tfunction onDisplayTypeChange(value) {\n\t\tsetAttributes({ displayType: value });\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { useBlockProps } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @return {Element} Element to render.\n */\nexport default function save() {\n\treturn (\n\t\t

\n\t\t\t{ 'Dernieres Dynamiques – hello from the saved content!' }\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"dernieres-dynamiques/index\": 0,\n\t\"dernieres-dynamiques/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkdynamiques_blocks\"] = globalThis[\"webpackChunkdynamiques_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"dernieres-dynamiques/style-index\"], () => (__webpack_require__(\"./src/dernieres-dynamiques/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","InspectorControls","useBlockProps","PanelBody","CheckboxControl","ToggleControl","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","ServerSideRender","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","displayType","onDisplayTypeChange","value","children","title","className","isBlock","label","onChange","block","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","fill","xmlns","d","foreground","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file +{"version":3,"file":"dernieres-dynamiques/index.js","mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAqC;AACsC;AAO5C;AACR;AACsC;AAAA;AAE9C,SAASiB,IAAIA,CAAC;EAAEC,UAAU;EAAEC;AAAc,CAAC,EAAE;EAC3D,MAAM;IAAEC,WAAW;IAAEC,mBAAmB,GAAG;EAAK,CAAC,GAAGH,UAAU;EAE9D,SAASI,mBAAmBA,CAACC,KAAK,EAAE;IACnCJ,aAAa,CAAC;MAAEC,WAAW,EAAEG;IAAM,CAAC,CAAC;EACtC;EAEA,SAASC,2BAA2BA,CAACD,KAAK,EAAE;IAC3CJ,aAAa,CAAC;MAAEE,mBAAmB,EAAE,CAACA;IAAoB,C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AEA;;WAEA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA;WACA,MAAM,qBAAqB;WAC3B;WACA;WACA;WACA;WACA;WACA;WACA;WACA;;WAEA;WACA;WACA,4G;;;;;UEjDA;UACA;UACA;UACA;UACA","sources":["webpack://dynamiques-blocks/./src/dernieres-dynamiques/edit.js","webpack://dynamiques-blocks/./src/dernieres-dynamiques/editor.scss","webpack://dynamiques-blocks/./src/dernieres-dynamiques/index.js","webpack://dynamiques-blocks/./src/dernieres-dynamiques/save.js","webpack://dynamiques-blocks/./src/dernieres-dynamiques/style.scss","webpack://dynamiques-blocks/external window [\"wp\",\"blockEditor\"]","webpack://dynamiques-blocks/external window [\"wp\",\"blocks\"]","webpack://dynamiques-blocks/external window [\"wp\",\"components\"]","webpack://dynamiques-blocks/external window [\"wp\",\"i18n\"]","webpack://dynamiques-blocks/external window [\"wp\",\"serverSideRender\"]","webpack://dynamiques-blocks/external window \"ReactJSXRuntime\"","webpack://dynamiques-blocks/webpack/bootstrap","webpack://dynamiques-blocks/webpack/runtime/chunk loaded","webpack://dynamiques-blocks/webpack/runtime/compat get default export","webpack://dynamiques-blocks/webpack/runtime/define property getters","webpack://dynamiques-blocks/webpack/runtime/hasOwnProperty shorthand","webpack://dynamiques-blocks/webpack/runtime/make namespace object","webpack://dynamiques-blocks/webpack/runtime/jsonp chunk loading","webpack://dynamiques-blocks/webpack/before-startup","webpack://dynamiques-blocks/webpack/startup","webpack://dynamiques-blocks/webpack/after-startup"],"sourcesContent":["import { __ } from \"@wordpress/i18n\";\nimport { InspectorControls, useBlockProps } from \"@wordpress/block-editor\";\nimport {\n\tPanelBody,\n\tCheckboxControl,\n\tToggleControl,\n\t__experimentalToggleGroupControl as ToggleGroupControl,\n\t__experimentalToggleGroupControlOption as ToggleGroupControlOption,\n} from \"@wordpress/components\";\nimport \"./editor.scss\";\nimport ServerSideRender from \"@wordpress/server-side-render\";\n\nexport default function Edit({ attributes, setAttributes }) {\n\tconst { displayType, showTableOfContents = true } = attributes;\n\n\tfunction onDisplayTypeChange(value) {\n\t\tsetAttributes({ displayType: value });\n\t}\n\n\tfunction onShowTableOfContentsChange(value) {\n\t\tsetAttributes({ showTableOfContents: !showTableOfContents });\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t\t
\n\t\t\t\t\n\t\t\t
\n\t\t\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","import { registerBlockType } from \"@wordpress/blocks\";\nimport \"./style.scss\";\n\nimport Edit from \"./edit\";\nimport save from \"./save\";\nimport metadata from \"./block.json\";\n\nregisterBlockType(metadata.name, {\n\ticon: {\n\t\tsrc: (\n\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t),\n\t\tforeground: \"#136f63\",\n\t},\n\tedit: Edit,\n\tsave,\n});\n","/**\n * React hook that is used to mark the block wrapper element.\n * It provides all the necessary props like the class name.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/packages/packages-block-editor/#useblockprops\n */\nimport { useBlockProps } from '@wordpress/block-editor';\n\n/**\n * The save function defines the way in which the different attributes should\n * be combined into the final markup, which is then serialized by the block\n * editor into `post_content`.\n *\n * @see https://developer.wordpress.org/block-editor/reference-guides/block-api/block-edit-save/#save\n *\n * @return {Element} Element to render.\n */\nexport default function save() {\n\treturn (\n\t\t

\n\t\t\t{ 'Dernieres Dynamiques – hello from the saved content!' }\n\t\t

\n\t);\n}\n","// extracted by mini-css-extract-plugin\nexport {};","module.exports = window[\"wp\"][\"blockEditor\"];","module.exports = window[\"wp\"][\"blocks\"];","module.exports = window[\"wp\"][\"components\"];","module.exports = window[\"wp\"][\"i18n\"];","module.exports = window[\"wp\"][\"serverSideRender\"];","module.exports = window[\"ReactJSXRuntime\"];","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t\"dernieres-dynamiques/index\": 0,\n\t\"dernieres-dynamiques/style-index\": 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = globalThis[\"webpackChunkdynamiques_blocks\"] = globalThis[\"webpackChunkdynamiques_blocks\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [\"dernieres-dynamiques/style-index\"], () => (__webpack_require__(\"./src/dernieres-dynamiques/index.js\")))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n",""],"names":["__","InspectorControls","useBlockProps","PanelBody","CheckboxControl","ToggleControl","__experimentalToggleGroupControl","ToggleGroupControl","__experimentalToggleGroupControlOption","ToggleGroupControlOption","ServerSideRender","jsx","_jsx","jsxs","_jsxs","Fragment","_Fragment","Edit","attributes","setAttributes","displayType","showTableOfContents","onDisplayTypeChange","value","onShowTableOfContentsChange","children","title","className","isBlock","label","onChange","checked","block","registerBlockType","save","metadata","name","icon","src","width","height","viewBox","fill","xmlns","d","foreground","edit"],"ignoreList":[],"sourceRoot":""} \ No newline at end of file diff --git a/plugins/dynamiques-blocks/build/dernieres-dynamiques/render.php b/plugins/dynamiques-blocks/build/dernieres-dynamiques/render.php index 69c4f55..9dfa755 100644 --- a/plugins/dynamiques-blocks/build/dernieres-dynamiques/render.php +++ b/plugins/dynamiques-blocks/build/dernieres-dynamiques/render.php @@ -1,6 +1,14 @@ ID); ?> -
+
'block-dernieres-dynamiques content-section block-dernieres-dynamiques--' . $variantLocation . ' alignfull ' . $backgroundColorClass)); ?>>

@@ -84,80 +92,82 @@ $issue_related_articles = get_field('articles', $last_issue->ID);

-