-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5c3e3be
commit c703c82
Showing
7 changed files
with
82 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
## Branch 2.X ## | ||
|
||
### 2.1.0 ### | ||
|
||
* Added: `wp-skltn` component wrapper around the settings elements | ||
* Added: additional description to the base theme settings | ||
* Changed: empty values within customizer take presendence over base theme (empty values cause the css rule to be deleted if exist) | ||
|
||
### 2.0.0 ### | ||
|
||
* Re-created from scratch as standalone component | ||
|
||
## Branch 1.X ## | ||
|
||
Legacy ThemeCustomizer as part of the Enlighter WordPress Plugin `<= v3` |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
// ---------------------------------------------------------------------- | ||
// This Source Code Form is subject to the terms of the Mozilla Public | ||
// License, v. 2.0. If a copy of the MPL was not distributed with this | ||
// file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
// -- | ||
// Copyright 2019-2020 Andi Dittrich <https://andidittrich.de> | ||
// ---------------------------------------------------------------------- | ||
|
||
// Internal "ReactDOM" | ||
import * as React from 'dom-magic'; | ||
|
||
import {WPFormWrapper} from '../forms/wp-wrapper.jsx'; | ||
import {FormButton} from '../forms/button.jsx'; | ||
|
||
// wrap child elements into div container | ||
export class ThemeLoadButton{ | ||
|
||
// eslint-disable-next-line constructor-super | ||
constructor(props){ | ||
this.el = null; | ||
this.onChange = props.onChange; | ||
this.props = props || {}; | ||
this.uid="h802zfh8"; | ||
this.props.title="Load styles"; | ||
this.props.label=""; | ||
this.props.description="After selecting a base theme you have to load the styles into the customizer. This will remove all previous settings!" | ||
} | ||
|
||
setValue(v){ | ||
this.value=v; | ||
this.el.value=v; | ||
} | ||
|
||
render(){ | ||
|
||
// create stateless dom element | ||
this.el = <FormButton id={this.uid} onClick={this.props.onClick} label="load" className="button button-primary" />; | ||
|
||
// return dom element | ||
return <WPFormWrapper type="text" uid={this.uid} label={this.props.label} description={this.props.description} title={this.props.title}> | ||
{this.el} | ||
</WPFormWrapper>; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters