From 8e3a04ef7ad32beab76b465c2afbf29be7f3fa91 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 12 Feb 2019 09:02:20 -0500 Subject: [PATCH] updating for smarty Use Smarty version that doesn't allow php tags. --- views/admin/contacts/edit.html | 20 ++++++++++---------- views/admin/member/contacts--POS_OLD.html | 20 ++++++++++---------- views/admin/profile/index.html | 20 ++++++++++---------- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/views/admin/contacts/edit.html b/views/admin/contacts/edit.html index 65c8caf..af864f9 100644 --- a/views/admin/contacts/edit.html +++ b/views/admin/contacts/edit.html @@ -890,16 +890,16 @@ Position/Responsibilities - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} diff --git a/views/admin/member/contacts--POS_OLD.html b/views/admin/member/contacts--POS_OLD.html index 4d90702..7a0ea4e 100644 --- a/views/admin/member/contacts--POS_OLD.html +++ b/views/admin/member/contacts--POS_OLD.html @@ -296,16 +296,16 @@ Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} diff --git a/views/admin/profile/index.html b/views/admin/profile/index.html index 79201e0..8f52e52 100644 --- a/views/admin/profile/index.html +++ b/views/admin/profile/index.html @@ -126,16 +126,16 @@ Position/Responsibilities: - {php} - wp_editor('{$contactInfo.fieldData.descr|escape:quotes}', 'glm_descr', array( - 'quicktags' => false, - 'media_buttons' => false, - 'wpautop' => false, - 'textarea_name' => 'descr', - 'editor_height' => 100, // Height in px, overrides editor_rows - // 'textarea_rows' => 4, - )); - {/php} + {wp_editor( + $contactInfo.fieldData.descr|escape:quotes, + 'glm_descr', + json_decode('{ + "media_buttons": false, + "quicktags": false, + "textarea_name": "descr", + "editor_height": 100 + }', true) + )} {if $contactInfo.fieldFail.descr}

{$contactInfo.fieldFail.descr}

{/if} -- 2.17.1