Skip to content

Commit f16b8de

Browse files
authored
refactored
1 parent de41449 commit f16b8de

File tree

14 files changed

+348
-677
lines changed

14 files changed

+348
-677
lines changed

.github/workflows/latest.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1212
steps:
1313
- name: Check out code 🛒
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Setup PHP 🐫
1717
uses: shivammathur/setup-php@v2
@@ -22,7 +22,7 @@ jobs:
2222
id: php-codesniffer
2323
run: make lint
2424

25-
- uses: act10ns/slack@v1
25+
- uses: act10ns/slack@v2
2626
with:
2727
status: ${{ job.status }}
2828
steps: ${{ toJson(steps) }}
@@ -44,7 +44,7 @@ jobs:
4444
needs: [ lint ]
4545
steps:
4646
- name: Check out code 🛒
47-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
4848
id: code-checkout
4949

5050
- name: Prepare to deploy 🔧
@@ -56,7 +56,7 @@ jobs:
5656
mkdir -p ${DIST_DIR_S3} && cp ${BUILD_DIR}/${ZIP_FILENAME} ${DIST_DIR_S3}/${ZIP_FILENAME}
5757
5858
- name: configure aws credentials 🪪
59-
uses: aws-actions/configure-aws-credentials@v1
59+
uses: aws-actions/configure-aws-credentials@v4
6060
with:
6161
role-to-assume: arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions/gh-ci-s3-artifact
6262
role-session-name: gh-actions-${{ env.PLUGIN }}
@@ -74,7 +74,7 @@ jobs:
7474
s3_key: ${{ env.S3_KEY }}
7575
aws_account_id: ${{ secrets.AWS_ACCOUNT_ID }}
7676

77-
- uses: act10ns/slack@v1
77+
- uses: act10ns/slack@v2
7878
with:
7979
status: ${{ job.status }}
8080
steps: ${{ toJson(steps) }}

.github/workflows/pull-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-22.04
1010
steps:
1111
- name: Check out code 🛒
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313
id: code-checkout
1414

1515
- name: Validate composer.json and composer.lock 🎼

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
1212
steps:
1313
- name: Check out code 🛒
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Setup PHP 🐫
1717
uses: shivammathur/setup-php@v2
@@ -22,7 +22,7 @@ jobs:
2222
id: php-codesniffer
2323
run: make lint
2424

25-
- uses: act10ns/slack@v1
25+
- uses: act10ns/slack@v2
2626
with:
2727
status: ${{ job.status }}
2828
steps: ${{ toJson(steps) }}
@@ -40,7 +40,7 @@ jobs:
4040
needs: [ lint ]
4141
steps:
4242
- name: Check out code 🛒
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@v4
4444

4545
- name: Build package 🔧
4646
id: build-package

.phpcs.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@
4242
rules here.
4343
4444
-->
45-
<rule ref='PSR2'></rule>
45+
<rule ref='PSR12'></rule>
4646
<rule ref="PSR1"></rule>
4747
</ruleset>

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM wordpress:6.2.2-php8.2-apache
1+
FROM wordpress:6.3.1-php8.2-apache
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends ssl-cert && \
File renamed without changes.

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
COMMIT := $(shell git rev-parse --short=8 HEAD)
2-
ZIP_FILENAME := $(or $(ZIP_FILENAME),"bmlt-build-file.zip")
2+
ZIP_FILENAME := $(or $(ZIP_FILENAME),"bmlt-versions.zip")
33
BUILD_DIR := $(or $(BUILD_DIR),"build")
44
VENDOR_AUTOLOAD := vendor/autoload.php
55

@@ -9,7 +9,7 @@ help: ## Print the help documentation
99
.PHONY: build
1010
build: ## Build
1111
git archive --format=zip --output=${ZIP_FILENAME} $(COMMIT)
12-
mkdir ${BUILD_DIR} && mv ${ZIP_FILENAME} ${BUILD_DIR}/
12+
mkdir -p ${BUILD_DIR} && mv ${ZIP_FILENAME} ${BUILD_DIR}/
1313

1414
.PHONY: clean
1515
clean: ## clean

README.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22

33
Displays download links and versions for latest BMLT Releases simply add [bmlt_versions] shortcode to your page.
44

5-
# SHORTCODE
5+
SHORTCODE
66
[bmlt_versions]
77

8-
**Attributes:** root_server, wordpress, drupal, basic, crouton, bread, yap, tabbed_map, meeting_map, list_locations, upcoming_meetings, contacts
9-
Adds ability to hide certain releases, default is to show all or 1. sort_by allows you to sort by name or date, defaults to date. [bmlt_versions sort_by="name"] or [bmlt_versions sort_by="date"] defaults to date if not specified.
10-
8+
**Attributes:** root_server, wordpress, drupal, basic, crouton, bread, yap, tabbed_map, meeting_map, list_locations, upcoming_meetings, contacts, temporary_closures, workflow
9+
Adds ability to hide certain releases, default for most is to show all or 1. sort_by allows you to sort by name or date, defaults to date. [bmlt_versions sort_by="name"] or [bmlt_versions sort_by="date"] defaults to date if not specified.
10+
1111
Ex. [bmlt_versions drupal="0"] would not display drupal link.
1212

1313

14+
[bmlt_versions_simple]
15+
16+
This is just a more concise and simple display but allows you to add documentation links in dashboard settings.
17+
**Attributes:** root_server, crouton, bread, yap, workflow
18+
Adds ability to hide certain releases, default is to show all or 1. sort_by allows you to sort by name or date, defaults to date. [bmlt_versions_simple sort_by="name"] or [bmlt_versions_simple sort_by="date"] defaults to date if not specified.
19+
20+
Ex. [bmlt_versions_simple drupal="0"] would not display drupal link.
1421

1522

1623
# Installation
@@ -20,11 +27,14 @@ This section describes how to install the plugin and get it working.
2027
1. Upload the entire BMLT Versions Plugin folder to the /wp-content/plugins/ directory
2128
2. Activate the plugin through the Plugins menu in WordPress
2229
3. Add the GitHub API Token to the BMLT Versions settings page WordPress Dashboard->Settings->BMLT Versions
23-
4. Add [bmlt_versions] shortcode to your Wordpress page/post.
30+
4. Add [bmlt_versions] or [bmlt_versions_simple] shortcode to your Wordpress page/post.
2431

2532

2633
# Changelog
2734

35+
= 1.8.0 =
36+
* Refactored codebase.
37+
2838
= 1.7.1 =
2939
* Update user agent.
3040
* Added BMLT Workflow Plugin.

0 commit comments

Comments
 (0)