From cdedfdfbd7134317b4f40f647862eb5c5932f28b Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 12 Feb 2019 10:14:27 -0500 Subject: [PATCH] Update for smarty Smarty update disallows php in smarty --- index.php | 6 +++--- views/admin/settings/editNotificationType.html | 17 ++++++++++------- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/index.php b/index.php index 52ffa5f..fe1be44 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Billing * Plugin URI: http://www.gaslightmedia.com/ * Description: This is glmAssociate Billing Module - * Version: 1.0.21 + * Version: 1.0.22 * Author: Gaslight Media * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -19,7 +19,7 @@ * @package glmMembersBillingAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.0.21 + * @version 1.0.22 */ /* @@ -37,7 +37,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.21'); +define('GLM_MEMBERS_BILLING_PLUGIN_VERSION', '1.0.22'); define('GLM_MEMBERS_BILLING_PLUGIN_DB_VERSION', '0.0.26'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/views/admin/settings/editNotificationType.html b/views/admin/settings/editNotificationType.html index 1076829..5aa1b6b 100644 --- a/views/admin/settings/editNotificationType.html +++ b/views/admin/settings/editNotificationType.html @@ -120,13 +120,16 @@ Message: - {php} - wp_editor('{$notification.fieldData.message|escape:quotes}', 'glm_descr', array( - 'media_buttons' => false, - 'textarea_name' => 'message', - 'editor_height' => 200, - )); - {/php} + {wp_editor( + $notification.fieldData.message|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "message", + "editor_height": 200 + }', true) + )} {if $notification.fieldFail.message}

{$notification.fieldFail.message}

{/if} -- 2.17.1