@total_onion/onion-library 2.0.166 → 2.0.167
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/block-site-copyright-notice-v3/site-copyright-notice-v3.twig +1 -1
- package/install-component.js +7 -3
- package/package.json +1 -1
- /package/components/{fields-block-editor-assets-v3 → core-block-editor-assets-v3}/block-editor-assets-v3.php +0 -0
- /package/components/{fields-core-typography-v3 → core-core-typography-v3}/core-typography-v3.php +0 -0
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
<div
|
|
23
23
|
class="{{blockClassName}}__title">
|
|
24
24
|
<!-- site-copyright-notice -->
|
|
25
|
-
{{options.
|
|
25
|
+
{{options.site_copyright_notice_v3|default('@Total Onion')}}
|
|
26
26
|
<!-- end-site-copyright-notice -->
|
|
27
27
|
</div>
|
|
28
28
|
{% endif %}
|
package/install-component.js
CHANGED
|
@@ -3,8 +3,7 @@ const glob = require('glob');
|
|
|
3
3
|
const yargs = require('yargs');
|
|
4
4
|
|
|
5
5
|
let projectName = 'Global Theme';
|
|
6
|
-
const libraryPath =
|
|
7
|
-
'./node_modules/@total_onion/onion-library'
|
|
6
|
+
const libraryPath = './node_modules/@total_onion/onion-library';
|
|
8
7
|
const projectJson = JSON.parse(fs.readFileSync('./package.json'));
|
|
9
8
|
if (projectJson) {
|
|
10
9
|
projectName = projectJson.name;
|
|
@@ -154,7 +153,12 @@ if (
|
|
|
154
153
|
if (componentType === 'admin' || componentType === 'fields') {
|
|
155
154
|
fs.copyFileSync(
|
|
156
155
|
`${libraryPath}/components/${componentName}/${componentModuleName}.php`,
|
|
157
|
-
`./web/wp-content/themes/global-theme/inc/
|
|
156
|
+
`./web/wp-content/themes/global-theme/inc/custom-extras/${componentModuleName}.php`
|
|
157
|
+
);
|
|
158
|
+
} else if (componentType === 'core') {
|
|
159
|
+
fs.copyFileSync(
|
|
160
|
+
`${libraryPath}/components/${componentName}/${componentModuleName}.php`,
|
|
161
|
+
`./web/wp-content/themes/global-theme/inc/project-setup/core-functions/${componentModuleName}.php`
|
|
158
162
|
);
|
|
159
163
|
} else {
|
|
160
164
|
fs.copyFileSync(
|
package/package.json
CHANGED
|
File without changes
|
/package/components/{fields-core-typography-v3 → core-core-typography-v3}/core-typography-v3.php
RENAMED
|
File without changes
|