Skip to content

Commit

Permalink
Merge pull request #16 from grueneschweiz/dev
Browse files Browse the repository at this point in the history
1.7.1
  • Loading branch information
cyrillbolliger authored Nov 25, 2022
2 parents f7e992a + 3ae3879 commit df15579
Show file tree
Hide file tree
Showing 11 changed files with 50 additions and 173 deletions.
5 changes: 5 additions & 0 deletions .docker/wordpress.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM wordpress

# Add xdebug
RUN pecl install xdebug
RUN docker-php-ext-enable xdebug
2 changes: 0 additions & 2 deletions .env

This file was deleted.

3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
node_modules
node_modules
/wordpress
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**Tags:** donations, raisenow, fundraising
**Requires at least:** 4.9
**Tested up to:** 5.6.0
**Stable tag:** 1.7.0
**Stable tag:** 1.7.1
**License:** GPLv2 or later
**License URI:** https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -37,6 +37,10 @@ Same as any other standard WordPress plugin.

## Changelog ##

### 1.7.1 ###
* Fix PHP notice if shortcode misses amounts.
* Shortcode generator not fully visible on small screens.

### 1.7.0 ###
* Support for italian donation forms.

Expand Down
152 changes: 0 additions & 152 deletions bin/install-wp-tests.sh

This file was deleted.

7 changes: 7 additions & 0 deletions css/raisenow-community-admin.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
.raisenow-community-wrapper {
overflow-y: scroll;
overflow-x: hidden;
width: min(100%, calc(100vw - 65px));
height: min(100%, calc(100vh - 123px));
}

#raisenow-community-short-code-message {
display: none;
}
Expand Down
32 changes: 21 additions & 11 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
# https://github.com/chriszarate/docker-compose-wordpress

version: "2"
version: "3.8"

services:
wordpress:
image: "chriszarate/wordpress"
image: grueneschweiz/raisenow-community:latest
build:
context: .
dockerfile: "./.docker/wordpress.Dockerfile"
environment:
VIRTUAL_HOST: "${DOCKER_DEV_DOMAIN}"
WORDPRESS_ACTIVATE_PLUGINS: "raisenow-community" # plugin folder relative to /wp-content/plugins/
WORDPRESS_ACTIVATE_THEME: "" # theme folder relative to /wp-content/themes/
WORDPRESS_SITE_TITLE: "RaiseNow Community Plugin"
WORDPRESS_SITE_URL: "http://${DOCKER_DEV_DOMAIN}"
XDEBUG_CONFIG: "remote_host=${DOCKER_LOCAL_IP} idekey=xdebug"
WORDPRESS_DB_HOST: "mysql"
WORDPRESS_DB_NAME: "wordpress"
WORDPRESS_DB_PASSWORD: ""
WORDPRESS_DB_USER: "root"
WORDPRESS_DEBUG: 1
PHP_IDE_CONFIG: serverName=Docker
depends_on:
- "mysql"
volumes:
- ".:/var/www/html/wp-content/plugins/raisenow-community"
- "./.docker/addon-php.ini:/usr/local/etc/php/conf.d/addon-php.ini:ro"
ports:
- "8080:80"
extra_hosts:
- "host.docker.internal:host-gateway"

mysql:
image: "mariadb:10.2"
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
MYSQL_DATABASE: "wordpress"
MYSQL_ROOT_PASSWORD: ""
MYSQL_ROOT_PASSWORD: ""
volumes:
- "db:/var/lib/mysql"

volumes:
db:
2 changes: 1 addition & 1 deletion includes/class-raisenow-community-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function add_media_button() {
add_thickbox();

// add media button
echo '<a href="#TB_inline?&inlineId=' . RAISENOW_COMMUNITY_PREFIX . '-short-code-generator&height=700" class="thickbox button" ' .
echo '<a href="#TB_inline?&inlineId=' . RAISENOW_COMMUNITY_PREFIX . '-short-code-generator&height=550&width=600" class="thickbox button" ' .
'title="' . esc_attr__( 'Insert Donation Form', RAISENOW_COMMUNITY_PREFIX ) . '">' .
'<span class="wp-media-buttons-icon dashicons dashicons-plus"></span> ' .
__( 'Insert Donation Form', RAISENOW_COMMUNITY_PREFIX ) . '</a>';
Expand Down
4 changes: 2 additions & 2 deletions includes/class-raisenow-community-frontend.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ public function donation_form( $atts ) {
}
}

$one_time_amounts = $this->get_amounts( 'one_time', $atts );
$recurring_amounts = $this->get_amounts( 'recurring', $atts );
$one_time_amounts = $this->get_amounts( 'one_time', $options );
$recurring_amounts = $this->get_amounts( 'recurring', $options );

$custom_css = $options['css'];
$custom_script = $options['javascript'];
Expand Down
4 changes: 2 additions & 2 deletions raisenow-community.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Author URI: https://github.com/cyrillbolliger
* Text Domain: raisenow-community
* Domain Path: /languages
* Version: 1.7.0
* Version: 1.7.1
*
* @package Raisenow_Community
*/
Expand All @@ -25,7 +25,7 @@
/**
* version number (don't forget to change it also in the header)
*/
define( 'RAISENOW_COMMUNITY_VERSION', '1.7.0' );
define( 'RAISENOW_COMMUNITY_VERSION', '1.7.1' );

/**
* plugin prefix
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: cyrillbolliger, phil8900, vdrouotmecom
Tags: donations, raisenow, fundraising
Requires at least: 4.9
Tested up to: 5.6.0
Stable tag: 1.7.0
Stable tag: 1.7.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -37,6 +37,10 @@ Same as any other standard WordPress plugin.

== Changelog ==

= 1.7.1 =
* Fix PHP notice if shortcode misses amounts.
* Shortcode generator not fully visible on small screens.

= 1.7.0 =
* Support for italian donation forms.

Expand Down

0 comments on commit df15579

Please sign in to comment.