@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.
@@ -22,7 +22,7 @@
22
22
  <div
23
23
  class="{{blockClassName}}__title">
24
24
  <!-- site-copyright-notice -->
25
- {{options.site_copyright_notice|default('@Total Onion')}}
25
+ {{options.site_copyright_notice_v3|default('@Total Onion')}}
26
26
  <!-- end-site-copyright-notice -->
27
27
  </div>
28
28
  {% endif %}
@@ -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/admin-extras/${componentModuleName}.php`
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@total_onion/onion-library",
3
- "version": "2.0.166",
3
+ "version": "2.0.167",
4
4
  "description": "Component library",
5
5
  "main": "index.js",
6
6
  "scripts": {