Changeset 3372873
- Timestamp:
- 10/04/2025 02:58:18 PM (5 months ago)
- Location:
- cp-blocks-for-acf
- Files:
-
- 4 edited
- 1 copied
-
tags/0.4.1 (copied) (copied from cp-blocks-for-acf/trunk)
-
tags/0.4.1/assets/cp-blocks-for-acf.css (modified) (2 diffs)
-
tags/0.4.1/assets/cp-blocks-for-acf.js (modified) (1 diff)
-
trunk/assets/cp-blocks-for-acf.css (modified) (2 diffs)
-
trunk/assets/cp-blocks-for-acf.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cp-blocks-for-acf/tags/0.4.1/assets/cp-blocks-for-acf.css
r3346583 r3372873 26 26 margin-left: -25px; 27 27 left: 3em; 28 bottom: - 3em;28 bottom: -28px; 29 29 } 30 30 .cpblocksforacf-new-layout { … … 48 48 } 49 49 50 /* for block themes */ 51 body.block-editor-page .cpblocksforacf-popup { 52 bottom: -16px; 53 } 54 body.block-editor-page .cpblocksforacf-popup a { 55 width: initial !important; 56 } 57 50 58 /* for ACF 6.5 */ 51 59 .acf-more-layout-actions li a[data-action=copy-layout]::before { -
cp-blocks-for-acf/tags/0.4.1/assets/cp-blocks-for-acf.js
r3346583 r3372873 93 93 // handle click on "copy layout" 94 94 onLayoutCopy(e, $el) { 95 const $target = $(e.target); 96 97 // Vars 95 const $target = CpBlocksForACF.isVer65 96 ? $('.acf-more-layout-actions').data().acf.data.target // for ACF 6.5+ we must find $target in data 97 : $(e.target); 98 99 // vars 98 100 const $layout = $target.closest('.layout').clone(); 99 101 const source = $target.closest('.acf-flexible-content').find('> input[type=hidden]').attr('name'); 100 102 101 // Fix content103 // fix content 102 104 CpBlocksForACF.fixInputs($layout); 103 105 CpBlocksForACF.cleanLayouts($layout); 104 106 105 // Get layout data107 // get layout data 106 108 const data = JSON.stringify({ 107 109 domain: window.location.origin, -
cp-blocks-for-acf/trunk/assets/cp-blocks-for-acf.css
r3346583 r3372873 26 26 margin-left: -25px; 27 27 left: 3em; 28 bottom: - 3em;28 bottom: -28px; 29 29 } 30 30 .cpblocksforacf-new-layout { … … 48 48 } 49 49 50 /* for block themes */ 51 body.block-editor-page .cpblocksforacf-popup { 52 bottom: -16px; 53 } 54 body.block-editor-page .cpblocksforacf-popup a { 55 width: initial !important; 56 } 57 50 58 /* for ACF 6.5 */ 51 59 .acf-more-layout-actions li a[data-action=copy-layout]::before { -
cp-blocks-for-acf/trunk/assets/cp-blocks-for-acf.js
r3346583 r3372873 93 93 // handle click on "copy layout" 94 94 onLayoutCopy(e, $el) { 95 const $target = $(e.target); 96 97 // Vars 95 const $target = CpBlocksForACF.isVer65 96 ? $('.acf-more-layout-actions').data().acf.data.target // for ACF 6.5+ we must find $target in data 97 : $(e.target); 98 99 // vars 98 100 const $layout = $target.closest('.layout').clone(); 99 101 const source = $target.closest('.acf-flexible-content').find('> input[type=hidden]').attr('name'); 100 102 101 // Fix content103 // fix content 102 104 CpBlocksForACF.fixInputs($layout); 103 105 CpBlocksForACF.cleanLayouts($layout); 104 106 105 // Get layout data107 // get layout data 106 108 const data = JSON.stringify({ 107 109 domain: window.location.origin,
Note: See TracChangeset
for help on using the changeset viewer.