-
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.
Merge pull request #10 from sharethis-github/pp-3708-color
add color selector
- Loading branch information
Showing
7 changed files
with
48 additions
and
3 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 |
---|---|---|
@@ -1,5 +1,9 @@ | ||
# Change Log | ||
|
||
## 1.1.0 | ||
|
||
Addition of Inline Share Button color selection. | ||
|
||
## 1.0.0 | ||
|
||
Initial stable release. |
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,36 @@ | ||
<?php | ||
/** | ||
* @author ShareThis | ||
* @copyright Copyright (c) 2022 ShareThis (https://sharethis.com) | ||
* @license https://www.gnu.org/licenses/gpl-3.0.html | ||
* @package ShareThis_ShareButtons | ||
*/ | ||
|
||
namespace ShareThis\ShareButtons\Model\System\Config\Source; | ||
|
||
class InlineColorSelect extends OptionsArray | ||
{ | ||
|
||
public const SOCIAL = 'social'; | ||
|
||
public const WHITE = 'white'; | ||
|
||
public const GRAY = 'gray'; | ||
|
||
public const BLACK = 'black'; | ||
|
||
/** | ||
* Get option map of color options. | ||
* | ||
* @return array Option array map of color options. | ||
*/ | ||
public function getOptionMap(): array | ||
{ | ||
return [ | ||
self::SOCIAL => __('Social'), | ||
self::WHITE => __('White'), | ||
self::GRAY => __('Gray'), | ||
self::BLACK => __('Black'), | ||
]; | ||
} | ||
} |
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