Skip to content

Commit

Permalink
Merge pull request #1 from kodinkat/initial-shape-setup
Browse files Browse the repository at this point in the history
Initial D.T Media Plugin Shape
  • Loading branch information
corsacca authored Mar 29, 2024
2 parents ca3550d + ccc5ce5 commit c12f985
Show file tree
Hide file tree
Showing 4,509 changed files with 337,234 additions and 455 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:

# - name: Run test suite
# run: composer run-script test
# cp -r disciple-tools-plugin-starter-template.php includes languages spinner.svg version-control.json LICENSE SECURITY.md disciple-tools-plugin-starter-template/
# cp -r disciple-tools-media.php includes languages spinner.svg version-control.json LICENSE SECURITY.md disciple-tools-media/
# Below borrowed from https://github.com/actions/upload-release-asset
- name: Build project
run: |
mkdir disciple-tools-plugin-starter-template
cp -r disciple-tools-plugin-starter-template.php admin charts languages magic-link post-type rest-api site-link tile workflows spinner.svg version-control.json LICENSE SECURITY.md disciple-tools-plugin-starter-template/
zip -r disciple-tools-plugin-starter-template.zip disciple-tools-plugin-starter-template
mkdir disciple-tools-media
cp -r disciple-tools-media.php admin charts languages magic-link post-type rest-api site-link tile workflows spinner.svg version-control.json LICENSE SECURITY.md disciple-tools-media/
zip -r disciple-tools-media.zip disciple-tools-media
- name: Create Release
id: create_release
uses: actions/create-release@v1
Expand All @@ -42,6 +42,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./disciple-tools-plugin-starter-template.zip
asset_name: disciple-tools-plugin-starter-template.zip
asset_path: ./disciple-tools-media.zip
asset_name: disciple-tools-media.zip
asset_content_type: application/zip
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
vendor/*
composer.lock
.idea
.phpunit.result.cache
14 changes: 7 additions & 7 deletions .rename.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
find ./ -type f -print0 | xargs -0 perl -pi -e 's/Disciple_Tools_Plugin_Starter_Template/Disciple_Tools_Plugin_Starter_Template/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/disciple_tools_plugin_starter_template/disciple_tools_plugin_starter_template/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/disciple-tools-plugin-starter-template/disciple-tools-plugin-starter-template/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/starter_post_type/starter_post_type/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/Plugin Starter Template/Plugin Starter Template/g';
mv disciple-tools-plugin-starter-template.php disciple-tools-plugin-starter-template.php
rm .rename.sh
find ./ -type f -print0 | xargs -0 perl -pi -e 's/Disciple_Tools_Media/Disciple_Tools_Media/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/disciple_tools_media/disciple_tools_media/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/disciple-tools-media/disciple-tools-media/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/media/media/g';
find ./ -type f -print0 | xargs -0 perl -pi -e 's/Media/Media/g';
mv disciple-tools-plugin-starter-template.php disciple-tools-media.php
# rm .rename.sh
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Thank you for joining us in contributing to Disciple.Tools! These are the guidel

### Translations
D.T is already being used in multiple languages. Please help us make D.T translable by taking full advantage of Wordpress’ translatable strings. Any string that will be read by the user must be marked as translatable. Ex:
`<label class="section-header"><?php esc_html_e( 'Other', 'disciple-tools-plugin-starter-template' )?></label>`
`<label class="section-header"><?php esc_html_e( 'Other', 'disciple-tools-media' )?></label>`

Make sure you look for these in PHP, HTML and JavaScript code.

Expand All @@ -15,10 +15,10 @@ If you are working on a plugin based off our starter plugin run `./includes/admi

You might need to run `composer install` first.

Note: rules for PHPCS are located in the `phpcs.xml` file. We sometimes update the rule list as PHPCS updates. We’ll update the [starter plugin](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template) `phpcs.xml`, you might want to look there to get the latest version.
Note: rules for PHPCS are located in the `phpcs.xml` file. We sometimes update the rule list as PHPCS updates. We’ll update the [starter plugin](https://github.com/DiscipleTools/disciple-tools-media) `phpcs.xml`, you might want to look there to get the latest version.

### GitHub and Commits
For new plugins copy our [starter plugin](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template).
For new plugins copy our [starter plugin](https://github.com/DiscipleTools/disciple-tools-media).

To commit to the theme or an existing plugin start by creating a fork of the repository. When you are ready, create a pull request into our repo.

Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Disciple.Tools - Plugin Starter Template
Disciple.Tools - Media

Copyright (C) 2018 by various contributors

Expand Down
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
![Build Status](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/actions/workflows/ci.yml/badge.svg?branch=master)
![Build Status](https://github.com/DiscipleTools/disciple-tools-media/actions/workflows/ci.yml/badge.svg?branch=master)
## Dev notes, delete me:
This is a starter plugin to jumpstart your work with Disciple.Tools.
Click the "Use this template" button above.
See instructions for refactoring and getting started in the [wiki](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/wiki)
See instructions for creating releases and publishing your plugin: [wiki](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/wiki)
See instructions for refactoring and getting started in the [wiki](https://github.com/DiscipleTools/disciple-tools-media/wiki)
See instructions for creating releases and publishing your plugin: [wiki](https://github.com/DiscipleTools/disciple-tools-media/wiki)
In order to display the banner correctly on the Disciple.Tools Community Plugins Site, don't change the 'Plugin Banner' text on line 12; only the URL.

## readme format:

![Plugin Banner](https://raw.githubusercontent.com/DiscipleTools/disciple-tools-plugin-starter-template/b30402d97895e3f911efcb47fb8f29ccd1eb92e5/documentation/banner.png)
![Plugin Banner](https://raw.githubusercontent.com/DiscipleTools/disciple-tools-media/b30402d97895e3f911efcb47fb8f29ccd1eb92e5/documentation/banner.png)

# Disciple.Tools - Plugin Starter Template
# Disciple.Tools - Media

Description Description Description Description Description Description Description
Description Description Description Description Description Description Description
Expand Down Expand Up @@ -48,11 +48,11 @@ Purpose purpose purpose purpose purpose purpose purpose purpose purpose purpose
## Contribution

Contributions welcome. You can report issues and bugs in the
[Issues](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/issues) section of the repo. You can present ideas
in the [Discussions](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/discussions) section of the repo. And
code contributions are welcome using the [Pull Request](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/pulls)
[Issues](https://github.com/DiscipleTools/disciple-tools-media/issues) section of the repo. You can present ideas
in the [Discussions](https://github.com/DiscipleTools/disciple-tools-media/discussions) section of the repo. And
code contributions are welcome using the [Pull Request](https://github.com/DiscipleTools/disciple-tools-media/pulls)
system for git. For a more details on contribution see the
[contribution guidelines](https://github.com/DiscipleTools/disciple-tools-plugin-starter-template/blob/master/CONTRIBUTING.md).
[contribution guidelines](https://github.com/DiscipleTools/disciple-tools-media/blob/master/CONTRIBUTING.md).


## Screenshots
Expand Down
Loading

0 comments on commit c12f985

Please sign in to comment.