Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flexseth/simple-date-block
A really simple date block for WordPress. Simply shows todays date. Recommended placement is in the header or footer.
https://github.com/flexseth/simple-date-block
Last synced: about 1 hour ago
JSON representation
A really simple date block for WordPress. Simply shows todays date. Recommended placement is in the header or footer.
- Host: GitHub
- URL: https://github.com/flexseth/simple-date-block
- Owner: flexseth
- License: gpl-3.0
- Created: 2022-11-06T13:24:20.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-14T20:27:48.000Z (over 1 year ago)
- Last Synced: 2024-10-09T23:21:37.167Z (about 1 month ago)
- Language: JavaScript
- Size: 26.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Date Block
A really simple date block that outputs the current date based on how the user has their WordPress installation configured to show dates.This is a proof of concept, and showcases use of dynamic block building and using php to render.
### TODO
- [ ] Sanitize Output
- [ ] Internationalization
- [ ] Formatting / block controls
- [ ] Test in header, main, sidebar footer templates
- [ ] Add option to allow block to render in users locale, instead of site timezone### Block Editor
- [ ] Backend UI (edit.js) - Server Side render on admin, or pull from save attributes### Customize surrounding text
- Toggle "Today's Date is " on and off
- Allow custom before and after text.### Roadmap
- Allow users to set custom date format
- Styleable
- Match to theme styles
- Create JavaScript version
- Caching?