Skip to content

Commit

Permalink
[VER] Bump to 0.0.8
Browse files Browse the repository at this point in the history
* Doc file restructured
* Use of parsedown.org
* Plugin info updated
  • Loading branch information
ponsfrilus committed Dec 17, 2019
1 parent 35c43c4 commit a28dda0
Show file tree
Hide file tree
Showing 9 changed files with 2,183 additions and 173 deletions.
31 changes: 18 additions & 13 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,35 @@
# CHANGELOG

All notable changes to this project will be documented in this file.

## v0.0.8
* Use of http://parsedown.org to display plugin info based on README, INSALL and CHANGELOG

## v0.0.7
- Auto update thanks to https://rudrastyh.com/wordpress/self-hosted-plugin-update.html
* Auto update thanks to https://rudrastyh.com/wordpress/self-hosted-plugin-update.html

## v0.0.6
- create-gh-release.sh improved
- Release asset keep the same name so that [the latest release download
* create-gh-release.sh improved
* Release asset keep the same name so that [the latest release download
link](https://github.com/epfl-idevelop/wpforms-epfl-payonline/releases/latest/download/wpforms-epfl-payonline.zip)
is always available.

## v0.0.5
- Auto create the plugin zip and release it on GitHub with `make all`
- French translation
* Auto create the plugin zip and release it on GitHub with `make all`
* French translation

## v0.0.4
- Makefile to automatize all the things (WIP)
- Translation files generated
* Makefile to automatize all the things (WIP)
* Translation files generated

## v0.0.3
- Payments status updated from Payonline
- Default form template for conference
* Payments status updated from Payonline
* Default form template for conference

## v0.0.2
- Payments sent to Payonline
- Plugin auto-activated
- Amazing logo created
* Payments sent to Payonline
* Plugin auto-activated
* Amazing logo created

## v0.0.1
- wpforms-paypal-standard plugin as template
* wpforms-paypal-standard plugin as template
33 changes: 33 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# WPForms EPFL Payonline

## Installation

1. Install [WPForms].
2. Activate the [Elite] or [Pro] version.
3. Download and install [WPForms EPFL Payonline] [latest release].
4. Activate it.

WPForms EPFL Payonline is now ready to be configured.

## Configuration

Both WPForms EPFL Payonline and the Payonline instance need to be configured
together:
- The **Return URL** have to be set on the Payonline instance: if your
Event URL is https://idevfsd-test-conferences.epfl.ch, then the
**Return URL** would be
https://idevfsd-test-conferences.epfl.ch/?EPFLPayonline.

Please note the `?EPFLPayonline` parameter in the URL query string.

- The **EPFL Payonline instance ID** have to be set for any forms that need
to use EPFL Payonline.
![file](doc/img/WPForms-Payonline-Instance-ID-Highlighted.png)

WPForms EPFL Payonline is now ready to be used as payment gateway.

[WPForms EPFL Payonline]: https://github.com/epfl-idevelop/wpforms-epfl-payonline
[latest release]: https://github.com/epfl-idevelop/wpforms-epfl-payonline/releases/latest
[WPForms]: https://wpforms.com/
[Elite]: https://wpforms.com/checkout?edd_action=add_to_cart&download_id=290232&discount=SAVE50
[Pro]: https://wpforms.com/checkout?edd_action=add_to_cart&download_id=290008&discount=SAVE50
34 changes: 6 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,17 @@ _DISCLAIMER: This addon is only useful in the [EPFL] ecosystem. Therefore, any a
2. You need the '[accred](https://accred.epfl.ch/)' right named 'Payonline'
on the relevant EPFL unit.

## Installation

1. Install [WPForms].
2. Activate the [Elite] or [Pro] version.
3. Download and install [WPForms EPFL Payonline] [latest release] ([Download latest]).
4. Activate it.

WPForms EPFL Payonline is now ready to be configured.

## Configuration

Both WPForms EPFL Payonline and the Payonline instance need to be configured
together:
- The **Return URL** have to be set on the Payonline instance: if your
Event URL is https://idevfsd-test-conferences.epfl.ch, then the
**Return URL** would be
https://idevfsd-test-conferences.epfl.ch/?EPFLPayonline.

Please note the `?EPFLPayonline` parameter in the URL query string.

- The **EPFL Payonline instance ID** have to be set for any forms that need
to use EPFL Payonline.
![file](doc/img/WPForms-Payonline-Instance-ID-Highlighted.png)

WPForms EPFL Payonline is now ready to be used as payment gateway.
## Installation & Configuration

Please read the [INSTALL.md] file.

## Development

WIP

## Contributing

You probably already know the drill → [CONTRIBUTING.md](CONTRIBUTING.md)
You probably already know the drill → [CONTRIBUTING.md]

## Help and support

Expand All @@ -56,8 +33,9 @@ Please raise an [issue] with verbatim comments and steps to reproduce.
[EPFL Payonline]: https://payonline.epfl.ch
[WPForms EPFL Payonline]: https://github.com/epfl-idevelop/wpforms-epfl-payonline
[latest release]: https://github.com/epfl-idevelop/wpforms-epfl-payonline/releases/latest
[Download latest]: https://github.com/epfl-idevelop/wpforms-epfl-payonline/releases/latest/download/wpforms-epfl-payonline.zip
[issue]: https://github.com/epfl-idevelop/wpforms-epfl-payonline/issues
[WPForms]: https://wpforms.com/
[Elite]: https://wpforms.com/checkout?edd_action=add_to_cart&download_id=290232&discount=SAVE50
[Pro]: https://wpforms.com/checkout?edd_action=add_to_cart&download_id=290008&discount=SAVE50
[Pro]: https://wpforms.com/checkout?edd_action=add_to_cart&download_id=290008&discount=SAVE50
[INSTALL.md]: https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/INSTALL.md
[CONTRIBUTING.md]: https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/CONTRIBUTING.md
33 changes: 30 additions & 3 deletions class-epfl-payonline.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,9 +750,9 @@ function wpforms_epfl_payonline_plugin_info( $res, $action, $args ) {
$res->trunk = $remote->html_url;
$res->last_updated = $remote->published_at;
$res->sections = array(
'description' => "DESCRIPTION", // description tab
'installation' => "INSTALLATION", // installation tab
'changelog' => 'See <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/CHANGELOG.md">GitHub CHANGELOG</a>', // changelog tab
'description' => $this->getReadMe(), // description tab
'installation' => $this->getInstall(), // installation tab
'changelog' => $this->getChangelog(), // changelog tab
// you can add your custom sections (tabs) here
);

Expand All @@ -770,6 +770,33 @@ function wpforms_epfl_payonline_plugin_info( $res, $action, $args ) {
return false;
}

// http://localhost:8089/wp-admin/plugin-install.php?tab=plugin-information&plugin=epfl_payonline&section=changelog&TB_iframe=true&width=600&height=800
private function getReadMe() {
$readme_path = plugin_dir_path( __FILE__ ) . '/README.md';
$readme_content = file_get_contents($readme_path, true);
require_once(plugin_dir_path( __FILE__ ) .'/lib/Parsedown.php');
$Parsedown = new Parsedown();
$readme_content = $Parsedown->text($readme_content); # prints: <p>Hello <em>Parsedown</em>!</p>
return 'See README.md on <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/README.md">GitHub</a>.<br><div class="epfl_payonline_readme">' . $readme_content . '</div>';
}

private function getInstall() {
$install_path = plugin_dir_path( __FILE__ ) . '/INSTALL.md';
$install_content = file_get_contents($install_path, true);
require_once(plugin_dir_path( __FILE__ ) .'/lib/Parsedown.php');
$Parsedown = new Parsedown();
$install_content = $Parsedown->text($install_content); # prints: <p>Hello <em>Parsedown</em>!</p>
return 'See INSTALL.md on <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/INSTALL.md">GitHub</a>.<br><div class="epfl_payonline_install">' . $install_content . '</div>';
}

private function getChangelog() {
$changelog_path = plugin_dir_path( __FILE__ ) . '/CHANGELOG.md';
$changelog_content = file_get_contents($changelog_path, true);
require_once(plugin_dir_path( __FILE__ ) .'/lib/Parsedown.php');
$Parsedown = new Parsedown();
$changelog_content = $Parsedown->text($changelog_content); # prints: <p>Hello <em>Parsedown</em>!</p>
return 'See CHANGELOG.md on <a href="https://github.com/epfl-idevelop/wpforms-epfl-payonline/blob/master/CHANGELOG.md">GitHub</a>.<br><div class="epfl_payonline_changelog">' . $changelog_content . '</div>';
}
}

new WPForms_EPFL_Payonline();
Expand Down
Binary file modified languages/wpforms-epfl-payonline-fr_FR.mo
Binary file not shown.
Loading

0 comments on commit a28dda0

Please sign in to comment.