Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
af609d8928 | |||
b245b79bc2 | |||
7baff2f5ff | |||
5ebd3c55d3 | |||
3c52c9eba9 | |||
6510e4e532 | |||
b907d2dc89 | |||
7817f460d2 | |||
0b53709849 | |||
7b57b59861 | |||
790ef303bb | |||
3511146c98 | |||
c7d7d27f1c | |||
dc366abcc4 | |||
00f05f3cf6 | |||
0d26b15afc | |||
6ed625dab2 | |||
ee60444932 | |||
cb8cbbf761 |
20
.distignore
Normal file
@ -0,0 +1,20 @@
|
||||
/.git
|
||||
/.github
|
||||
/assets
|
||||
/node_modules
|
||||
/vendor
|
||||
/.distignore
|
||||
/.drone.yml
|
||||
/.eslintrc.json
|
||||
/.gitattributes
|
||||
/.gitignore
|
||||
/.stylelintrc.json
|
||||
/.travis.yml
|
||||
/composer.json
|
||||
/composer.lock
|
||||
/CONTRIBUTING.md
|
||||
/package.json
|
||||
/package-lock.json
|
||||
/phpcs.xml
|
||||
/phpunit.xml
|
||||
/RoboFile.php
|
27
.drone.yml
@ -3,15 +3,26 @@ name: default
|
||||
type: docker
|
||||
|
||||
steps:
|
||||
- name: pre-build
|
||||
image: composer
|
||||
- name: composer-install
|
||||
image: composer:2
|
||||
commands:
|
||||
- composer install
|
||||
- name: test
|
||||
image: composer
|
||||
commands:
|
||||
- composer test
|
||||
- name: lint
|
||||
image: composer
|
||||
- name: lint-php
|
||||
image: composer:2
|
||||
commands:
|
||||
- composer lint-php
|
||||
depends_on:
|
||||
- composer-install
|
||||
- name: node-install
|
||||
image: node:14
|
||||
commands:
|
||||
- npm ci
|
||||
- name: lint-assets
|
||||
image: node:14
|
||||
commands:
|
||||
- npx eslint scripts/block.js
|
||||
- npx eslint scripts/liveticker.js
|
||||
- npx stylelint styles/block.css
|
||||
- npx stylelint styles/liveticker.css
|
||||
depends_on:
|
||||
- node-install
|
||||
|
@ -8,9 +8,18 @@
|
||||
"wp": "readonly"
|
||||
},
|
||||
"extends": [
|
||||
"plugin:@wordpress/eslint-plugin/recommended",
|
||||
"plugin:@wordpress/eslint-plugin/es5"
|
||||
"plugin:@wordpress/eslint-plugin/custom",
|
||||
"plugin:@wordpress/eslint-plugin/es5",
|
||||
"plugin:@wordpress/eslint-plugin/i18n"
|
||||
],
|
||||
"rules": {
|
||||
"@wordpress/i18n-text-domain": [
|
||||
"error",
|
||||
{
|
||||
"allowedTextDomain": [ "stklcode-liveticker" ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": [
|
||||
|
1
.gitattributes
vendored
@ -1,4 +1,5 @@
|
||||
/assets export-ignore
|
||||
.distignore export-ignore
|
||||
.drone.yml export-ignore
|
||||
.eslintrc.json export-ignore
|
||||
.gitattributes export-ignore
|
||||
|
21
.github/workflows/wordpress-plugin-asset-update.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Plugin asset/readme update
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
jobs:
|
||||
master:
|
||||
name: Push to master
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: php-actions/composer@v5
|
||||
- name: Clean README.md
|
||||
run: tail -n +7 README.md > README.md.tmp && mv README.md.tmp README.md
|
||||
- name: WordPress.org plugin asset/readme update
|
||||
uses: 10up/action-wordpress-plugin-asset-update@stable
|
||||
env:
|
||||
ASSETS_DIR: assets
|
||||
README_NAME: README.md
|
||||
SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }}
|
||||
SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }}
|
21
.github/workflows/wordpress-plugin-deploy.yml
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
name: Deploy to WordPress.org
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- "!v*-*"
|
||||
jobs:
|
||||
tag:
|
||||
name: New tag
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: php-actions/composer@v5
|
||||
- name: Clean README.md
|
||||
run: tail -n +7 README.md > README.md.tmp && mv README.md.tmp README.md
|
||||
- name: WordPress Plugin Deploy
|
||||
uses: 10up/action-wordpress-plugin-deploy@stable
|
||||
env:
|
||||
ASSETS_DIR: assets
|
||||
SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }}
|
||||
SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }}
|
2
.gitignore
vendored
@ -1,5 +1,3 @@
|
||||
composer.lock
|
||||
package-lock.json
|
||||
/vendor/
|
||||
/node_modules/
|
||||
/dist/
|
||||
|
@ -1,3 +1,3 @@
|
||||
{
|
||||
"extends": "stylelint-config-wordpress"
|
||||
"extends": "@wordpress/stylelint-config"
|
||||
}
|
||||
|
19
.travis.yml
@ -1,14 +1,27 @@
|
||||
language: php
|
||||
php:
|
||||
- '7.2'
|
||||
- '7.3'
|
||||
- '7.4'
|
||||
- '8.0'
|
||||
- nightly
|
||||
dist: bionic
|
||||
|
||||
matrix:
|
||||
allow_failures:
|
||||
- php: nightly
|
||||
|
||||
before_install:
|
||||
- nvm install 14
|
||||
|
||||
before_script:
|
||||
- composer install
|
||||
- npm install
|
||||
|
||||
script:
|
||||
- composer test
|
||||
- composer lint-all
|
||||
- composer lint-php
|
||||
- composer lint-js
|
||||
- composer lint-css
|
||||
|
||||
notifications:
|
||||
slack:
|
||||
secure: "R40BhRCETuDule7lz4oGN+qyLvd7dBmuEu6hVELNhWg3DgCgYOXyrWR2dgxsWsAZ3sldpWGfTJKzSShdDanGCpygpYzuvXxjt23YYJ2ihrohYJwiGIhkR9c24LF2yvWBQDBNZaeLBQ3o6FSnbkTBsmRy5ShgKehfKCOQTKmI1yWHi3fvkMElTorrJc710O41yy/bRKBnoIYd4ZfpLMSSVGCPzR5lZPZy3EiGWXPgYdY7jGMI7ADsy+T5VWHyFqgSSJz/U2bcryKzF08FAry8pyu9lN3r61kXHfVCCJX+kcsFxW9yCfuPLnLu14O776y3U6zrX9is+8mEfkMuTXFaL5o8+iq32AmFjTIDQn6o9BKHsknfmppjwZiLgFTp1T7Z/XR6I4nyK9Z5HXDU2HS0eCUknbgXlMLhxWpKhkyx4rQELuvVlgD+u7yRYraawc3v1ycqaPj0S0G5QBFljSuxsZgNnX1hs8VmgafIvOq5qm4ZVVBhhbz+LgvW1m9COr8DDPVhWWdpcWzF8jtkqC3m4Q/1Ssc6T/MbJMgcXRq/C4DlfEs4aYGYfSl7gLtF2PwlEQCppKJwx0fEPkcbZZ1PjpzF+JMwwRmWS88R0oRyThOyCwlG50c+ktB94pJC+sP1aQZrLAd4WDKUPD9vJTas86V3XBjTUJPs8HQaBDFqFdg="
|
||||
|
10
README.md
@ -1,4 +1,4 @@
|
||||
[](https://travis-ci.org/stklcode/wp-liveticker)
|
||||
[](https://travis-ci.com/stklcode/wp-liveticker)
|
||||
[](https://sonarcloud.io/dashboard?id=de.stklcode.web.wordpress.plugins%3Awp-liveticker)
|
||||
[](https://wordpress.org/plugins/stklcode-liveticker/)
|
||||
[](https://packagist.org/packages/stklcode/stklcode-liveticker)
|
||||
@ -9,9 +9,9 @@
|
||||
* Contributors: Stefan Kalscheuer
|
||||
* Tags: liveticker, feed, rss
|
||||
* Requires at least: 4.0
|
||||
* Tested up to: 5.4
|
||||
* Tested up to: 5.7
|
||||
* Requires PHP: 5.6
|
||||
* Stable tag: 1.1.0
|
||||
* Stable tag: 1.1.1
|
||||
* License: GPLv2 or later
|
||||
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
||||
|
||||
@ -80,6 +80,10 @@ caching time of 12 hours obviously makes no sense.
|
||||
|
||||
## Changelog
|
||||
|
||||
### 1.1.1 - 2021-03-20
|
||||
|
||||
* "Ticker" taxonomy name is now translatable
|
||||
|
||||
### 1.1.0 - 2020-05-02
|
||||
|
||||
* Requires PHP 5.6 or above
|
||||
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 39 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 63 KiB |
Before Width: | Height: | Size: 32 KiB After Width: | Height: | Size: 50 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 27 KiB |
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stklcode/stklcode-liveticker",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "A simple Liveticker for Wordpress.",
|
||||
"keywords": [
|
||||
"wordpress",
|
||||
@ -23,13 +23,13 @@
|
||||
"require-dev": {
|
||||
"php": ">=7",
|
||||
"consolidation/robo": "^2",
|
||||
"phpunit/phpunit": "^8",
|
||||
"phpunit/php-code-coverage": "^7",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.6",
|
||||
"phpunit/phpunit": "^9",
|
||||
"phpunit/php-code-coverage": "^9",
|
||||
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
|
||||
"slowprog/composer-copy-file": "~0.3",
|
||||
"squizlabs/php_codesniffer": "^3.5",
|
||||
"phpcompatibility/php-compatibility": "^9.3",
|
||||
"wp-coding-standards/wpcs": "^2.2",
|
||||
"wp-coding-standards/wpcs": "^2.3",
|
||||
"patchwork/jsqueeze": "^2.0",
|
||||
"natxet/cssmin": "^3.0",
|
||||
"matthiasmullie/minify": "^1.3"
|
||||
@ -65,12 +65,12 @@
|
||||
"phpcs --standard=phpcs.xml -s"
|
||||
],
|
||||
"lint-css": [
|
||||
"./node_modules/stylelint/bin/stylelint.js styles/block.css",
|
||||
"./node_modules/stylelint/bin/stylelint.js styles/liveticker.css"
|
||||
"npx stylelint styles/block.css",
|
||||
"npx stylelint styles/liveticker.css"
|
||||
],
|
||||
"lint-js": [
|
||||
"./node_modules/eslint/bin/eslint.js scripts/block.js",
|
||||
"./node_modules/eslint/bin/eslint.js scripts/liveticker.js"
|
||||
"npx eslint scripts/block.js",
|
||||
"npx eslint scripts/liveticker.js"
|
||||
],
|
||||
"minify": [
|
||||
"minifycss styles/block.css > styles/block.min.css",
|
||||
|
4418
composer.lock
generated
Normal file
@ -26,7 +26,7 @@ class SCLiveticker {
|
||||
*
|
||||
* @var string OPTIONS
|
||||
*/
|
||||
const VERSION = '1.1.0';
|
||||
const VERSION = '1.1.1';
|
||||
|
||||
/**
|
||||
* Options tag.
|
||||
@ -113,8 +113,8 @@ class SCLiveticker {
|
||||
public static function register_types() {
|
||||
// Add new taxonomy, make it hierarchical (like categories).
|
||||
$labels = array(
|
||||
'name' => _x( 'Ticker', 'taxonomy general name' ),
|
||||
'singular_name' => _x( 'Ticker', 'taxonomy singular name' ),
|
||||
'name' => _x( 'Ticker', 'taxonomy general name', 'stklcode-liveticker' ),
|
||||
'singular_name' => _x( 'Ticker', 'taxonomy singular name', 'stklcode-liveticker' ),
|
||||
'search_items' => __( 'Search Tickers', 'stklcode-liveticker' ),
|
||||
'all_items' => __( 'All Tickers', 'stklcode-liveticker' ),
|
||||
'parent_item' => __( 'Parent Ticker', 'stklcode-liveticker' ),
|
||||
|
3521
package-lock.json
generated
Normal file
10
package.json
@ -1,13 +1,13 @@
|
||||
{
|
||||
"name": "stklcode-liveticker",
|
||||
"version": "1.1.0",
|
||||
"version": "1.1.1",
|
||||
"description": "A simple Liveticker for Wordpress.",
|
||||
"author": "Stefan Kalscheuer",
|
||||
"license": "GPL-2.0+",
|
||||
"devDependencies": {
|
||||
"@wordpress/eslint-plugin": "^3",
|
||||
"eslint": "^6",
|
||||
"stylelint": "^13",
|
||||
"stylelint-config-wordpress": "^16"
|
||||
"@wordpress/eslint-plugin": "^7",
|
||||
"@wordpress/stylelint-config": "^19",
|
||||
"eslint": "^7",
|
||||
"stylelint": "^13"
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,13 @@
|
||||
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_tax_query"/>
|
||||
</rule>
|
||||
|
||||
<!-- Verify usage of the correct textdomain for WP translation -->
|
||||
<rule ref="WordPress.WP.I18n">
|
||||
<properties>
|
||||
<property name="text_domain" type="array" value="stklcode-liveticker"/>
|
||||
</properties>
|
||||
</rule>
|
||||
|
||||
<!-- PHP compatibility level -->
|
||||
<config name="testVersion" value="5.6-"/>
|
||||
<rule ref="PHPCompatibility"/>
|
||||
|
@ -9,7 +9,7 @@
|
||||
* @wordpress-plugin
|
||||
* Plugin Name: Liveticker (by stklcode)
|
||||
* Description: A simple Liveticker for WordPress.
|
||||
* Version: 1.1.0
|
||||
* Version: 1.1.1
|
||||
* Author: Stefan Kalscheuer
|
||||
* Author URI: https://www.stklcode.de
|
||||
* Text Domain: stklcode-liveticker
|
||||
|
@ -14,7 +14,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<label for="<?php echo esc_html( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:' ); ?></label>
|
||||
<label for="<?php echo esc_html( $this->get_field_id( 'title' ) ); ?>"><?php esc_html_e( 'Title:', 'stklcode-liveticker' ); ?></label>
|
||||
</td>
|
||||
<td>
|
||||
<input class="widefat" id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
|
||||
|