180 Commits

Author SHA1 Message Date
a2b001a581
bump version to 1.2.0
Some checks failed
continuous-integration/drone/push Build is failing
2022-01-23 17:28:47 +01:00
e007f53e8c
make script evaluation optional
Some checks failed
continuous-integration/drone/push Build is failing
2022-01-23 17:07:37 +01:00
6ac1f85739
add support for embedded script execution in tick content (#14) (#20)
Evaluate embedded SCRIPT-tags in tick content or move them to the
document head for referenced resources.
2022-01-23 16:50:58 +01:00
f50dfe92c7 add optional shortcode support for tick content (#18) (#19)
Some checks failed
continuous-integration/drone/push Build is failing
If the new option is enabled, tick content will be piped through
do_shortcode() to parse nested shortcode content. Disabled by default
as it is not necessary in most cases.
2022-01-23 12:41:29 +01:00
109efd341b
ci: run tests for pull requests, too 2022-01-23 12:37:27 +01:00
fa936d3f54 fix date rendering in API callback
Some checks failed
continuous-integration/drone/push Build is failing
THe callback function gets a prepared data array as input while
get_the_modified_date expects an ID or WP_Post object. We now use
DateTime::parse directly instead of taking another round loading the
post data.
2022-01-22 19:53:16 +01:00
e607ae270f update dev environment
All checks were successful
continuous-integration/drone/push Build is passing
* remove remaining Robo calls from Composer scripts
* update WP test bootstrap
* update dev dependencies
2021-10-18 20:00:49 +02:00
caf471d3bf ci: add WP 5.8 to automated test roster
All checks were successful
continuous-integration/drone/push Build is passing
2021-10-18 19:38:10 +02:00
2cc277638f re-enable default pagination in API if "limit" is not specified
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-22 19:17:17 +02:00
2a228fc39c remove package locks and Robo configuration
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-22 18:27:18 +02:00
2cb4b62df3 start unit test implementation 2021-05-22 18:15:07 +02:00
b054dfaba2 fix typehint for lastPoll field in JavaScript
All checks were successful
continuous-integration/drone/push Build is passing
2021-05-19 19:31:44 +02:00
718dc18c35 use GitHub actions for CI and automate Sonarcloud analysis 2021-05-18 20:22:20 +02:00
c2c7846beb dev-dependency updates 2021-05-18 20:17:32 +02:00
d88b28343b use "stable" branch instead of "master" 2021-05-18 20:01:40 +02:00
944c2dd6c1 rework update schedule, update existing ticks, use insertBefore()
All checks were successful
continuous-integration/drone/push Build is passing
Re-triggering the update is now done globally again with lock on
ticker level to avoid concurrent updates.

If a tick with a known ID is received, the markup is now updated, so no
duplicates should appear.

The prepend() function used to update the markup is replaced by
insertBefore() for Internet Explorer compatibility.
2021-04-12 18:09:03 +02:00
b2058dfe96 add unique IDs to ticker containers and ticks in HTML markup
Ticker containers get a consecutive number unique within a markup.
Ticks will get an ID based on this number and the post ID.
2021-04-12 18:09:03 +02:00
8e22b37b46 raise minimum supported WP version to 4.7 2021-04-12 18:09:03 +02:00
68efc83273 refactor frontend to use WP REST API instead of WP AJAX
Query new ticks using GET request to the REST API.
Also we now trigger one request per ticker, if more than one is
available on the same page.

HTML markup (list element, content container) is generated client side,
s.t. we can work on the generic response data model
2021-04-12 18:09:03 +02:00
547fc521d0 add formatted date to REST response and use RFC3339 for the query 2021-04-12 18:09:01 +02:00
ca0311622e introduce query filter for REST API
Enabled WP REST API to query for ticker slug, GMT timestamp and limit
parameter as used by AJAX calls. This is done in preparation for
migration to WP REST instead of WP AJAX.
2021-04-12 18:08:32 +02:00
af609d8928 exclude eslint/stylelint configuration from deployment
All checks were successful
continuous-integration/drone/push Build is passing
v1.1.1
2021-03-20 11:51:59 +01:00
b245b79bc2 introduce GitHub actions for automated plugin/asset deployment
All checks were successful
continuous-integration/drone/push Build is passing
2021-03-20 11:27:22 +01:00
7baff2f5ff update screenshots 2021-03-20 11:23:46 +01:00
5ebd3c55d3 prepare release of v1.1.1 2021-03-20 11:23:41 +01:00
3c52c9eba9 declare compatibility with WP 5.7 2021-03-20 11:13:58 +01:00
dependabot[bot]
6510e4e532 Bump ini from 1.3.5 to 1.3.8
Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.8.
- [Release notes](https://github.com/isaacs/ini/releases)
- [Commits](https://github.com/isaacs/ini/compare/v1.3.5...v1.3.8)

Signed-off-by: dependabot[bot] <support@github.com>
2020-12-19 11:55:08 +01:00
b907d2dc89 add PHP 8.0 to CI roster + minor dev dependency updates
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-06 12:29:30 +01:00
7817f460d2 declare compatibility with WP 5.5
All checks were successful
continuous-integration/drone/push Build is passing
2020-10-27 18:33:54 +01:00
0b53709849 drop PHP 7.2 from CI builds and add nightly 2020-09-09 09:52:18 +02:00
7b57b59861 use Node v12 for CI builds 2020-09-09 09:45:14 +02:00
790ef303bb update devenv 2020-09-09 09:40:35 +02:00
3511146c98 docs: update Travis CI badge 2020-09-09 09:39:27 +02:00
c7d7d27f1c add missing textdomain to taxonomy name 2020-05-22 11:28:54 +02:00
dc366abcc4 Merge branch 'master' into develop 2020-05-02 19:32:01 +02:00
ac8062b262 README++
Some checks failed
continuous-integration/drone/push Build is failing
v1.1.0
2020-05-02 19:16:31 +02:00
10830babcc restore UL element for widget output 2020-05-02 19:16:31 +02:00
0515debed0 prepare release 1.1.0 2020-05-02 19:16:31 +02:00
6700d76528 use colon instead of dot for hour/minute separation 2020-05-02 19:16:31 +02:00
d75b790ccf prepend new elements instead of replacing HTML on AJAX update (#9) (#12)
Replacing the body by prepending HTML results in the full content
being re-rendered. This can be a performance issue, but is definitely
annoying when embedding media in ticks.
2020-05-02 19:16:31 +02:00
04131a1d99 expose ticks through REST API (#7)
Tickers are already exposed for JS integration in Gutenberg. Now ticks
themselves are also available for use with external systems.
2020-05-02 19:16:31 +02:00
4a1197af28 use time() instead of current_datetime() for WP 4.x compatibility (#6)
The function current_datetime() has been introduced in WP 5.3, but
the Plugin should maintain compatibility with 4.x for now.
2020-05-02 19:16:31 +02:00
00f05f3cf6 prepare release 1.1.0 2020-05-02 18:03:53 +02:00
0d26b15afc use colon instead of dot for hour/minute separation 2020-05-01 15:18:54 +02:00
6ed625dab2
prepend new elements instead of replacing HTML on AJAX update (#9) (#12)
Replacing the body by prepending HTML results in the full content
being re-rendered. This can be a performance issue, but is definitely
annoying when embedding media in ticks.
2020-05-01 14:52:25 +02:00
ee60444932
expose ticks through REST API (#7)
Tickers are already exposed for JS integration in Gutenberg. Now ticks
themselves are also available for use with external systems.
2020-04-28 18:21:16 +02:00
cb8cbbf761
use time() instead of current_datetime() for WP 4.x compatibility (#6)
The function current_datetime() has been introduced in WP 5.3, but
the Plugin should maintain compatibility with 4.x for now.
2020-04-28 17:36:57 +02:00
cf65d6d7c3 Merge branch 'develop' 2020-04-10 17:25:54 +02:00
8d0e033ae9 set PHPUnit to 8.x to use same version across all builds
Actually there are no unit tets implemented, however CI builds fail...
2020-04-10 17:17:57 +02:00
4463fa7f1f raise required PHP version to 5.6 2020-04-09 16:38:44 +02:00